@everlywell/consumer-ui 1.46.0 → 1.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as Qt, Box as R, Stepper as qt, Icon as
|
|
2
|
-
import
|
|
3
|
-
import { Text as En, useBreakpointValue as
|
|
1
|
+
import { useSteps as Qt, Box as R, Stepper as qt, Icon as we, Flex as D, Text as W, Link as oe, Button as Et, Image as en, IconButton as tn, theme as V, useMediaQuery as Qe, VStack as nn, Skeleton as Ze, HStack as ht, SkeletonCircle as Me, DrawerContent as St, DrawerOverlay as kt, Drawer as Rt, DrawerHeader as _t, DrawerBody as Dt, 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 jn, ModalCloseButton as yn } from "@everlywell/ui-kit";
|
|
2
|
+
import se, { useEffect as ee, forwardRef as Tt, useRef as Cn, useCallback as It, useState as U } from "react";
|
|
3
|
+
import { Text as En, useBreakpointValue as me, Box as Sn, InputGroup as kn, Input as Rn, InputRightElement as _n, Icon as Dn } from "@chakra-ui/react";
|
|
4
4
|
import { CaretRight as gt, Basket as Tn, CaretLeft as In, X as Ot, MagnifyingGlass as On, CaretDown as Ln, ArrowRight as Pn, InstagramLogo as An, LinkedinLogo as Mn, FacebookLogo as $n, TiktokLogo as Hn, XLogo as Fn } from "@phosphor-icons/react";
|
|
5
5
|
import { motion as ot, AnimatePresence as Bn } from "framer-motion";
|
|
6
|
-
var qe = { exports: {} },
|
|
6
|
+
var qe = { exports: {} }, _e = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,19 +15,19 @@ var qe = { exports: {} }, Re = {};
|
|
|
15
15
|
*/
|
|
16
16
|
var xt;
|
|
17
17
|
function Wn() {
|
|
18
|
-
if (xt) return
|
|
18
|
+
if (xt) return _e;
|
|
19
19
|
xt = 1;
|
|
20
|
-
var n =
|
|
21
|
-
function d(
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof: o, type:
|
|
20
|
+
var n = se, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function d(h, g, p) {
|
|
22
|
+
var f, C = {}, E = null, v = null;
|
|
23
|
+
p !== void 0 && (E = "" + p), g.key !== void 0 && (E = "" + g.key), g.ref !== void 0 && (v = g.ref);
|
|
24
|
+
for (f in g) a.call(g, f) && !u.hasOwnProperty(f) && (C[f] = g[f]);
|
|
25
|
+
if (h && h.defaultProps) for (f in g = h.defaultProps, g) C[f] === void 0 && (C[f] = g[f]);
|
|
26
|
+
return { $$typeof: o, type: h, key: E, ref: v, props: C, _owner: c.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return _e.Fragment = s, _e.jsx = d, _e.jsxs = d, _e;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var De = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -40,7 +40,7 @@ var _e = {};
|
|
|
40
40
|
var vt;
|
|
41
41
|
function zn() {
|
|
42
42
|
return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var n =
|
|
43
|
+
var n = se, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), w = Symbol.iterator, L = "@@iterator";
|
|
44
44
|
function b(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -65,16 +65,16 @@ function zn() {
|
|
|
65
65
|
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var P = !1, F = !1,
|
|
68
|
+
var P = !1, F = !1, Y = !1, Q = !1, ce = !1, q;
|
|
69
69
|
q = Symbol.for("react.module.reference");
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
70
|
+
function ue(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === u || ce || e === c || e === p || e === f || Q || e === v || P || F || Y || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === C || e.$$typeof === d || e.$$typeof === h || 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 === q || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function de(e, r, l) {
|
|
78
78
|
var x = e.displayName;
|
|
79
79
|
if (x)
|
|
80
80
|
return x;
|
|
@@ -92,7 +92,7 @@ function zn() {
|
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case
|
|
95
|
+
case a:
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case s:
|
|
98
98
|
return "Portal";
|
|
@@ -100,21 +100,21 @@ function zn() {
|
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case c:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case p:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case f:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case h:
|
|
111
111
|
var r = e;
|
|
112
112
|
return te(r) + ".Consumer";
|
|
113
113
|
case d:
|
|
114
114
|
var l = e;
|
|
115
115
|
return te(l._context) + ".Provider";
|
|
116
|
-
case
|
|
117
|
-
return
|
|
116
|
+
case g:
|
|
117
|
+
return de(e, e.render, "ForwardRef");
|
|
118
118
|
case C:
|
|
119
119
|
var x = e.displayName || null;
|
|
120
120
|
return x !== null ? x : B(e.type) || "Memo";
|
|
@@ -129,18 +129,18 @@ function zn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var T = Object.assign, X = 0, Z, Te, Ie, Oe,
|
|
133
|
-
function
|
|
132
|
+
var T = Object.assign, X = 0, Z, Te, Ie, Oe, fe, Le, ye;
|
|
133
|
+
function pe() {
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
pe.__reactDisabledLog = !0;
|
|
136
136
|
function Fe() {
|
|
137
137
|
{
|
|
138
138
|
if (X === 0) {
|
|
139
|
-
Z = console.log, Te = console.info, Ie = console.warn, Oe = console.error,
|
|
139
|
+
Z = console.log, Te = console.info, Ie = console.warn, Oe = console.error, fe = console.group, Le = console.groupCollapsed, ye = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: pe,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -178,40 +178,40 @@ function zn() {
|
|
|
178
178
|
value: Oe
|
|
179
179
|
}),
|
|
180
180
|
group: T({}, e, {
|
|
181
|
-
value:
|
|
181
|
+
value: fe
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: T({}, e, {
|
|
184
184
|
value: Le
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: T({}, e, {
|
|
187
|
-
value:
|
|
187
|
+
value: ye
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
X < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var K = H.ReactCurrentDispatcher,
|
|
195
|
-
function
|
|
194
|
+
var K = H.ReactCurrentDispatcher, Ce;
|
|
195
|
+
function he(e, r, l) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (Ce === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
200
|
} catch (k) {
|
|
201
201
|
var x = k.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
-
|
|
202
|
+
Ce = x && x[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + Ce + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var Ee = !1, ne;
|
|
209
209
|
{
|
|
210
210
|
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
ne = new We();
|
|
212
212
|
}
|
|
213
213
|
function Pe(e, r) {
|
|
214
|
-
if (!e ||
|
|
214
|
+
if (!e || Ee)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
217
|
var l = ne.get(e);
|
|
@@ -219,7 +219,7 @@ function zn() {
|
|
|
219
219
|
return l;
|
|
220
220
|
}
|
|
221
221
|
var x;
|
|
222
|
-
|
|
222
|
+
Ee = !0;
|
|
223
223
|
var k = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var _;
|
|
@@ -267,18 +267,18 @@ function zn() {
|
|
|
267
267
|
if (A !== 1 || M !== 1)
|
|
268
268
|
do
|
|
269
269
|
if (A--, M--, M < 0 || m[A] !== z[M]) {
|
|
270
|
-
var
|
|
270
|
+
var G = `
|
|
271
271
|
` + m[A].replace(" at new ", " at ");
|
|
272
|
-
return e.displayName &&
|
|
272
|
+
return e.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, G), G;
|
|
273
273
|
}
|
|
274
274
|
while (A >= 1 && M >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
Ee = !1, K.current = _, Be(), Error.prepareStackTrace = k;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var be = e ? e.displayName || e.name : "", le = be ? he(be) : "";
|
|
282
282
|
return typeof e == "function" && ne.set(e, le), le;
|
|
283
283
|
}
|
|
284
284
|
function ze(e, r, l) {
|
|
@@ -288,46 +288,46 @@ function zn() {
|
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function ge(e, r, l) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
295
|
return Pe(e, J(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return he(e);
|
|
298
298
|
switch (e) {
|
|
299
|
+
case p:
|
|
300
|
+
return he("Suspense");
|
|
299
301
|
case f:
|
|
300
|
-
return
|
|
301
|
-
case g:
|
|
302
|
-
return pe("SuspenseList");
|
|
302
|
+
return he("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
|
-
case
|
|
306
|
+
case g:
|
|
307
307
|
return ze(e.render);
|
|
308
308
|
case C:
|
|
309
|
-
return
|
|
309
|
+
return ge(e.type, r, l);
|
|
310
310
|
case E: {
|
|
311
311
|
var x = e, k = x._payload, _ = x._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return ge(_(k), r, l);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var ae = Object.prototype.hasOwnProperty, Se = {}, ke = H.ReactDebugCurrentFrame;
|
|
321
|
+
function ie(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner, l =
|
|
324
|
-
|
|
323
|
+
var r = e._owner, l = ge(e.type, e._source, r ? r.type : null);
|
|
324
|
+
ke.setExtraStackFrame(l);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
ke.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function i(e, r, l, x, k) {
|
|
329
329
|
{
|
|
330
|
-
var _ = Function.call.bind(
|
|
330
|
+
var _ = Function.call.bind(ae);
|
|
331
331
|
for (var y in e)
|
|
332
332
|
if (_(e, y)) {
|
|
333
333
|
var m = void 0;
|
|
@@ -340,7 +340,7 @@ function zn() {
|
|
|
340
340
|
} catch (A) {
|
|
341
341
|
m = A;
|
|
342
342
|
}
|
|
343
|
-
m && !(m instanceof Error) && (
|
|
343
|
+
m && !(m instanceof Error) && (ie(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, y, typeof m), ie(null)), m instanceof Error && !(m.message in Se) && (Se[m.message] = !0, ie(k), S("Failed %s type: %s", l, m.message), ie(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -354,7 +354,7 @@ function zn() {
|
|
|
354
354
|
return l;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function xe(e) {
|
|
358
358
|
try {
|
|
359
359
|
return re(e), !1;
|
|
360
360
|
} catch {
|
|
@@ -365,18 +365,18 @@ function zn() {
|
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
367
|
function Ae(e) {
|
|
368
|
-
if (
|
|
368
|
+
if (xe(e))
|
|
369
369
|
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $(e)), re(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var Re = H.ReactCurrentOwner, Pt = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
376
|
+
}, at, it, Ne;
|
|
377
377
|
Ne = {};
|
|
378
378
|
function At(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (ae.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function zn() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Mt(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (ae.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -392,15 +392,15 @@ function zn() {
|
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
394
|
function $t(e, r) {
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var l = B(
|
|
397
|
-
Ne[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(
|
|
395
|
+
if (typeof e.ref == "string" && Re.current && r && Re.current.stateNode !== r) {
|
|
396
|
+
var l = B(Re.current.type);
|
|
397
|
+
Ne[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(Re.current.type), e.ref), Ne[l] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function Ht(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var l = function() {
|
|
403
|
-
|
|
403
|
+
at || (at = !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,
|
|
@@ -411,7 +411,7 @@ function zn() {
|
|
|
411
411
|
function Ft(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var l = function() {
|
|
414
|
-
|
|
414
|
+
it || (it = !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,
|
|
@@ -453,7 +453,7 @@ function zn() {
|
|
|
453
453
|
var _, y = {}, m = null, z = null;
|
|
454
454
|
l !== void 0 && (Ae(l), m = "" + l), Mt(r) && (Ae(r.key), m = "" + r.key), At(r) && (z = r.ref, $t(r, k));
|
|
455
455
|
for (_ in r)
|
|
456
|
-
|
|
456
|
+
ae.call(r, _) && !Pt.hasOwnProperty(_) && (y[_] = r[_]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var A = e.defaultProps;
|
|
459
459
|
for (_ in A)
|
|
@@ -463,20 +463,20 @@ function zn() {
|
|
|
463
463
|
var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
464
|
m && Ht(y, M), z && Ft(y, M);
|
|
465
465
|
}
|
|
466
|
-
return Bt(e, m, z, k, x,
|
|
466
|
+
return Bt(e, m, z, k, x, Re.current, y);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var Ve = H.ReactCurrentOwner, lt = H.ReactDebugCurrentFrame;
|
|
470
|
-
function
|
|
470
|
+
function ve(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var r = e._owner, l =
|
|
472
|
+
var r = e._owner, l = ge(e.type, e._source, r ? r.type : null);
|
|
473
473
|
lt.setExtraStackFrame(l);
|
|
474
474
|
} else
|
|
475
475
|
lt.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var Ye;
|
|
478
|
+
Ye = !1;
|
|
479
|
+
function Ge(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
481
481
|
}
|
|
482
482
|
function st() {
|
|
@@ -517,7 +517,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
517
517
|
return;
|
|
518
518
|
ct[l] = !0;
|
|
519
519
|
var x = "";
|
|
520
|
-
e && e._owner && e._owner !== Ve.current && (x = " It was passed a child from " + B(e._owner.type) + "."),
|
|
520
|
+
e && e._owner && e._owner !== Ve.current && (x = " It was passed a child from " + B(e._owner.type) + "."), ve(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), ve(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
function dt(e, r) {
|
|
@@ -527,15 +527,15 @@ Check the top-level render call using <` + l + ">.");
|
|
|
527
527
|
if (I(e))
|
|
528
528
|
for (var l = 0; l < e.length; l++) {
|
|
529
529
|
var x = e[l];
|
|
530
|
-
|
|
530
|
+
Ge(x) && ut(x, r);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (Ge(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
537
|
for (var _ = k.call(e), y; !(y = _.next()).done; )
|
|
538
|
-
|
|
538
|
+
Ge(y.value) && ut(y.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -547,7 +547,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
547
547
|
var l;
|
|
548
548
|
if (typeof r == "function")
|
|
549
549
|
l = r.propTypes;
|
|
550
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
550
|
+
else if (typeof r == "object" && (r.$$typeof === g || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
552
|
r.$$typeof === C))
|
|
553
553
|
l = r.propTypes;
|
|
@@ -555,31 +555,31 @@ Check the top-level render call using <` + l + ">.");
|
|
|
555
555
|
return;
|
|
556
556
|
if (l) {
|
|
557
557
|
var x = B(r);
|
|
558
|
-
|
|
559
|
-
} else if (r.PropTypes !== void 0 && !
|
|
560
|
-
|
|
558
|
+
i(l, e.props, "prop", x, e);
|
|
559
|
+
} else if (r.PropTypes !== void 0 && !Ye) {
|
|
560
|
+
Ye = !0;
|
|
561
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
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
569
|
for (var r = Object.keys(e.props), l = 0; l < r.length; l++) {
|
|
570
570
|
var x = r[l];
|
|
571
571
|
if (x !== "children" && x !== "key") {
|
|
572
|
-
|
|
572
|
+
ve(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), ve(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (
|
|
576
|
+
e.ref !== null && (ve(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ft = {};
|
|
580
580
|
function pt(e, r, l, x, k, _) {
|
|
581
581
|
{
|
|
582
|
-
var y =
|
|
582
|
+
var y = ue(e);
|
|
583
583
|
if (!y) {
|
|
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.");
|
|
@@ -592,19 +592,19 @@ Check the top-level render call using <` + l + ">.");
|
|
|
592
592
|
if (M == null)
|
|
593
593
|
return M;
|
|
594
594
|
if (y) {
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
595
|
+
var G = r.children;
|
|
596
|
+
if (G !== void 0)
|
|
597
597
|
if (x)
|
|
598
|
-
if (I(
|
|
599
|
-
for (var
|
|
600
|
-
dt(
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
598
|
+
if (I(G)) {
|
|
599
|
+
for (var be = 0; be < G.length; be++)
|
|
600
|
+
dt(G[be], e);
|
|
601
|
+
Object.freeze && Object.freeze(G);
|
|
602
602
|
} else
|
|
603
603
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
|
-
dt(
|
|
605
|
+
dt(G, e);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
607
|
+
if (ae.call(r, "key")) {
|
|
608
608
|
var le = B(e), N = Object.keys(r).filter(function(Jt) {
|
|
609
609
|
return Jt !== "key";
|
|
610
610
|
}), Ue = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -618,18 +618,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
618
618
|
<%s key={someKey} {...props} />`, Ue, le, Xt, le), ft[le + Ue] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === a ? Yt(M) : Vt(M), M;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Gt(e, r, l) {
|
|
625
625
|
return pt(e, r, l, !0);
|
|
626
626
|
}
|
|
627
627
|
function Ut(e, r, l) {
|
|
628
628
|
return pt(e, r, l, !1);
|
|
629
629
|
}
|
|
630
|
-
var Zt = Ut, Kt =
|
|
631
|
-
|
|
632
|
-
}()),
|
|
630
|
+
var Zt = Ut, Kt = Gt;
|
|
631
|
+
De.Fragment = a, De.jsx = Zt, De.jsxs = Kt;
|
|
632
|
+
}()), De;
|
|
633
633
|
}
|
|
634
634
|
process.env.NODE_ENV === "production" ? qe.exports = Wn() : qe.exports = zn();
|
|
635
635
|
var t = qe.exports;
|
|
@@ -637,14 +637,14 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
637
637
|
const {
|
|
638
638
|
activeStepIndex: o,
|
|
639
639
|
hideIndicators: s = !1,
|
|
640
|
-
steps:
|
|
640
|
+
steps: a,
|
|
641
641
|
stepperTheme: c = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
645
645
|
} = n, { activeStep: u, setActiveStep: d } = Qt({
|
|
646
646
|
index: o,
|
|
647
|
-
count:
|
|
647
|
+
count: a.length
|
|
648
648
|
});
|
|
649
649
|
return ee(() => {
|
|
650
650
|
d(o);
|
|
@@ -658,17 +658,17 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
658
658
|
width: "100%",
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
|
-
children:
|
|
662
|
-
const
|
|
661
|
+
children: a.map((h, g) => {
|
|
662
|
+
const p = u === g, f = g === 0, C = g === a.length - 1, E = u > g;
|
|
663
663
|
let v = `${Ke}px`;
|
|
664
|
-
const w = `calc(100% - ((${Ke * (
|
|
665
|
-
return
|
|
664
|
+
const w = `calc(100% - ((${Ke * (a.length - 1)}px) - (${a.length - 1} * ${bt * 2}px)))`;
|
|
665
|
+
return p ? v = w : (f || C) && (v = `${Ke - bt}px`), /* @__PURE__ */ t.jsx(
|
|
666
666
|
R,
|
|
667
667
|
{
|
|
668
668
|
width: v,
|
|
669
|
-
opacity: E ||
|
|
669
|
+
opacity: E || p ? 1 : 0.2,
|
|
670
670
|
paddingRight: C ? "0" : "6px",
|
|
671
|
-
paddingLeft:
|
|
671
|
+
paddingLeft: f ? "0" : "6px",
|
|
672
672
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
673
673
|
children: /* @__PURE__ */ t.jsx(
|
|
674
674
|
R,
|
|
@@ -691,19 +691,19 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
693
|
},
|
|
694
|
-
`step-${
|
|
694
|
+
`step-${g}`
|
|
695
695
|
);
|
|
696
696
|
})
|
|
697
697
|
}
|
|
698
698
|
) }
|
|
699
699
|
);
|
|
700
|
-
}, fr =
|
|
700
|
+
}, fr = se.memo(Nn), pr = ({
|
|
701
701
|
children: n,
|
|
702
702
|
...o
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
704
|
En,
|
|
705
705
|
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: n }
|
|
706
|
-
),
|
|
706
|
+
), je = (n, o) => {
|
|
707
707
|
const s = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
708
708
|
return o && !s ? {
|
|
709
709
|
to: n
|
|
@@ -714,18 +714,18 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
714
714
|
(n, o) => {
|
|
715
715
|
const {
|
|
716
716
|
label: s,
|
|
717
|
-
additionalContent:
|
|
717
|
+
additionalContent: a,
|
|
718
718
|
mainTextFontSize: c,
|
|
719
719
|
linkComponent: u,
|
|
720
720
|
href: d,
|
|
721
|
-
forceMobileStyle:
|
|
722
|
-
...
|
|
723
|
-
} = n,
|
|
721
|
+
forceMobileStyle: h = !1,
|
|
722
|
+
...g
|
|
723
|
+
} = n, p = u || oe, f = je(d, !!u), C = h ? c || "xl" : [c || "xl", null, null, "lg"], E = h ? "xl" : ["xl", null, null, "lg"], v = h ? void 0 : [null, null, null, 1], w = h ? void 0 : [null, null, null, "space-between"], L = h ? "3" : [3, null, null, 0], b = h ? "1px" : ["1px", null, null, "unset"], H = h ? "tints.cream" : ["tints.cream", null, null, "unset"], S = h ? "100%" : ["100%", null, null, "fit-content"], j = h ? "none" : ["none", null, null, "block"], P = h ? "100%" : ["100%", null, null, "auto"], F = h ? "block" : ["block", null, null, "none"];
|
|
724
724
|
return /* @__PURE__ */ t.jsxs(
|
|
725
725
|
R,
|
|
726
726
|
{
|
|
727
727
|
ref: o,
|
|
728
|
-
as:
|
|
728
|
+
as: p,
|
|
729
729
|
display: "flex",
|
|
730
730
|
alignItems: "center",
|
|
731
731
|
gap: v,
|
|
@@ -737,11 +737,11 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
737
737
|
borderColor: H,
|
|
738
738
|
width: S,
|
|
739
739
|
cursor: "pointer",
|
|
740
|
+
...f,
|
|
740
741
|
...g,
|
|
741
|
-
...h,
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ t.jsx(
|
|
744
|
-
|
|
744
|
+
we,
|
|
745
745
|
{
|
|
746
746
|
display: j,
|
|
747
747
|
as: gt,
|
|
@@ -763,7 +763,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
763
763
|
children: s
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
|
-
|
|
766
|
+
a && (typeof a == "string" ? /* @__PURE__ */ t.jsx(
|
|
767
767
|
W,
|
|
768
768
|
{
|
|
769
769
|
fontSize: E,
|
|
@@ -774,11 +774,11 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
774
774
|
color: "viridian.base"
|
|
775
775
|
}
|
|
776
776
|
},
|
|
777
|
-
children:
|
|
777
|
+
children: a
|
|
778
778
|
}
|
|
779
|
-
) :
|
|
779
|
+
) : a),
|
|
780
780
|
/* @__PURE__ */ t.jsx(
|
|
781
|
-
|
|
781
|
+
we,
|
|
782
782
|
{
|
|
783
783
|
display: F,
|
|
784
784
|
as: gt,
|
|
@@ -797,7 +797,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
797
797
|
}
|
|
798
798
|
), Vn = Tt(
|
|
799
799
|
(n, o) => {
|
|
800
|
-
const { children: s, isSelected:
|
|
800
|
+
const { children: s, isSelected: a, ...c } = n, u = n.backgroundColor || (a ? "tints.lightCream" : "transparent");
|
|
801
801
|
return /* @__PURE__ */ t.jsx(
|
|
802
802
|
Et,
|
|
803
803
|
{
|
|
@@ -830,19 +830,19 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
832
|
}
|
|
833
|
-
),
|
|
833
|
+
), Yn = ({
|
|
834
834
|
title: n,
|
|
835
835
|
description: o,
|
|
836
836
|
imageSrc: s,
|
|
837
|
-
imageElement:
|
|
837
|
+
imageElement: a,
|
|
838
838
|
button: c,
|
|
839
839
|
backgroundColor: u = "viridian.wash",
|
|
840
840
|
onClick: d,
|
|
841
|
-
href:
|
|
842
|
-
linkComponent:
|
|
843
|
-
forceMobileStyle:
|
|
841
|
+
href: h,
|
|
842
|
+
linkComponent: g,
|
|
843
|
+
forceMobileStyle: p = !1
|
|
844
844
|
}) => {
|
|
845
|
-
const v =
|
|
845
|
+
const v = g || oe, w = je(h, !!g), L = me({
|
|
846
846
|
base: !1,
|
|
847
847
|
tablet: !1,
|
|
848
848
|
largeTablet: !1,
|
|
@@ -851,11 +851,11 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
851
851
|
return /* @__PURE__ */ t.jsxs(
|
|
852
852
|
D,
|
|
853
853
|
{
|
|
854
|
-
direction:
|
|
854
|
+
direction: p ? "row" : ["row", null, null, "column"],
|
|
855
855
|
alignItems: "center",
|
|
856
856
|
borderRadius: "xl",
|
|
857
857
|
overflow: "hidden",
|
|
858
|
-
height:
|
|
858
|
+
height: p ? "80px" : ["80px", null, null, "272px"],
|
|
859
859
|
backgroundColor: u,
|
|
860
860
|
onClick: d,
|
|
861
861
|
"data-testid": "spotlight-card",
|
|
@@ -863,26 +863,26 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
863
863
|
transition: "box-shadow 0.2s ease-in-out",
|
|
864
864
|
border: "1px solid",
|
|
865
865
|
borderColor: "transparent",
|
|
866
|
-
minWidth:
|
|
867
|
-
maxWidth:
|
|
866
|
+
minWidth: p ? "100%" : ["100%", null, null, "320px"],
|
|
867
|
+
maxWidth: p ? "100%" : ["100%", null, null, "380px"],
|
|
868
868
|
_hover: {
|
|
869
869
|
boxShadow: "lg",
|
|
870
870
|
textDecoration: "none",
|
|
871
871
|
border: "1px solid",
|
|
872
872
|
borderColor: "tints.white"
|
|
873
873
|
},
|
|
874
|
-
as:
|
|
875
|
-
...
|
|
874
|
+
as: p ? v : L ? D : v,
|
|
875
|
+
...p ? w : L ? {} : w,
|
|
876
876
|
children: [
|
|
877
877
|
/* @__PURE__ */ t.jsx(
|
|
878
878
|
R,
|
|
879
879
|
{
|
|
880
|
-
width:
|
|
881
|
-
height:
|
|
880
|
+
width: p ? "72px" : ["72px", null, null, "100%"],
|
|
881
|
+
height: p ? "100%" : ["100%", null, null, "188px"],
|
|
882
882
|
sx: {
|
|
883
883
|
img: {
|
|
884
|
-
height:
|
|
885
|
-
objectFit:
|
|
884
|
+
height: p ? "100%" : L ? "188px" : "100%",
|
|
885
|
+
objectFit: p ? "cover" : "contain"
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
children: s ? /* @__PURE__ */ t.jsx(
|
|
@@ -897,10 +897,10 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
897
897
|
) : /* @__PURE__ */ t.jsx(
|
|
898
898
|
R,
|
|
899
899
|
{
|
|
900
|
-
height:
|
|
900
|
+
height: p ? 80 : [80, null, null, 188],
|
|
901
901
|
overflow: "hidden",
|
|
902
|
-
...
|
|
903
|
-
children:
|
|
902
|
+
...p ? { sx: { div: { height: "100%" } } } : {},
|
|
903
|
+
children: a
|
|
904
904
|
}
|
|
905
905
|
)
|
|
906
906
|
}
|
|
@@ -908,22 +908,22 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
908
908
|
/* @__PURE__ */ t.jsxs(
|
|
909
909
|
D,
|
|
910
910
|
{
|
|
911
|
-
direction:
|
|
912
|
-
justifyContent:
|
|
913
|
-
alignItems:
|
|
911
|
+
direction: p ? "column" : ["column", null, null, "row"],
|
|
912
|
+
justifyContent: p ? void 0 : [null, null, null, "space-between"],
|
|
913
|
+
alignItems: p ? "left" : ["left", null, null, "center"],
|
|
914
914
|
padding: "4",
|
|
915
|
-
height:
|
|
915
|
+
height: p ? "80px" : [
|
|
916
916
|
"80px",
|
|
917
917
|
null,
|
|
918
918
|
null,
|
|
919
919
|
"84px"
|
|
920
920
|
],
|
|
921
921
|
width: "100%",
|
|
922
|
-
bottom:
|
|
923
|
-
backgroundColor:
|
|
924
|
-
backdropFilter:
|
|
922
|
+
bottom: p ? void 0 : [null, null, null, "0"],
|
|
923
|
+
backgroundColor: p ? void 0 : [null, null, null, `${u}CC`],
|
|
924
|
+
backdropFilter: p ? void 0 : [null, null, null, "blur(8px)"],
|
|
925
925
|
flex: "1",
|
|
926
|
-
gap:
|
|
926
|
+
gap: p ? void 0 : [null, null, null, 3],
|
|
927
927
|
children: [
|
|
928
928
|
/* @__PURE__ */ t.jsxs(
|
|
929
929
|
D,
|
|
@@ -938,7 +938,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
938
938
|
)
|
|
939
939
|
] }
|
|
940
940
|
),
|
|
941
|
-
|
|
941
|
+
p ? null : L ? /* @__PURE__ */ t.jsx(R, { children: c }) : null
|
|
942
942
|
]
|
|
943
943
|
}
|
|
944
944
|
)
|
|
@@ -994,33 +994,33 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
994
994
|
) }
|
|
995
995
|
)
|
|
996
996
|
}
|
|
997
|
-
),
|
|
997
|
+
), Gn = ({
|
|
998
998
|
desktopTopButtons: n,
|
|
999
999
|
logoLink: o = "https://www.everlywell.com",
|
|
1000
1000
|
setTopOffset: s,
|
|
1001
|
-
linkComponent:
|
|
1001
|
+
linkComponent: a,
|
|
1002
1002
|
onLogoClick: c,
|
|
1003
1003
|
rightSideButtons: u
|
|
1004
1004
|
}) => {
|
|
1005
|
-
const d = Cn(null), [
|
|
1005
|
+
const d = Cn(null), [h] = Qe(`(max-width: ${V.breakpoints.mediumTablet})`), [g] = Qe(`(max-width: ${V.breakpoints.mediumDesktop})`), p = It(() => {
|
|
1006
1006
|
if (d.current) {
|
|
1007
|
-
const
|
|
1008
|
-
s(
|
|
1007
|
+
const f = d.current.getBoundingClientRect();
|
|
1008
|
+
s(f.bottom);
|
|
1009
1009
|
}
|
|
1010
1010
|
}, []);
|
|
1011
1011
|
return ee(() => {
|
|
1012
|
-
|
|
1013
|
-
}, [
|
|
1012
|
+
p();
|
|
1013
|
+
}, [p]), /* @__PURE__ */ t.jsx(
|
|
1014
1014
|
R,
|
|
1015
1015
|
{
|
|
1016
1016
|
ref: d,
|
|
1017
1017
|
paddingY: "4",
|
|
1018
|
-
paddingX:
|
|
1018
|
+
paddingX: h ? 4 : g ? 6 : 8,
|
|
1019
1019
|
borderBottom: "1px solid",
|
|
1020
1020
|
borderColor: "tints.lightCream",
|
|
1021
1021
|
backgroundColor: "tints.white",
|
|
1022
1022
|
width: "100%",
|
|
1023
|
-
onMouseEnter:
|
|
1023
|
+
onMouseEnter: p,
|
|
1024
1024
|
children: /* @__PURE__ */ t.jsxs(
|
|
1025
1025
|
D,
|
|
1026
1026
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
@@ -1032,8 +1032,8 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1032
1032
|
{
|
|
1033
1033
|
"aria-label": "Go to homepage",
|
|
1034
1034
|
onClick: c,
|
|
1035
|
-
as:
|
|
1036
|
-
...
|
|
1035
|
+
as: a || oe,
|
|
1036
|
+
...je(o, !!a),
|
|
1037
1037
|
children: /* @__PURE__ */ t.jsx(Lt, { width: "116px" })
|
|
1038
1038
|
}
|
|
1039
1039
|
),
|
|
@@ -1105,7 +1105,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1105
1105
|
"data-testid": "desktop-nav",
|
|
1106
1106
|
children: [
|
|
1107
1107
|
Array.from({ length: n }).map(
|
|
1108
|
-
(s,
|
|
1108
|
+
(s, a) => /* @__PURE__ */ t.jsx(Ze, { width: "90px", height: "48px" }, a)
|
|
1109
1109
|
),
|
|
1110
1110
|
o && /* @__PURE__ */ t.jsx(Ze, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1111
1111
|
]
|
|
@@ -1138,22 +1138,22 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1138
1138
|
) }
|
|
1139
1139
|
), Un = (n, o) => {
|
|
1140
1140
|
let s;
|
|
1141
|
-
return (...
|
|
1141
|
+
return (...a) => {
|
|
1142
1142
|
s && clearTimeout(s), s = setTimeout(() => {
|
|
1143
|
-
n(...
|
|
1143
|
+
n(...a);
|
|
1144
1144
|
}, o);
|
|
1145
1145
|
};
|
|
1146
1146
|
}, Xe = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), Zn = (n, o) => {
|
|
1147
1147
|
n.length < o.length && ([n, o] = [o, n]);
|
|
1148
|
-
let s = Array(o.length + 1).fill(0),
|
|
1148
|
+
let s = Array(o.length + 1).fill(0), a = Array(o.length + 1).fill(0);
|
|
1149
1149
|
for (let c = 0; c <= o.length; c++)
|
|
1150
1150
|
s[c] = c;
|
|
1151
1151
|
for (let c = 1; c <= n.length; c++) {
|
|
1152
|
-
|
|
1152
|
+
a[0] = c;
|
|
1153
1153
|
for (let u = 1; u <= o.length; u++) {
|
|
1154
1154
|
const d = n[c - 1] === o[u - 1] ? 0 : 1;
|
|
1155
|
-
|
|
1156
|
-
|
|
1155
|
+
a[u] = Math.min(
|
|
1156
|
+
a[u - 1] + 1,
|
|
1157
1157
|
// Insertion
|
|
1158
1158
|
s[u] + 1,
|
|
1159
1159
|
// Deletion
|
|
@@ -1161,22 +1161,22 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1161
1161
|
// Substitution
|
|
1162
1162
|
);
|
|
1163
1163
|
}
|
|
1164
|
-
[s,
|
|
1164
|
+
[s, a] = [a, s];
|
|
1165
1165
|
}
|
|
1166
1166
|
return s[o.length];
|
|
1167
1167
|
}, He = (n, o, s = 0.6) => {
|
|
1168
1168
|
if (n.length <= 3 || o.length <= 3)
|
|
1169
1169
|
return n.includes(o) || o.includes(n);
|
|
1170
|
-
const
|
|
1171
|
-
return 1 -
|
|
1170
|
+
const a = Zn(n, o), c = Math.max(n.length, o.length);
|
|
1171
|
+
return 1 - a / c >= s;
|
|
1172
1172
|
}, mt = (n, o) => {
|
|
1173
1173
|
const s = n.split(/\s+/);
|
|
1174
|
-
return o.length <= 4 ? s.some((
|
|
1175
|
-
if (He(
|
|
1174
|
+
return o.length <= 4 ? s.some((a) => a.includes(o)) : s.some((a) => {
|
|
1175
|
+
if (He(a, o))
|
|
1176
1176
|
return !0;
|
|
1177
|
-
if (
|
|
1178
|
-
for (let c = 0; c <=
|
|
1179
|
-
const u =
|
|
1177
|
+
if (a.length >= o.length)
|
|
1178
|
+
for (let c = 0; c <= a.length - o.length; c++) {
|
|
1179
|
+
const u = a.slice(c, c + o.length + 1);
|
|
1180
1180
|
if (He(o, u))
|
|
1181
1181
|
return !0;
|
|
1182
1182
|
}
|
|
@@ -1201,20 +1201,20 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1201
1201
|
isOpen: n = !1,
|
|
1202
1202
|
onClose: o,
|
|
1203
1203
|
title: s,
|
|
1204
|
-
navDrawerLinks:
|
|
1204
|
+
navDrawerLinks: a,
|
|
1205
1205
|
bottomNavButtons: c,
|
|
1206
1206
|
spotlightCards: u,
|
|
1207
1207
|
bottomButton: d,
|
|
1208
|
-
hasBackButton:
|
|
1209
|
-
onBackClick:
|
|
1210
|
-
hasOnlySpotlightCards:
|
|
1211
|
-
hasSearch:
|
|
1208
|
+
hasBackButton: h = !0,
|
|
1209
|
+
onBackClick: g,
|
|
1210
|
+
hasOnlySpotlightCards: p = !1,
|
|
1211
|
+
hasSearch: f = !1,
|
|
1212
1212
|
onSearch: C = () => ({}),
|
|
1213
1213
|
topOffset: E,
|
|
1214
1214
|
forceMobilePlacement: v = !1
|
|
1215
1215
|
}) => {
|
|
1216
|
-
var
|
|
1217
|
-
const w =
|
|
1216
|
+
var ce, q, ue, de, te, B;
|
|
1217
|
+
const w = me({
|
|
1218
1218
|
base: !1,
|
|
1219
1219
|
tablet: !1,
|
|
1220
1220
|
largeTablet: !1,
|
|
@@ -1223,7 +1223,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1223
1223
|
fullDesktop: !0
|
|
1224
1224
|
}) ?? !1, L = v ? "right" : w ? "top" : "right", b = L === "right", [H, S] = U(0), [j, P] = U(!1), F = () => {
|
|
1225
1225
|
S((T) => T + 1);
|
|
1226
|
-
},
|
|
1226
|
+
}, Y = It(
|
|
1227
1227
|
Un((T) => {
|
|
1228
1228
|
C(T), F();
|
|
1229
1229
|
}, 100),
|
|
@@ -1251,12 +1251,12 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1251
1251
|
baseStyle: {
|
|
1252
1252
|
...V.components.Drawer.baseStyle,
|
|
1253
1253
|
dialogContainer: {
|
|
1254
|
-
...(q = (
|
|
1254
|
+
...(q = (ce = V.components.Drawer) == null ? void 0 : ce.baseStyle) == null ? void 0 : q.dialogContainer,
|
|
1255
1255
|
// Higher z-index for drawer content to be above overlay and navigation
|
|
1256
1256
|
zIndex: "popover"
|
|
1257
1257
|
},
|
|
1258
1258
|
dialog: {
|
|
1259
|
-
...(
|
|
1259
|
+
...(de = (ue = V.components.Drawer) == null ? void 0 : ue.baseStyle) == null ? void 0 : de.dialog,
|
|
1260
1260
|
// Ensure mobile drawer doesn't expand to full width
|
|
1261
1261
|
maxW: "560px",
|
|
1262
1262
|
width: "auto"
|
|
@@ -1312,7 +1312,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1312
1312
|
b || wt(!0);
|
|
1313
1313
|
},
|
|
1314
1314
|
onMouseLeave: (T) => {
|
|
1315
|
-
b || (!
|
|
1315
|
+
b || (!f || f && (T.target === T.currentTarget || !T.currentTarget.contains(T.target) && !j)) && wt(!1);
|
|
1316
1316
|
},
|
|
1317
1317
|
paddingTop: "4",
|
|
1318
1318
|
paddingX: b ? "4" : "12",
|
|
@@ -1335,12 +1335,12 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1335
1335
|
transition: { duration: 0.3 }
|
|
1336
1336
|
},
|
|
1337
1337
|
children: [
|
|
1338
|
-
!
|
|
1338
|
+
!f && !b ? null : /* @__PURE__ */ t.jsxs(
|
|
1339
1339
|
_t,
|
|
1340
1340
|
{
|
|
1341
1341
|
padding: "0",
|
|
1342
|
-
flexDirection:
|
|
1343
|
-
gap:
|
|
1342
|
+
flexDirection: f ? "column" : "row",
|
|
1343
|
+
gap: f ? "4" : "0",
|
|
1344
1344
|
children: [
|
|
1345
1345
|
b ? /* @__PURE__ */ t.jsxs(
|
|
1346
1346
|
D,
|
|
@@ -1349,12 +1349,12 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1349
1349
|
justifyContent: "space-between",
|
|
1350
1350
|
alignItems: "center",
|
|
1351
1351
|
children: [
|
|
1352
|
-
|
|
1352
|
+
h ? /* @__PURE__ */ t.jsx(
|
|
1353
1353
|
et,
|
|
1354
1354
|
{
|
|
1355
1355
|
icon: /* @__PURE__ */ t.jsx(In, {}),
|
|
1356
1356
|
onClick: () => {
|
|
1357
|
-
|
|
1357
|
+
g && g();
|
|
1358
1358
|
},
|
|
1359
1359
|
"aria-label": "Back"
|
|
1360
1360
|
}
|
|
@@ -1378,14 +1378,14 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1378
1378
|
]
|
|
1379
1379
|
}
|
|
1380
1380
|
) : null,
|
|
1381
|
-
|
|
1381
|
+
f && /* @__PURE__ */ t.jsxs(
|
|
1382
1382
|
kn,
|
|
1383
1383
|
{ width: "100%", children: [
|
|
1384
1384
|
/* @__PURE__ */ t.jsx(
|
|
1385
1385
|
Rn,
|
|
1386
1386
|
{
|
|
1387
1387
|
onChange: (T) => {
|
|
1388
|
-
|
|
1388
|
+
Y(T.target.value);
|
|
1389
1389
|
},
|
|
1390
1390
|
placeholder: "Search",
|
|
1391
1391
|
autoFocus: !0,
|
|
@@ -1429,9 +1429,9 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1429
1429
|
style: {
|
|
1430
1430
|
display: "flex",
|
|
1431
1431
|
flexDirection: Kn(
|
|
1432
|
-
|
|
1432
|
+
p,
|
|
1433
1433
|
!b,
|
|
1434
|
-
|
|
1434
|
+
f
|
|
1435
1435
|
),
|
|
1436
1436
|
gap: "24px",
|
|
1437
1437
|
justifyContent: "space-between"
|
|
@@ -1456,9 +1456,9 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1456
1456
|
position: b ? void 0 : "relative",
|
|
1457
1457
|
flexDirection: "column",
|
|
1458
1458
|
gap: "6",
|
|
1459
|
-
width: b ? "100%" :
|
|
1459
|
+
width: b ? "100%" : f ? void 0 : "auto",
|
|
1460
1460
|
children: [
|
|
1461
|
-
|
|
1461
|
+
a ? /* @__PURE__ */ t.jsx(R, { children: a }) : null,
|
|
1462
1462
|
c && b ? /* @__PURE__ */ t.jsx(R, { children: c }) : null,
|
|
1463
1463
|
d ? /* @__PURE__ */ t.jsx(
|
|
1464
1464
|
R,
|
|
@@ -1492,48 +1492,48 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1492
1492
|
onSearchCallback: o,
|
|
1493
1493
|
isActive: s
|
|
1494
1494
|
}) => {
|
|
1495
|
-
const [
|
|
1496
|
-
if (!
|
|
1497
|
-
const v = Xe(
|
|
1495
|
+
const [a, c] = U(""), [u, d] = U([]), h = (f, C) => {
|
|
1496
|
+
if (!f) return [];
|
|
1497
|
+
const v = Xe(f).split(/\s+/);
|
|
1498
1498
|
return C.filter((w) => {
|
|
1499
1499
|
const L = Xe(w.label);
|
|
1500
1500
|
if (v.some((P) => mt(L, P))) return !0;
|
|
1501
1501
|
const H = L.split(/\s+/), S = v.some((P) => H.some((F) => F.includes(P) || He(P, F))), j = typeof w.additionalContent == "string" && v.some((P) => {
|
|
1502
1502
|
const F = Xe(w.additionalContent);
|
|
1503
|
-
return mt(F, P) || F.split(/\s+/).some((
|
|
1503
|
+
return mt(F, P) || F.split(/\s+/).some((Y) => Y.includes(P) || He(P, Y));
|
|
1504
1504
|
});
|
|
1505
1505
|
return S || j;
|
|
1506
1506
|
}).sort((w, L) => w.label.localeCompare(L.label));
|
|
1507
|
-
},
|
|
1508
|
-
if (c(
|
|
1507
|
+
}, g = (f) => {
|
|
1508
|
+
if (c(f), !f) {
|
|
1509
1509
|
d([]);
|
|
1510
1510
|
return;
|
|
1511
1511
|
}
|
|
1512
|
-
const C =
|
|
1513
|
-
d(C), o && o(
|
|
1514
|
-
},
|
|
1512
|
+
const C = h(f, n);
|
|
1513
|
+
d(C), o && o(f, C);
|
|
1514
|
+
}, p = () => {
|
|
1515
1515
|
c(""), d([]);
|
|
1516
1516
|
};
|
|
1517
1517
|
return ee(() => {
|
|
1518
1518
|
s || (c(""), d([]));
|
|
1519
1519
|
}, [s]), {
|
|
1520
|
-
query:
|
|
1520
|
+
query: a,
|
|
1521
1521
|
results: u,
|
|
1522
|
-
handleClose:
|
|
1523
|
-
handleSearch:
|
|
1522
|
+
handleClose: p,
|
|
1523
|
+
handleSearch: g
|
|
1524
1524
|
};
|
|
1525
1525
|
}, qn = (n) => {
|
|
1526
1526
|
const o = /* @__PURE__ */ new Set();
|
|
1527
|
-
return n.reduce((s,
|
|
1527
|
+
return n.reduce((s, a) => {
|
|
1528
1528
|
var u;
|
|
1529
|
-
const c = ((u =
|
|
1530
|
-
const
|
|
1531
|
-
return [...d, ...
|
|
1529
|
+
const c = ((u = a.sections) == null ? void 0 : u.reduce((d, h) => {
|
|
1530
|
+
const g = h.links.filter((p) => o.has(p.label) || p.isSearchable !== !0 ? !1 : (o.add(p.label), !0));
|
|
1531
|
+
return [...d, ...g];
|
|
1532
1532
|
}, [])) ?? [];
|
|
1533
1533
|
return [...s, ...c];
|
|
1534
1534
|
}, []);
|
|
1535
1535
|
}, er = () => {
|
|
1536
|
-
const [n, o] = U(!1), [s,
|
|
1536
|
+
const [n, o] = U(!1), [s, a] = U(!1), [c, u] = U(null);
|
|
1537
1537
|
return {
|
|
1538
1538
|
isMainMenuOpen: n,
|
|
1539
1539
|
isSearchOpen: s,
|
|
@@ -1543,27 +1543,27 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1543
1543
|
closeMainMenu: () => {
|
|
1544
1544
|
o(!1), u(null);
|
|
1545
1545
|
},
|
|
1546
|
-
closeSearch: () =>
|
|
1547
|
-
toggleSearch: () =>
|
|
1546
|
+
closeSearch: () => a(!1),
|
|
1547
|
+
toggleSearch: () => a((v) => !v),
|
|
1548
1548
|
openMainMenu: () => o(!0),
|
|
1549
|
-
openSearch: () =>
|
|
1549
|
+
openSearch: () => a(!0)
|
|
1550
1550
|
};
|
|
1551
1551
|
}, xr = ({
|
|
1552
1552
|
categories: n = [],
|
|
1553
1553
|
mainCategoryLabel: o = "Menu",
|
|
1554
1554
|
logoLink: s = "https://www.everlywell.com",
|
|
1555
|
-
mobileBottomButtons:
|
|
1555
|
+
mobileBottomButtons: a = [],
|
|
1556
1556
|
linkComponent: c,
|
|
1557
1557
|
onSearchCallback: u,
|
|
1558
1558
|
onLinkClick: d,
|
|
1559
|
-
onCategoryOpen:
|
|
1560
|
-
onLogoClick:
|
|
1561
|
-
shopAllProductsUrl:
|
|
1562
|
-
onShopAllProductsClick:
|
|
1559
|
+
onCategoryOpen: h,
|
|
1560
|
+
onLogoClick: g,
|
|
1561
|
+
shopAllProductsUrl: p,
|
|
1562
|
+
onShopAllProductsClick: f,
|
|
1563
1563
|
hideableButtons: C,
|
|
1564
1564
|
children: E
|
|
1565
1565
|
}) => {
|
|
1566
|
-
var
|
|
1566
|
+
var Se, ke, ie;
|
|
1567
1567
|
const v = er(), {
|
|
1568
1568
|
isMainMenuOpen: w,
|
|
1569
1569
|
isSearchOpen: L,
|
|
@@ -1572,31 +1572,31 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1572
1572
|
clearSelectedCategory: S,
|
|
1573
1573
|
selectedCategory: j,
|
|
1574
1574
|
handleSelectCategory: P
|
|
1575
|
-
} = v, [F,
|
|
1575
|
+
} = v, [F, Y] = U(!1), [Q, ce] = U(!1), [q, ue] = U(0), [de, te] = U(!1), [B, T] = U(!1);
|
|
1576
1576
|
ee(() => {
|
|
1577
|
-
const
|
|
1578
|
-
return window.addEventListener(nt,
|
|
1577
|
+
const i = () => te(!0), O = () => te(!1);
|
|
1578
|
+
return window.addEventListener(nt, i), window.addEventListener(rt, O), () => {
|
|
1579
1579
|
window.removeEventListener(
|
|
1580
1580
|
nt,
|
|
1581
|
-
|
|
1581
|
+
i
|
|
1582
1582
|
), window.removeEventListener(rt, O);
|
|
1583
1583
|
};
|
|
1584
1584
|
}, []);
|
|
1585
|
-
const X =
|
|
1585
|
+
const X = me({
|
|
1586
1586
|
base: !1,
|
|
1587
1587
|
tablet: !1,
|
|
1588
1588
|
largeTablet: !1,
|
|
1589
1589
|
mediumDesktop: !0,
|
|
1590
1590
|
desktop: !0,
|
|
1591
1591
|
fullDesktop: !0
|
|
1592
|
-
}) ?? !1, Z =
|
|
1592
|
+
}) ?? !1, Z = me({
|
|
1593
1593
|
base: !1,
|
|
1594
1594
|
tablet: !1,
|
|
1595
1595
|
largeTablet: !1,
|
|
1596
1596
|
mediumDesktop: !1,
|
|
1597
1597
|
desktop: !1,
|
|
1598
1598
|
fullDesktop: !0
|
|
1599
|
-
}) ?? !1, Te = !Z, Ie =
|
|
1599
|
+
}) ?? !1, Te = !Z, Ie = me({
|
|
1600
1600
|
base: !0,
|
|
1601
1601
|
tablet: !0,
|
|
1602
1602
|
largeTablet: !0,
|
|
@@ -1609,16 +1609,16 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1609
1609
|
}, [X]);
|
|
1610
1610
|
const {
|
|
1611
1611
|
query: Oe,
|
|
1612
|
-
results:
|
|
1612
|
+
results: fe,
|
|
1613
1613
|
handleSearch: Le
|
|
1614
1614
|
} = Qn({
|
|
1615
1615
|
source: qn(n),
|
|
1616
1616
|
onSearchCallback: u,
|
|
1617
1617
|
isActive: L
|
|
1618
|
-
}),
|
|
1618
|
+
}), ye = fe.length > 0, pe = c || oe, Fe = je(p, !!c), Be = Oe && /* @__PURE__ */ t.jsxs(
|
|
1619
1619
|
D,
|
|
1620
|
-
{ gap:
|
|
1621
|
-
|
|
1620
|
+
{ gap: ye ? "6" : 0, direction: "column", children: [
|
|
1621
|
+
ye ? /* @__PURE__ */ t.jsx(W, { color: "tints.uiGrey", children: `${fe.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1622
1622
|
D,
|
|
1623
1623
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1624
1624
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1628,8 +1628,8 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1628
1628
|
/* @__PURE__ */ t.jsx(
|
|
1629
1629
|
Et,
|
|
1630
1630
|
{
|
|
1631
|
-
as:
|
|
1632
|
-
onClick:
|
|
1631
|
+
as: pe,
|
|
1632
|
+
onClick: f,
|
|
1633
1633
|
_hover: { textDecoration: "none" },
|
|
1634
1634
|
width: ["100%", null, null, "auto"],
|
|
1635
1635
|
...Fe,
|
|
@@ -1640,95 +1640,95 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1640
1640
|
),
|
|
1641
1641
|
/* @__PURE__ */ t.jsx(
|
|
1642
1642
|
rn,
|
|
1643
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1644
|
-
(
|
|
1643
|
+
{ columns: [1, 1, 1, 4], children: fe.map(
|
|
1644
|
+
(i, O) => /* @__PURE__ */ t.jsx(
|
|
1645
1645
|
on,
|
|
1646
1646
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1647
1647
|
$e,
|
|
1648
1648
|
{
|
|
1649
|
-
href:
|
|
1650
|
-
label:
|
|
1651
|
-
additionalContent:
|
|
1649
|
+
href: i.href,
|
|
1650
|
+
label: i.label,
|
|
1651
|
+
additionalContent: i == null ? void 0 : i.additionalContent,
|
|
1652
1652
|
linkComponent: c,
|
|
1653
1653
|
forceMobileStyle: !X
|
|
1654
1654
|
}
|
|
1655
1655
|
) },
|
|
1656
|
-
`${
|
|
1656
|
+
`${i.label}-${O}`
|
|
1657
1657
|
)
|
|
1658
1658
|
) }
|
|
1659
1659
|
)
|
|
1660
1660
|
] }
|
|
1661
|
-
), K = (
|
|
1662
|
-
K(
|
|
1663
|
-
},
|
|
1664
|
-
|
|
1665
|
-
},
|
|
1666
|
-
|
|
1661
|
+
), K = (i) => "href" in i, Ce = (i) => {
|
|
1662
|
+
K(i) ? d == null || d(i.label) : (T(w || !Z), P(i));
|
|
1663
|
+
}, he = (i) => {
|
|
1664
|
+
Y(!0), H(), S(), !K(i) && (i.sections || i.spotlightCards) && (T(!1), P(i));
|
|
1665
|
+
}, Ee = () => {
|
|
1666
|
+
Y(!1);
|
|
1667
1667
|
};
|
|
1668
1668
|
ee(() => {
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1669
|
+
const i = (O) => {
|
|
1670
|
+
ce(O.detail.isHovering);
|
|
1671
1671
|
};
|
|
1672
1672
|
return window.addEventListener(
|
|
1673
1673
|
tt,
|
|
1674
|
-
|
|
1674
|
+
i
|
|
1675
1675
|
), () => {
|
|
1676
1676
|
window.removeEventListener(
|
|
1677
1677
|
tt,
|
|
1678
|
-
|
|
1678
|
+
i
|
|
1679
1679
|
);
|
|
1680
1680
|
};
|
|
1681
1681
|
}, []), ee(() => {
|
|
1682
1682
|
!F && !Q && (S(), H(), !w && Z && T(!1));
|
|
1683
1683
|
}, [F, Q, w, Z]), ee(() => {
|
|
1684
|
-
let
|
|
1684
|
+
let i = window.location.href;
|
|
1685
1685
|
const O = () => {
|
|
1686
1686
|
const $ = window.location.href;
|
|
1687
|
-
$ !==
|
|
1687
|
+
$ !== i && (i = $, b(), S());
|
|
1688
1688
|
}, I = setInterval(O, 100);
|
|
1689
1689
|
return window.addEventListener("popstate", O), () => {
|
|
1690
1690
|
window.removeEventListener("popstate", O), clearInterval(I);
|
|
1691
1691
|
};
|
|
1692
1692
|
}, []);
|
|
1693
|
-
const ne = (
|
|
1694
|
-
var $,
|
|
1695
|
-
const I = C.includes(
|
|
1693
|
+
const ne = (i) => K(i) && (!i.buttonProps || Object.keys(i.buttonProps).length === 0 || i.buttonProps === void 0), We = n == null ? void 0 : n.map((i, O) => {
|
|
1694
|
+
var $, xe;
|
|
1695
|
+
const I = C.includes(i.label);
|
|
1696
1696
|
return /* @__PURE__ */ t.jsx(
|
|
1697
1697
|
Vn,
|
|
1698
1698
|
{
|
|
1699
1699
|
height: "48px",
|
|
1700
1700
|
paddingInline: "16px !important",
|
|
1701
1701
|
onMouseEnter: () => {
|
|
1702
|
-
|
|
1702
|
+
he(i), h == null || h(i.label);
|
|
1703
1703
|
},
|
|
1704
|
-
onMouseLeave:
|
|
1705
|
-
isSelected: (j == null ? void 0 : j.label) ===
|
|
1706
|
-
as: K(
|
|
1707
|
-
href: K(
|
|
1708
|
-
onClick: K(
|
|
1704
|
+
onMouseLeave: Ee,
|
|
1705
|
+
isSelected: (j == null ? void 0 : j.label) === i.label,
|
|
1706
|
+
as: K(i) && pe ? pe : oe,
|
|
1707
|
+
href: K(i) ? i.href : void 0,
|
|
1708
|
+
onClick: K(i) ? () => d == null ? void 0 : d(i.label) : void 0,
|
|
1709
1709
|
...I && {
|
|
1710
1710
|
display: { base: "none", fullDesktop: "flex" }
|
|
1711
1711
|
},
|
|
1712
|
-
...(($ =
|
|
1712
|
+
...(($ = i == null ? void 0 : i.context) == null ? void 0 : $.desktop) === "link" || ne(i) ? {
|
|
1713
1713
|
_hover: {
|
|
1714
1714
|
backgroundColor: "tints.lightCream",
|
|
1715
1715
|
textDecoration: "none",
|
|
1716
1716
|
filter: "brightness(0.95)"
|
|
1717
1717
|
}
|
|
1718
1718
|
} : {},
|
|
1719
|
-
...((
|
|
1720
|
-
children:
|
|
1719
|
+
...((xe = i == null ? void 0 : i.context) == null ? void 0 : xe.desktop) !== "link" && i.buttonProps,
|
|
1720
|
+
children: i.label
|
|
1721
1721
|
},
|
|
1722
|
-
`${
|
|
1722
|
+
`${i.label}-${O}`
|
|
1723
1723
|
);
|
|
1724
|
-
}), Pe = (
|
|
1725
|
-
(
|
|
1724
|
+
}), Pe = (Se = n.filter(
|
|
1725
|
+
(i) => {
|
|
1726
1726
|
var O;
|
|
1727
|
-
return ((O =
|
|
1727
|
+
return ((O = i == null ? void 0 : i.context) == null ? void 0 : O.mobile) === "link" || (!K(i) && i.isMobileTopLink !== !1 || ne(i)) && (Te && C.includes(i.label) || Ie);
|
|
1728
1728
|
}
|
|
1729
|
-
)) == null ? void 0 :
|
|
1729
|
+
)) == null ? void 0 : Se.map((i, O) => {
|
|
1730
1730
|
var $;
|
|
1731
|
-
const I =
|
|
1731
|
+
const I = i;
|
|
1732
1732
|
return ne(I) || (($ = I == null ? void 0 : I.context) == null ? void 0 : $.mobile) === "link" ? /* @__PURE__ */ t.jsx(
|
|
1733
1733
|
R,
|
|
1734
1734
|
{ children: /* @__PURE__ */ t.jsx(
|
|
@@ -1747,7 +1747,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1747
1747
|
R,
|
|
1748
1748
|
{
|
|
1749
1749
|
onClick: () => {
|
|
1750
|
-
|
|
1750
|
+
Ce(I), h == null || h(I.label);
|
|
1751
1751
|
},
|
|
1752
1752
|
children: /* @__PURE__ */ t.jsx(
|
|
1753
1753
|
$e,
|
|
@@ -1765,13 +1765,13 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1765
1765
|
);
|
|
1766
1766
|
}), ze = /* @__PURE__ */ t.jsx(
|
|
1767
1767
|
D,
|
|
1768
|
-
{ gap: "2", flexDirection: "column", children:
|
|
1769
|
-
), J = B || w,
|
|
1768
|
+
{ gap: "2", flexDirection: "column", children: a }
|
|
1769
|
+
), J = B || w, ge = j ? /* @__PURE__ */ t.jsx(
|
|
1770
1770
|
D,
|
|
1771
|
-
{ direction: J ? "column" : ["column", null, null, "row"], gap: "8", children: (
|
|
1771
|
+
{ direction: J ? "column" : ["column", null, null, "row"], gap: "8", children: (ke = j == null ? void 0 : j.sections) == null ? void 0 : ke.map((i, O) => {
|
|
1772
1772
|
const I = [];
|
|
1773
|
-
for (let $ = 0; $ <
|
|
1774
|
-
I.push(
|
|
1773
|
+
for (let $ = 0; $ < i.links.length; $ += 3)
|
|
1774
|
+
I.push(i.links.slice($, $ + 3));
|
|
1775
1775
|
return /* @__PURE__ */ t.jsxs(
|
|
1776
1776
|
R,
|
|
1777
1777
|
{ children: [
|
|
@@ -1781,7 +1781,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1781
1781
|
fontSize: "md",
|
|
1782
1782
|
color: "tints.uiGrey",
|
|
1783
1783
|
marginBottom: J ? 0 : [0, null, null, 6],
|
|
1784
|
-
children:
|
|
1784
|
+
children: i.title
|
|
1785
1785
|
}
|
|
1786
1786
|
),
|
|
1787
1787
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1790,7 +1790,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1790
1790
|
flexDirection: J ? "column" : ["column", null, null, "row"],
|
|
1791
1791
|
gap: J ? void 0 : [null, null, null, 8],
|
|
1792
1792
|
children: I == null ? void 0 : I.map(
|
|
1793
|
-
($,
|
|
1793
|
+
($, xe) => /* @__PURE__ */ t.jsx(
|
|
1794
1794
|
D,
|
|
1795
1795
|
{
|
|
1796
1796
|
flexDirection: "column",
|
|
@@ -1811,23 +1811,23 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1811
1811
|
)
|
|
1812
1812
|
)
|
|
1813
1813
|
},
|
|
1814
|
-
|
|
1814
|
+
xe
|
|
1815
1815
|
)
|
|
1816
1816
|
)
|
|
1817
1817
|
}
|
|
1818
1818
|
)
|
|
1819
1819
|
] },
|
|
1820
|
-
`${
|
|
1820
|
+
`${i.title}-${O}`
|
|
1821
1821
|
);
|
|
1822
1822
|
}) }
|
|
1823
|
-
) : null,
|
|
1824
|
-
(
|
|
1825
|
-
|
|
1823
|
+
) : null, ae = j != null && j.spotlightCards ? (ie = j.spotlightCards) == null ? void 0 : ie.map(
|
|
1824
|
+
(i, O) => /* @__PURE__ */ t.jsx(
|
|
1825
|
+
Yn,
|
|
1826
1826
|
{
|
|
1827
|
-
...
|
|
1827
|
+
...i,
|
|
1828
1828
|
forceMobileStyle: J
|
|
1829
1829
|
},
|
|
1830
|
-
`${
|
|
1830
|
+
`${i.title}-${O}`
|
|
1831
1831
|
)
|
|
1832
1832
|
) : /* @__PURE__ */ t.jsx(R, {});
|
|
1833
1833
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -1838,16 +1838,16 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1838
1838
|
position: "sticky",
|
|
1839
1839
|
top: "0",
|
|
1840
1840
|
width: "100%",
|
|
1841
|
-
zIndex: ["sticky", null, null,
|
|
1841
|
+
zIndex: ["sticky", null, null, de ? "modal" : "sticky"],
|
|
1842
1842
|
children: [
|
|
1843
1843
|
/* @__PURE__ */ t.jsx(
|
|
1844
|
-
|
|
1844
|
+
Gn,
|
|
1845
1845
|
{
|
|
1846
1846
|
desktopTopButtons: We,
|
|
1847
1847
|
logoLink: s,
|
|
1848
1848
|
linkComponent: c,
|
|
1849
|
-
onLogoClick:
|
|
1850
|
-
setTopOffset:
|
|
1849
|
+
onLogoClick: g,
|
|
1850
|
+
setTopOffset: ue,
|
|
1851
1851
|
rightSideButtons: typeof E == "function" ? E(v) : E
|
|
1852
1852
|
}
|
|
1853
1853
|
),
|
|
@@ -1875,11 +1875,11 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1875
1875
|
b(), S(), w || T(!1);
|
|
1876
1876
|
},
|
|
1877
1877
|
title: (j == null ? void 0 : j.label) || "",
|
|
1878
|
-
navDrawerLinks:
|
|
1878
|
+
navDrawerLinks: ge,
|
|
1879
1879
|
onBackClick: () => {
|
|
1880
1880
|
S(), w || T(!1);
|
|
1881
1881
|
},
|
|
1882
|
-
spotlightCards:
|
|
1882
|
+
spotlightCards: ae,
|
|
1883
1883
|
hasOnlySpotlightCards: j == null ? void 0 : j.hasOnlySpotlightCards,
|
|
1884
1884
|
bottomButton: j == null ? void 0 : j.bottomButton,
|
|
1885
1885
|
topOffset: q,
|
|
@@ -1909,7 +1909,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1909
1909
|
links: n,
|
|
1910
1910
|
linkComponent: o,
|
|
1911
1911
|
onLinkClick: s,
|
|
1912
|
-
footerTheme:
|
|
1912
|
+
footerTheme: a
|
|
1913
1913
|
}) => {
|
|
1914
1914
|
const c = o || oe, u = (d) => {
|
|
1915
1915
|
s && s(d);
|
|
@@ -1921,11 +1921,11 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1921
1921
|
W,
|
|
1922
1922
|
{
|
|
1923
1923
|
as: c,
|
|
1924
|
-
color:
|
|
1924
|
+
color: a === "dark" ? "white" : "viridian.base",
|
|
1925
1925
|
size: "lg",
|
|
1926
1926
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
1927
1927
|
onClick: () => u(d.label),
|
|
1928
|
-
...
|
|
1928
|
+
...je(d.href, !!o),
|
|
1929
1929
|
children: d.label
|
|
1930
1930
|
},
|
|
1931
1931
|
d.label
|
|
@@ -1933,10 +1933,10 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1933
1933
|
) }
|
|
1934
1934
|
);
|
|
1935
1935
|
}, tr = ({ title: n, links: o, isLast: s }) => {
|
|
1936
|
-
const
|
|
1936
|
+
const a = s ? "transparent" : `${V.colors.viridian.lighter}20`;
|
|
1937
1937
|
return o ? /* @__PURE__ */ t.jsx(
|
|
1938
1938
|
ln,
|
|
1939
|
-
{ borderColor:
|
|
1939
|
+
{ borderColor: a, children: ({ isExpanded: c }) => /* @__PURE__ */ t.jsxs(
|
|
1940
1940
|
t.Fragment,
|
|
1941
1941
|
{ children: [
|
|
1942
1942
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1947,7 +1947,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1947
1947
|
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: n }
|
|
1948
1948
|
),
|
|
1949
1949
|
/* @__PURE__ */ t.jsx(
|
|
1950
|
-
|
|
1950
|
+
we,
|
|
1951
1951
|
{
|
|
1952
1952
|
as: Ln,
|
|
1953
1953
|
size: "sm",
|
|
@@ -1987,8 +1987,8 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
1987
1987
|
sections: n,
|
|
1988
1988
|
linkComponent: o,
|
|
1989
1989
|
onLinkClick: s,
|
|
1990
|
-
footerTheme:
|
|
1991
|
-
}) =>
|
|
1990
|
+
footerTheme: a
|
|
1991
|
+
}) => me({
|
|
1992
1992
|
base: !1,
|
|
1993
1993
|
tablet: !1,
|
|
1994
1994
|
largeTablet: !0,
|
|
@@ -2001,7 +2001,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2001
2001
|
({ title: u, links: d }) => /* @__PURE__ */ t.jsx(
|
|
2002
2002
|
nr,
|
|
2003
2003
|
{
|
|
2004
|
-
footerTheme:
|
|
2004
|
+
footerTheme: a,
|
|
2005
2005
|
title: u,
|
|
2006
2006
|
links: /* @__PURE__ */ t.jsx(
|
|
2007
2007
|
yt,
|
|
@@ -2009,7 +2009,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2009
2009
|
links: d,
|
|
2010
2010
|
linkComponent: o,
|
|
2011
2011
|
onLinkClick: s,
|
|
2012
|
-
footerTheme:
|
|
2012
|
+
footerTheme: a
|
|
2013
2013
|
}
|
|
2014
2014
|
)
|
|
2015
2015
|
},
|
|
@@ -2026,7 +2026,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2026
2026
|
display: "flex",
|
|
2027
2027
|
flexDirection: "column",
|
|
2028
2028
|
children: n.map(
|
|
2029
|
-
({ title: u, links: d },
|
|
2029
|
+
({ title: u, links: d }, h) => /* @__PURE__ */ t.jsx(
|
|
2030
2030
|
tr,
|
|
2031
2031
|
{
|
|
2032
2032
|
title: u,
|
|
@@ -2036,10 +2036,10 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2036
2036
|
links: d,
|
|
2037
2037
|
linkComponent: o,
|
|
2038
2038
|
onLinkClick: s,
|
|
2039
|
-
footerTheme:
|
|
2039
|
+
footerTheme: a
|
|
2040
2040
|
}
|
|
2041
2041
|
),
|
|
2042
|
-
isLast:
|
|
2042
|
+
isLast: h === n.length - 1
|
|
2043
2043
|
},
|
|
2044
2044
|
u
|
|
2045
2045
|
)
|
|
@@ -2055,15 +2055,15 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2055
2055
|
socialLinks: n,
|
|
2056
2056
|
onEmailSubmit: o,
|
|
2057
2057
|
socialMediaLabel: s,
|
|
2058
|
-
newsletterLabel:
|
|
2058
|
+
newsletterLabel: a,
|
|
2059
2059
|
onLinkClick: c,
|
|
2060
2060
|
showNewsletter: u = !0,
|
|
2061
2061
|
footerTheme: d
|
|
2062
2062
|
}) => {
|
|
2063
|
-
const
|
|
2064
|
-
|
|
2063
|
+
const h = d === "dark", [g, p] = se.useState(""), f = () => {
|
|
2064
|
+
g && o && (o(g), p(""));
|
|
2065
2065
|
}, C = (v) => {
|
|
2066
|
-
v.key === "Enter" &&
|
|
2066
|
+
v.key === "Enter" && f();
|
|
2067
2067
|
}, E = (v) => {
|
|
2068
2068
|
c && c(v);
|
|
2069
2069
|
};
|
|
@@ -2076,10 +2076,10 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2076
2076
|
/* @__PURE__ */ t.jsx(
|
|
2077
2077
|
W,
|
|
2078
2078
|
{
|
|
2079
|
-
color:
|
|
2079
|
+
color: h ? "viridian.lighter" : "tints.darkGrey",
|
|
2080
2080
|
mb: 6,
|
|
2081
2081
|
size: "lg",
|
|
2082
|
-
children:
|
|
2082
|
+
children: a
|
|
2083
2083
|
}
|
|
2084
2084
|
),
|
|
2085
2085
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -2088,34 +2088,36 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2088
2088
|
/* @__PURE__ */ t.jsx(
|
|
2089
2089
|
dn,
|
|
2090
2090
|
{
|
|
2091
|
+
"aria-label": "Email address",
|
|
2092
|
+
type: "email",
|
|
2091
2093
|
placeholder: "Enter your email",
|
|
2092
|
-
bg:
|
|
2094
|
+
bg: h ? "transparent" : "tints.white",
|
|
2093
2095
|
border: "1px solid",
|
|
2094
|
-
borderColor:
|
|
2095
|
-
color:
|
|
2096
|
+
borderColor: h ? "viridian.lighter" : "tints.darkCream",
|
|
2097
|
+
color: h ? "viridian.lighter" : "tints.darkGrey",
|
|
2096
2098
|
_placeholder: {
|
|
2097
|
-
color:
|
|
2099
|
+
color: h ? "viridian.lighter" : "tints.darkGrey"
|
|
2098
2100
|
},
|
|
2099
2101
|
opacity: 0.66,
|
|
2100
2102
|
height: "52px",
|
|
2101
2103
|
pr: "48px",
|
|
2102
|
-
value:
|
|
2103
|
-
onChange: (v) =>
|
|
2104
|
+
value: g,
|
|
2105
|
+
onChange: (v) => p(v.target.value),
|
|
2104
2106
|
onKeyPress: C
|
|
2105
2107
|
}
|
|
2106
2108
|
),
|
|
2107
2109
|
/* @__PURE__ */ t.jsx(
|
|
2108
2110
|
fn,
|
|
2109
2111
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2110
|
-
|
|
2112
|
+
we,
|
|
2111
2113
|
{
|
|
2112
2114
|
as: Pn,
|
|
2113
|
-
color:
|
|
2115
|
+
color: h ? "viridian.lighter" : "viridian.base",
|
|
2114
2116
|
width: "24px",
|
|
2115
2117
|
height: "24px",
|
|
2116
2118
|
opacity: 0.66,
|
|
2117
2119
|
cursor: "pointer",
|
|
2118
|
-
onClick:
|
|
2120
|
+
onClick: f,
|
|
2119
2121
|
"data-testid": "arrow-right-icon",
|
|
2120
2122
|
role: "button",
|
|
2121
2123
|
"aria-label": "Submit"
|
|
@@ -2132,7 +2134,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2132
2134
|
/* @__PURE__ */ t.jsx(
|
|
2133
2135
|
W,
|
|
2134
2136
|
{
|
|
2135
|
-
color:
|
|
2137
|
+
color: h ? "viridian.lighter" : "tints.darkGrey",
|
|
2136
2138
|
marginBottom: 4,
|
|
2137
2139
|
size: "lg",
|
|
2138
2140
|
children: s
|
|
@@ -2150,10 +2152,10 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2150
2152
|
"aria-label": v.name,
|
|
2151
2153
|
onClick: () => E(v.name),
|
|
2152
2154
|
children: Ct[v.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2153
|
-
|
|
2155
|
+
we,
|
|
2154
2156
|
{
|
|
2155
2157
|
as: Ct[v.name.toLowerCase()],
|
|
2156
|
-
color:
|
|
2158
|
+
color: h ? "white" : "viridian.base",
|
|
2157
2159
|
width: ["48px", null, "24px", null],
|
|
2158
2160
|
height: ["48px", null, "24px", null]
|
|
2159
2161
|
}
|
|
@@ -2167,27 +2169,31 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2167
2169
|
)
|
|
2168
2170
|
] }
|
|
2169
2171
|
);
|
|
2170
|
-
},
|
|
2172
|
+
}, ar = ({
|
|
2171
2173
|
links: n,
|
|
2172
2174
|
linkComponent: o,
|
|
2173
2175
|
onLinkClick: s,
|
|
2174
|
-
footerTheme:
|
|
2176
|
+
footerTheme: a
|
|
2175
2177
|
}) => {
|
|
2176
|
-
const c = o || oe, u =
|
|
2177
|
-
|
|
2178
|
+
const c = o || oe, u = a === "dark", [d, h] = se.useState(() => (/* @__PURE__ */ new Date()).getFullYear());
|
|
2179
|
+
se.useEffect(() => {
|
|
2180
|
+
h((/* @__PURE__ */ new Date()).getFullYear());
|
|
2181
|
+
}, []);
|
|
2182
|
+
const g = (f) => {
|
|
2183
|
+
s && s(f);
|
|
2178
2184
|
}, p = n == null ? void 0 : n.map(
|
|
2179
|
-
(
|
|
2185
|
+
(f) => /* @__PURE__ */ t.jsx(
|
|
2180
2186
|
W,
|
|
2181
2187
|
{
|
|
2182
2188
|
as: c,
|
|
2183
2189
|
color: u ? "viridian.lighter" : "viridian.base",
|
|
2184
2190
|
size: "sm",
|
|
2185
2191
|
_hover: { color: u ? "white" : "viridian.lighter", textDecoration: "none" },
|
|
2186
|
-
onClick: () =>
|
|
2187
|
-
...
|
|
2188
|
-
children:
|
|
2192
|
+
onClick: () => g(f.label),
|
|
2193
|
+
...je(f.href, !!o),
|
|
2194
|
+
children: f.label
|
|
2189
2195
|
},
|
|
2190
|
-
|
|
2196
|
+
f.label
|
|
2191
2197
|
)
|
|
2192
2198
|
);
|
|
2193
2199
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -2215,25 +2221,25 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2215
2221
|
fontSize: "sm",
|
|
2216
2222
|
children: [
|
|
2217
2223
|
"© Everlywell ",
|
|
2218
|
-
|
|
2224
|
+
d
|
|
2219
2225
|
]
|
|
2220
2226
|
}
|
|
2221
2227
|
)
|
|
2222
2228
|
]
|
|
2223
2229
|
}
|
|
2224
2230
|
);
|
|
2225
|
-
}, vr =
|
|
2231
|
+
}, vr = se.forwardRef(({
|
|
2226
2232
|
navigationSections: n = [],
|
|
2227
2233
|
disclaimer: o,
|
|
2228
2234
|
newsletterLabel: s,
|
|
2229
|
-
socialMediaLabel:
|
|
2235
|
+
socialMediaLabel: a,
|
|
2230
2236
|
socialLinks: c,
|
|
2231
2237
|
complianceLinks: u,
|
|
2232
2238
|
linkComponent: d,
|
|
2233
|
-
onEmailSubmit:
|
|
2234
|
-
additionalContent:
|
|
2235
|
-
onLinkClick:
|
|
2236
|
-
onSocialMediaClick:
|
|
2239
|
+
onEmailSubmit: h,
|
|
2240
|
+
additionalContent: g,
|
|
2241
|
+
onLinkClick: p,
|
|
2242
|
+
onSocialMediaClick: f,
|
|
2237
2243
|
showNewsletter: C = !0,
|
|
2238
2244
|
footerTheme: E = "dark"
|
|
2239
2245
|
}, v) => {
|
|
@@ -2275,7 +2281,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2275
2281
|
{
|
|
2276
2282
|
sections: n,
|
|
2277
2283
|
linkComponent: d,
|
|
2278
|
-
onLinkClick:
|
|
2284
|
+
onLinkClick: p,
|
|
2279
2285
|
footerTheme: E
|
|
2280
2286
|
}
|
|
2281
2287
|
),
|
|
@@ -2284,9 +2290,9 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2284
2290
|
{
|
|
2285
2291
|
socialLinks: c,
|
|
2286
2292
|
newsletterLabel: s,
|
|
2287
|
-
socialMediaLabel:
|
|
2288
|
-
onEmailSubmit:
|
|
2289
|
-
onLinkClick:
|
|
2293
|
+
socialMediaLabel: a,
|
|
2294
|
+
onEmailSubmit: h,
|
|
2295
|
+
onLinkClick: f,
|
|
2290
2296
|
showNewsletter: C,
|
|
2291
2297
|
footerTheme: E
|
|
2292
2298
|
}
|
|
@@ -2318,7 +2324,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2318
2324
|
}
|
|
2319
2325
|
}
|
|
2320
2326
|
) : o,
|
|
2321
|
-
|
|
2327
|
+
g
|
|
2322
2328
|
]
|
|
2323
2329
|
}
|
|
2324
2330
|
)
|
|
@@ -2334,11 +2340,11 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2334
2340
|
}
|
|
2335
2341
|
),
|
|
2336
2342
|
/* @__PURE__ */ t.jsx(
|
|
2337
|
-
|
|
2343
|
+
ar,
|
|
2338
2344
|
{
|
|
2339
2345
|
links: u,
|
|
2340
2346
|
linkComponent: d,
|
|
2341
|
-
onLinkClick:
|
|
2347
|
+
onLinkClick: p,
|
|
2342
2348
|
footerTheme: E
|
|
2343
2349
|
}
|
|
2344
2350
|
)
|
|
@@ -2346,7 +2352,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2346
2352
|
)
|
|
2347
2353
|
}
|
|
2348
2354
|
);
|
|
2349
|
-
}),
|
|
2355
|
+
}), ir = (n) => n ? {
|
|
2350
2356
|
Container: Rt,
|
|
2351
2357
|
Overlay: kt,
|
|
2352
2358
|
Content: St,
|
|
@@ -2366,16 +2372,16 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2366
2372
|
isOpen: n,
|
|
2367
2373
|
onClose: o,
|
|
2368
2374
|
children: s,
|
|
2369
|
-
header:
|
|
2375
|
+
header: a,
|
|
2370
2376
|
footer: c,
|
|
2371
2377
|
headerProps: u,
|
|
2372
2378
|
bodyProps: d,
|
|
2373
|
-
footerProps:
|
|
2374
|
-
contentProps:
|
|
2375
|
-
...
|
|
2379
|
+
footerProps: h,
|
|
2380
|
+
contentProps: g,
|
|
2381
|
+
...p
|
|
2376
2382
|
}) => {
|
|
2377
|
-
var j, P, F,
|
|
2378
|
-
const [
|
|
2383
|
+
var j, P, F, Y, Q;
|
|
2384
|
+
const [f] = Qe(`(max-width: ${V.breakpoints.tablet})`), C = (Q = (Y = (F = (P = (j = V) == null ? void 0 : j.components) == null ? void 0 : P.Modal) == null ? void 0 : F.baseStyle) == null ? void 0 : Y.overlay) == null ? void 0 : Q.background, {
|
|
2379
2385
|
Container: E,
|
|
2380
2386
|
Overlay: v,
|
|
2381
2387
|
Content: w,
|
|
@@ -2383,26 +2389,26 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2383
2389
|
Body: b,
|
|
2384
2390
|
Footer: H,
|
|
2385
2391
|
CloseButton: S
|
|
2386
|
-
} =
|
|
2392
|
+
} = ir(f);
|
|
2387
2393
|
return /* @__PURE__ */ t.jsxs(
|
|
2388
2394
|
E,
|
|
2389
2395
|
{
|
|
2390
|
-
...
|
|
2396
|
+
...p,
|
|
2391
2397
|
isOpen: n,
|
|
2392
2398
|
onClose: o,
|
|
2393
2399
|
size: "xl",
|
|
2394
|
-
...
|
|
2400
|
+
...f ? { placement: "bottom" } : {},
|
|
2395
2401
|
children: [
|
|
2396
2402
|
/* @__PURE__ */ t.jsx(v, { backdropFilter: "auto", backgroundColor: C }),
|
|
2397
2403
|
/* @__PURE__ */ t.jsxs(
|
|
2398
2404
|
w,
|
|
2399
2405
|
{
|
|
2400
2406
|
backgroundColor: "tints.white",
|
|
2401
|
-
borderRadius:
|
|
2407
|
+
borderRadius: f ? "20px 20px 0 0" : "20px",
|
|
2402
2408
|
overflowY: "auto",
|
|
2403
2409
|
gap: 0,
|
|
2404
|
-
...
|
|
2405
|
-
...
|
|
2410
|
+
...a && f && { paddingTop: 0 },
|
|
2411
|
+
...g,
|
|
2406
2412
|
children: [
|
|
2407
2413
|
/* @__PURE__ */ t.jsxs(
|
|
2408
2414
|
L,
|
|
@@ -2419,10 +2425,10 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2419
2425
|
zIndex: "modal",
|
|
2420
2426
|
backgroundColor: "tints.white",
|
|
2421
2427
|
paddingInline: 4,
|
|
2422
|
-
...
|
|
2428
|
+
...f ? { paddingBlock: 4 } : { paddingTop: 6, paddingBlockEnd: 2 },
|
|
2423
2429
|
...u,
|
|
2424
2430
|
children: [
|
|
2425
|
-
|
|
2431
|
+
a,
|
|
2426
2432
|
/* @__PURE__ */ t.jsx(
|
|
2427
2433
|
S,
|
|
2428
2434
|
{
|
|
@@ -2435,7 +2441,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2435
2441
|
fontSize: "1rem"
|
|
2436
2442
|
}
|
|
2437
2443
|
},
|
|
2438
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2444
|
+
children: /* @__PURE__ */ t.jsx(we, { as: Ot, weight: "light" })
|
|
2439
2445
|
}
|
|
2440
2446
|
)
|
|
2441
2447
|
]
|
|
@@ -2450,7 +2456,7 @@ const Ke = 60, bt = 6, Nn = (n) => {
|
|
|
2450
2456
|
children: s
|
|
2451
2457
|
}
|
|
2452
2458
|
),
|
|
2453
|
-
/* @__PURE__ */ t.jsx(H, { paddingInline: 4, ...
|
|
2459
|
+
/* @__PURE__ */ t.jsx(H, { paddingInline: 4, ...h, children: c })
|
|
2454
2460
|
]
|
|
2455
2461
|
}
|
|
2456
2462
|
)
|
|
@@ -2468,9 +2474,9 @@ export {
|
|
|
2468
2474
|
Je as NavbarDrawer,
|
|
2469
2475
|
$e as NavbarDrawerLink,
|
|
2470
2476
|
xr as NavigationBar,
|
|
2471
|
-
|
|
2477
|
+
Yn as SpotlightCard,
|
|
2472
2478
|
fr as Stepper,
|
|
2473
2479
|
et as TopNavIconButton,
|
|
2474
|
-
|
|
2480
|
+
Gn as TopNavigation,
|
|
2475
2481
|
er as useNavigationBar
|
|
2476
2482
|
};
|