@everlywell/consumer-ui 1.37.4 → 1.37.5
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.d.mts +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +10 -10
- package/index.mjs +1202 -820
- package/lib/components/Footer/Footer/Footer.d.ts +2 -1
- package/lib/components/Footer/Footer/Footer.d.ts.map +1 -1
- package/lib/components/Footer/Footer/Footer.stories.d.ts +1 -1
- package/lib/components/Footer/Footer/Footer.stories.d.ts.map +1 -1
- package/lib/components/Footer/Footer/index.d.ts +3 -0
- package/lib/components/Footer/Footer/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/components/Footer/index.d.ts +0 -2
- package/lib/components/Footer/index.d.ts.map +0 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as
|
|
2
|
-
import
|
|
3
|
-
import { Text as
|
|
4
|
-
import { CaretRight as
|
|
5
|
-
import { motion as et, AnimatePresence as
|
|
6
|
-
var
|
|
1
|
+
import { useSteps as Yt, Box as b, Stepper as Gt, Icon as K, Flex as C, Text as L, Link as W, Button as Ct, Image as Ut, IconButton as Zt, theme as Ee, DrawerContent as Kt, DrawerOverlay as Xt, Drawer as Jt, DrawerHeader as qt, DrawerBody as Qt, VStack as er, Skeleton as Ge, HStack as ft, SkeletonCircle as Le, Grid as tr, GridItem as rr, Accordion as nr, AccordionItem as lr, AccordionButton as ir, AccordionPanel as or, InputGroup as ar, Input as sr, InputRightElement as ur, Container as cr } from "@everlywell/ui-kit";
|
|
2
|
+
import Ae, { useEffect as Z, forwardRef as yt, useState as V, useCallback as Et, useRef as dr } from "react";
|
|
3
|
+
import { Text as fr, useBreakpointValue as Pe, Box as hr, InputGroup as pr, Input as gr, InputRightElement as xr, Icon as vr } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as ht, CaretLeft as mr, X as br, MagnifyingGlass as Rt, List as jr, Basket as wr, User as pt, QrCode as Cr, CaretDown as yr, ArrowRight as Er, InstagramLogo as Rr, LinkedinLogo as _r, FacebookLogo as Sr, TiktokLogo as Tr, XLogo as kr } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as et, AnimatePresence as Dr } from "framer-motion";
|
|
6
|
+
var Xe = { exports: {} }, Ce = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,21 +13,21 @@ var Ze = { exports: {} }, ye = {};
|
|
|
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
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof:
|
|
16
|
+
var gt;
|
|
17
|
+
function Ir() {
|
|
18
|
+
if (gt) return Ce;
|
|
19
|
+
gt = 1;
|
|
20
|
+
var n = Ae, i = Symbol.for("react.element"), u = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function h(y, g, j) {
|
|
22
|
+
var o, R = {}, m = null, p = null;
|
|
23
|
+
j !== void 0 && (m = "" + j), g.key !== void 0 && (m = "" + g.key), g.ref !== void 0 && (p = g.ref);
|
|
24
|
+
for (o in g) c.call(g, o) && !s.hasOwnProperty(o) && (R[o] = g[o]);
|
|
25
|
+
if (y && y.defaultProps) for (o in g = y.defaultProps, g) R[o] === void 0 && (R[o] = g[o]);
|
|
26
|
+
return { $$typeof: i, type: y, key: m, ref: p, props: R, _owner: f.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return Ce.Fragment = u, Ce.jsx = h, Ce.jsxs = h, Ce;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var ye = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -37,91 +37,91 @@ var Ce = {};
|
|
|
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
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var
|
|
44
|
-
function
|
|
40
|
+
var xt;
|
|
41
|
+
function Lr() {
|
|
42
|
+
return xt || (xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var n = Ae, i = Symbol.for("react.element"), u = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), y = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), S = Symbol.iterator, N = "@@iterator";
|
|
44
|
+
function Y(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
47
|
+
var r = S && e[S] || e[N];
|
|
48
|
+
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var M =
|
|
51
|
-
function
|
|
50
|
+
var M = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function T(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
for (var r = arguments.length, l = new Array(r > 1 ? r - 1 : 0), d = 1; d < r; d++)
|
|
54
|
+
l[d - 1] = arguments[d];
|
|
55
|
+
fe("error", e, l);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function fe(e, r, l) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
60
|
+
var d = M.ReactDebugCurrentFrame, w = d.getStackAddendum();
|
|
61
|
+
w !== "" && (r += "%s", l = l.concat([w]));
|
|
62
|
+
var E = l.map(function(v) {
|
|
63
|
+
return String(v);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
E.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, E);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
68
|
+
var he = !1, pe = !1, Q = !1, X = !1, P = !1, _;
|
|
69
|
+
_ = Symbol.for("react.module.reference");
|
|
70
|
+
function $(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === s || P || e === f || e === j || e === o || X || e === p || he || pe || Q || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === R || e.$$typeof === h || e.$$typeof === y || e.$$typeof === g || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
e.$$typeof ===
|
|
75
|
+
e.$$typeof === _ || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
77
|
+
function Re(e, r, l) {
|
|
78
|
+
var d = e.displayName;
|
|
79
|
+
if (d)
|
|
80
|
+
return d;
|
|
81
|
+
var w = r.displayName || r.name || "";
|
|
82
|
+
return w !== "" ? l + "(" + w + ")" : l;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ge(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function F(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case
|
|
95
|
+
case c:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case u:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case s:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case f:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case j:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case o:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case R:
|
|
111
|
-
var n = e;
|
|
112
|
-
return he(n) + ".Consumer";
|
|
113
|
-
case b:
|
|
114
|
-
var r = e;
|
|
115
|
-
return he(r._context) + ".Provider";
|
|
116
|
-
case c:
|
|
117
|
-
return je(e, e.render, "ForwardRef");
|
|
118
110
|
case y:
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
111
|
+
var r = e;
|
|
112
|
+
return ge(r) + ".Consumer";
|
|
113
|
+
case h:
|
|
114
|
+
var l = e;
|
|
115
|
+
return ge(l._context) + ".Provider";
|
|
116
|
+
case g:
|
|
117
|
+
return Re(e, e.render, "ForwardRef");
|
|
118
|
+
case R:
|
|
119
|
+
var d = e.displayName || null;
|
|
120
|
+
return d !== null ? d : F(e.type) || "Memo";
|
|
121
|
+
case m: {
|
|
122
|
+
var w = e, E = w._payload, v = w._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return F(v(E));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function vn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
132
|
+
var G = Object.assign, U = 0, _e, Se, Te, re, ke, xe, ne;
|
|
133
|
+
function De() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
De.__reactDisabledLog = !0;
|
|
136
|
+
function $e() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (U === 0) {
|
|
139
|
+
_e = console.log, Se = console.info, Te = console.warn, re = console.error, ke = console.group, xe = console.groupCollapsed, ne = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: De,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -153,208 +153,208 @@ function vn() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
U++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function le() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (U--, U === 0) {
|
|
162
162
|
var e = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
169
|
-
value:
|
|
168
|
+
log: G({}, e, {
|
|
169
|
+
value: _e
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
172
|
-
value:
|
|
171
|
+
info: G({}, e, {
|
|
172
|
+
value: Se
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
175
|
-
value:
|
|
174
|
+
warn: G({}, e, {
|
|
175
|
+
value: Te
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
178
|
-
value:
|
|
177
|
+
error: G({}, e, {
|
|
178
|
+
value: re
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
181
|
-
value:
|
|
180
|
+
group: G({}, e, {
|
|
181
|
+
value: ke
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
184
|
-
value:
|
|
183
|
+
groupCollapsed: G({}, e, {
|
|
184
|
+
value: xe
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
186
|
+
groupEnd: G({}, e, {
|
|
187
187
|
value: ne
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
U < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var z = M.ReactCurrentDispatcher, ve;
|
|
195
|
+
function ie(e, r, l) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (ve === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
|
|
200
|
+
} catch (w) {
|
|
201
|
+
var d = w.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ve = d && d[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + ve + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var me = !1, oe;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
210
|
+
var He = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
oe = new He();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!e ||
|
|
213
|
+
function Ie(e, r) {
|
|
214
|
+
if (!e || me)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
217
|
+
var l = oe.get(e);
|
|
218
|
+
if (l !== void 0)
|
|
219
|
+
return l;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
var
|
|
221
|
+
var d;
|
|
222
|
+
me = !0;
|
|
223
|
+
var w = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var E;
|
|
226
|
+
E = z.current, z.current = null, $e();
|
|
227
227
|
try {
|
|
228
|
-
if (
|
|
229
|
-
var
|
|
228
|
+
if (r) {
|
|
229
|
+
var v = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(v.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(v, []);
|
|
239
239
|
} catch (H) {
|
|
240
|
-
|
|
240
|
+
d = H;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], v);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
v.call();
|
|
246
246
|
} catch (H) {
|
|
247
|
-
|
|
247
|
+
d = H;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(v.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (H) {
|
|
255
|
-
|
|
255
|
+
d = H;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
259
|
} catch (H) {
|
|
260
|
-
if (H &&
|
|
261
|
-
for (var
|
|
262
|
-
`),
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (
|
|
267
|
-
if (
|
|
260
|
+
if (H && d && typeof H.stack == "string") {
|
|
261
|
+
for (var x = H.stack.split(`
|
|
262
|
+
`), A = d.stack.split(`
|
|
263
|
+
`), k = x.length - 1, D = A.length - 1; k >= 1 && D >= 0 && x[k] !== A[D]; )
|
|
264
|
+
D--;
|
|
265
|
+
for (; k >= 1 && D >= 0; k--, D--)
|
|
266
|
+
if (x[k] !== A[D]) {
|
|
267
|
+
if (k !== 1 || D !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
270
|
-
var
|
|
271
|
-
` +
|
|
272
|
-
return e.displayName &&
|
|
269
|
+
if (k--, D--, D < 0 || x[k] !== A[D]) {
|
|
270
|
+
var B = `
|
|
271
|
+
` + x[k].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && B.includes("<anonymous>") && (B = B.replace("<anonymous>", e.displayName)), typeof e == "function" && oe.set(e, B), B;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (k >= 1 && D >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
me = !1, z.current = E, le(), Error.prepareStackTrace = w;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof e == "function" &&
|
|
281
|
+
var ue = e ? e.displayName || e.name : "", te = ue ? ie(ue) : "";
|
|
282
|
+
return typeof e == "function" && oe.set(e, te), te;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function Fe(e, r, l) {
|
|
285
|
+
return Ie(e, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
287
|
+
function Me(e) {
|
|
288
|
+
var r = e.prototype;
|
|
289
|
+
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function ae(e, r, l) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return Ie(e, Me(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return ie(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
299
|
+
case j:
|
|
300
|
+
return ie("Suspense");
|
|
301
|
+
case o:
|
|
302
|
+
return ie("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
|
-
case
|
|
307
|
-
return
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var
|
|
306
|
+
case g:
|
|
307
|
+
return Fe(e.render);
|
|
308
|
+
case R:
|
|
309
|
+
return ae(e.type, r, l);
|
|
310
|
+
case m: {
|
|
311
|
+
var d = e, w = d._payload, E = d._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return ae(E(w), r, l);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var J = Object.prototype.hasOwnProperty, be = {}, je = M.ReactDebugCurrentFrame;
|
|
321
321
|
function a(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var
|
|
324
|
-
|
|
323
|
+
var r = e._owner, l = ae(e.type, e._source, r ? r.type : null);
|
|
324
|
+
je.setExtraStackFrame(l);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
je.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function I(e,
|
|
328
|
+
function I(e, r, l, d, w) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
330
|
+
var E = Function.call.bind(J);
|
|
331
|
+
for (var v in e)
|
|
332
|
+
if (E(e, v)) {
|
|
333
|
+
var x = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
335
|
+
if (typeof e[v] != "function") {
|
|
336
|
+
var A = Error((d || "React class") + ": " + l + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw A.name = "Invariant Violation", A;
|
|
338
338
|
}
|
|
339
|
-
|
|
340
|
-
} catch (
|
|
341
|
-
|
|
339
|
+
x = e[v](r, v, d, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (k) {
|
|
341
|
+
x = k;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
x && !(x instanceof Error) && (a(w), T("%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).", d || "React class", l, v, typeof x), a(null)), x instanceof Error && !(x.message in be) && (be[x.message] = !0, a(w), T("Failed %s type: %s", l, x.message), a(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
347
|
+
var q = Array.isArray;
|
|
348
348
|
function O(e) {
|
|
349
|
-
return
|
|
349
|
+
return q(e);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Be(e) {
|
|
352
352
|
{
|
|
353
|
-
var
|
|
354
|
-
return
|
|
353
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, l = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
+
return l;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function ee(e) {
|
|
358
358
|
try {
|
|
359
359
|
return tt(e), !1;
|
|
360
360
|
} catch {
|
|
@@ -364,125 +364,125 @@ function vn() {
|
|
|
364
364
|
function tt(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
367
|
+
function rt(e) {
|
|
368
|
+
if (ee(e))
|
|
369
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), tt(e);
|
|
370
370
|
}
|
|
371
|
-
var we = M.ReactCurrentOwner,
|
|
371
|
+
var we = M.ReactCurrentOwner, St = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
376
|
+
}, nt, lt, We;
|
|
377
|
+
We = {};
|
|
378
|
+
function Tt(e) {
|
|
379
|
+
if (J.call(e, "ref")) {
|
|
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
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
386
|
+
function kt(e) {
|
|
387
|
+
if (J.call(e, "key")) {
|
|
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" && we.current &&
|
|
396
|
-
var
|
|
397
|
-
|
|
394
|
+
function Dt(e, r) {
|
|
395
|
+
if (typeof e.ref == "string" && we.current && r && we.current.stateNode !== r) {
|
|
396
|
+
var l = F(we.current.type);
|
|
397
|
+
We[l] || (T('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', F(we.current.type), e.ref), We[l] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function It(e, r) {
|
|
401
401
|
{
|
|
402
|
-
var
|
|
403
|
-
|
|
402
|
+
var l = function() {
|
|
403
|
+
nt || (nt = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
get:
|
|
405
|
+
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: l,
|
|
407
407
|
configurable: !0
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Lt(e, r) {
|
|
412
412
|
{
|
|
413
|
-
var
|
|
414
|
-
lt || (lt = !0,
|
|
413
|
+
var l = function() {
|
|
414
|
+
lt || (lt = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
|
-
|
|
417
|
-
get:
|
|
416
|
+
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: l,
|
|
418
418
|
configurable: !0
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
423
|
-
var
|
|
422
|
+
var Ot = function(e, r, l, d, w, E, v) {
|
|
423
|
+
var x = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: i,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
|
-
key:
|
|
429
|
-
ref:
|
|
430
|
-
props:
|
|
428
|
+
key: r,
|
|
429
|
+
ref: l,
|
|
430
|
+
props: v,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: E
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(x, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
443
|
+
value: d
|
|
444
|
+
}), Object.defineProperty(x, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
value: w
|
|
449
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function At(e, r, l, d, w) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var E, v = {}, x = null, A = null;
|
|
454
|
+
l !== void 0 && (rt(l), x = "" + l), kt(r) && (rt(r.key), x = "" + r.key), Tt(r) && (A = r.ref, Dt(r, w));
|
|
455
|
+
for (E in r)
|
|
456
|
+
J.call(r, E) && !St.hasOwnProperty(E) && (v[E] = r[E]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (
|
|
460
|
-
|
|
458
|
+
var k = e.defaultProps;
|
|
459
|
+
for (E in k)
|
|
460
|
+
v[E] === void 0 && (v[E] = k[E]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
463
|
-
var
|
|
464
|
-
|
|
462
|
+
if (x || A) {
|
|
463
|
+
var D = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
x && It(v, D), A && Lt(v, D);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return Ot(e, x, A, w, d, we.current, v);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
469
|
+
var Ne = M.ReactCurrentOwner, it = M.ReactDebugCurrentFrame;
|
|
470
|
+
function se(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var
|
|
473
|
-
|
|
472
|
+
var r = e._owner, l = ae(e.type, e._source, r ? r.type : null);
|
|
473
|
+
it.setExtraStackFrame(l);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
it.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
477
|
+
var Ve;
|
|
478
|
+
Ve = !1;
|
|
479
|
+
function ze(e) {
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === i;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function ot() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e =
|
|
484
|
+
if (Ne.current) {
|
|
485
|
+
var e = F(Ne.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -491,199 +491,199 @@ Check the render method of \`` + e + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Pt(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
497
|
+
var at = {};
|
|
498
|
+
function $t(e) {
|
|
499
499
|
{
|
|
500
|
-
var
|
|
501
|
-
if (!
|
|
502
|
-
var
|
|
503
|
-
|
|
500
|
+
var r = ot();
|
|
501
|
+
if (!r) {
|
|
502
|
+
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
+
l && (r = `
|
|
504
504
|
|
|
505
|
-
Check the top-level render call using <` +
|
|
505
|
+
Check the top-level render call using <` + l + ">.");
|
|
506
506
|
}
|
|
507
|
-
return
|
|
507
|
+
return r;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function st(e,
|
|
510
|
+
function st(e, r) {
|
|
511
511
|
{
|
|
512
512
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
513
|
return;
|
|
514
514
|
e._store.validated = !0;
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
515
|
+
var l = $t(r);
|
|
516
|
+
if (at[l])
|
|
517
517
|
return;
|
|
518
|
-
|
|
519
|
-
var
|
|
520
|
-
e && e._owner && e._owner !==
|
|
518
|
+
at[l] = !0;
|
|
519
|
+
var d = "";
|
|
520
|
+
e && e._owner && e._owner !== Ne.current && (d = " It was passed a child from " + F(e._owner.type) + "."), se(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, d), se(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function ut(e,
|
|
523
|
+
function ut(e, r) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
527
|
if (O(e))
|
|
528
|
-
for (var
|
|
529
|
-
var
|
|
530
|
-
|
|
528
|
+
for (var l = 0; l < e.length; l++) {
|
|
529
|
+
var d = e[l];
|
|
530
|
+
ze(d) && st(d, r);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (ze(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var
|
|
538
|
-
|
|
535
|
+
var w = Y(e);
|
|
536
|
+
if (typeof w == "function" && w !== e.entries)
|
|
537
|
+
for (var E = w.call(e), v; !(v = E.next()).done; )
|
|
538
|
+
ze(v.value) && st(v.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ht(e) {
|
|
543
543
|
{
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
544
|
+
var r = e.type;
|
|
545
|
+
if (r == null || typeof r == "string")
|
|
546
546
|
return;
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
|
|
550
|
-
else if (typeof
|
|
547
|
+
var l;
|
|
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
|
-
|
|
552
|
+
r.$$typeof === R))
|
|
553
|
+
l = r.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
|
-
if (
|
|
557
|
-
var
|
|
558
|
-
I(
|
|
559
|
-
} else if (
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
|
|
556
|
+
if (l) {
|
|
557
|
+
var d = F(r);
|
|
558
|
+
I(l, e.props, "prop", d, e);
|
|
559
|
+
} else if (r.PropTypes !== void 0 && !Ve) {
|
|
560
|
+
Ve = !0;
|
|
561
|
+
var w = F(r);
|
|
562
|
+
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof
|
|
564
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ft(e) {
|
|
568
568
|
{
|
|
569
|
-
for (var
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
|
|
569
|
+
for (var r = Object.keys(e.props), l = 0; l < r.length; l++) {
|
|
570
|
+
var d = r[l];
|
|
571
|
+
if (d !== "children" && d !== "key") {
|
|
572
|
+
se(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), se(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (
|
|
576
|
+
e.ref !== null && (se(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ct = {};
|
|
580
|
-
function dt(e,
|
|
580
|
+
function dt(e, r, l, d, w, E) {
|
|
581
581
|
{
|
|
582
|
-
var
|
|
583
|
-
if (!
|
|
584
|
-
var
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
586
|
-
var
|
|
587
|
-
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
582
|
+
var v = $(e);
|
|
583
|
+
if (!v) {
|
|
584
|
+
var x = "";
|
|
585
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " 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 A = Pt();
|
|
587
|
+
A ? x += A : x += ot();
|
|
588
|
+
var k;
|
|
589
|
+
e === null ? k = "null" : O(e) ? k = "array" : e !== void 0 && e.$$typeof === i ? (k = "<" + (F(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : k = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, x);
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
594
|
-
if (
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
if (O(
|
|
599
|
-
for (var
|
|
600
|
-
ut(
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
var D = At(e, r, l, w, E);
|
|
592
|
+
if (D == null)
|
|
593
|
+
return D;
|
|
594
|
+
if (v) {
|
|
595
|
+
var B = r.children;
|
|
596
|
+
if (B !== void 0)
|
|
597
|
+
if (d)
|
|
598
|
+
if (O(B)) {
|
|
599
|
+
for (var ue = 0; ue < B.length; ue++)
|
|
600
|
+
ut(B[ue], e);
|
|
601
|
+
Object.freeze && Object.freeze(B);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
T("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
|
-
ut(
|
|
605
|
+
ut(B, e);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
609
|
-
return
|
|
610
|
-
}),
|
|
611
|
-
if (!ct[
|
|
612
|
-
var
|
|
613
|
-
|
|
607
|
+
if (J.call(r, "key")) {
|
|
608
|
+
var te = F(e), H = Object.keys(r).filter(function(zt) {
|
|
609
|
+
return zt !== "key";
|
|
610
|
+
}), Ye = H.length > 0 ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!ct[te + Ye]) {
|
|
612
|
+
var Vt = H.length > 0 ? "{" + H.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
+
T(`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} />`, Ye, te, Vt, te), ct[te + Ye] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === c ? Ft(D) : Ht(D), D;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return dt(e,
|
|
624
|
+
function Mt(e, r, l) {
|
|
625
|
+
return dt(e, r, l, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return dt(e,
|
|
627
|
+
function Bt(e, r, l) {
|
|
628
|
+
return dt(e, r, l, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
}()),
|
|
630
|
+
var Wt = Bt, Nt = Mt;
|
|
631
|
+
ye.Fragment = c, ye.jsx = Wt, ye.jsxs = Nt;
|
|
632
|
+
}()), ye;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var t =
|
|
636
|
-
const
|
|
634
|
+
process.env.NODE_ENV === "production" ? Xe.exports = Ir() : Xe.exports = Lr();
|
|
635
|
+
var t = Xe.exports;
|
|
636
|
+
const Ue = 60, vt = 6, Or = (n) => {
|
|
637
637
|
const {
|
|
638
|
-
activeStepIndex:
|
|
639
|
-
hideIndicators:
|
|
640
|
-
steps:
|
|
641
|
-
stepperTheme:
|
|
638
|
+
activeStepIndex: i,
|
|
639
|
+
hideIndicators: u = !1,
|
|
640
|
+
steps: c,
|
|
641
|
+
stepperTheme: f = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
645
|
-
} =
|
|
646
|
-
index:
|
|
647
|
-
count:
|
|
645
|
+
} = n, { activeStep: s, setActiveStep: h } = Yt({
|
|
646
|
+
index: i,
|
|
647
|
+
count: c.length
|
|
648
648
|
});
|
|
649
|
-
return
|
|
650
|
-
|
|
651
|
-
}, [
|
|
652
|
-
|
|
649
|
+
return Z(() => {
|
|
650
|
+
h(i);
|
|
651
|
+
}, [i, h]), /* @__PURE__ */ t.jsx(
|
|
652
|
+
b,
|
|
653
653
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
654
|
-
|
|
654
|
+
Gt,
|
|
655
655
|
{
|
|
656
656
|
role: "progressbar",
|
|
657
|
-
index:
|
|
657
|
+
index: s,
|
|
658
658
|
width: "100%",
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
|
-
children:
|
|
662
|
-
const
|
|
663
|
-
let
|
|
664
|
-
const
|
|
665
|
-
return
|
|
666
|
-
|
|
661
|
+
children: c.map((y, g) => {
|
|
662
|
+
const j = s === g, o = g === 0, R = g === c.length - 1, m = s > g;
|
|
663
|
+
let p = `${Ue}px`;
|
|
664
|
+
const S = `calc(100% - ((${Ue * (c.length - 1)}px) - (${c.length - 1} * ${vt * 2}px)))`;
|
|
665
|
+
return j ? p = S : (o || R) && (p = `${Ue - vt}px`), /* @__PURE__ */ t.jsx(
|
|
666
|
+
b,
|
|
667
667
|
{
|
|
668
|
-
width:
|
|
669
|
-
opacity:
|
|
670
|
-
paddingRight:
|
|
671
|
-
paddingLeft:
|
|
668
|
+
width: p,
|
|
669
|
+
opacity: m || j ? 1 : 0.2,
|
|
670
|
+
paddingRight: R ? "0" : "6px",
|
|
671
|
+
paddingLeft: o ? "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
|
+
b,
|
|
675
675
|
{
|
|
676
|
-
paddingTop:
|
|
676
|
+
paddingTop: u ? 2 : 5,
|
|
677
677
|
position: "relative",
|
|
678
678
|
width: "100%",
|
|
679
679
|
children: /* @__PURE__ */ t.jsx(
|
|
680
|
-
|
|
680
|
+
b,
|
|
681
681
|
{
|
|
682
682
|
width: "100%",
|
|
683
683
|
position: "absolute",
|
|
684
684
|
top: "0",
|
|
685
|
-
backgroundColor:
|
|
686
|
-
height:
|
|
685
|
+
backgroundColor: m ? f.light : f.base,
|
|
686
|
+
height: u ? "4px" : "8px",
|
|
687
687
|
borderRadius: "4",
|
|
688
688
|
left: "0"
|
|
689
689
|
}
|
|
@@ -691,40 +691,40 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
693
|
},
|
|
694
|
-
`step-${
|
|
694
|
+
`step-${g}`
|
|
695
695
|
);
|
|
696
696
|
})
|
|
697
697
|
}
|
|
698
698
|
) }
|
|
699
699
|
);
|
|
700
|
-
},
|
|
701
|
-
children:
|
|
702
|
-
...
|
|
700
|
+
}, Qr = Ae.memo(Or), en = ({
|
|
701
|
+
children: n,
|
|
702
|
+
...i
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
|
-
|
|
705
|
-
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...
|
|
706
|
-
),
|
|
707
|
-
const
|
|
708
|
-
return
|
|
709
|
-
to:
|
|
704
|
+
fr,
|
|
705
|
+
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...i, children: n }
|
|
706
|
+
), de = (n, i) => {
|
|
707
|
+
const u = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
708
|
+
return i && !u ? {
|
|
709
|
+
to: n
|
|
710
710
|
} : {
|
|
711
|
-
href:
|
|
711
|
+
href: n
|
|
712
712
|
};
|
|
713
|
-
},
|
|
714
|
-
(
|
|
713
|
+
}, Ze = yt(
|
|
714
|
+
(n, i) => {
|
|
715
715
|
const {
|
|
716
|
-
label:
|
|
717
|
-
additionalContent:
|
|
718
|
-
mainTextFontSize:
|
|
719
|
-
linkComponent:
|
|
720
|
-
href:
|
|
721
|
-
...
|
|
722
|
-
} =
|
|
716
|
+
label: u,
|
|
717
|
+
additionalContent: c,
|
|
718
|
+
mainTextFontSize: f,
|
|
719
|
+
linkComponent: s,
|
|
720
|
+
href: h,
|
|
721
|
+
...y
|
|
722
|
+
} = n, g = s || W, j = de(h, !!s);
|
|
723
723
|
return /* @__PURE__ */ t.jsxs(
|
|
724
|
-
|
|
724
|
+
b,
|
|
725
725
|
{
|
|
726
|
-
ref:
|
|
727
|
-
as:
|
|
726
|
+
ref: i,
|
|
727
|
+
as: g,
|
|
728
728
|
display: "flex",
|
|
729
729
|
alignItems: "center",
|
|
730
730
|
gap: [null, null, null, 1],
|
|
@@ -736,14 +736,14 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
736
736
|
borderColor: ["tints.cream", null, null, "unset"],
|
|
737
737
|
width: ["100%", null, null, "fit-content"],
|
|
738
738
|
cursor: "pointer",
|
|
739
|
-
...
|
|
740
|
-
...
|
|
739
|
+
...j,
|
|
740
|
+
...y,
|
|
741
741
|
children: [
|
|
742
742
|
/* @__PURE__ */ t.jsx(
|
|
743
|
-
|
|
743
|
+
K,
|
|
744
744
|
{
|
|
745
745
|
display: ["none", null, null, "block"],
|
|
746
|
-
as:
|
|
746
|
+
as: ht,
|
|
747
747
|
fontSize: "lg",
|
|
748
748
|
color: "viridian.light",
|
|
749
749
|
role: "img",
|
|
@@ -752,18 +752,18 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
752
752
|
}
|
|
753
753
|
),
|
|
754
754
|
/* @__PURE__ */ t.jsxs(
|
|
755
|
-
|
|
755
|
+
C,
|
|
756
756
|
{ alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
|
|
757
757
|
/* @__PURE__ */ t.jsx(
|
|
758
|
-
|
|
758
|
+
L,
|
|
759
759
|
{
|
|
760
|
-
fontSize: [
|
|
760
|
+
fontSize: [f || "xl", null, null, "lg"],
|
|
761
761
|
fontWeight: "medium",
|
|
762
|
-
children:
|
|
762
|
+
children: u
|
|
763
763
|
}
|
|
764
764
|
),
|
|
765
|
-
|
|
766
|
-
|
|
765
|
+
c && (typeof c == "string" ? /* @__PURE__ */ t.jsx(
|
|
766
|
+
L,
|
|
767
767
|
{
|
|
768
768
|
fontSize: ["xl", null, null, "lg"],
|
|
769
769
|
fontWeight: "medium",
|
|
@@ -773,14 +773,14 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
773
773
|
color: "viridian.base"
|
|
774
774
|
}
|
|
775
775
|
},
|
|
776
|
-
children:
|
|
776
|
+
children: c
|
|
777
777
|
}
|
|
778
|
-
) :
|
|
778
|
+
) : c),
|
|
779
779
|
/* @__PURE__ */ t.jsx(
|
|
780
|
-
|
|
780
|
+
K,
|
|
781
781
|
{
|
|
782
782
|
display: ["block", null, null, "none"],
|
|
783
|
-
as:
|
|
783
|
+
as: ht,
|
|
784
784
|
fontSize: "2xl",
|
|
785
785
|
color: "tints.uiGrey",
|
|
786
786
|
role: "img",
|
|
@@ -794,15 +794,15 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
),
|
|
798
|
-
(
|
|
799
|
-
const { children:
|
|
797
|
+
), Oe = yt(
|
|
798
|
+
(n, i) => {
|
|
799
|
+
const { children: u, isSelected: c, ...f } = n, s = n.backgroundColor || (c ? "tints.lightCream" : "transparent");
|
|
800
800
|
return /* @__PURE__ */ t.jsx(
|
|
801
|
-
|
|
801
|
+
Ct,
|
|
802
802
|
{
|
|
803
|
-
ref:
|
|
803
|
+
ref: i,
|
|
804
804
|
borderRadius: "full",
|
|
805
|
-
backgroundColor:
|
|
805
|
+
backgroundColor: s,
|
|
806
806
|
fontSize: "lg !important",
|
|
807
807
|
fontWeight: "normal",
|
|
808
808
|
color: "tints.black",
|
|
@@ -820,42 +820,42 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
820
820
|
left: [null, null, null, -2]
|
|
821
821
|
},
|
|
822
822
|
_hover: {
|
|
823
|
-
backgroundColor:
|
|
823
|
+
backgroundColor: s,
|
|
824
824
|
textDecoration: "none",
|
|
825
825
|
filter: "brightness(0.95)"
|
|
826
826
|
},
|
|
827
|
-
...
|
|
828
|
-
children:
|
|
827
|
+
...f,
|
|
828
|
+
children: u
|
|
829
829
|
}
|
|
830
830
|
);
|
|
831
831
|
}
|
|
832
|
-
),
|
|
833
|
-
title:
|
|
834
|
-
description:
|
|
835
|
-
imageSrc:
|
|
836
|
-
imageElement:
|
|
837
|
-
button:
|
|
838
|
-
backgroundColor:
|
|
839
|
-
onClick:
|
|
840
|
-
href:
|
|
841
|
-
linkComponent:
|
|
832
|
+
), Ar = ({
|
|
833
|
+
title: n,
|
|
834
|
+
description: i,
|
|
835
|
+
imageSrc: u,
|
|
836
|
+
imageElement: c,
|
|
837
|
+
button: f,
|
|
838
|
+
backgroundColor: s = "viridian.wash",
|
|
839
|
+
onClick: h,
|
|
840
|
+
href: y,
|
|
841
|
+
linkComponent: g
|
|
842
842
|
}) => {
|
|
843
|
-
const
|
|
843
|
+
const m = g || W, p = de(y, !!g), S = Pe({
|
|
844
844
|
base: !1,
|
|
845
845
|
tablet: !1,
|
|
846
846
|
largeTablet: !1,
|
|
847
847
|
desktop: !0
|
|
848
848
|
});
|
|
849
849
|
return /* @__PURE__ */ t.jsxs(
|
|
850
|
-
|
|
850
|
+
C,
|
|
851
851
|
{
|
|
852
852
|
direction: ["row", null, null, "column"],
|
|
853
853
|
alignItems: ["center"],
|
|
854
854
|
borderRadius: "xl",
|
|
855
855
|
overflow: "hidden",
|
|
856
856
|
height: ["80px", null, null, "272px"],
|
|
857
|
-
backgroundColor:
|
|
858
|
-
onClick:
|
|
857
|
+
backgroundColor: s,
|
|
858
|
+
onClick: h,
|
|
859
859
|
"data-testid": "spotlight-card",
|
|
860
860
|
position: "relative",
|
|
861
861
|
transition: "box-shadow 0.2s ease-in-out",
|
|
@@ -869,40 +869,40 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
869
869
|
border: "1px solid",
|
|
870
870
|
borderColor: "tints.white"
|
|
871
871
|
},
|
|
872
|
-
as:
|
|
873
|
-
...
|
|
872
|
+
as: S ? C : m,
|
|
873
|
+
...S ? {} : p,
|
|
874
874
|
children: [
|
|
875
875
|
/* @__PURE__ */ t.jsx(
|
|
876
|
-
|
|
876
|
+
b,
|
|
877
877
|
{
|
|
878
878
|
width: ["72px", null, null, "100%"],
|
|
879
879
|
height: ["100%", null, null, "188px"],
|
|
880
880
|
sx: {
|
|
881
881
|
img: {
|
|
882
|
-
height:
|
|
882
|
+
height: S ? "188px" : "100%"
|
|
883
883
|
}
|
|
884
884
|
},
|
|
885
|
-
children:
|
|
886
|
-
|
|
885
|
+
children: u ? /* @__PURE__ */ t.jsx(
|
|
886
|
+
Ut,
|
|
887
887
|
{
|
|
888
|
-
src:
|
|
888
|
+
src: u,
|
|
889
889
|
objectFit: "cover",
|
|
890
890
|
width: "100%",
|
|
891
891
|
alt: "",
|
|
892
892
|
"data-testid": "spotlight-card-image"
|
|
893
893
|
}
|
|
894
894
|
) : /* @__PURE__ */ t.jsx(
|
|
895
|
-
|
|
895
|
+
b,
|
|
896
896
|
{
|
|
897
897
|
height: [80, null, null, 188],
|
|
898
898
|
overflow: "hidden",
|
|
899
|
-
children:
|
|
899
|
+
children: c
|
|
900
900
|
}
|
|
901
901
|
)
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
904
|
/* @__PURE__ */ t.jsxs(
|
|
905
|
-
|
|
905
|
+
C,
|
|
906
906
|
{
|
|
907
907
|
direction: ["column", null, null, "row"],
|
|
908
908
|
justifyContent: [null, null, null, "space-between"],
|
|
@@ -916,33 +916,33 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
916
916
|
],
|
|
917
917
|
width: "100%",
|
|
918
918
|
bottom: [null, null, null, "0"],
|
|
919
|
-
backgroundColor: [null, null, null, `${
|
|
919
|
+
backgroundColor: [null, null, null, `${s}CC`],
|
|
920
920
|
backdropFilter: [null, null, null, "blur(8px)"],
|
|
921
921
|
flex: "1",
|
|
922
922
|
gap: [null, null, null, 3],
|
|
923
923
|
children: [
|
|
924
924
|
/* @__PURE__ */ t.jsxs(
|
|
925
|
-
|
|
925
|
+
C,
|
|
926
926
|
{ direction: "column", justifyContent: "center", height: "100%", children: [
|
|
927
927
|
/* @__PURE__ */ t.jsx(
|
|
928
|
-
|
|
929
|
-
{ fontSize: "lg", fontWeight: "medium", color: "tints.black", children:
|
|
928
|
+
L,
|
|
929
|
+
{ fontSize: "lg", fontWeight: "medium", color: "tints.black", children: n }
|
|
930
930
|
),
|
|
931
931
|
/* @__PURE__ */ t.jsx(
|
|
932
|
-
|
|
933
|
-
{ fontSize: "sm", color: "tints.darkGrey", children:
|
|
932
|
+
L,
|
|
933
|
+
{ fontSize: "sm", color: "tints.darkGrey", children: i }
|
|
934
934
|
)
|
|
935
935
|
] }
|
|
936
936
|
),
|
|
937
|
-
|
|
937
|
+
S ? /* @__PURE__ */ t.jsx(b, { children: f }) : null
|
|
938
938
|
]
|
|
939
939
|
}
|
|
940
940
|
)
|
|
941
941
|
]
|
|
942
942
|
}
|
|
943
943
|
);
|
|
944
|
-
}, ce = (
|
|
945
|
-
|
|
944
|
+
}, ce = (n) => /* @__PURE__ */ t.jsx(
|
|
945
|
+
Zt,
|
|
946
946
|
{
|
|
947
947
|
size: "sm",
|
|
948
948
|
width: ["40px", null, null, "46px"],
|
|
@@ -960,16 +960,16 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
960
960
|
backgroundColor: "tints.cream",
|
|
961
961
|
filter: "brightness(0.95)"
|
|
962
962
|
},
|
|
963
|
-
...
|
|
963
|
+
...n
|
|
964
964
|
}
|
|
965
|
-
),
|
|
966
|
-
color:
|
|
967
|
-
width:
|
|
965
|
+
), _t = ({
|
|
966
|
+
color: n = Ee.colors.viridian.base,
|
|
967
|
+
width: i
|
|
968
968
|
}) => /* @__PURE__ */ t.jsx(
|
|
969
|
-
|
|
969
|
+
hr,
|
|
970
970
|
{
|
|
971
971
|
as: "svg",
|
|
972
|
-
width:
|
|
972
|
+
width: i,
|
|
973
973
|
height: "auto",
|
|
974
974
|
viewBox: "0 0 116 24",
|
|
975
975
|
fill: "none",
|
|
@@ -981,7 +981,7 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
981
981
|
{ id: "Everlywell Logo", children: /* @__PURE__ */ t.jsx(
|
|
982
982
|
"path",
|
|
983
983
|
{
|
|
984
|
-
fill:
|
|
984
|
+
fill: n,
|
|
985
985
|
id: "Everlywell Logo_2",
|
|
986
986
|
fillRule: "evenodd",
|
|
987
987
|
clipRule: "evenodd",
|
|
@@ -990,81 +990,81 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
990
990
|
) }
|
|
991
991
|
)
|
|
992
992
|
}
|
|
993
|
-
),
|
|
994
|
-
let
|
|
995
|
-
return (...
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
},
|
|
993
|
+
), Pr = (n, i) => {
|
|
994
|
+
let u;
|
|
995
|
+
return (...c) => {
|
|
996
|
+
u && clearTimeout(u), u = setTimeout(() => {
|
|
997
|
+
n(...c);
|
|
998
|
+
}, i);
|
|
999
999
|
};
|
|
1000
|
-
},
|
|
1000
|
+
}, Je = "nav-drawer-hover", qe = "nav-drawer-animation-start", Qe = "nav-drawer-animation-end", mt = (n) => {
|
|
1001
1001
|
window.dispatchEvent(
|
|
1002
|
-
new CustomEvent(
|
|
1003
|
-
detail: { isHovering:
|
|
1002
|
+
new CustomEvent(Je, {
|
|
1003
|
+
detail: { isHovering: n },
|
|
1004
1004
|
bubbles: !0,
|
|
1005
1005
|
cancelable: !0
|
|
1006
1006
|
})
|
|
1007
1007
|
);
|
|
1008
|
-
},
|
|
1008
|
+
}, bt = (n) => {
|
|
1009
1009
|
window.dispatchEvent(
|
|
1010
|
-
new CustomEvent(
|
|
1010
|
+
new CustomEvent(n, {
|
|
1011
1011
|
bubbles: !0,
|
|
1012
1012
|
cancelable: !0
|
|
1013
1013
|
})
|
|
1014
1014
|
);
|
|
1015
|
-
},
|
|
1016
|
-
isOpen:
|
|
1017
|
-
onClose:
|
|
1018
|
-
title:
|
|
1019
|
-
navDrawerLinks:
|
|
1020
|
-
bottomNavButtons:
|
|
1021
|
-
spotlightCards:
|
|
1022
|
-
bottomButton:
|
|
1023
|
-
hasBackButton:
|
|
1024
|
-
onBackClick:
|
|
1025
|
-
hasOnlySpotlightCards:
|
|
1026
|
-
hasSearch:
|
|
1027
|
-
onSearch:
|
|
1028
|
-
topOffset:
|
|
1015
|
+
}, $r = (n = !1, i = !1, u = !1) => n || !i ? "column" : u ? "row" : "row-reverse", Hr = et(Kt), Fr = et(Xt), Ke = ({
|
|
1016
|
+
isOpen: n = !1,
|
|
1017
|
+
onClose: i,
|
|
1018
|
+
title: u,
|
|
1019
|
+
navDrawerLinks: c,
|
|
1020
|
+
bottomNavButtons: f,
|
|
1021
|
+
spotlightCards: s,
|
|
1022
|
+
bottomButton: h,
|
|
1023
|
+
hasBackButton: y = !0,
|
|
1024
|
+
onBackClick: g,
|
|
1025
|
+
hasOnlySpotlightCards: j = !1,
|
|
1026
|
+
hasSearch: o = !1,
|
|
1027
|
+
onSearch: R = () => ({}),
|
|
1028
|
+
topOffset: m
|
|
1029
1029
|
}) => {
|
|
1030
|
-
var
|
|
1031
|
-
const
|
|
1030
|
+
var Q, X;
|
|
1031
|
+
const p = Pe({
|
|
1032
1032
|
base: !1,
|
|
1033
1033
|
tablet: !1,
|
|
1034
1034
|
largeTablet: !1,
|
|
1035
1035
|
desktop: !0
|
|
1036
|
-
}),
|
|
1037
|
-
|
|
1038
|
-
},
|
|
1039
|
-
|
|
1040
|
-
|
|
1036
|
+
}), S = p ? "top" : "right", [N, Y] = V(0), [M, T] = V(!1), fe = () => {
|
|
1037
|
+
Y((P) => P + 1);
|
|
1038
|
+
}, he = Et(
|
|
1039
|
+
Pr((P) => {
|
|
1040
|
+
R(P), fe();
|
|
1041
1041
|
}, 100),
|
|
1042
1042
|
[]
|
|
1043
1043
|
);
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}, [
|
|
1044
|
+
Z(() => {
|
|
1045
|
+
n && (T(!0), bt(qe));
|
|
1046
|
+
}, [n]);
|
|
1047
1047
|
const pe = () => {
|
|
1048
|
-
|
|
1048
|
+
n || (T(!1), i()), bt(Qe);
|
|
1049
1049
|
};
|
|
1050
1050
|
return /* @__PURE__ */ t.jsx(
|
|
1051
|
-
|
|
1051
|
+
Jt,
|
|
1052
1052
|
{
|
|
1053
|
-
isOpen: M ||
|
|
1053
|
+
isOpen: M || n,
|
|
1054
1054
|
onClose: () => {
|
|
1055
|
-
M &&
|
|
1055
|
+
M && p || i();
|
|
1056
1056
|
},
|
|
1057
|
-
placement:
|
|
1057
|
+
placement: S,
|
|
1058
1058
|
blockScrollOnMount: !1,
|
|
1059
1059
|
autoFocus: !1,
|
|
1060
|
-
...
|
|
1060
|
+
...p ? {
|
|
1061
1061
|
styleConfig: {
|
|
1062
1062
|
baseStyle: {
|
|
1063
|
-
...
|
|
1063
|
+
...Ee.components.Drawer.baseStyle,
|
|
1064
1064
|
dialogContainer: {
|
|
1065
|
-
...(
|
|
1065
|
+
...(X = (Q = Ee.components.Drawer) == null ? void 0 : Q.baseStyle) == null ? void 0 : X.dialogContainer,
|
|
1066
1066
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1067
|
-
top:
|
|
1067
|
+
top: p ? `${m}px` : void 0,
|
|
1068
1068
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
1069
1069
|
zIndex: ["overlay"]
|
|
1070
1070
|
}
|
|
@@ -1072,17 +1072,17 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
} : {},
|
|
1074
1074
|
children: /* @__PURE__ */ t.jsx(
|
|
1075
|
-
|
|
1076
|
-
{ children:
|
|
1075
|
+
Dr,
|
|
1076
|
+
{ children: n ? /* @__PURE__ */ t.jsxs(
|
|
1077
1077
|
t.Fragment,
|
|
1078
1078
|
{ children: [
|
|
1079
1079
|
/* @__PURE__ */ t.jsx(
|
|
1080
|
-
|
|
1080
|
+
Fr,
|
|
1081
1081
|
{
|
|
1082
1082
|
backgroundColor: "tints.black",
|
|
1083
|
-
top: ["0", null, null, `${
|
|
1084
|
-
opacity:
|
|
1085
|
-
...
|
|
1083
|
+
top: ["0", null, null, `${m}px`],
|
|
1084
|
+
opacity: p ? void 0 : "0.4 !important",
|
|
1085
|
+
...p ? {
|
|
1086
1086
|
initial: { opacity: 0 },
|
|
1087
1087
|
animate: { opacity: 0.4 },
|
|
1088
1088
|
exit: { opacity: 0 },
|
|
@@ -1095,17 +1095,17 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
),
|
|
1097
1097
|
/* @__PURE__ */ t.jsxs(
|
|
1098
|
-
|
|
1098
|
+
Hr,
|
|
1099
1099
|
{
|
|
1100
|
-
onClick: (
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1100
|
+
onClick: (P) => {
|
|
1101
|
+
const $ = P.target.closest("a");
|
|
1102
|
+
$ && $.href === window.location.href && i();
|
|
1103
1103
|
},
|
|
1104
1104
|
onMouseEnter: () => {
|
|
1105
|
-
|
|
1105
|
+
p && mt(!0);
|
|
1106
1106
|
},
|
|
1107
1107
|
onMouseLeave: () => {
|
|
1108
|
-
|
|
1108
|
+
p && mt(!1);
|
|
1109
1109
|
},
|
|
1110
1110
|
paddingTop: "4",
|
|
1111
1111
|
paddingX: [4, null, null, 12],
|
|
@@ -1113,67 +1113,67 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1113
1113
|
overflow: ["auto", null, null, "hidden"],
|
|
1114
1114
|
maxHeight: "100vh",
|
|
1115
1115
|
position: "relative",
|
|
1116
|
-
top:
|
|
1116
|
+
top: p ? `${m}px !important` : void 0,
|
|
1117
1117
|
onAnimationComplete: pe,
|
|
1118
1118
|
boxShadow: "none",
|
|
1119
|
-
...
|
|
1119
|
+
...p ? {
|
|
1120
1120
|
initial: { height: 0, opacity: 0 },
|
|
1121
1121
|
animate: { height: "auto", opacity: 1 },
|
|
1122
1122
|
exit: { height: 0, opacity: 0 },
|
|
1123
1123
|
transition: { duration: 0.3 }
|
|
1124
1124
|
} : {},
|
|
1125
1125
|
children: [
|
|
1126
|
-
!
|
|
1127
|
-
|
|
1126
|
+
!o && p ? null : /* @__PURE__ */ t.jsxs(
|
|
1127
|
+
qt,
|
|
1128
1128
|
{
|
|
1129
1129
|
padding: "0",
|
|
1130
|
-
flexDirection:
|
|
1131
|
-
gap:
|
|
1130
|
+
flexDirection: o ? "column" : "row",
|
|
1131
|
+
gap: o ? "4" : "0",
|
|
1132
1132
|
children: [
|
|
1133
|
-
|
|
1134
|
-
|
|
1133
|
+
p ? null : /* @__PURE__ */ t.jsxs(
|
|
1134
|
+
C,
|
|
1135
1135
|
{
|
|
1136
1136
|
width: "100%",
|
|
1137
1137
|
justifyContent: "space-between",
|
|
1138
1138
|
alignItems: "center",
|
|
1139
1139
|
children: [
|
|
1140
|
-
|
|
1140
|
+
y ? /* @__PURE__ */ t.jsx(
|
|
1141
1141
|
ce,
|
|
1142
1142
|
{
|
|
1143
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1143
|
+
icon: /* @__PURE__ */ t.jsx(mr, {}),
|
|
1144
1144
|
onClick: () => {
|
|
1145
|
-
|
|
1145
|
+
g && g();
|
|
1146
1146
|
},
|
|
1147
1147
|
"aria-label": "Back"
|
|
1148
1148
|
}
|
|
1149
1149
|
) : null,
|
|
1150
1150
|
/* @__PURE__ */ t.jsx(
|
|
1151
|
-
|
|
1151
|
+
L,
|
|
1152
1152
|
{
|
|
1153
1153
|
color: "tints.uiGrey",
|
|
1154
1154
|
fontSize: ["xl", null, null, "lg"],
|
|
1155
|
-
children:
|
|
1155
|
+
children: u
|
|
1156
1156
|
}
|
|
1157
1157
|
),
|
|
1158
1158
|
/* @__PURE__ */ t.jsx(
|
|
1159
1159
|
ce,
|
|
1160
1160
|
{
|
|
1161
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1162
|
-
onClick:
|
|
1161
|
+
icon: /* @__PURE__ */ t.jsx(br, {}),
|
|
1162
|
+
onClick: i,
|
|
1163
1163
|
"aria-label": "Close"
|
|
1164
1164
|
}
|
|
1165
1165
|
)
|
|
1166
1166
|
]
|
|
1167
1167
|
}
|
|
1168
1168
|
),
|
|
1169
|
-
|
|
1170
|
-
|
|
1169
|
+
o && /* @__PURE__ */ t.jsxs(
|
|
1170
|
+
pr,
|
|
1171
1171
|
{ width: "100%", children: [
|
|
1172
1172
|
/* @__PURE__ */ t.jsx(
|
|
1173
|
-
|
|
1173
|
+
gr,
|
|
1174
1174
|
{
|
|
1175
|
-
onChange: (
|
|
1176
|
-
|
|
1175
|
+
onChange: (P) => {
|
|
1176
|
+
he(P.target.value);
|
|
1177
1177
|
},
|
|
1178
1178
|
placeholder: "Search",
|
|
1179
1179
|
autoFocus: !0,
|
|
@@ -1182,8 +1182,8 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
),
|
|
1184
1184
|
/* @__PURE__ */ t.jsx(
|
|
1185
|
-
|
|
1186
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(
|
|
1185
|
+
xr,
|
|
1186
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(vr, { as: Rt, color: "gray.500" }) }
|
|
1187
1187
|
)
|
|
1188
1188
|
] }
|
|
1189
1189
|
)
|
|
@@ -1191,15 +1191,15 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
),
|
|
1193
1193
|
/* @__PURE__ */ t.jsx(
|
|
1194
|
-
|
|
1194
|
+
Qt,
|
|
1195
1195
|
{
|
|
1196
1196
|
paddingX: "0",
|
|
1197
1197
|
paddingBottom: [6, null, null, 4],
|
|
1198
|
-
"data-testid": `navbar-drawer-body-${
|
|
1198
|
+
"data-testid": `navbar-drawer-body-${u.toLowerCase()}`,
|
|
1199
1199
|
children: /* @__PURE__ */ t.jsxs(
|
|
1200
1200
|
et.div,
|
|
1201
1201
|
{
|
|
1202
|
-
...
|
|
1202
|
+
...p ? {
|
|
1203
1203
|
initial: { opacity: 0, y: -5 },
|
|
1204
1204
|
animate: { opacity: 1, y: 0 },
|
|
1205
1205
|
exit: { opacity: 0, y: -5 },
|
|
@@ -1216,17 +1216,17 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1216
1216
|
} : {},
|
|
1217
1217
|
style: {
|
|
1218
1218
|
display: "flex",
|
|
1219
|
-
flexDirection:
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1219
|
+
flexDirection: $r(
|
|
1220
|
+
j,
|
|
1221
|
+
p,
|
|
1222
|
+
o
|
|
1223
1223
|
),
|
|
1224
1224
|
gap: "24px",
|
|
1225
1225
|
justifyContent: "space-between"
|
|
1226
1226
|
},
|
|
1227
1227
|
children: [
|
|
1228
|
-
|
|
1229
|
-
|
|
1228
|
+
s ? /* @__PURE__ */ t.jsx(
|
|
1229
|
+
b,
|
|
1230
1230
|
{
|
|
1231
1231
|
gap: [3, null, null, 6],
|
|
1232
1232
|
display: "flex",
|
|
@@ -1235,26 +1235,26 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1235
1235
|
flexWrap: "wrap",
|
|
1236
1236
|
flexDirection: ["column", null, null, "row"]
|
|
1237
1237
|
},
|
|
1238
|
-
children:
|
|
1238
|
+
children: s
|
|
1239
1239
|
}
|
|
1240
1240
|
) : null,
|
|
1241
1241
|
/* @__PURE__ */ t.jsxs(
|
|
1242
|
-
|
|
1242
|
+
C,
|
|
1243
1243
|
{
|
|
1244
1244
|
position: [null, null, null, "relative"],
|
|
1245
1245
|
flexDirection: "column",
|
|
1246
1246
|
gap: "6",
|
|
1247
|
-
width: ["100%", null, null,
|
|
1247
|
+
width: ["100%", null, null, o ? null : "auto"],
|
|
1248
1248
|
children: [
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1249
|
+
c ? /* @__PURE__ */ t.jsx(b, { children: c }) : null,
|
|
1250
|
+
f && !p ? /* @__PURE__ */ t.jsx(b, { children: f }) : null,
|
|
1251
|
+
h ? /* @__PURE__ */ t.jsx(
|
|
1252
|
+
b,
|
|
1253
1253
|
{
|
|
1254
1254
|
width: ["100%"],
|
|
1255
1255
|
position: [null, null, null, "absolute"],
|
|
1256
1256
|
bottom: [null, null, null, 0],
|
|
1257
|
-
children:
|
|
1257
|
+
children: h
|
|
1258
1258
|
}
|
|
1259
1259
|
) : null
|
|
1260
1260
|
]
|
|
@@ -1262,7 +1262,7 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1262
1262
|
)
|
|
1263
1263
|
]
|
|
1264
1264
|
},
|
|
1265
|
-
|
|
1265
|
+
N
|
|
1266
1266
|
)
|
|
1267
1267
|
}
|
|
1268
1268
|
)
|
|
@@ -1274,41 +1274,41 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1274
1274
|
)
|
|
1275
1275
|
}
|
|
1276
1276
|
);
|
|
1277
|
-
},
|
|
1278
|
-
desktopTopButtons:
|
|
1279
|
-
kitRegistrationElement:
|
|
1280
|
-
profileElement:
|
|
1281
|
-
cartElement:
|
|
1282
|
-
onSearchClick:
|
|
1283
|
-
onMenuClick:
|
|
1284
|
-
hasSearch:
|
|
1285
|
-
logoLink:
|
|
1286
|
-
setTopOffset:
|
|
1287
|
-
linkComponent:
|
|
1288
|
-
onLogoClick:
|
|
1277
|
+
}, Mr = ({
|
|
1278
|
+
desktopTopButtons: n,
|
|
1279
|
+
kitRegistrationElement: i,
|
|
1280
|
+
profileElement: u,
|
|
1281
|
+
cartElement: c,
|
|
1282
|
+
onSearchClick: f,
|
|
1283
|
+
onMenuClick: s,
|
|
1284
|
+
hasSearch: h = !1,
|
|
1285
|
+
logoLink: y = "https://www.everlywell.com",
|
|
1286
|
+
setTopOffset: g,
|
|
1287
|
+
linkComponent: j,
|
|
1288
|
+
onLogoClick: o
|
|
1289
1289
|
}) => {
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1292
|
-
const
|
|
1293
|
-
return window.addEventListener(
|
|
1290
|
+
const R = dr(null), [m, p] = V(!1);
|
|
1291
|
+
Z(() => {
|
|
1292
|
+
const N = () => p(!0), Y = () => p(!1);
|
|
1293
|
+
return window.addEventListener(qe, N), window.addEventListener(Qe, Y), () => {
|
|
1294
1294
|
window.removeEventListener(
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
), window.removeEventListener(
|
|
1295
|
+
qe,
|
|
1296
|
+
N
|
|
1297
|
+
), window.removeEventListener(Qe, Y);
|
|
1298
1298
|
};
|
|
1299
1299
|
}, []);
|
|
1300
|
-
const
|
|
1301
|
-
if (
|
|
1302
|
-
const
|
|
1303
|
-
|
|
1300
|
+
const S = Et(() => {
|
|
1301
|
+
if (R.current) {
|
|
1302
|
+
const N = R.current.getBoundingClientRect();
|
|
1303
|
+
g(N.bottom);
|
|
1304
1304
|
}
|
|
1305
1305
|
}, []);
|
|
1306
|
-
return
|
|
1307
|
-
|
|
1308
|
-
}, [
|
|
1309
|
-
|
|
1306
|
+
return Z(() => {
|
|
1307
|
+
S();
|
|
1308
|
+
}, [S]), /* @__PURE__ */ t.jsx(
|
|
1309
|
+
b,
|
|
1310
1310
|
{
|
|
1311
|
-
ref:
|
|
1311
|
+
ref: R,
|
|
1312
1312
|
paddingY: "4",
|
|
1313
1313
|
paddingX: [4, null, null, 12],
|
|
1314
1314
|
borderBottom: "1px solid",
|
|
@@ -1317,74 +1317,74 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1317
1317
|
position: "sticky",
|
|
1318
1318
|
top: "0",
|
|
1319
1319
|
width: "100%",
|
|
1320
|
-
zIndex: ["sticky", null, null,
|
|
1321
|
-
onMouseEnter:
|
|
1320
|
+
zIndex: ["sticky", null, null, m ? "modal" : "sticky"],
|
|
1321
|
+
onMouseEnter: S,
|
|
1322
1322
|
children: /* @__PURE__ */ t.jsxs(
|
|
1323
|
-
|
|
1323
|
+
C,
|
|
1324
1324
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1325
1325
|
/* @__PURE__ */ t.jsxs(
|
|
1326
|
-
|
|
1326
|
+
C,
|
|
1327
1327
|
{ alignItems: "center", gap: "5", children: [
|
|
1328
1328
|
/* @__PURE__ */ t.jsx(
|
|
1329
|
-
|
|
1329
|
+
b,
|
|
1330
1330
|
{
|
|
1331
1331
|
"aria-label": "Go to homepage",
|
|
1332
|
-
onClick:
|
|
1333
|
-
as:
|
|
1334
|
-
...
|
|
1335
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1332
|
+
onClick: o,
|
|
1333
|
+
as: j || W,
|
|
1334
|
+
...de(y, !!j),
|
|
1335
|
+
children: /* @__PURE__ */ t.jsx(_t, { width: "116px" })
|
|
1336
1336
|
}
|
|
1337
1337
|
),
|
|
1338
1338
|
/* @__PURE__ */ t.jsx(
|
|
1339
|
-
|
|
1340
|
-
{ display: ["none", null, null, "flex"], children:
|
|
1339
|
+
C,
|
|
1340
|
+
{ display: ["none", null, null, "flex"], children: n }
|
|
1341
1341
|
)
|
|
1342
1342
|
] }
|
|
1343
1343
|
),
|
|
1344
1344
|
/* @__PURE__ */ t.jsxs(
|
|
1345
|
-
|
|
1345
|
+
C,
|
|
1346
1346
|
{ alignItems: "center", gap: "2", children: [
|
|
1347
1347
|
/* @__PURE__ */ t.jsx(
|
|
1348
|
-
|
|
1349
|
-
{ display: ["none", null, null, "block"], children:
|
|
1348
|
+
b,
|
|
1349
|
+
{ display: ["none", null, null, "block"], children: i }
|
|
1350
1350
|
),
|
|
1351
|
-
|
|
1351
|
+
h ? /* @__PURE__ */ t.jsx(
|
|
1352
1352
|
ce,
|
|
1353
1353
|
{
|
|
1354
1354
|
"aria-label": "Search",
|
|
1355
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1356
|
-
onClick:
|
|
1355
|
+
icon: /* @__PURE__ */ t.jsx(K, { as: Rt }),
|
|
1356
|
+
onClick: f
|
|
1357
1357
|
}
|
|
1358
1358
|
) : null,
|
|
1359
|
-
|
|
1359
|
+
c,
|
|
1360
1360
|
/* @__PURE__ */ t.jsx(
|
|
1361
|
-
|
|
1361
|
+
b,
|
|
1362
1362
|
{ display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
|
|
1363
1363
|
ce,
|
|
1364
1364
|
{
|
|
1365
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1365
|
+
icon: /* @__PURE__ */ t.jsx(jr, {}),
|
|
1366
1366
|
"aria-label": "menu",
|
|
1367
1367
|
"data-testid": "menu-button",
|
|
1368
|
-
onClick:
|
|
1368
|
+
onClick: s
|
|
1369
1369
|
}
|
|
1370
1370
|
) }
|
|
1371
1371
|
),
|
|
1372
|
-
/* @__PURE__ */ t.jsx(
|
|
1372
|
+
/* @__PURE__ */ t.jsx(b, { display: ["none", null, null, "block"], children: u })
|
|
1373
1373
|
] }
|
|
1374
1374
|
)
|
|
1375
1375
|
] }
|
|
1376
1376
|
)
|
|
1377
1377
|
}
|
|
1378
1378
|
);
|
|
1379
|
-
},
|
|
1380
|
-
count:
|
|
1381
|
-
...
|
|
1379
|
+
}, Br = ({
|
|
1380
|
+
count: n = 0,
|
|
1381
|
+
...i
|
|
1382
1382
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1383
|
-
|
|
1383
|
+
b,
|
|
1384
1384
|
{ position: "relative", display: "inline-block", children: [
|
|
1385
|
-
/* @__PURE__ */ t.jsx(ce, { icon: /* @__PURE__ */ t.jsx(
|
|
1386
|
-
|
|
1387
|
-
|
|
1385
|
+
/* @__PURE__ */ t.jsx(ce, { icon: /* @__PURE__ */ t.jsx(wr, {}), ...i }),
|
|
1386
|
+
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1387
|
+
b,
|
|
1388
1388
|
{
|
|
1389
1389
|
display: "flex",
|
|
1390
1390
|
minWidth: "20px",
|
|
@@ -1401,26 +1401,26 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1401
1401
|
color: "white",
|
|
1402
1402
|
fontSize: "xs",
|
|
1403
1403
|
fontWeight: "normal",
|
|
1404
|
-
children:
|
|
1404
|
+
children: n
|
|
1405
1405
|
}
|
|
1406
1406
|
)
|
|
1407
1407
|
] }
|
|
1408
|
-
),
|
|
1409
|
-
numDesktopLinks:
|
|
1410
|
-
showPromoButton:
|
|
1408
|
+
), tn = ({
|
|
1409
|
+
numDesktopLinks: n = 5,
|
|
1410
|
+
showPromoButton: i = !1
|
|
1411
1411
|
}) => /* @__PURE__ */ t.jsx(
|
|
1412
|
-
|
|
1412
|
+
er,
|
|
1413
1413
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1414
|
-
|
|
1414
|
+
b,
|
|
1415
1415
|
{
|
|
1416
1416
|
paddingY: 4,
|
|
1417
1417
|
paddingX: 6,
|
|
1418
1418
|
borderBottomWidth: "1px",
|
|
1419
1419
|
borderColor: "tints.lightCream",
|
|
1420
1420
|
children: /* @__PURE__ */ t.jsxs(
|
|
1421
|
-
|
|
1421
|
+
C,
|
|
1422
1422
|
{ justify: "space-between", align: "center", children: [
|
|
1423
|
-
/* @__PURE__ */ t.jsx(
|
|
1423
|
+
/* @__PURE__ */ t.jsx(Ge, { w: "120px", h: "48px" }),
|
|
1424
1424
|
/* @__PURE__ */ t.jsxs(
|
|
1425
1425
|
ft,
|
|
1426
1426
|
{
|
|
@@ -1429,10 +1429,10 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1429
1429
|
display: ["none", null, null, "flex"],
|
|
1430
1430
|
"data-testid": "desktop-nav",
|
|
1431
1431
|
children: [
|
|
1432
|
-
Array.from({ length:
|
|
1433
|
-
(
|
|
1432
|
+
Array.from({ length: n }).map(
|
|
1433
|
+
(u, c) => /* @__PURE__ */ t.jsx(Ge, { width: "90px", height: "48px" }, c)
|
|
1434
1434
|
),
|
|
1435
|
-
|
|
1435
|
+
i && /* @__PURE__ */ t.jsx(Ge, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1436
1436
|
]
|
|
1437
1437
|
}
|
|
1438
1438
|
),
|
|
@@ -1440,7 +1440,7 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1440
1440
|
ft,
|
|
1441
1441
|
{ spacing: 4, ml: "auto", children: [
|
|
1442
1442
|
/* @__PURE__ */ t.jsx(
|
|
1443
|
-
|
|
1443
|
+
Le,
|
|
1444
1444
|
{
|
|
1445
1445
|
width: "120px",
|
|
1446
1446
|
height: "48px",
|
|
@@ -1449,11 +1449,11 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
),
|
|
1451
1451
|
" ",
|
|
1452
|
-
/* @__PURE__ */ t.jsx(
|
|
1452
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1453
1453
|
" ",
|
|
1454
|
-
/* @__PURE__ */ t.jsx(
|
|
1454
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1455
1455
|
" ",
|
|
1456
|
-
/* @__PURE__ */ t.jsx(
|
|
1456
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1457
1457
|
" "
|
|
1458
1458
|
] }
|
|
1459
1459
|
)
|
|
@@ -1461,122 +1461,122 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1461
1461
|
)
|
|
1462
1462
|
}
|
|
1463
1463
|
) }
|
|
1464
|
-
),
|
|
1465
|
-
source:
|
|
1466
|
-
onSearchCallback:
|
|
1467
|
-
isActive:
|
|
1464
|
+
), Wr = ({
|
|
1465
|
+
source: n,
|
|
1466
|
+
onSearchCallback: i,
|
|
1467
|
+
isActive: u
|
|
1468
1468
|
}) => {
|
|
1469
|
-
const [
|
|
1470
|
-
if (!
|
|
1471
|
-
const
|
|
1472
|
-
return
|
|
1473
|
-
const
|
|
1474
|
-
return
|
|
1475
|
-
}).sort((
|
|
1476
|
-
},
|
|
1477
|
-
if (
|
|
1478
|
-
|
|
1469
|
+
const [c, f] = V(""), [s, h] = V([]), y = (o, R) => {
|
|
1470
|
+
if (!o) return [];
|
|
1471
|
+
const m = o.toLowerCase();
|
|
1472
|
+
return R.filter((p) => {
|
|
1473
|
+
const S = p.label.toLowerCase().includes(m), N = typeof p.additionalContent == "string" && p.additionalContent.toLowerCase().includes(m);
|
|
1474
|
+
return S || N;
|
|
1475
|
+
}).sort((p, S) => p.label.localeCompare(S.label));
|
|
1476
|
+
}, g = (o) => {
|
|
1477
|
+
if (f(o), !o) {
|
|
1478
|
+
h([]);
|
|
1479
1479
|
return;
|
|
1480
1480
|
}
|
|
1481
|
-
const
|
|
1482
|
-
|
|
1483
|
-
},
|
|
1484
|
-
|
|
1481
|
+
const R = y(o, n);
|
|
1482
|
+
h(R), i && i(o, R);
|
|
1483
|
+
}, j = () => {
|
|
1484
|
+
f(""), h([]);
|
|
1485
1485
|
};
|
|
1486
|
-
return
|
|
1487
|
-
|
|
1488
|
-
}, [
|
|
1489
|
-
query:
|
|
1490
|
-
results:
|
|
1491
|
-
handleClose:
|
|
1492
|
-
handleSearch:
|
|
1486
|
+
return Z(() => {
|
|
1487
|
+
u || (f(""), h([]));
|
|
1488
|
+
}, [u]), {
|
|
1489
|
+
query: c,
|
|
1490
|
+
results: s,
|
|
1491
|
+
handleClose: j,
|
|
1492
|
+
handleSearch: g
|
|
1493
1493
|
};
|
|
1494
|
-
},
|
|
1495
|
-
const
|
|
1496
|
-
return
|
|
1497
|
-
var
|
|
1498
|
-
const
|
|
1499
|
-
const
|
|
1500
|
-
return [...
|
|
1494
|
+
}, Nr = (n) => {
|
|
1495
|
+
const i = /* @__PURE__ */ new Set();
|
|
1496
|
+
return n.reduce((u, c) => {
|
|
1497
|
+
var s;
|
|
1498
|
+
const f = ((s = c.sections) == null ? void 0 : s.reduce((h, y) => {
|
|
1499
|
+
const g = y.links.filter((j) => i.has(j.label) || j.isSearchable !== !0 ? !1 : (i.add(j.label), !0));
|
|
1500
|
+
return [...h, ...g];
|
|
1501
1501
|
}, [])) ?? [];
|
|
1502
|
-
return [...
|
|
1502
|
+
return [...u, ...f];
|
|
1503
1503
|
}, []);
|
|
1504
|
-
},
|
|
1505
|
-
categories:
|
|
1506
|
-
onCartClick:
|
|
1507
|
-
mainCategoryLabel:
|
|
1508
|
-
logoLink:
|
|
1509
|
-
hasSearch:
|
|
1510
|
-
onSearchClick:
|
|
1511
|
-
registrationUrl:
|
|
1512
|
-
profileUrl:
|
|
1513
|
-
mobileBottomButtons:
|
|
1514
|
-
numberOfCartItems:
|
|
1515
|
-
linkComponent:
|
|
1516
|
-
onSearchCallback:
|
|
1517
|
-
onLinkClick:
|
|
1518
|
-
onCategoryOpen:
|
|
1519
|
-
onMobileMenuOpen:
|
|
1520
|
-
onBackToMainMenu:
|
|
1521
|
-
onRegisterKitClick:
|
|
1504
|
+
}, rn = ({
|
|
1505
|
+
categories: n = [],
|
|
1506
|
+
onCartClick: i,
|
|
1507
|
+
mainCategoryLabel: u = "Menu",
|
|
1508
|
+
logoLink: c = "https://www.everlywell.com",
|
|
1509
|
+
hasSearch: f = !0,
|
|
1510
|
+
onSearchClick: s,
|
|
1511
|
+
registrationUrl: h,
|
|
1512
|
+
profileUrl: y = "https://secure.everlywell.com/login",
|
|
1513
|
+
mobileBottomButtons: g = [],
|
|
1514
|
+
numberOfCartItems: j = 0,
|
|
1515
|
+
linkComponent: o,
|
|
1516
|
+
onSearchCallback: R,
|
|
1517
|
+
onLinkClick: m,
|
|
1518
|
+
onCategoryOpen: p,
|
|
1519
|
+
onMobileMenuOpen: S,
|
|
1520
|
+
onBackToMainMenu: N,
|
|
1521
|
+
onRegisterKitClick: Y,
|
|
1522
1522
|
onProfileClick: M,
|
|
1523
|
-
onLogoClick:
|
|
1524
|
-
shopAllProductsUrl:
|
|
1525
|
-
onShopAllProductsClick:
|
|
1523
|
+
onLogoClick: T,
|
|
1524
|
+
shopAllProductsUrl: fe,
|
|
1525
|
+
onShopAllProductsClick: he
|
|
1526
1526
|
}) => {
|
|
1527
|
-
var
|
|
1528
|
-
const [pe,
|
|
1527
|
+
var J, be, je;
|
|
1528
|
+
const [pe, Q] = V(!1), [X, P] = V(!1), [_, $] = V(null), [Re, ge] = V(!1), [F, G] = V(!1), [U, _e] = V(0), Se = Pe({
|
|
1529
1529
|
base: !1,
|
|
1530
1530
|
tablet: !1,
|
|
1531
1531
|
largeTablet: !1,
|
|
1532
1532
|
desktop: !0
|
|
1533
1533
|
}) ?? !1;
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
}, [
|
|
1534
|
+
Z(() => {
|
|
1535
|
+
le(), $(null);
|
|
1536
|
+
}, [Se]);
|
|
1537
1537
|
const {
|
|
1538
|
-
query:
|
|
1539
|
-
results:
|
|
1540
|
-
handleSearch:
|
|
1541
|
-
} =
|
|
1542
|
-
source:
|
|
1543
|
-
onSearchCallback:
|
|
1544
|
-
isActive:
|
|
1545
|
-
}),
|
|
1546
|
-
|
|
1547
|
-
{ gap:
|
|
1548
|
-
|
|
1549
|
-
|
|
1538
|
+
query: Te,
|
|
1539
|
+
results: re,
|
|
1540
|
+
handleSearch: ke
|
|
1541
|
+
} = Wr({
|
|
1542
|
+
source: Nr(n),
|
|
1543
|
+
onSearchCallback: R,
|
|
1544
|
+
isActive: X
|
|
1545
|
+
}), xe = re.length > 0, ne = o || W, De = de(fe, !!o), $e = Te && /* @__PURE__ */ t.jsxs(
|
|
1546
|
+
C,
|
|
1547
|
+
{ gap: xe ? "6" : 0, direction: "column", children: [
|
|
1548
|
+
xe ? /* @__PURE__ */ t.jsx(L, { color: "tints.uiGrey", children: `${re.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1549
|
+
C,
|
|
1550
1550
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1551
1551
|
/* @__PURE__ */ t.jsx(
|
|
1552
|
-
|
|
1552
|
+
L,
|
|
1553
1553
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1554
1554
|
),
|
|
1555
1555
|
/* @__PURE__ */ t.jsx(
|
|
1556
|
-
|
|
1556
|
+
Ct,
|
|
1557
1557
|
{
|
|
1558
1558
|
as: ne,
|
|
1559
|
-
onClick:
|
|
1559
|
+
onClick: he,
|
|
1560
1560
|
_hover: { textDecoration: "none" },
|
|
1561
1561
|
width: ["100%", null, null, "auto"],
|
|
1562
|
-
...
|
|
1562
|
+
...De,
|
|
1563
1563
|
children: "Shop all products"
|
|
1564
1564
|
}
|
|
1565
1565
|
)
|
|
1566
1566
|
] }
|
|
1567
1567
|
),
|
|
1568
1568
|
/* @__PURE__ */ t.jsx(
|
|
1569
|
-
|
|
1570
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1569
|
+
tr,
|
|
1570
|
+
{ columns: [1, 1, 1, 4], children: re.map(
|
|
1571
1571
|
(a, I) => /* @__PURE__ */ t.jsx(
|
|
1572
|
-
|
|
1572
|
+
rr,
|
|
1573
1573
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1574
|
-
|
|
1574
|
+
Ze,
|
|
1575
1575
|
{
|
|
1576
1576
|
href: a.href,
|
|
1577
1577
|
label: a.label,
|
|
1578
1578
|
additionalContent: a == null ? void 0 : a.additionalContent,
|
|
1579
|
-
linkComponent:
|
|
1579
|
+
linkComponent: o
|
|
1580
1580
|
}
|
|
1581
1581
|
) },
|
|
1582
1582
|
`${a.label}-${I}`
|
|
@@ -1584,137 +1584,137 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1584
1584
|
) }
|
|
1585
1585
|
)
|
|
1586
1586
|
] }
|
|
1587
|
-
),
|
|
1588
|
-
|
|
1589
|
-
},
|
|
1590
|
-
|
|
1591
|
-
},
|
|
1592
|
-
|
|
1593
|
-
},
|
|
1594
|
-
|
|
1587
|
+
), le = () => {
|
|
1588
|
+
Q(!1), $(null);
|
|
1589
|
+
}, z = (a) => "href" in a, ve = (a) => {
|
|
1590
|
+
z(a) ? m == null || m(a.label) : $(a);
|
|
1591
|
+
}, ie = (a) => {
|
|
1592
|
+
ge(!0), P(!1), $(null), !z(a) && (a.sections || a.spotlightCards) && $(a);
|
|
1593
|
+
}, me = () => {
|
|
1594
|
+
ge(!1);
|
|
1595
1595
|
};
|
|
1596
|
-
|
|
1596
|
+
Z(() => {
|
|
1597
1597
|
const a = (I) => {
|
|
1598
|
-
|
|
1598
|
+
G(I.detail.isHovering);
|
|
1599
1599
|
};
|
|
1600
1600
|
return window.addEventListener(
|
|
1601
|
-
|
|
1601
|
+
Je,
|
|
1602
1602
|
a
|
|
1603
1603
|
), () => {
|
|
1604
1604
|
window.removeEventListener(
|
|
1605
|
-
|
|
1605
|
+
Je,
|
|
1606
1606
|
a
|
|
1607
1607
|
);
|
|
1608
1608
|
};
|
|
1609
|
-
}, []),
|
|
1610
|
-
!
|
|
1611
|
-
}, [
|
|
1609
|
+
}, []), Z(() => {
|
|
1610
|
+
!Re && !F && ($(null), P(!1));
|
|
1611
|
+
}, [Re, F]), Z(() => {
|
|
1612
1612
|
let a = window.location.href;
|
|
1613
1613
|
const I = () => {
|
|
1614
1614
|
const O = window.location.href;
|
|
1615
|
-
O !== a && (a = O,
|
|
1616
|
-
},
|
|
1615
|
+
O !== a && (a = O, le(), $(null));
|
|
1616
|
+
}, q = setInterval(I, 100);
|
|
1617
1617
|
return window.addEventListener("popstate", I), () => {
|
|
1618
|
-
window.removeEventListener("popstate", I), clearInterval(
|
|
1618
|
+
window.removeEventListener("popstate", I), clearInterval(q);
|
|
1619
1619
|
};
|
|
1620
1620
|
}, []);
|
|
1621
|
-
const
|
|
1621
|
+
const oe = n == null ? void 0 : n.map(
|
|
1622
1622
|
(a, I) => /* @__PURE__ */ t.jsx(
|
|
1623
|
-
|
|
1623
|
+
Oe,
|
|
1624
1624
|
{
|
|
1625
1625
|
onMouseEnter: () => {
|
|
1626
|
-
|
|
1626
|
+
ie(a), p == null || p(a.label);
|
|
1627
1627
|
},
|
|
1628
|
-
onMouseLeave:
|
|
1629
|
-
isSelected: (
|
|
1630
|
-
as:
|
|
1631
|
-
href:
|
|
1632
|
-
onClick:
|
|
1628
|
+
onMouseLeave: me,
|
|
1629
|
+
isSelected: (_ == null ? void 0 : _.label) === a.label,
|
|
1630
|
+
as: z(a) && ne ? ne : W,
|
|
1631
|
+
href: z(a) ? a.href : void 0,
|
|
1632
|
+
onClick: z(a) ? () => m == null ? void 0 : m(a.label) : void 0,
|
|
1633
1633
|
...a.buttonProps,
|
|
1634
1634
|
children: a.label
|
|
1635
1635
|
},
|
|
1636
1636
|
`${a.label}-${I}`
|
|
1637
1637
|
)
|
|
1638
|
-
),
|
|
1639
|
-
(a) => !
|
|
1640
|
-
)) == null ? void 0 :
|
|
1638
|
+
), He = (J = n.filter(
|
|
1639
|
+
(a) => !z(a) && a.isMobileTopLink !== !1
|
|
1640
|
+
)) == null ? void 0 : J.map((a) => {
|
|
1641
1641
|
const I = a;
|
|
1642
1642
|
return /* @__PURE__ */ t.jsx(
|
|
1643
|
-
|
|
1643
|
+
b,
|
|
1644
1644
|
{
|
|
1645
1645
|
onClick: () => {
|
|
1646
|
-
|
|
1646
|
+
ve(I), p == null || p(I.label);
|
|
1647
1647
|
},
|
|
1648
1648
|
children: /* @__PURE__ */ t.jsx(
|
|
1649
|
-
|
|
1649
|
+
Ze,
|
|
1650
1650
|
{
|
|
1651
1651
|
label: I.label,
|
|
1652
1652
|
role: "link",
|
|
1653
1653
|
additionalContent: I.additionalContent,
|
|
1654
1654
|
mainTextFontSize: "3xl",
|
|
1655
|
-
linkComponent:
|
|
1655
|
+
linkComponent: o
|
|
1656
1656
|
}
|
|
1657
1657
|
)
|
|
1658
1658
|
},
|
|
1659
1659
|
I.label
|
|
1660
1660
|
);
|
|
1661
|
-
}),
|
|
1661
|
+
}), Ie = /* @__PURE__ */ t.jsxs(
|
|
1662
1662
|
t.Fragment,
|
|
1663
1663
|
{ children: [
|
|
1664
1664
|
/* @__PURE__ */ t.jsx(
|
|
1665
|
-
|
|
1665
|
+
Oe,
|
|
1666
1666
|
{
|
|
1667
|
-
as:
|
|
1668
|
-
href:
|
|
1667
|
+
as: W,
|
|
1668
|
+
href: y,
|
|
1669
1669
|
width: "100%",
|
|
1670
1670
|
backgroundColor: "tints.cream",
|
|
1671
1671
|
onClick: M,
|
|
1672
1672
|
children: /* @__PURE__ */ t.jsxs(
|
|
1673
|
-
|
|
1673
|
+
C,
|
|
1674
1674
|
{ gap: "2", children: [
|
|
1675
1675
|
"My Everly",
|
|
1676
|
-
/* @__PURE__ */ t.jsx(
|
|
1676
|
+
/* @__PURE__ */ t.jsx(K, { as: pt, size: 24 })
|
|
1677
1677
|
] }
|
|
1678
1678
|
)
|
|
1679
1679
|
},
|
|
1680
1680
|
"my-everly"
|
|
1681
1681
|
),
|
|
1682
1682
|
/* @__PURE__ */ t.jsx(
|
|
1683
|
-
|
|
1683
|
+
Oe,
|
|
1684
1684
|
{
|
|
1685
|
-
as:
|
|
1685
|
+
as: W,
|
|
1686
1686
|
width: "100%",
|
|
1687
|
-
href:
|
|
1687
|
+
href: h,
|
|
1688
1688
|
backgroundColor: "tints.cream",
|
|
1689
|
-
onClick:
|
|
1689
|
+
onClick: Y,
|
|
1690
1690
|
children: /* @__PURE__ */ t.jsxs(
|
|
1691
|
-
|
|
1691
|
+
C,
|
|
1692
1692
|
{ gap: "2", children: [
|
|
1693
1693
|
"Register kit",
|
|
1694
|
-
/* @__PURE__ */ t.jsx(
|
|
1694
|
+
/* @__PURE__ */ t.jsx(K, { as: Cr, size: 24 })
|
|
1695
1695
|
] }
|
|
1696
1696
|
)
|
|
1697
1697
|
},
|
|
1698
1698
|
"register-kit"
|
|
1699
1699
|
)
|
|
1700
1700
|
] }
|
|
1701
|
-
),
|
|
1702
|
-
|
|
1701
|
+
), Fe = /* @__PURE__ */ t.jsxs(
|
|
1702
|
+
C,
|
|
1703
1703
|
{ gap: "2", flexDirection: "column", children: [
|
|
1704
|
-
|
|
1705
|
-
|
|
1704
|
+
g,
|
|
1705
|
+
Ie
|
|
1706
1706
|
] }
|
|
1707
|
-
),
|
|
1708
|
-
|
|
1709
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (be =
|
|
1710
|
-
const
|
|
1707
|
+
), Me = _ ? /* @__PURE__ */ t.jsx(
|
|
1708
|
+
C,
|
|
1709
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (be = _ == null ? void 0 : _.sections) == null ? void 0 : be.map((a, I) => {
|
|
1710
|
+
const q = [];
|
|
1711
1711
|
for (let O = 0; O < a.links.length; O += 3)
|
|
1712
|
-
|
|
1712
|
+
q.push(a.links.slice(O, O + 3));
|
|
1713
1713
|
return /* @__PURE__ */ t.jsxs(
|
|
1714
|
-
|
|
1714
|
+
b,
|
|
1715
1715
|
{ children: [
|
|
1716
1716
|
/* @__PURE__ */ t.jsx(
|
|
1717
|
-
|
|
1717
|
+
L,
|
|
1718
1718
|
{
|
|
1719
1719
|
fontSize: "md",
|
|
1720
1720
|
color: "tints.uiGrey",
|
|
@@ -1723,32 +1723,32 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
),
|
|
1725
1725
|
/* @__PURE__ */ t.jsx(
|
|
1726
|
-
|
|
1726
|
+
C,
|
|
1727
1727
|
{
|
|
1728
1728
|
flexDirection: ["column", null, null, "row"],
|
|
1729
1729
|
gap: [null, null, null, 8],
|
|
1730
|
-
children:
|
|
1731
|
-
(O,
|
|
1732
|
-
|
|
1730
|
+
children: q == null ? void 0 : q.map(
|
|
1731
|
+
(O, Be) => /* @__PURE__ */ t.jsx(
|
|
1732
|
+
C,
|
|
1733
1733
|
{
|
|
1734
1734
|
flexDirection: ["column"],
|
|
1735
1735
|
gap: [null, null, null, 5],
|
|
1736
1736
|
marginLeft: [null, null, null, -2],
|
|
1737
1737
|
children: O == null ? void 0 : O.map(
|
|
1738
|
-
(
|
|
1739
|
-
|
|
1738
|
+
(ee) => /* @__PURE__ */ t.jsx(
|
|
1739
|
+
Ze,
|
|
1740
1740
|
{
|
|
1741
|
-
label:
|
|
1742
|
-
href:
|
|
1743
|
-
additionalContent:
|
|
1744
|
-
linkComponent:
|
|
1745
|
-
onClick: () =>
|
|
1741
|
+
label: ee.label,
|
|
1742
|
+
href: ee.href,
|
|
1743
|
+
additionalContent: ee.additionalContent,
|
|
1744
|
+
linkComponent: o,
|
|
1745
|
+
onClick: () => m == null ? void 0 : m(ee.label)
|
|
1746
1746
|
},
|
|
1747
|
-
|
|
1747
|
+
ee.label
|
|
1748
1748
|
)
|
|
1749
1749
|
)
|
|
1750
1750
|
},
|
|
1751
|
-
|
|
1751
|
+
Be
|
|
1752
1752
|
)
|
|
1753
1753
|
)
|
|
1754
1754
|
}
|
|
@@ -1757,110 +1757,492 @@ const Ye = 60, xt = 6, gn = (l) => {
|
|
|
1757
1757
|
`${a.title}-${I}`
|
|
1758
1758
|
);
|
|
1759
1759
|
}) }
|
|
1760
|
-
) : null,
|
|
1761
|
-
(a) => /* @__PURE__ */ t.jsx(
|
|
1762
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1760
|
+
) : null, ae = _ != null && _.spotlightCards ? (je = _.spotlightCards) == null ? void 0 : je.map(
|
|
1761
|
+
(a) => /* @__PURE__ */ t.jsx(Ar, { ...a }, a.title)
|
|
1762
|
+
) : /* @__PURE__ */ t.jsx(b, {});
|
|
1763
1763
|
return /* @__PURE__ */ t.jsxs(
|
|
1764
1764
|
t.Fragment,
|
|
1765
1765
|
{ children: [
|
|
1766
1766
|
/* @__PURE__ */ t.jsx(
|
|
1767
|
-
|
|
1767
|
+
Mr,
|
|
1768
1768
|
{
|
|
1769
|
-
desktopTopButtons:
|
|
1769
|
+
desktopTopButtons: oe,
|
|
1770
1770
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1771
|
-
|
|
1771
|
+
Oe,
|
|
1772
1772
|
{
|
|
1773
|
-
as:
|
|
1774
|
-
href:
|
|
1775
|
-
onClick:
|
|
1773
|
+
as: W,
|
|
1774
|
+
href: h,
|
|
1775
|
+
onClick: Y,
|
|
1776
1776
|
backgroundColor: "tints.cream",
|
|
1777
1777
|
children: "Register Kit"
|
|
1778
1778
|
}
|
|
1779
1779
|
),
|
|
1780
1780
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1781
|
-
|
|
1782
|
-
{ href:
|
|
1781
|
+
W,
|
|
1782
|
+
{ href: y, "aria-label": "login", onClick: M, children: /* @__PURE__ */ t.jsx(ce, { icon: /* @__PURE__ */ t.jsx(K, { as: pt }), "aria-label": "Profile" }) }
|
|
1783
1783
|
),
|
|
1784
1784
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1785
|
-
|
|
1785
|
+
Br,
|
|
1786
1786
|
{
|
|
1787
1787
|
"aria-label": "Cart",
|
|
1788
|
-
count:
|
|
1789
|
-
onClick:
|
|
1788
|
+
count: j,
|
|
1789
|
+
onClick: i
|
|
1790
1790
|
}
|
|
1791
1791
|
),
|
|
1792
1792
|
onSearchClick: () => {
|
|
1793
|
-
|
|
1793
|
+
P(!X), s == null || s();
|
|
1794
1794
|
},
|
|
1795
1795
|
onMenuClick: () => {
|
|
1796
|
-
|
|
1796
|
+
Q(!0), S == null || S();
|
|
1797
1797
|
},
|
|
1798
|
-
hasSearch:
|
|
1799
|
-
logoLink:
|
|
1800
|
-
linkComponent:
|
|
1801
|
-
onLogoClick:
|
|
1802
|
-
setTopOffset:
|
|
1798
|
+
hasSearch: f,
|
|
1799
|
+
logoLink: c,
|
|
1800
|
+
linkComponent: o,
|
|
1801
|
+
onLogoClick: T,
|
|
1802
|
+
setTopOffset: _e
|
|
1803
1803
|
}
|
|
1804
1804
|
),
|
|
1805
1805
|
/* @__PURE__ */ t.jsxs(
|
|
1806
|
-
|
|
1806
|
+
b,
|
|
1807
1807
|
{ position: "relative", zIndex: "modal", children: [
|
|
1808
1808
|
/* @__PURE__ */ t.jsx(
|
|
1809
|
-
|
|
1809
|
+
Ke,
|
|
1810
1810
|
{
|
|
1811
1811
|
isOpen: pe,
|
|
1812
|
-
onClose:
|
|
1813
|
-
title:
|
|
1814
|
-
navDrawerLinks:
|
|
1815
|
-
bottomNavButtons:
|
|
1812
|
+
onClose: le,
|
|
1813
|
+
title: u,
|
|
1814
|
+
navDrawerLinks: He,
|
|
1815
|
+
bottomNavButtons: Fe,
|
|
1816
1816
|
hasBackButton: !1,
|
|
1817
|
-
topOffset:
|
|
1817
|
+
topOffset: U
|
|
1818
1818
|
}
|
|
1819
1819
|
),
|
|
1820
1820
|
/* @__PURE__ */ t.jsx(
|
|
1821
|
-
|
|
1821
|
+
Ke,
|
|
1822
1822
|
{
|
|
1823
|
-
isOpen: !!
|
|
1823
|
+
isOpen: !!_,
|
|
1824
1824
|
onClose: () => {
|
|
1825
|
-
|
|
1825
|
+
le(), $(null);
|
|
1826
1826
|
},
|
|
1827
|
-
title: (
|
|
1828
|
-
navDrawerLinks:
|
|
1829
|
-
onBackClick: () =>
|
|
1830
|
-
spotlightCards:
|
|
1831
|
-
hasOnlySpotlightCards:
|
|
1832
|
-
bottomButton:
|
|
1833
|
-
topOffset:
|
|
1827
|
+
title: (_ == null ? void 0 : _.label) || "",
|
|
1828
|
+
navDrawerLinks: Me,
|
|
1829
|
+
onBackClick: () => $(null),
|
|
1830
|
+
spotlightCards: ae,
|
|
1831
|
+
hasOnlySpotlightCards: _ == null ? void 0 : _.hasOnlySpotlightCards,
|
|
1832
|
+
bottomButton: _ == null ? void 0 : _.bottomButton,
|
|
1833
|
+
topOffset: U
|
|
1834
1834
|
}
|
|
1835
1835
|
),
|
|
1836
1836
|
/* @__PURE__ */ t.jsx(
|
|
1837
|
-
|
|
1837
|
+
Ke,
|
|
1838
1838
|
{
|
|
1839
|
-
isOpen:
|
|
1840
|
-
onClose: () =>
|
|
1839
|
+
isOpen: X,
|
|
1840
|
+
onClose: () => P(!1),
|
|
1841
1841
|
title: "Search",
|
|
1842
|
-
navDrawerLinks:
|
|
1843
|
-
onSearch:
|
|
1842
|
+
navDrawerLinks: $e,
|
|
1843
|
+
onSearch: ke,
|
|
1844
1844
|
hasSearch: !0,
|
|
1845
1845
|
hasBackButton: !1,
|
|
1846
|
-
topOffset:
|
|
1846
|
+
topOffset: U
|
|
1847
1847
|
}
|
|
1848
1848
|
)
|
|
1849
1849
|
] }
|
|
1850
1850
|
)
|
|
1851
1851
|
] }
|
|
1852
1852
|
);
|
|
1853
|
-
}
|
|
1853
|
+
}, jt = ({ links: n, linkComponent: i, onLinkClick: u }) => {
|
|
1854
|
+
const c = i || W, f = (s) => {
|
|
1855
|
+
u && u(s);
|
|
1856
|
+
};
|
|
1857
|
+
return /* @__PURE__ */ t.jsx(
|
|
1858
|
+
C,
|
|
1859
|
+
{ direction: "column", gap: 6, children: n.map(
|
|
1860
|
+
(s) => /* @__PURE__ */ t.jsx(
|
|
1861
|
+
L,
|
|
1862
|
+
{
|
|
1863
|
+
as: c,
|
|
1864
|
+
color: "white",
|
|
1865
|
+
size: "lg",
|
|
1866
|
+
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
1867
|
+
onClick: () => f(s.label),
|
|
1868
|
+
...de(s.href, !!i),
|
|
1869
|
+
children: s.label
|
|
1870
|
+
},
|
|
1871
|
+
s.label
|
|
1872
|
+
)
|
|
1873
|
+
) }
|
|
1874
|
+
);
|
|
1875
|
+
}, Vr = ({ title: n, links: i, isLast: u }) => {
|
|
1876
|
+
const c = u ? "transparent" : `${Ee.colors.viridian.lighter}20`;
|
|
1877
|
+
return i ? /* @__PURE__ */ t.jsx(
|
|
1878
|
+
lr,
|
|
1879
|
+
{ borderColor: c, children: ({ isExpanded: f }) => /* @__PURE__ */ t.jsxs(
|
|
1880
|
+
t.Fragment,
|
|
1881
|
+
{ children: [
|
|
1882
|
+
/* @__PURE__ */ t.jsxs(
|
|
1883
|
+
ir,
|
|
1884
|
+
{ paddingX: 0, paddingY: 4, _hover: { bg: "transparent" }, children: [
|
|
1885
|
+
/* @__PURE__ */ t.jsx(
|
|
1886
|
+
L,
|
|
1887
|
+
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: n }
|
|
1888
|
+
),
|
|
1889
|
+
/* @__PURE__ */ t.jsx(
|
|
1890
|
+
K,
|
|
1891
|
+
{
|
|
1892
|
+
as: yr,
|
|
1893
|
+
size: "sm",
|
|
1894
|
+
color: "viridian.lighter",
|
|
1895
|
+
transform: f ? "rotate(-180deg)" : "rotate(0deg)",
|
|
1896
|
+
transition: "transform 0.3s ease"
|
|
1897
|
+
}
|
|
1898
|
+
)
|
|
1899
|
+
] }
|
|
1900
|
+
),
|
|
1901
|
+
/* @__PURE__ */ t.jsx(
|
|
1902
|
+
or,
|
|
1903
|
+
{ pb: 4, px: 0, children: i }
|
|
1904
|
+
)
|
|
1905
|
+
] }
|
|
1906
|
+
) }
|
|
1907
|
+
) : null;
|
|
1908
|
+
}, zr = ({ title: n, links: i }) => i ? /* @__PURE__ */ t.jsxs(
|
|
1909
|
+
b,
|
|
1910
|
+
{ children: [
|
|
1911
|
+
/* @__PURE__ */ t.jsx(
|
|
1912
|
+
L,
|
|
1913
|
+
{ color: "viridian.lighter", mb: 6, fontSize: "lg", children: n }
|
|
1914
|
+
),
|
|
1915
|
+
i
|
|
1916
|
+
] }
|
|
1917
|
+
) : null, Yr = ({
|
|
1918
|
+
sections: n,
|
|
1919
|
+
linkComponent: i,
|
|
1920
|
+
onLinkClick: u
|
|
1921
|
+
}) => Pe({
|
|
1922
|
+
base: !1,
|
|
1923
|
+
tablet: !1,
|
|
1924
|
+
largeTablet: !0,
|
|
1925
|
+
desktop: !0
|
|
1926
|
+
}) ? /* @__PURE__ */ t.jsx(
|
|
1927
|
+
C,
|
|
1928
|
+
{
|
|
1929
|
+
justify: "space-between",
|
|
1930
|
+
align: "flex-start",
|
|
1931
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1932
|
+
C,
|
|
1933
|
+
{ gap: 120, children: n.map(
|
|
1934
|
+
({ title: f, links: s }) => /* @__PURE__ */ t.jsx(
|
|
1935
|
+
zr,
|
|
1936
|
+
{
|
|
1937
|
+
title: f,
|
|
1938
|
+
links: /* @__PURE__ */ t.jsx(
|
|
1939
|
+
jt,
|
|
1940
|
+
{
|
|
1941
|
+
links: s,
|
|
1942
|
+
linkComponent: i,
|
|
1943
|
+
onLinkClick: u
|
|
1944
|
+
}
|
|
1945
|
+
)
|
|
1946
|
+
},
|
|
1947
|
+
f
|
|
1948
|
+
)
|
|
1949
|
+
) }
|
|
1950
|
+
)
|
|
1951
|
+
}
|
|
1952
|
+
) : /* @__PURE__ */ t.jsx(
|
|
1953
|
+
nr,
|
|
1954
|
+
{
|
|
1955
|
+
allowMultiple: !0,
|
|
1956
|
+
defaultIndex: [0],
|
|
1957
|
+
width: "100%",
|
|
1958
|
+
display: "flex",
|
|
1959
|
+
flexDirection: "column",
|
|
1960
|
+
children: n.map(
|
|
1961
|
+
({ title: f, links: s }, h) => /* @__PURE__ */ t.jsx(
|
|
1962
|
+
Vr,
|
|
1963
|
+
{
|
|
1964
|
+
title: f,
|
|
1965
|
+
links: /* @__PURE__ */ t.jsx(
|
|
1966
|
+
jt,
|
|
1967
|
+
{
|
|
1968
|
+
links: s,
|
|
1969
|
+
linkComponent: i,
|
|
1970
|
+
onLinkClick: u
|
|
1971
|
+
}
|
|
1972
|
+
),
|
|
1973
|
+
isLast: h === n.length - 1
|
|
1974
|
+
},
|
|
1975
|
+
f
|
|
1976
|
+
)
|
|
1977
|
+
)
|
|
1978
|
+
}
|
|
1979
|
+
), wt = {
|
|
1980
|
+
instagram: Rr,
|
|
1981
|
+
linkedin: _r,
|
|
1982
|
+
facebook: Sr,
|
|
1983
|
+
tiktok: Tr,
|
|
1984
|
+
x: kr
|
|
1985
|
+
}, Gr = ({
|
|
1986
|
+
socialLinks: n,
|
|
1987
|
+
onEmailSubmit: i,
|
|
1988
|
+
socialMediaLabel: u,
|
|
1989
|
+
newsletterLabel: c,
|
|
1990
|
+
onLinkClick: f
|
|
1991
|
+
}) => {
|
|
1992
|
+
const [s, h] = Ae.useState(""), y = () => {
|
|
1993
|
+
s && i && (i(s), h(""));
|
|
1994
|
+
}, g = (o) => {
|
|
1995
|
+
o.key === "Enter" && y();
|
|
1996
|
+
}, j = (o) => {
|
|
1997
|
+
f && f(o);
|
|
1998
|
+
};
|
|
1999
|
+
return /* @__PURE__ */ t.jsxs(
|
|
2000
|
+
b,
|
|
2001
|
+
{ width: ["100%", null, null, "440px"], children: [
|
|
2002
|
+
/* @__PURE__ */ t.jsxs(
|
|
2003
|
+
b,
|
|
2004
|
+
{ mb: [8, 10], children: [
|
|
2005
|
+
/* @__PURE__ */ t.jsx(
|
|
2006
|
+
L,
|
|
2007
|
+
{ color: "viridian.lighter", mb: 6, size: "lg", children: c }
|
|
2008
|
+
),
|
|
2009
|
+
/* @__PURE__ */ t.jsxs(
|
|
2010
|
+
ar,
|
|
2011
|
+
{ children: [
|
|
2012
|
+
/* @__PURE__ */ t.jsx(
|
|
2013
|
+
sr,
|
|
2014
|
+
{
|
|
2015
|
+
placeholder: "Enter your email",
|
|
2016
|
+
bg: "transparent",
|
|
2017
|
+
border: "1px solid",
|
|
2018
|
+
borderColor: "viridian.lighter",
|
|
2019
|
+
color: "viridian.lighter",
|
|
2020
|
+
_placeholder: { color: "viridian.lighter" },
|
|
2021
|
+
opacity: 0.66,
|
|
2022
|
+
height: "52px",
|
|
2023
|
+
pr: "48px",
|
|
2024
|
+
value: s,
|
|
2025
|
+
onChange: (o) => h(o.target.value),
|
|
2026
|
+
onKeyPress: g
|
|
2027
|
+
}
|
|
2028
|
+
),
|
|
2029
|
+
/* @__PURE__ */ t.jsx(
|
|
2030
|
+
ur,
|
|
2031
|
+
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2032
|
+
K,
|
|
2033
|
+
{
|
|
2034
|
+
as: Er,
|
|
2035
|
+
color: "viridian.lighter",
|
|
2036
|
+
width: "24px",
|
|
2037
|
+
height: "24px",
|
|
2038
|
+
opacity: 0.66,
|
|
2039
|
+
cursor: "pointer",
|
|
2040
|
+
onClick: y,
|
|
2041
|
+
"data-testid": "arrow-right-icon",
|
|
2042
|
+
role: "button",
|
|
2043
|
+
"aria-label": "Submit"
|
|
2044
|
+
}
|
|
2045
|
+
) }
|
|
2046
|
+
)
|
|
2047
|
+
] }
|
|
2048
|
+
)
|
|
2049
|
+
] }
|
|
2050
|
+
),
|
|
2051
|
+
/* @__PURE__ */ t.jsxs(
|
|
2052
|
+
b,
|
|
2053
|
+
{ children: [
|
|
2054
|
+
/* @__PURE__ */ t.jsx(
|
|
2055
|
+
L,
|
|
2056
|
+
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children: u }
|
|
2057
|
+
),
|
|
2058
|
+
/* @__PURE__ */ t.jsx(
|
|
2059
|
+
C,
|
|
2060
|
+
{ gap: 3, children: n == null ? void 0 : n.map(
|
|
2061
|
+
(o) => /* @__PURE__ */ t.jsx(
|
|
2062
|
+
W,
|
|
2063
|
+
{
|
|
2064
|
+
href: o.href,
|
|
2065
|
+
target: "_blank",
|
|
2066
|
+
rel: "noopener noreferrer",
|
|
2067
|
+
"aria-label": o.name,
|
|
2068
|
+
onClick: () => j(o.name),
|
|
2069
|
+
children: wt[o.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2070
|
+
K,
|
|
2071
|
+
{
|
|
2072
|
+
as: wt[o.name.toLowerCase()],
|
|
2073
|
+
color: "white",
|
|
2074
|
+
width: ["48px", null, "24px", null],
|
|
2075
|
+
height: ["48px", null, "24px", null]
|
|
2076
|
+
}
|
|
2077
|
+
)
|
|
2078
|
+
},
|
|
2079
|
+
o.name
|
|
2080
|
+
)
|
|
2081
|
+
) }
|
|
2082
|
+
)
|
|
2083
|
+
] }
|
|
2084
|
+
)
|
|
2085
|
+
] }
|
|
2086
|
+
);
|
|
2087
|
+
}, Ur = ({
|
|
2088
|
+
links: n,
|
|
2089
|
+
linkComponent: i,
|
|
2090
|
+
onLinkClick: u
|
|
2091
|
+
}) => {
|
|
2092
|
+
const c = i || W, f = (h) => {
|
|
2093
|
+
u && u(h);
|
|
2094
|
+
}, s = n == null ? void 0 : n.map(
|
|
2095
|
+
(h) => /* @__PURE__ */ t.jsx(
|
|
2096
|
+
L,
|
|
2097
|
+
{
|
|
2098
|
+
as: c,
|
|
2099
|
+
color: "viridian.lighter",
|
|
2100
|
+
size: "sm",
|
|
2101
|
+
_hover: { color: "white", textDecoration: "none" },
|
|
2102
|
+
onClick: () => f(h.label),
|
|
2103
|
+
...de(h.href, !!i),
|
|
2104
|
+
children: h.label
|
|
2105
|
+
},
|
|
2106
|
+
h.label
|
|
2107
|
+
)
|
|
2108
|
+
);
|
|
2109
|
+
return /* @__PURE__ */ t.jsxs(
|
|
2110
|
+
C,
|
|
2111
|
+
{
|
|
2112
|
+
direction: ["column", "column", "row"],
|
|
2113
|
+
justify: "space-between",
|
|
2114
|
+
align: ["flex-start", "flex-start", "center"],
|
|
2115
|
+
gap: [6, 6, 0],
|
|
2116
|
+
children: [
|
|
2117
|
+
/* @__PURE__ */ t.jsx(
|
|
2118
|
+
C,
|
|
2119
|
+
{
|
|
2120
|
+
direction: "row",
|
|
2121
|
+
flexWrap: "wrap",
|
|
2122
|
+
gap: [4, 6, 10],
|
|
2123
|
+
width: ["100%", "auto"],
|
|
2124
|
+
children: s
|
|
2125
|
+
}
|
|
2126
|
+
),
|
|
2127
|
+
/* @__PURE__ */ t.jsxs(
|
|
2128
|
+
L,
|
|
2129
|
+
{ color: "viridian.lighter", fontSize: "sm", children: [
|
|
2130
|
+
"© Everlywell ",
|
|
2131
|
+
(/* @__PURE__ */ new Date()).getFullYear()
|
|
2132
|
+
] }
|
|
2133
|
+
)
|
|
2134
|
+
]
|
|
2135
|
+
}
|
|
2136
|
+
);
|
|
2137
|
+
}, nn = ({
|
|
2138
|
+
navigationSections: n = [],
|
|
2139
|
+
disclaimer: i,
|
|
2140
|
+
newsletterLabel: u,
|
|
2141
|
+
socialMediaLabel: c,
|
|
2142
|
+
socialLinks: f,
|
|
2143
|
+
complianceLinks: s,
|
|
2144
|
+
linkComponent: h,
|
|
2145
|
+
onEmailSubmit: y,
|
|
2146
|
+
additionalContent: g,
|
|
2147
|
+
onLinkClick: j,
|
|
2148
|
+
onSocialMediaClick: o
|
|
2149
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
2150
|
+
b,
|
|
2151
|
+
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], children: /* @__PURE__ */ t.jsxs(
|
|
2152
|
+
cr,
|
|
2153
|
+
{ size: "fluid", children: [
|
|
2154
|
+
/* @__PURE__ */ t.jsxs(
|
|
2155
|
+
C,
|
|
2156
|
+
{ direction: "column", gap: [8, 12], children: [
|
|
2157
|
+
/* @__PURE__ */ t.jsx(
|
|
2158
|
+
b,
|
|
2159
|
+
{ children: /* @__PURE__ */ t.jsx(_t, { width: ["150px", "202px"], color: "white" }) }
|
|
2160
|
+
),
|
|
2161
|
+
/* @__PURE__ */ t.jsxs(
|
|
2162
|
+
C,
|
|
2163
|
+
{
|
|
2164
|
+
direction: ["column", null, null, "row"],
|
|
2165
|
+
justify: "space-between",
|
|
2166
|
+
align: ["flex-start"],
|
|
2167
|
+
gap: [8, 8, 8, 0],
|
|
2168
|
+
children: [
|
|
2169
|
+
/* @__PURE__ */ t.jsx(
|
|
2170
|
+
Yr,
|
|
2171
|
+
{
|
|
2172
|
+
sections: n,
|
|
2173
|
+
linkComponent: h,
|
|
2174
|
+
onLinkClick: j
|
|
2175
|
+
}
|
|
2176
|
+
),
|
|
2177
|
+
/* @__PURE__ */ t.jsx(
|
|
2178
|
+
Gr,
|
|
2179
|
+
{
|
|
2180
|
+
socialLinks: f,
|
|
2181
|
+
newsletterLabel: u,
|
|
2182
|
+
socialMediaLabel: c,
|
|
2183
|
+
onEmailSubmit: y,
|
|
2184
|
+
onLinkClick: o
|
|
2185
|
+
}
|
|
2186
|
+
)
|
|
2187
|
+
]
|
|
2188
|
+
}
|
|
2189
|
+
),
|
|
2190
|
+
/* @__PURE__ */ t.jsxs(
|
|
2191
|
+
C,
|
|
2192
|
+
{
|
|
2193
|
+
direction: ["column", "column", "row"],
|
|
2194
|
+
justify: "space-between",
|
|
2195
|
+
alignContent: "center",
|
|
2196
|
+
align: ["flex-start", "flex-start", "center"],
|
|
2197
|
+
gap: [6, 6, 0],
|
|
2198
|
+
children: [
|
|
2199
|
+
/* @__PURE__ */ t.jsx(
|
|
2200
|
+
L,
|
|
2201
|
+
{
|
|
2202
|
+
color: "viridian.lighter",
|
|
2203
|
+
fontSize: "sm",
|
|
2204
|
+
maxWidth: ["100%", "100%", "1024px"],
|
|
2205
|
+
children: i
|
|
2206
|
+
}
|
|
2207
|
+
),
|
|
2208
|
+
g
|
|
2209
|
+
]
|
|
2210
|
+
}
|
|
2211
|
+
)
|
|
2212
|
+
] }
|
|
2213
|
+
),
|
|
2214
|
+
/* @__PURE__ */ t.jsx(
|
|
2215
|
+
b,
|
|
2216
|
+
{
|
|
2217
|
+
borderTop: "1px solid",
|
|
2218
|
+
borderColor: `${Ee.colors.viridian.lighter}20`,
|
|
2219
|
+
marginTop: "10",
|
|
2220
|
+
marginBottom: "8"
|
|
2221
|
+
}
|
|
2222
|
+
),
|
|
2223
|
+
/* @__PURE__ */ t.jsx(
|
|
2224
|
+
Ur,
|
|
2225
|
+
{
|
|
2226
|
+
disclaimer: i,
|
|
2227
|
+
links: s,
|
|
2228
|
+
linkComponent: h,
|
|
2229
|
+
onLinkClick: j
|
|
2230
|
+
}
|
|
2231
|
+
)
|
|
2232
|
+
] }
|
|
2233
|
+
) }
|
|
2234
|
+
);
|
|
1854
2235
|
export {
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
2236
|
+
Br as BasketButton,
|
|
2237
|
+
en as CategoryLabel,
|
|
2238
|
+
nn as Footer,
|
|
2239
|
+
Oe as NavButton,
|
|
2240
|
+
tn as NavSkeleton,
|
|
2241
|
+
Ke as NavbarDrawer,
|
|
2242
|
+
Ze as NavbarDrawerLink,
|
|
2243
|
+
rn as NavigationBar,
|
|
2244
|
+
Ar as SpotlightCard,
|
|
2245
|
+
Qr as Stepper,
|
|
1864
2246
|
ce as TopNavIconButton,
|
|
1865
|
-
|
|
2247
|
+
Mr as TopNavigation
|
|
1866
2248
|
};
|