@everlywell/consumer-ui 1.43.1 → 1.44.0
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 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +10 -10
- package/index.mjs +832 -965
- package/lib/components/Navbar/NavigationBar/NavigationBar.builder.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts +3 -0
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.stories.d.ts +1 -0
- package/lib/components/Navbar/NavigationBar/NavigationBar.stories.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/index.d.ts +1 -0
- package/lib/components/Navbar/NavigationBar/index.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/useNavigationBar.d.ts +27 -0
- package/lib/components/Navbar/NavigationBar/useNavigationBar.d.ts.map +1 -0
- package/lib/components/Navbar/TopNavigation/TopNavigation.d.ts +2 -37
- package/lib/components/Navbar/TopNavigation/TopNavigation.d.ts.map +1 -1
- package/lib/components/Navbar/TopNavigation/TopNavigation.stories.d.ts +1 -7
- package/lib/components/Navbar/TopNavigation/TopNavigation.stories.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as
|
|
2
|
-
import
|
|
3
|
-
import { Text as
|
|
4
|
-
import { CaretRight as Et,
|
|
5
|
-
import { motion as gt, AnimatePresence as
|
|
6
|
-
var ut = { exports: {} },
|
|
1
|
+
import { useSteps as qt, Box as y, Stepper as en, Icon as se, Flex as R, Text as F, Link as ee, Button as Lt, Image as tn, IconButton as nn, theme as Z, useMediaQuery as ct, VStack as rn, Skeleton as ot, HStack as yt, SkeletonCircle as Ye, DrawerContent as Mt, DrawerOverlay as At, Drawer as Pt, DrawerHeader as $t, DrawerBody as Bt, Grid as on, GridItem as an, Accordion as ln, AccordionItem as sn, AccordionButton as cn, AccordionPanel as un, InputGroup as dn, Input as fn, InputRightElement as pn, Container as hn, DrawerFooter as gn, DrawerCloseButton as xn, Modal as vn, ModalOverlay as mn, ModalContent as bn, ModalHeader as wn, ModalBody as jn, ModalFooter as Cn, ModalCloseButton as yn } from "@everlywell/ui-kit";
|
|
2
|
+
import Le, { useEffect as re, forwardRef as Ht, useRef as En, useCallback as Ft, useState as K } from "react";
|
|
3
|
+
import { Text as Sn, useBreakpointValue as ye, Box as Rn, InputGroup as kn, Input as _n, InputRightElement as Tn, Icon as Dn } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as Et, Basket as In, CaretLeft as On, X as zt, MagnifyingGlass as Ln, User as Mn, QrCode as An, CaretDown as Pn, ArrowRight as $n, InstagramLogo as Bn, LinkedinLogo as Hn, FacebookLogo as Fn, TiktokLogo as zn, XLogo as Wn } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as gt, AnimatePresence as Nn } from "framer-motion";
|
|
6
|
+
var ut = { exports: {} }, Ie = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,21 +13,21 @@ var ut = { exports: {} }, Oe = {};
|
|
|
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 n =
|
|
16
|
+
var St;
|
|
17
|
+
function Vn() {
|
|
18
|
+
if (St) return Ie;
|
|
19
|
+
St = 1;
|
|
20
|
+
var n = Le, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function p(v, g, d) {
|
|
22
|
-
var f, x = {},
|
|
23
|
-
d !== void 0 && (
|
|
24
|
-
for (f in g)
|
|
22
|
+
var f, x = {}, j = null, k = null;
|
|
23
|
+
d !== void 0 && (j = "" + d), g.key !== void 0 && (j = "" + g.key), g.ref !== void 0 && (k = g.ref);
|
|
24
|
+
for (f in g) l.call(g, f) && !u.hasOwnProperty(f) && (x[f] = g[f]);
|
|
25
25
|
if (v && v.defaultProps) for (f in g = v.defaultProps, g) x[f] === void 0 && (x[f] = g[f]);
|
|
26
|
-
return { $$typeof: o, type: v, key:
|
|
26
|
+
return { $$typeof: o, type: v, key: j, ref: k, props: x, _owner: c.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return Ie.Fragment = s, Ie.jsx = p, Ie.jsxs = p, Ie;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var Oe = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -37,62 +37,62 @@ var Ae = {};
|
|
|
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 n =
|
|
44
|
-
function
|
|
40
|
+
var Rt;
|
|
41
|
+
function Yn() {
|
|
42
|
+
return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var n = Le, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), v = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), E = Symbol.iterator, I = "@@iterator";
|
|
44
|
+
function b(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = E && e[E] || e[I];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var z = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function D(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var r = arguments.length,
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), h = 1; h < r; h++)
|
|
54
|
+
i[h - 1] = arguments[h];
|
|
55
|
+
N("error", e, i);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function N(e, r, i) {
|
|
59
59
|
{
|
|
60
|
-
var h =
|
|
61
|
-
|
|
62
|
-
var
|
|
60
|
+
var h = z.ReactDebugCurrentFrame, C = h.getStackAddendum();
|
|
61
|
+
C !== "" && (r += "%s", i = i.concat([C]));
|
|
62
|
+
var T = i.map(function(w) {
|
|
63
63
|
return String(w);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
T.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, T);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
68
|
+
var A = !1, H = !1, X = !1, te = !1, oe = !1, ae;
|
|
69
|
+
ae = Symbol.for("react.module.reference");
|
|
70
|
+
function V(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === u || oe || e === c || e === d || e === f || te || e === k || A || H || X || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === x || e.$$typeof === p || e.$$typeof === v || e.$$typeof === g || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
e.$$typeof ===
|
|
75
|
+
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function ce(e, r, i) {
|
|
78
78
|
var h = e.displayName;
|
|
79
79
|
if (h)
|
|
80
80
|
return h;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var C = r.displayName || r.name || "";
|
|
82
|
+
return C !== "" ? i + "(" + C + ")" : i;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function J(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function B(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && D("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 l:
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case s:
|
|
98
98
|
return "Portal";
|
|
@@ -109,19 +109,19 @@ function Gn() {
|
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
110
|
case v:
|
|
111
111
|
var r = e;
|
|
112
|
-
return
|
|
112
|
+
return J(r) + ".Consumer";
|
|
113
113
|
case p:
|
|
114
|
-
var
|
|
115
|
-
return
|
|
114
|
+
var i = e;
|
|
115
|
+
return J(i._context) + ".Provider";
|
|
116
116
|
case g:
|
|
117
|
-
return
|
|
117
|
+
return ce(e, e.render, "ForwardRef");
|
|
118
118
|
case x:
|
|
119
119
|
var h = e.displayName || null;
|
|
120
|
-
return h !== null ? h :
|
|
121
|
-
case
|
|
122
|
-
var
|
|
120
|
+
return h !== null ? h : B(e.type) || "Memo";
|
|
121
|
+
case j: {
|
|
122
|
+
var C = e, T = C._payload, w = C._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return B(w(T));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function Gn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
132
|
+
var _ = Object.assign, S = 0, ie, Se, Re, ke, Me, he, Ae;
|
|
133
|
+
function Pe() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
Pe.__reactDisabledLog = !0;
|
|
136
|
+
function $e() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (S === 0) {
|
|
139
|
+
ie = console.log, Se = console.info, Re = console.warn, ke = console.error, Me = console.group, he = console.groupCollapsed, Ae = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: Pe,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -153,77 +153,77 @@ function Gn() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
S++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Be() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (S--, S === 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: _({}, e, {
|
|
169
|
+
value: ie
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
172
|
-
value:
|
|
171
|
+
info: _({}, e, {
|
|
172
|
+
value: Se
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
175
|
-
value:
|
|
174
|
+
warn: _({}, e, {
|
|
175
|
+
value: Re
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
178
|
-
value:
|
|
177
|
+
error: _({}, e, {
|
|
178
|
+
value: ke
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
181
|
-
value:
|
|
180
|
+
group: _({}, e, {
|
|
181
|
+
value: Me
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
184
|
-
value:
|
|
183
|
+
groupCollapsed: _({}, e, {
|
|
184
|
+
value: he
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
187
|
-
value:
|
|
186
|
+
groupEnd: _({}, e, {
|
|
187
|
+
value: Ae
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
S < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var ne = z.ReactCurrentDispatcher, ge;
|
|
195
|
+
function Q(e, r, i) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (ge === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var h =
|
|
202
|
-
|
|
200
|
+
} catch (C) {
|
|
201
|
+
var h = C.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ge = h && h[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + ge + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var _e = !1, xe;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
xe = new
|
|
210
|
+
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
xe = new Ze();
|
|
212
212
|
}
|
|
213
213
|
function ve(e, r) {
|
|
214
|
-
if (!e ||
|
|
214
|
+
if (!e || _e)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
217
|
+
var i = xe.get(e);
|
|
218
|
+
if (i !== void 0)
|
|
219
|
+
return i;
|
|
220
220
|
}
|
|
221
221
|
var h;
|
|
222
|
-
|
|
223
|
-
var
|
|
222
|
+
_e = !0;
|
|
223
|
+
var C = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var T;
|
|
226
|
+
T = ne.current, ne.current = null, $e();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
229
|
var w = function() {
|
|
@@ -236,253 +236,253 @@ function Gn() {
|
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(w, []);
|
|
239
|
-
} catch (
|
|
240
|
-
h =
|
|
239
|
+
} catch (U) {
|
|
240
|
+
h = U;
|
|
241
241
|
}
|
|
242
242
|
Reflect.construct(e, [], w);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
w.call();
|
|
246
|
-
} catch (
|
|
247
|
-
h =
|
|
246
|
+
} catch (U) {
|
|
247
|
+
h = U;
|
|
248
248
|
}
|
|
249
249
|
e.call(w.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
h =
|
|
254
|
+
} catch (U) {
|
|
255
|
+
h = U;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var
|
|
262
|
-
`),
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (
|
|
267
|
-
if (
|
|
259
|
+
} catch (U) {
|
|
260
|
+
if (U && h && typeof U.stack == "string") {
|
|
261
|
+
for (var m = U.stack.split(`
|
|
262
|
+
`), W = h.stack.split(`
|
|
263
|
+
`), M = m.length - 1, P = W.length - 1; M >= 1 && P >= 0 && m[M] !== W[P]; )
|
|
264
|
+
P--;
|
|
265
|
+
for (; M >= 1 && P >= 0; M--, P--)
|
|
266
|
+
if (m[M] !== W[P]) {
|
|
267
|
+
if (M !== 1 || P !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
270
|
-
var
|
|
271
|
-
` +
|
|
272
|
-
return e.displayName &&
|
|
269
|
+
if (M--, P--, P < 0 || m[M] !== W[P]) {
|
|
270
|
+
var G = `
|
|
271
|
+
` + m[M].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", e.displayName)), typeof e == "function" && xe.set(e, G), G;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (M >= 1 && P >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
_e = !1, ne.current = T, Be(), Error.prepareStackTrace = C;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var Ce = e ? e.displayName || e.name : "", pe = Ce ? Q(Ce) : "";
|
|
282
282
|
return typeof e == "function" && xe.set(e, pe), pe;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ke(e, r, i) {
|
|
285
285
|
return ve(e, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function He(e) {
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function le(e, r, i) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return ve(e,
|
|
295
|
+
return ve(e, He(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return Q(e);
|
|
298
298
|
switch (e) {
|
|
299
299
|
case d:
|
|
300
|
-
return
|
|
300
|
+
return Q("Suspense");
|
|
301
301
|
case f:
|
|
302
|
-
return
|
|
302
|
+
return Q("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case g:
|
|
307
|
-
return
|
|
307
|
+
return Ke(e.render);
|
|
308
308
|
case x:
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var h = e,
|
|
309
|
+
return le(e.type, r, i);
|
|
310
|
+
case j: {
|
|
311
|
+
var h = e, C = h._payload, T = h._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return le(T(C), r, i);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var ue = Object.prototype.hasOwnProperty, Fe = {}, q = z.ReactDebugCurrentFrame;
|
|
321
321
|
function me(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner,
|
|
324
|
-
|
|
323
|
+
var r = e._owner, i = le(e.type, e._source, r ? r.type : null);
|
|
324
|
+
q.setExtraStackFrame(i);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
q.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Xe(e, r, i, h, C) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var T = Function.call.bind(ue);
|
|
331
331
|
for (var w in e)
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
332
|
+
if (T(e, w)) {
|
|
333
|
+
var m = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[w] != "function") {
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
336
|
+
var W = Error((h || "React class") + ": " + i + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw W.name = "Invariant Violation", W;
|
|
338
338
|
}
|
|
339
|
-
|
|
340
|
-
} catch (
|
|
341
|
-
|
|
339
|
+
m = e[w](r, w, h, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (M) {
|
|
341
|
+
m = M;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
m && !(m instanceof Error) && (me(C), D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", i, w, typeof m), me(null)), m instanceof Error && !(m.message in Fe) && (Fe[m.message] = !0, me(C), D("Failed %s type: %s", i, m.message), me(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var Je = Array.isArray;
|
|
348
|
-
function
|
|
348
|
+
function de(e) {
|
|
349
349
|
return Je(e);
|
|
350
350
|
}
|
|
351
351
|
function Qe(e) {
|
|
352
352
|
{
|
|
353
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
354
|
-
return
|
|
353
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
+
return i;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
function qe(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return ze(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function ze(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function We(e) {
|
|
368
368
|
if (qe(e))
|
|
369
|
-
return
|
|
369
|
+
return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), ze(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var Y = z.ReactCurrentOwner, et = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
376
|
+
}, Ne, Te, be;
|
|
377
|
+
be = {};
|
|
378
|
+
function Ve(e) {
|
|
379
|
+
if (ue.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
386
|
+
function a(e) {
|
|
387
|
+
if (ue.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
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" &&
|
|
396
|
-
var
|
|
397
|
-
i
|
|
394
|
+
function O(e, r) {
|
|
395
|
+
if (typeof e.ref == "string" && Y.current && r && Y.current.stateNode !== r) {
|
|
396
|
+
var i = B(Y.current.type);
|
|
397
|
+
be[i] || (D('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(Y.current.type), e.ref), be[i] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function L(e, r) {
|
|
401
401
|
{
|
|
402
|
-
var
|
|
403
|
-
|
|
402
|
+
var i = function() {
|
|
403
|
+
Ne || (Ne = !0, D("%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
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: i,
|
|
407
407
|
configurable: !0
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function $(e, r) {
|
|
412
412
|
{
|
|
413
|
-
var
|
|
414
|
-
|
|
413
|
+
var i = function() {
|
|
414
|
+
Te || (Te = !0, D("%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
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: i,
|
|
418
418
|
configurable: !0
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
423
|
-
var
|
|
422
|
+
var we = function(e, r, i, h, C, T, w) {
|
|
423
|
+
var m = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: o,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
|
-
ref:
|
|
429
|
+
ref: i,
|
|
430
430
|
props: w,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: T
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(m, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
443
|
value: h
|
|
444
|
-
}), Object.defineProperty(
|
|
444
|
+
}), Object.defineProperty(m, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
value: C
|
|
449
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function fe(e, r, i, h, C) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var T, w = {}, m = null, W = null;
|
|
454
|
+
i !== void 0 && (We(i), m = "" + i), a(r) && (We(r.key), m = "" + r.key), Ve(r) && (W = r.ref, O(r, C));
|
|
455
|
+
for (T in r)
|
|
456
|
+
ue.call(r, T) && !et.hasOwnProperty(T) && (w[T] = r[T]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (
|
|
460
|
-
w[
|
|
458
|
+
var M = e.defaultProps;
|
|
459
|
+
for (T in M)
|
|
460
|
+
w[T] === void 0 && (w[T] = M[T]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
463
|
-
var
|
|
464
|
-
|
|
462
|
+
if (m || W) {
|
|
463
|
+
var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
m && L(w, P), W && $(w, P);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return we(e, m, W, C, h, Y.current, w);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
469
|
+
var De = z.ReactCurrentOwner, xt = z.ReactDebugCurrentFrame;
|
|
470
|
+
function je(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var r = e._owner,
|
|
473
|
-
xt.setExtraStackFrame(
|
|
472
|
+
var r = e._owner, i = le(e.type, e._source, r ? r.type : null);
|
|
473
|
+
xt.setExtraStackFrame(i);
|
|
474
474
|
} else
|
|
475
475
|
xt.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var tt;
|
|
478
|
+
tt = !1;
|
|
479
|
+
function nt(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
481
481
|
}
|
|
482
482
|
function vt() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e =
|
|
484
|
+
if (De.current) {
|
|
485
|
+
var e = B(De.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -491,18 +491,18 @@ Check the render method of \`` + e + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Nt(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
497
|
var mt = {};
|
|
498
|
-
function
|
|
498
|
+
function Vt(e) {
|
|
499
499
|
{
|
|
500
500
|
var r = vt();
|
|
501
501
|
if (!r) {
|
|
502
|
-
var
|
|
503
|
-
|
|
502
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
+
i && (r = `
|
|
504
504
|
|
|
505
|
-
Check the top-level render call using <` +
|
|
505
|
+
Check the top-level render call using <` + i + ">.");
|
|
506
506
|
}
|
|
507
507
|
return r;
|
|
508
508
|
}
|
|
@@ -512,177 +512,177 @@ Check the top-level render call using <` + l + ">.");
|
|
|
512
512
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
513
|
return;
|
|
514
514
|
e._store.validated = !0;
|
|
515
|
-
var
|
|
516
|
-
if (mt[
|
|
515
|
+
var i = Vt(r);
|
|
516
|
+
if (mt[i])
|
|
517
517
|
return;
|
|
518
|
-
mt[
|
|
518
|
+
mt[i] = !0;
|
|
519
519
|
var h = "";
|
|
520
|
-
e && e._owner && e._owner !==
|
|
520
|
+
e && e._owner && e._owner !== De.current && (h = " It was passed a child from " + B(e._owner.type) + "."), je(e), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, h), je(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function wt(e, r) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
|
-
if (
|
|
528
|
-
for (var
|
|
529
|
-
var h = e[
|
|
530
|
-
|
|
527
|
+
if (de(e))
|
|
528
|
+
for (var i = 0; i < e.length; i++) {
|
|
529
|
+
var h = e[i];
|
|
530
|
+
nt(h) && bt(h, r);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (nt(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 C = b(e);
|
|
536
|
+
if (typeof C == "function" && C !== e.entries)
|
|
537
|
+
for (var T = C.call(e), w; !(w = T.next()).done; )
|
|
538
|
+
nt(w.value) && bt(w.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Yt(e) {
|
|
543
543
|
{
|
|
544
544
|
var r = e.type;
|
|
545
545
|
if (r == null || typeof r == "string")
|
|
546
546
|
return;
|
|
547
|
-
var
|
|
547
|
+
var i;
|
|
548
548
|
if (typeof r == "function")
|
|
549
|
-
|
|
549
|
+
i = r.propTypes;
|
|
550
550
|
else if (typeof r == "object" && (r.$$typeof === g || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
552
|
r.$$typeof === x))
|
|
553
|
-
|
|
553
|
+
i = r.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
|
-
if (
|
|
557
|
-
var h =
|
|
558
|
-
|
|
559
|
-
} else if (r.PropTypes !== void 0 && !
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
|
|
556
|
+
if (i) {
|
|
557
|
+
var h = B(r);
|
|
558
|
+
Xe(i, e.props, "prop", h, e);
|
|
559
|
+
} else if (r.PropTypes !== void 0 && !tt) {
|
|
560
|
+
tt = !0;
|
|
561
|
+
var C = B(r);
|
|
562
|
+
D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
564
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ut(e) {
|
|
568
568
|
{
|
|
569
|
-
for (var r = Object.keys(e.props),
|
|
570
|
-
var h = r[
|
|
569
|
+
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
570
|
+
var h = r[i];
|
|
571
571
|
if (h !== "children" && h !== "key") {
|
|
572
|
-
|
|
572
|
+
je(e), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), je(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (
|
|
576
|
+
e.ref !== null && (je(e), D("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
579
|
+
var jt = {};
|
|
580
|
+
function Ct(e, r, i, h, C, T) {
|
|
581
581
|
{
|
|
582
|
-
var w =
|
|
582
|
+
var w = V(e);
|
|
583
583
|
if (!w) {
|
|
584
|
-
var
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
586
|
-
var
|
|
587
|
-
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
584
|
+
var m = "";
|
|
585
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
+
var W = Nt();
|
|
587
|
+
W ? m += W : m += vt();
|
|
588
|
+
var M;
|
|
589
|
+
e === null ? M = "null" : de(e) ? M = "array" : e !== void 0 && e.$$typeof === o ? (M = "<" + (B(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : M = typeof e, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, m);
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
591
|
+
var P = fe(e, r, i, C, T);
|
|
592
|
+
if (P == null)
|
|
593
|
+
return P;
|
|
594
594
|
if (w) {
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
595
|
+
var G = r.children;
|
|
596
|
+
if (G !== void 0)
|
|
597
597
|
if (h)
|
|
598
|
-
if (
|
|
599
|
-
for (var
|
|
600
|
-
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
598
|
+
if (de(G)) {
|
|
599
|
+
for (var Ce = 0; Ce < G.length; Ce++)
|
|
600
|
+
wt(G[Ce], e);
|
|
601
|
+
Object.freeze && Object.freeze(G);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
|
-
|
|
605
|
+
wt(G, e);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
var pe =
|
|
609
|
-
return
|
|
610
|
-
}),
|
|
611
|
-
if (!
|
|
612
|
-
var
|
|
613
|
-
|
|
607
|
+
if (ue.call(r, "key")) {
|
|
608
|
+
var pe = B(e), U = Object.keys(r).filter(function(Qt) {
|
|
609
|
+
return Qt !== "key";
|
|
610
|
+
}), rt = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!jt[pe + rt]) {
|
|
612
|
+
var Jt = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
+
D(`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} />`, rt, pe, Jt, pe), jt[pe + rt] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === l ? Ut(P) : Yt(P), P;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
624
|
+
function Gt(e, r, i) {
|
|
625
|
+
return Ct(e, r, i, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
627
|
+
function Zt(e, r, i) {
|
|
628
|
+
return Ct(e, r, i, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
}()),
|
|
630
|
+
var Kt = Zt, Xt = Gt;
|
|
631
|
+
Oe.Fragment = l, Oe.jsx = Kt, Oe.jsxs = Xt;
|
|
632
|
+
}()), Oe;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ? ut.exports =
|
|
634
|
+
process.env.NODE_ENV === "production" ? ut.exports = Vn() : ut.exports = Yn();
|
|
635
635
|
var t = ut.exports;
|
|
636
|
-
const
|
|
636
|
+
const at = 60, kt = 6, Un = (n) => {
|
|
637
637
|
const {
|
|
638
638
|
activeStepIndex: o,
|
|
639
639
|
hideIndicators: s = !1,
|
|
640
|
-
steps:
|
|
640
|
+
steps: l,
|
|
641
641
|
stepperTheme: c = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
645
|
-
} = n, { activeStep: u, setActiveStep: p } =
|
|
645
|
+
} = n, { activeStep: u, setActiveStep: p } = qt({
|
|
646
646
|
index: o,
|
|
647
|
-
count:
|
|
647
|
+
count: l.length
|
|
648
648
|
});
|
|
649
|
-
return
|
|
649
|
+
return re(() => {
|
|
650
650
|
p(o);
|
|
651
651
|
}, [o, p]), /* @__PURE__ */ t.jsx(
|
|
652
|
-
|
|
652
|
+
y,
|
|
653
653
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
654
|
-
|
|
654
|
+
en,
|
|
655
655
|
{
|
|
656
656
|
role: "progressbar",
|
|
657
657
|
index: u,
|
|
658
658
|
width: "100%",
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
|
-
children:
|
|
662
|
-
const d = u === g, f = g === 0, x = g ===
|
|
663
|
-
let
|
|
664
|
-
const
|
|
665
|
-
return d ?
|
|
666
|
-
|
|
661
|
+
children: l.map((v, g) => {
|
|
662
|
+
const d = u === g, f = g === 0, x = g === l.length - 1, j = u > g;
|
|
663
|
+
let k = `${at}px`;
|
|
664
|
+
const E = `calc(100% - ((${at * (l.length - 1)}px) - (${l.length - 1} * ${kt * 2}px)))`;
|
|
665
|
+
return d ? k = E : (f || x) && (k = `${at - kt}px`), /* @__PURE__ */ t.jsx(
|
|
666
|
+
y,
|
|
667
667
|
{
|
|
668
|
-
width:
|
|
669
|
-
opacity:
|
|
668
|
+
width: k,
|
|
669
|
+
opacity: j || d ? 1 : 0.2,
|
|
670
670
|
paddingRight: x ? "0" : "6px",
|
|
671
671
|
paddingLeft: f ? "0" : "6px",
|
|
672
672
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
673
673
|
children: /* @__PURE__ */ t.jsx(
|
|
674
|
-
|
|
674
|
+
y,
|
|
675
675
|
{
|
|
676
676
|
paddingTop: s ? 2 : 5,
|
|
677
677
|
position: "relative",
|
|
678
678
|
width: "100%",
|
|
679
679
|
children: /* @__PURE__ */ t.jsx(
|
|
680
|
-
|
|
680
|
+
y,
|
|
681
681
|
{
|
|
682
682
|
width: "100%",
|
|
683
683
|
position: "absolute",
|
|
684
684
|
top: "0",
|
|
685
|
-
backgroundColor:
|
|
685
|
+
backgroundColor: j ? c.light : c.base,
|
|
686
686
|
height: s ? "4px" : "8px",
|
|
687
687
|
borderRadius: "4",
|
|
688
688
|
left: "0"
|
|
@@ -697,11 +697,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
697
697
|
}
|
|
698
698
|
) }
|
|
699
699
|
);
|
|
700
|
-
},
|
|
700
|
+
}, hr = Le.memo(Un), gr = ({
|
|
701
701
|
children: n,
|
|
702
702
|
...o
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
|
-
|
|
704
|
+
Sn,
|
|
705
705
|
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: n }
|
|
706
706
|
), Ee = (n, o) => {
|
|
707
707
|
const s = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
@@ -710,40 +710,40 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
710
710
|
} : {
|
|
711
711
|
href: n
|
|
712
712
|
};
|
|
713
|
-
},
|
|
713
|
+
}, Ue = Ht(
|
|
714
714
|
(n, o) => {
|
|
715
715
|
const {
|
|
716
716
|
label: s,
|
|
717
|
-
additionalContent:
|
|
717
|
+
additionalContent: l,
|
|
718
718
|
mainTextFontSize: c,
|
|
719
719
|
linkComponent: u,
|
|
720
720
|
href: p,
|
|
721
721
|
forceMobileStyle: v = !1,
|
|
722
722
|
...g
|
|
723
|
-
} = n, d = u ||
|
|
723
|
+
} = n, d = u || ee, f = Ee(p, !!u), x = v ? c || "xl" : [c || "xl", null, null, "lg"], j = v ? "xl" : ["xl", null, null, "lg"], k = v ? void 0 : [null, null, null, 1], E = v ? void 0 : [null, null, null, "space-between"], I = v ? "3" : [3, null, null, 0], b = v ? "1px" : ["1px", null, null, "unset"], z = v ? "tints.cream" : ["tints.cream", null, null, "unset"], D = v ? "100%" : ["100%", null, null, "fit-content"], N = v ? "none" : ["none", null, null, "block"], A = v ? "100%" : ["100%", null, null, "auto"], H = v ? "block" : ["block", null, null, "none"];
|
|
724
724
|
return /* @__PURE__ */ t.jsxs(
|
|
725
|
-
|
|
725
|
+
y,
|
|
726
726
|
{
|
|
727
727
|
ref: o,
|
|
728
728
|
as: d,
|
|
729
729
|
display: "flex",
|
|
730
730
|
alignItems: "center",
|
|
731
|
-
gap:
|
|
732
|
-
justifyContent:
|
|
733
|
-
paddingY:
|
|
731
|
+
gap: k,
|
|
732
|
+
justifyContent: E,
|
|
733
|
+
paddingY: I,
|
|
734
734
|
color: "tints.black",
|
|
735
735
|
_hover: { color: "viridian.base", textDecoration: "none" },
|
|
736
|
-
borderBottom:
|
|
737
|
-
borderColor:
|
|
738
|
-
width:
|
|
736
|
+
borderBottom: b,
|
|
737
|
+
borderColor: z,
|
|
738
|
+
width: D,
|
|
739
739
|
cursor: "pointer",
|
|
740
740
|
...f,
|
|
741
741
|
...g,
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ t.jsx(
|
|
744
|
-
|
|
744
|
+
se,
|
|
745
745
|
{
|
|
746
|
-
display:
|
|
746
|
+
display: N,
|
|
747
747
|
as: Et,
|
|
748
748
|
fontSize: "lg",
|
|
749
749
|
color: "viridian.light",
|
|
@@ -753,20 +753,20 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
753
753
|
}
|
|
754
754
|
),
|
|
755
755
|
/* @__PURE__ */ t.jsxs(
|
|
756
|
-
|
|
757
|
-
{ alignItems: "center", gap: "1", width:
|
|
756
|
+
R,
|
|
757
|
+
{ alignItems: "center", gap: "1", width: A, children: [
|
|
758
758
|
/* @__PURE__ */ t.jsx(
|
|
759
|
-
|
|
759
|
+
F,
|
|
760
760
|
{
|
|
761
761
|
fontSize: x,
|
|
762
762
|
fontWeight: "medium",
|
|
763
763
|
children: s
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
|
-
|
|
767
|
-
|
|
766
|
+
l && (typeof l == "string" ? /* @__PURE__ */ t.jsx(
|
|
767
|
+
F,
|
|
768
768
|
{
|
|
769
|
-
fontSize:
|
|
769
|
+
fontSize: j,
|
|
770
770
|
fontWeight: "medium",
|
|
771
771
|
color: "tints.uiGrey",
|
|
772
772
|
sx: {
|
|
@@ -774,13 +774,13 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
774
774
|
color: "viridian.base"
|
|
775
775
|
}
|
|
776
776
|
},
|
|
777
|
-
children:
|
|
777
|
+
children: l
|
|
778
778
|
}
|
|
779
|
-
) :
|
|
779
|
+
) : l),
|
|
780
780
|
/* @__PURE__ */ t.jsx(
|
|
781
|
-
|
|
781
|
+
se,
|
|
782
782
|
{
|
|
783
|
-
display:
|
|
783
|
+
display: H,
|
|
784
784
|
as: Et,
|
|
785
785
|
fontSize: "2xl",
|
|
786
786
|
color: "tints.uiGrey",
|
|
@@ -795,11 +795,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
795
795
|
}
|
|
796
796
|
);
|
|
797
797
|
}
|
|
798
|
-
),
|
|
798
|
+
), it = Ht(
|
|
799
799
|
(n, o) => {
|
|
800
|
-
const { children: s, isSelected:
|
|
800
|
+
const { children: s, isSelected: l, ...c } = n, u = n.backgroundColor || (l ? "tints.lightCream" : "transparent");
|
|
801
801
|
return /* @__PURE__ */ t.jsx(
|
|
802
|
-
|
|
802
|
+
Lt,
|
|
803
803
|
{
|
|
804
804
|
ref: o,
|
|
805
805
|
borderRadius: "full",
|
|
@@ -830,11 +830,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
832
|
}
|
|
833
|
-
),
|
|
833
|
+
), Gn = ({
|
|
834
834
|
title: n,
|
|
835
835
|
description: o,
|
|
836
836
|
imageSrc: s,
|
|
837
|
-
imageElement:
|
|
837
|
+
imageElement: l,
|
|
838
838
|
button: c,
|
|
839
839
|
backgroundColor: u = "viridian.wash",
|
|
840
840
|
onClick: p,
|
|
@@ -842,14 +842,14 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
842
842
|
linkComponent: g,
|
|
843
843
|
forceMobileStyle: d = !1
|
|
844
844
|
}) => {
|
|
845
|
-
const
|
|
845
|
+
const k = g || ee, E = Ee(v, !!g), I = ye({
|
|
846
846
|
base: !1,
|
|
847
847
|
tablet: !1,
|
|
848
848
|
largeTablet: !1,
|
|
849
849
|
desktop: !0
|
|
850
850
|
});
|
|
851
851
|
return /* @__PURE__ */ t.jsxs(
|
|
852
|
-
|
|
852
|
+
R,
|
|
853
853
|
{
|
|
854
854
|
direction: d ? "row" : ["row", null, null, "column"],
|
|
855
855
|
alignItems: "center",
|
|
@@ -871,22 +871,22 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
871
871
|
border: "1px solid",
|
|
872
872
|
borderColor: "tints.white"
|
|
873
873
|
},
|
|
874
|
-
as: d ?
|
|
875
|
-
...d ?
|
|
874
|
+
as: d ? k : I ? R : k,
|
|
875
|
+
...d ? E : I ? {} : E,
|
|
876
876
|
children: [
|
|
877
877
|
/* @__PURE__ */ t.jsx(
|
|
878
|
-
|
|
878
|
+
y,
|
|
879
879
|
{
|
|
880
880
|
width: d ? "72px" : ["72px", null, null, "100%"],
|
|
881
881
|
height: d ? "100%" : ["100%", null, null, "188px"],
|
|
882
882
|
sx: {
|
|
883
883
|
img: {
|
|
884
|
-
height: d ? "100%" :
|
|
884
|
+
height: d ? "100%" : I ? "188px" : "100%",
|
|
885
885
|
objectFit: d ? "cover" : "contain"
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
children: s ? /* @__PURE__ */ t.jsx(
|
|
889
|
-
|
|
889
|
+
tn,
|
|
890
890
|
{
|
|
891
891
|
src: s,
|
|
892
892
|
objectFit: "cover",
|
|
@@ -895,18 +895,18 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
895
895
|
"data-testid": "spotlight-card-image"
|
|
896
896
|
}
|
|
897
897
|
) : /* @__PURE__ */ t.jsx(
|
|
898
|
-
|
|
898
|
+
y,
|
|
899
899
|
{
|
|
900
900
|
height: d ? 80 : [80, null, null, 188],
|
|
901
901
|
overflow: "hidden",
|
|
902
902
|
...d ? { sx: { div: { height: "100%" } } } : {},
|
|
903
|
-
children:
|
|
903
|
+
children: l
|
|
904
904
|
}
|
|
905
905
|
)
|
|
906
906
|
}
|
|
907
907
|
),
|
|
908
908
|
/* @__PURE__ */ t.jsxs(
|
|
909
|
-
|
|
909
|
+
R,
|
|
910
910
|
{
|
|
911
911
|
direction: d ? "column" : ["column", null, null, "row"],
|
|
912
912
|
justifyContent: d ? void 0 : [null, null, null, "space-between"],
|
|
@@ -926,27 +926,27 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
926
926
|
gap: d ? void 0 : [null, null, null, 3],
|
|
927
927
|
children: [
|
|
928
928
|
/* @__PURE__ */ t.jsxs(
|
|
929
|
-
|
|
929
|
+
R,
|
|
930
930
|
{ direction: "column", justifyContent: "center", height: "100%", children: [
|
|
931
931
|
/* @__PURE__ */ t.jsx(
|
|
932
|
-
|
|
932
|
+
F,
|
|
933
933
|
{ fontSize: "lg", fontWeight: "medium", color: "tints.black", children: n }
|
|
934
934
|
),
|
|
935
935
|
/* @__PURE__ */ t.jsx(
|
|
936
|
-
|
|
936
|
+
F,
|
|
937
937
|
{ fontSize: "sm", color: "tints.darkGrey", children: o }
|
|
938
938
|
)
|
|
939
939
|
] }
|
|
940
940
|
),
|
|
941
|
-
d ? null :
|
|
941
|
+
d ? null : I ? /* @__PURE__ */ t.jsx(y, { children: c }) : null
|
|
942
942
|
]
|
|
943
943
|
}
|
|
944
944
|
)
|
|
945
945
|
]
|
|
946
946
|
}
|
|
947
947
|
);
|
|
948
|
-
},
|
|
949
|
-
|
|
948
|
+
}, dt = (n) => /* @__PURE__ */ t.jsx(
|
|
949
|
+
nn,
|
|
950
950
|
{
|
|
951
951
|
size: "sm",
|
|
952
952
|
width: ["40px", null, null, "46px"],
|
|
@@ -966,11 +966,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
966
966
|
},
|
|
967
967
|
...n
|
|
968
968
|
}
|
|
969
|
-
),
|
|
970
|
-
color: n =
|
|
969
|
+
), Wt = ({
|
|
970
|
+
color: n = Z.colors.viridian.base,
|
|
971
971
|
width: o
|
|
972
972
|
}) => /* @__PURE__ */ t.jsx(
|
|
973
|
-
|
|
973
|
+
Rn,
|
|
974
974
|
{
|
|
975
975
|
as: "svg",
|
|
976
976
|
width: o,
|
|
@@ -994,197 +994,72 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
994
994
|
) }
|
|
995
995
|
)
|
|
996
996
|
}
|
|
997
|
-
),
|
|
998
|
-
"svg",
|
|
999
|
-
{
|
|
1000
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1001
|
-
width: "24",
|
|
1002
|
-
height: "24",
|
|
1003
|
-
viewBox: "0 0 24 24",
|
|
1004
|
-
fill: "eggplant.base",
|
|
1005
|
-
children: [
|
|
1006
|
-
/* @__PURE__ */ t.jsx(
|
|
1007
|
-
"path",
|
|
1008
|
-
{
|
|
1009
|
-
d: "M21.5308 20.4694L16.8368 15.7763C18.1973 14.1429 18.8757 12.0478 18.7309 9.92697C18.5861 7.8061 17.6293 5.82271 16.0593 4.38938C14.4894 2.95605 12.4274 2.18314 10.3021 2.23144C8.17687 2.27974 6.15205 3.14553 4.64888 4.6487C3.14571 6.15187 2.27993 8.17669 2.23163 10.3019C2.18333 12.4272 2.95623 14.4893 4.38956 16.0592C5.82289 17.6291 7.80629 18.586 9.92715 18.7308C12.048 18.8756 14.1431 18.1971 15.7765 16.8366L20.4696 21.5307C20.5393 21.6003 20.622 21.6556 20.713 21.6933C20.8041 21.731 20.9017 21.7505 21.0002 21.7505C21.0988 21.7505 21.1963 21.731 21.2874 21.6933C21.3784 21.6556 21.4612 21.6003 21.5308 21.5307C21.6005 21.461 21.6558 21.3783 21.6935 21.2872C21.7312 21.1962 21.7506 21.0986 21.7506 21C21.7506 20.9015 21.7312 20.8039 21.6935 20.7129C21.6558 20.6218 21.6005 20.5391 21.5308 20.4694ZM3.75021 10.5C3.75021 9.16501 4.14609 7.85996 4.88779 6.74993C5.62949 5.6399 6.6837 4.77474 7.9171 4.26384C9.1505 3.75295 10.5077 3.61928 11.8171 3.87973C13.1264 4.14018 14.3292 4.78306 15.2732 5.72706C16.2172 6.67106 16.8601 7.8738 17.1205 9.18317C17.381 10.4925 17.2473 11.8497 16.7364 13.0831C16.2255 14.3165 15.3603 15.3708 14.2503 16.1125C13.1403 16.8542 11.8352 17.25 10.5002 17.25C8.71061 17.248 6.99488 16.5363 5.72944 15.2708C4.464 14.0054 3.7522 12.2896 3.75021 10.5Z",
|
|
1010
|
-
fill: "eggplant.base"
|
|
1011
|
-
}
|
|
1012
|
-
),
|
|
1013
|
-
/* @__PURE__ */ t.jsx(
|
|
1014
|
-
"path",
|
|
1015
|
-
{
|
|
1016
|
-
"fill-rule": "evenodd",
|
|
1017
|
-
"clip-rule": "evenodd",
|
|
1018
|
-
d: "M9.93432 8.99032C9.86202 8.81476 9.55628 8.81476 9.48398 8.99032C8.95816 10.2671 7.93748 11.2877 6.66073 11.8136C6.48517 11.8859 6.48517 12.1916 6.66073 12.2639C7.93745 12.7897 8.95815 13.8103 9.484 15.087C9.55631 15.2626 9.86199 15.2626 9.9343 15.087C10.4601 13.8104 11.4808 12.7897 12.7574 12.2639C12.933 12.1916 12.933 11.8859 12.7574 11.8136C11.4807 11.2877 10.4601 10.267 9.93432 8.99032Z",
|
|
1019
|
-
fill: "eggplant.base"
|
|
1020
|
-
}
|
|
1021
|
-
),
|
|
1022
|
-
/* @__PURE__ */ t.jsx(
|
|
1023
|
-
"path",
|
|
1024
|
-
{
|
|
1025
|
-
"fill-rule": "evenodd",
|
|
1026
|
-
"clip-rule": "evenodd",
|
|
1027
|
-
d: "M12.4348 6.02138C12.3946 5.92618 12.2266 5.92618 12.1864 6.02138C11.9181 6.65674 11.4092 7.16564 10.7738 7.43399C10.6786 7.4742 10.6786 7.64219 10.7738 7.68239C11.4092 7.95073 11.9181 8.45961 12.1864 9.09493C12.2267 9.19012 12.3946 9.19012 12.4348 9.09493C12.7032 8.45962 13.2121 7.95073 13.8474 7.68238C13.9426 7.64217 13.9426 7.47421 13.8474 7.434C13.212 7.16564 12.7032 6.65672 12.4348 6.02138Z",
|
|
1028
|
-
fill: "eggplant.base"
|
|
1029
|
-
}
|
|
1030
|
-
)
|
|
1031
|
-
]
|
|
1032
|
-
}
|
|
1033
|
-
), Kn = {
|
|
1034
|
-
"&::before": {
|
|
1035
|
-
content: '""',
|
|
1036
|
-
position: "absolute",
|
|
1037
|
-
top: 0,
|
|
1038
|
-
left: "-100%",
|
|
1039
|
-
width: "100%",
|
|
1040
|
-
height: "100%",
|
|
1041
|
-
background: "linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent)",
|
|
1042
|
-
animation: "shimmer 5s infinite"
|
|
1043
|
-
},
|
|
1044
|
-
"@keyframes shimmer": {
|
|
1045
|
-
"0%": {
|
|
1046
|
-
left: "-100%"
|
|
1047
|
-
},
|
|
1048
|
-
"100%": {
|
|
1049
|
-
left: "100%"
|
|
1050
|
-
}
|
|
1051
|
-
},
|
|
1052
|
-
"&:hover::before": {
|
|
1053
|
-
animation: "shimmer 5s infinite"
|
|
1054
|
-
}
|
|
1055
|
-
}, Jn = ({
|
|
997
|
+
), Zn = ({
|
|
1056
998
|
desktopTopButtons: n,
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
hasSearch: p = !1,
|
|
1063
|
-
onEvaClick: v,
|
|
1064
|
-
hasEvaEnabled: g = !1,
|
|
1065
|
-
logoLink: d = "https://www.everlywell.com",
|
|
1066
|
-
setTopOffset: f,
|
|
1067
|
-
linkComponent: x,
|
|
1068
|
-
onLogoClick: y
|
|
999
|
+
logoLink: o = "https://www.everlywell.com",
|
|
1000
|
+
setTopOffset: s,
|
|
1001
|
+
linkComponent: l,
|
|
1002
|
+
onLogoClick: c,
|
|
1003
|
+
rightSideButtons: u
|
|
1069
1004
|
}) => {
|
|
1070
|
-
const
|
|
1071
|
-
if (
|
|
1072
|
-
const
|
|
1073
|
-
f
|
|
1005
|
+
const p = En(null), [v] = ct(`(max-width: ${Z.breakpoints.mediumTablet})`), [g] = ct(`(max-width: ${Z.breakpoints.mediumDesktop})`), d = Ft(() => {
|
|
1006
|
+
if (p.current) {
|
|
1007
|
+
const f = p.current.getBoundingClientRect();
|
|
1008
|
+
s(f.bottom);
|
|
1074
1009
|
}
|
|
1075
1010
|
}, []);
|
|
1076
|
-
return
|
|
1077
|
-
|
|
1078
|
-
}, [
|
|
1079
|
-
|
|
1011
|
+
return re(() => {
|
|
1012
|
+
d();
|
|
1013
|
+
}, [d]), /* @__PURE__ */ t.jsx(
|
|
1014
|
+
y,
|
|
1080
1015
|
{
|
|
1081
|
-
ref:
|
|
1016
|
+
ref: p,
|
|
1082
1017
|
paddingY: "4",
|
|
1083
|
-
paddingX:
|
|
1018
|
+
paddingX: v ? 4 : g ? 6 : 8,
|
|
1084
1019
|
borderBottom: "1px solid",
|
|
1085
1020
|
borderColor: "tints.lightCream",
|
|
1086
1021
|
backgroundColor: "tints.white",
|
|
1087
1022
|
width: "100%",
|
|
1088
|
-
onMouseEnter:
|
|
1023
|
+
onMouseEnter: d,
|
|
1089
1024
|
children: /* @__PURE__ */ t.jsxs(
|
|
1090
|
-
|
|
1025
|
+
R,
|
|
1091
1026
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1092
1027
|
/* @__PURE__ */ t.jsxs(
|
|
1093
|
-
|
|
1028
|
+
R,
|
|
1094
1029
|
{ alignItems: "center", gap: "5", children: [
|
|
1095
1030
|
/* @__PURE__ */ t.jsx(
|
|
1096
|
-
|
|
1031
|
+
y,
|
|
1097
1032
|
{
|
|
1098
1033
|
"aria-label": "Go to homepage",
|
|
1099
|
-
onClick:
|
|
1100
|
-
as:
|
|
1101
|
-
...Ee(
|
|
1102
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1034
|
+
onClick: c,
|
|
1035
|
+
as: l || ee,
|
|
1036
|
+
...Ee(o, !!l),
|
|
1037
|
+
children: /* @__PURE__ */ t.jsx(Wt, { width: "116px" })
|
|
1103
1038
|
}
|
|
1104
1039
|
),
|
|
1105
1040
|
/* @__PURE__ */ t.jsx(
|
|
1106
|
-
|
|
1041
|
+
R,
|
|
1107
1042
|
{ display: ["none", null, "none", "none", "flex", "flex"], children: n }
|
|
1108
1043
|
)
|
|
1109
1044
|
] }
|
|
1110
1045
|
),
|
|
1111
|
-
/* @__PURE__ */ t.
|
|
1112
|
-
|
|
1113
|
-
{ alignItems: "center", gap: "2", children:
|
|
1114
|
-
/* @__PURE__ */ t.jsx(
|
|
1115
|
-
j,
|
|
1116
|
-
{ display: ["none", null, "none", "none", "none", "block"], children: o }
|
|
1117
|
-
),
|
|
1118
|
-
p ? g ? /* @__PURE__ */ t.jsxs(
|
|
1119
|
-
ht,
|
|
1120
|
-
{
|
|
1121
|
-
height: b ? "40px" : "48px",
|
|
1122
|
-
paddingX: b ? "12px !important" : "16px !important",
|
|
1123
|
-
fontSize: b ? "12px" : "lg",
|
|
1124
|
-
color: "violet.dark",
|
|
1125
|
-
backgroundColor: "eggplant.wash",
|
|
1126
|
-
_hover: {
|
|
1127
|
-
backgroundColor: "eggplant.wash",
|
|
1128
|
-
filter: "brightness(0.95)"
|
|
1129
|
-
},
|
|
1130
|
-
fill: "eggplant.base",
|
|
1131
|
-
gap: b ? 1 : 2,
|
|
1132
|
-
onClick: v,
|
|
1133
|
-
position: "relative",
|
|
1134
|
-
overflow: "hidden",
|
|
1135
|
-
borderRadius: "full",
|
|
1136
|
-
sx: Kn,
|
|
1137
|
-
children: [
|
|
1138
|
-
/* @__PURE__ */ t.jsx(Xn, {}),
|
|
1139
|
-
/* @__PURE__ */ t.jsx("span", { children: b ? "AI Search" : "Ask or Search" })
|
|
1140
|
-
]
|
|
1141
|
-
}
|
|
1142
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1143
|
-
ye,
|
|
1144
|
-
{
|
|
1145
|
-
"aria-label": "Search",
|
|
1146
|
-
icon: /* @__PURE__ */ t.jsx(ee, { as: zt }),
|
|
1147
|
-
onClick: c,
|
|
1148
|
-
backgroundColor: "tints.cream",
|
|
1149
|
-
color: "tints.black",
|
|
1150
|
-
_hover: {
|
|
1151
|
-
backgroundColor: "tints.cream",
|
|
1152
|
-
filter: "brightness(0.95)"
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
) : null,
|
|
1156
|
-
a,
|
|
1157
|
-
/* @__PURE__ */ t.jsx(
|
|
1158
|
-
j,
|
|
1159
|
-
{ display: ["flex", null, null, "flex", "flex", "flex", "none"], children: /* @__PURE__ */ t.jsx(
|
|
1160
|
-
ye,
|
|
1161
|
-
{
|
|
1162
|
-
icon: /* @__PURE__ */ t.jsx(On, {}),
|
|
1163
|
-
"aria-label": "menu",
|
|
1164
|
-
"data-testid": "menu-button",
|
|
1165
|
-
onClick: u
|
|
1166
|
-
}
|
|
1167
|
-
) }
|
|
1168
|
-
),
|
|
1169
|
-
/* @__PURE__ */ t.jsx(
|
|
1170
|
-
j,
|
|
1171
|
-
{ display: ["none", null, null, "none", "none", "none", "block"], children: s }
|
|
1172
|
-
)
|
|
1173
|
-
] }
|
|
1046
|
+
/* @__PURE__ */ t.jsx(
|
|
1047
|
+
R,
|
|
1048
|
+
{ alignItems: "center", gap: "2", children: u }
|
|
1174
1049
|
)
|
|
1175
1050
|
] }
|
|
1176
1051
|
)
|
|
1177
1052
|
}
|
|
1178
1053
|
);
|
|
1179
|
-
},
|
|
1054
|
+
}, xr = ({
|
|
1180
1055
|
count: n = 0,
|
|
1181
1056
|
...o
|
|
1182
1057
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1183
|
-
|
|
1058
|
+
y,
|
|
1184
1059
|
{ position: "relative", display: "inline-block", children: [
|
|
1185
|
-
/* @__PURE__ */ t.jsx(
|
|
1060
|
+
/* @__PURE__ */ t.jsx(dt, { icon: /* @__PURE__ */ t.jsx(In, {}), ...o }),
|
|
1186
1061
|
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1187
|
-
|
|
1062
|
+
y,
|
|
1188
1063
|
{
|
|
1189
1064
|
display: "flex",
|
|
1190
1065
|
minWidth: "20px",
|
|
@@ -1205,22 +1080,22 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1205
1080
|
}
|
|
1206
1081
|
)
|
|
1207
1082
|
] }
|
|
1208
|
-
),
|
|
1083
|
+
), vr = ({
|
|
1209
1084
|
numDesktopLinks: n = 5,
|
|
1210
1085
|
showPromoButton: o = !1
|
|
1211
1086
|
}) => /* @__PURE__ */ t.jsx(
|
|
1212
|
-
|
|
1087
|
+
rn,
|
|
1213
1088
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1214
|
-
|
|
1089
|
+
y,
|
|
1215
1090
|
{
|
|
1216
1091
|
paddingY: 4,
|
|
1217
1092
|
paddingX: 6,
|
|
1218
1093
|
borderBottomWidth: "1px",
|
|
1219
1094
|
borderColor: "tints.lightCream",
|
|
1220
1095
|
children: /* @__PURE__ */ t.jsxs(
|
|
1221
|
-
|
|
1096
|
+
R,
|
|
1222
1097
|
{ justify: "space-between", align: "center", children: [
|
|
1223
|
-
/* @__PURE__ */ t.jsx(
|
|
1098
|
+
/* @__PURE__ */ t.jsx(ot, { w: "120px", h: "48px" }),
|
|
1224
1099
|
/* @__PURE__ */ t.jsxs(
|
|
1225
1100
|
yt,
|
|
1226
1101
|
{
|
|
@@ -1230,9 +1105,9 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1230
1105
|
"data-testid": "desktop-nav",
|
|
1231
1106
|
children: [
|
|
1232
1107
|
Array.from({ length: n }).map(
|
|
1233
|
-
(s,
|
|
1108
|
+
(s, l) => /* @__PURE__ */ t.jsx(ot, { width: "90px", height: "48px" }, l)
|
|
1234
1109
|
),
|
|
1235
|
-
o && /* @__PURE__ */ t.jsx(
|
|
1110
|
+
o && /* @__PURE__ */ t.jsx(ot, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1236
1111
|
]
|
|
1237
1112
|
}
|
|
1238
1113
|
),
|
|
@@ -1261,24 +1136,24 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1261
1136
|
)
|
|
1262
1137
|
}
|
|
1263
1138
|
) }
|
|
1264
|
-
),
|
|
1139
|
+
), Kn = (n, o) => {
|
|
1265
1140
|
let s;
|
|
1266
|
-
return (...
|
|
1141
|
+
return (...l) => {
|
|
1267
1142
|
s && clearTimeout(s), s = setTimeout(() => {
|
|
1268
|
-
n(...
|
|
1143
|
+
n(...l);
|
|
1269
1144
|
}, o);
|
|
1270
1145
|
};
|
|
1271
|
-
},
|
|
1146
|
+
}, lt = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), Xn = (n, o) => {
|
|
1272
1147
|
n.length < o.length && ([n, o] = [o, n]);
|
|
1273
|
-
let s = Array(o.length + 1).fill(0),
|
|
1148
|
+
let s = Array(o.length + 1).fill(0), l = Array(o.length + 1).fill(0);
|
|
1274
1149
|
for (let c = 0; c <= o.length; c++)
|
|
1275
1150
|
s[c] = c;
|
|
1276
1151
|
for (let c = 1; c <= n.length; c++) {
|
|
1277
|
-
|
|
1152
|
+
l[0] = c;
|
|
1278
1153
|
for (let u = 1; u <= o.length; u++) {
|
|
1279
1154
|
const p = n[c - 1] === o[u - 1] ? 0 : 1;
|
|
1280
|
-
|
|
1281
|
-
|
|
1155
|
+
l[u] = Math.min(
|
|
1156
|
+
l[u - 1] + 1,
|
|
1282
1157
|
// Insertion
|
|
1283
1158
|
s[u] + 1,
|
|
1284
1159
|
// Deletion
|
|
@@ -1286,47 +1161,47 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1286
1161
|
// Substitution
|
|
1287
1162
|
);
|
|
1288
1163
|
}
|
|
1289
|
-
[s,
|
|
1164
|
+
[s, l] = [l, s];
|
|
1290
1165
|
}
|
|
1291
1166
|
return s[o.length];
|
|
1292
|
-
},
|
|
1167
|
+
}, Ge = (n, o, s = 0.6) => {
|
|
1293
1168
|
if (n.length <= 3 || o.length <= 3)
|
|
1294
1169
|
return n.includes(o) || o.includes(n);
|
|
1295
|
-
const
|
|
1296
|
-
return 1 -
|
|
1297
|
-
},
|
|
1170
|
+
const l = Xn(n, o), c = Math.max(n.length, o.length);
|
|
1171
|
+
return 1 - l / c >= s;
|
|
1172
|
+
}, _t = (n, o) => {
|
|
1298
1173
|
const s = n.split(/\s+/);
|
|
1299
|
-
return o.length <= 4 ? s.some((
|
|
1300
|
-
if (
|
|
1174
|
+
return o.length <= 4 ? s.some((l) => l.includes(o)) : s.some((l) => {
|
|
1175
|
+
if (Ge(l, o))
|
|
1301
1176
|
return !0;
|
|
1302
|
-
if (
|
|
1303
|
-
for (let c = 0; c <=
|
|
1304
|
-
const u =
|
|
1305
|
-
if (
|
|
1177
|
+
if (l.length >= o.length)
|
|
1178
|
+
for (let c = 0; c <= l.length - o.length; c++) {
|
|
1179
|
+
const u = l.slice(c, c + o.length + 1);
|
|
1180
|
+
if (Ge(o, u))
|
|
1306
1181
|
return !0;
|
|
1307
1182
|
}
|
|
1308
1183
|
return !1;
|
|
1309
1184
|
});
|
|
1310
|
-
},
|
|
1185
|
+
}, ft = "nav-drawer-hover", pt = "nav-drawer-animation-start", ht = "nav-drawer-animation-end", Tt = (n) => {
|
|
1311
1186
|
window.dispatchEvent(
|
|
1312
|
-
new CustomEvent(
|
|
1187
|
+
new CustomEvent(ft, {
|
|
1313
1188
|
detail: { isHovering: n },
|
|
1314
1189
|
bubbles: !0,
|
|
1315
1190
|
cancelable: !0
|
|
1316
1191
|
})
|
|
1317
1192
|
);
|
|
1318
|
-
},
|
|
1193
|
+
}, Dt = (n) => {
|
|
1319
1194
|
window.dispatchEvent(
|
|
1320
1195
|
new CustomEvent(n, {
|
|
1321
1196
|
bubbles: !0,
|
|
1322
1197
|
cancelable: !0
|
|
1323
1198
|
})
|
|
1324
1199
|
);
|
|
1325
|
-
},
|
|
1200
|
+
}, Jn = (n = !1, o = !1, s = !1) => n || !o ? "column" : s ? "row" : "row-reverse", Qn = gt(Mt), qn = gt(At), st = ({
|
|
1326
1201
|
isOpen: n = !1,
|
|
1327
1202
|
onClose: o,
|
|
1328
1203
|
title: s,
|
|
1329
|
-
navDrawerLinks:
|
|
1204
|
+
navDrawerLinks: l,
|
|
1330
1205
|
bottomNavButtons: c,
|
|
1331
1206
|
spotlightCards: u,
|
|
1332
1207
|
bottomButton: p,
|
|
@@ -1335,53 +1210,53 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1335
1210
|
hasOnlySpotlightCards: d = !1,
|
|
1336
1211
|
hasSearch: f = !1,
|
|
1337
1212
|
onSearch: x = () => ({}),
|
|
1338
|
-
topOffset:
|
|
1339
|
-
forceMobilePlacement:
|
|
1213
|
+
topOffset: j,
|
|
1214
|
+
forceMobilePlacement: k = !1
|
|
1340
1215
|
}) => {
|
|
1341
|
-
var
|
|
1342
|
-
const
|
|
1216
|
+
var oe, ae, V, ce, J, B;
|
|
1217
|
+
const E = ye({
|
|
1343
1218
|
base: !1,
|
|
1344
1219
|
tablet: !1,
|
|
1345
1220
|
largeTablet: !1,
|
|
1346
1221
|
mediumDesktop: !0,
|
|
1347
1222
|
desktop: !0,
|
|
1348
1223
|
fullDesktop: !0
|
|
1349
|
-
}) ?? !1,
|
|
1350
|
-
|
|
1351
|
-
},
|
|
1352
|
-
|
|
1353
|
-
x(
|
|
1224
|
+
}) ?? !1, I = k ? "right" : E ? "top" : "right", b = I === "right", [z, D] = K(0), [N, A] = K(!1), H = () => {
|
|
1225
|
+
D((_) => _ + 1);
|
|
1226
|
+
}, X = Ft(
|
|
1227
|
+
Kn((_) => {
|
|
1228
|
+
x(_), H();
|
|
1354
1229
|
}, 100),
|
|
1355
1230
|
[]
|
|
1356
1231
|
);
|
|
1357
|
-
|
|
1358
|
-
n && (
|
|
1232
|
+
re(() => {
|
|
1233
|
+
n && (A(!0), Dt(pt));
|
|
1359
1234
|
}, [n]);
|
|
1360
1235
|
const te = () => {
|
|
1361
|
-
n || (
|
|
1236
|
+
n || (A(!1), o()), Dt(ht);
|
|
1362
1237
|
};
|
|
1363
1238
|
return /* @__PURE__ */ t.jsx(
|
|
1364
|
-
|
|
1239
|
+
Pt,
|
|
1365
1240
|
{
|
|
1366
|
-
isOpen:
|
|
1241
|
+
isOpen: N || n,
|
|
1367
1242
|
closeOnOverlayClick: !0,
|
|
1368
1243
|
onClose: () => {
|
|
1369
|
-
|
|
1244
|
+
N && !b || o();
|
|
1370
1245
|
},
|
|
1371
|
-
placement:
|
|
1246
|
+
placement: I,
|
|
1372
1247
|
blockScrollOnMount: !1,
|
|
1373
1248
|
autoFocus: !1,
|
|
1374
|
-
...
|
|
1249
|
+
...b ? {
|
|
1375
1250
|
styleConfig: {
|
|
1376
1251
|
baseStyle: {
|
|
1377
|
-
...
|
|
1252
|
+
...Z.components.Drawer.baseStyle,
|
|
1378
1253
|
dialogContainer: {
|
|
1379
|
-
...(
|
|
1254
|
+
...(ae = (oe = Z.components.Drawer) == null ? void 0 : oe.baseStyle) == null ? void 0 : ae.dialogContainer,
|
|
1380
1255
|
// Higher z-index for drawer content to be above overlay and navigation
|
|
1381
1256
|
zIndex: "popover"
|
|
1382
1257
|
},
|
|
1383
1258
|
dialog: {
|
|
1384
|
-
...(
|
|
1259
|
+
...(ce = (V = Z.components.Drawer) == null ? void 0 : V.baseStyle) == null ? void 0 : ce.dialog,
|
|
1385
1260
|
// Ensure mobile drawer doesn't expand to full width
|
|
1386
1261
|
maxW: "560px",
|
|
1387
1262
|
width: "auto"
|
|
@@ -1391,11 +1266,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1391
1266
|
} : {
|
|
1392
1267
|
styleConfig: {
|
|
1393
1268
|
baseStyle: {
|
|
1394
|
-
...
|
|
1269
|
+
...Z.components.Drawer.baseStyle,
|
|
1395
1270
|
dialogContainer: {
|
|
1396
|
-
...(
|
|
1271
|
+
...(B = (J = Z.components.Drawer) == null ? void 0 : J.baseStyle) == null ? void 0 : B.dialogContainer,
|
|
1397
1272
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1398
|
-
top: `${
|
|
1273
|
+
top: `${j}px`,
|
|
1399
1274
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
1400
1275
|
zIndex: "overlay"
|
|
1401
1276
|
}
|
|
@@ -1403,18 +1278,18 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1403
1278
|
}
|
|
1404
1279
|
},
|
|
1405
1280
|
children: /* @__PURE__ */ t.jsx(
|
|
1406
|
-
|
|
1281
|
+
Nn,
|
|
1407
1282
|
{ children: n ? /* @__PURE__ */ t.jsxs(
|
|
1408
1283
|
t.Fragment,
|
|
1409
1284
|
{ children: [
|
|
1410
1285
|
/* @__PURE__ */ t.jsx(
|
|
1411
|
-
|
|
1286
|
+
qn,
|
|
1412
1287
|
{
|
|
1413
1288
|
backgroundColor: "tints.black",
|
|
1414
|
-
top:
|
|
1415
|
-
opacity:
|
|
1416
|
-
zIndex:
|
|
1417
|
-
...
|
|
1289
|
+
top: b ? "0" : `${j}px`,
|
|
1290
|
+
opacity: b ? "0.4 !important" : void 0,
|
|
1291
|
+
zIndex: b ? "modal" : "overlay",
|
|
1292
|
+
...b ? {} : {
|
|
1418
1293
|
initial: { opacity: 0 },
|
|
1419
1294
|
animate: { opacity: 0.4 },
|
|
1420
1295
|
exit: { opacity: 0 },
|
|
@@ -1427,28 +1302,28 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1427
1302
|
}
|
|
1428
1303
|
),
|
|
1429
1304
|
/* @__PURE__ */ t.jsxs(
|
|
1430
|
-
|
|
1305
|
+
Qn,
|
|
1431
1306
|
{
|
|
1432
|
-
onClick: (
|
|
1433
|
-
const
|
|
1434
|
-
|
|
1307
|
+
onClick: (_) => {
|
|
1308
|
+
const ie = _.target.closest("a");
|
|
1309
|
+
ie && ie.href === window.location.href && o();
|
|
1435
1310
|
},
|
|
1436
1311
|
onMouseEnter: () => {
|
|
1437
|
-
|
|
1312
|
+
b || Tt(!0);
|
|
1438
1313
|
},
|
|
1439
|
-
onMouseLeave: (
|
|
1440
|
-
|
|
1314
|
+
onMouseLeave: (_) => {
|
|
1315
|
+
b || (!f || f && (_.target === _.currentTarget || !_.currentTarget.contains(_.target) && !N)) && Tt(!1);
|
|
1441
1316
|
},
|
|
1442
1317
|
paddingTop: "4",
|
|
1443
|
-
paddingX:
|
|
1318
|
+
paddingX: b ? "4" : "12",
|
|
1444
1319
|
paddingBottom: "24",
|
|
1445
|
-
overflow:
|
|
1320
|
+
overflow: b ? "auto" : "hidden",
|
|
1446
1321
|
maxHeight: "100vh",
|
|
1447
1322
|
position: "relative",
|
|
1448
|
-
top:
|
|
1323
|
+
top: b ? void 0 : `${j}px !important`,
|
|
1449
1324
|
onAnimationComplete: te,
|
|
1450
1325
|
boxShadow: "none",
|
|
1451
|
-
...
|
|
1326
|
+
...b ? {
|
|
1452
1327
|
// Mobile drawers should use slide animation, not height expansion
|
|
1453
1328
|
initial: !1,
|
|
1454
1329
|
animate: !1,
|
|
@@ -1460,24 +1335,24 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1460
1335
|
transition: { duration: 0.3 }
|
|
1461
1336
|
},
|
|
1462
1337
|
children: [
|
|
1463
|
-
!f && !
|
|
1464
|
-
|
|
1338
|
+
!f && !b ? null : /* @__PURE__ */ t.jsxs(
|
|
1339
|
+
$t,
|
|
1465
1340
|
{
|
|
1466
1341
|
padding: "0",
|
|
1467
1342
|
flexDirection: f ? "column" : "row",
|
|
1468
1343
|
gap: f ? "4" : "0",
|
|
1469
1344
|
children: [
|
|
1470
|
-
|
|
1471
|
-
|
|
1345
|
+
b ? /* @__PURE__ */ t.jsxs(
|
|
1346
|
+
R,
|
|
1472
1347
|
{
|
|
1473
1348
|
width: "100%",
|
|
1474
1349
|
justifyContent: "space-between",
|
|
1475
1350
|
alignItems: "center",
|
|
1476
1351
|
children: [
|
|
1477
1352
|
v ? /* @__PURE__ */ t.jsx(
|
|
1478
|
-
|
|
1353
|
+
dt,
|
|
1479
1354
|
{
|
|
1480
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1355
|
+
icon: /* @__PURE__ */ t.jsx(On, {}),
|
|
1481
1356
|
onClick: () => {
|
|
1482
1357
|
g && g();
|
|
1483
1358
|
},
|
|
@@ -1485,7 +1360,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1485
1360
|
}
|
|
1486
1361
|
) : null,
|
|
1487
1362
|
/* @__PURE__ */ t.jsx(
|
|
1488
|
-
|
|
1363
|
+
F,
|
|
1489
1364
|
{
|
|
1490
1365
|
color: "tints.uiGrey",
|
|
1491
1366
|
fontSize: "xl",
|
|
@@ -1493,9 +1368,9 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1493
1368
|
}
|
|
1494
1369
|
),
|
|
1495
1370
|
/* @__PURE__ */ t.jsx(
|
|
1496
|
-
|
|
1371
|
+
dt,
|
|
1497
1372
|
{
|
|
1498
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1373
|
+
icon: /* @__PURE__ */ t.jsx(zt, {}),
|
|
1499
1374
|
onClick: o,
|
|
1500
1375
|
"aria-label": "Close"
|
|
1501
1376
|
}
|
|
@@ -1504,13 +1379,13 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1504
1379
|
}
|
|
1505
1380
|
) : null,
|
|
1506
1381
|
f && /* @__PURE__ */ t.jsxs(
|
|
1507
|
-
|
|
1382
|
+
kn,
|
|
1508
1383
|
{ width: "100%", children: [
|
|
1509
1384
|
/* @__PURE__ */ t.jsx(
|
|
1510
|
-
|
|
1385
|
+
_n,
|
|
1511
1386
|
{
|
|
1512
|
-
onChange: (
|
|
1513
|
-
|
|
1387
|
+
onChange: (_) => {
|
|
1388
|
+
X(_.target.value);
|
|
1514
1389
|
},
|
|
1515
1390
|
placeholder: "Search",
|
|
1516
1391
|
autoFocus: !0,
|
|
@@ -1519,8 +1394,8 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1519
1394
|
}
|
|
1520
1395
|
),
|
|
1521
1396
|
/* @__PURE__ */ t.jsx(
|
|
1522
|
-
|
|
1523
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(
|
|
1397
|
+
Tn,
|
|
1398
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Dn, { as: Ln, color: "gray.500" }) }
|
|
1524
1399
|
)
|
|
1525
1400
|
] }
|
|
1526
1401
|
)
|
|
@@ -1528,15 +1403,15 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1528
1403
|
}
|
|
1529
1404
|
),
|
|
1530
1405
|
/* @__PURE__ */ t.jsx(
|
|
1531
|
-
|
|
1406
|
+
Bt,
|
|
1532
1407
|
{
|
|
1533
1408
|
paddingX: "0",
|
|
1534
|
-
paddingBottom:
|
|
1409
|
+
paddingBottom: b ? "6" : "4",
|
|
1535
1410
|
"data-testid": `navbar-drawer-body-${s.toLowerCase()}`,
|
|
1536
1411
|
children: /* @__PURE__ */ t.jsxs(
|
|
1537
1412
|
gt.div,
|
|
1538
1413
|
{
|
|
1539
|
-
...
|
|
1414
|
+
...b ? {} : {
|
|
1540
1415
|
initial: { opacity: 0, y: -5 },
|
|
1541
1416
|
animate: { opacity: 1, y: 0 },
|
|
1542
1417
|
exit: { opacity: 0, y: -5 },
|
|
@@ -1553,9 +1428,9 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1553
1428
|
},
|
|
1554
1429
|
style: {
|
|
1555
1430
|
display: "flex",
|
|
1556
|
-
flexDirection:
|
|
1431
|
+
flexDirection: Jn(
|
|
1557
1432
|
d,
|
|
1558
|
-
!
|
|
1433
|
+
!b,
|
|
1559
1434
|
f
|
|
1560
1435
|
),
|
|
1561
1436
|
gap: "24px",
|
|
@@ -1563,35 +1438,35 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1563
1438
|
},
|
|
1564
1439
|
children: [
|
|
1565
1440
|
u ? /* @__PURE__ */ t.jsx(
|
|
1566
|
-
|
|
1441
|
+
y,
|
|
1567
1442
|
{
|
|
1568
|
-
gap:
|
|
1443
|
+
gap: b ? "3" : "6",
|
|
1569
1444
|
display: "flex",
|
|
1570
|
-
justifyContent:
|
|
1445
|
+
justifyContent: b ? void 0 : "center",
|
|
1571
1446
|
sx: {
|
|
1572
1447
|
flexWrap: "wrap",
|
|
1573
|
-
flexDirection:
|
|
1448
|
+
flexDirection: b ? "column" : "row"
|
|
1574
1449
|
},
|
|
1575
1450
|
children: u
|
|
1576
1451
|
}
|
|
1577
1452
|
) : null,
|
|
1578
1453
|
/* @__PURE__ */ t.jsxs(
|
|
1579
|
-
|
|
1454
|
+
R,
|
|
1580
1455
|
{
|
|
1581
|
-
position:
|
|
1456
|
+
position: b ? void 0 : "relative",
|
|
1582
1457
|
flexDirection: "column",
|
|
1583
1458
|
gap: "6",
|
|
1584
|
-
width:
|
|
1459
|
+
width: b ? "100%" : f ? void 0 : "auto",
|
|
1585
1460
|
children: [
|
|
1586
|
-
|
|
1587
|
-
c &&
|
|
1461
|
+
l ? /* @__PURE__ */ t.jsx(y, { children: l }) : null,
|
|
1462
|
+
c && b ? /* @__PURE__ */ t.jsx(y, { children: c }) : null,
|
|
1588
1463
|
p ? /* @__PURE__ */ t.jsx(
|
|
1589
|
-
|
|
1464
|
+
y,
|
|
1590
1465
|
{
|
|
1591
1466
|
width: "100%",
|
|
1592
|
-
position:
|
|
1593
|
-
bottom:
|
|
1594
|
-
...
|
|
1467
|
+
position: b ? void 0 : "absolute",
|
|
1468
|
+
bottom: b ? void 0 : 0,
|
|
1469
|
+
...b ? { sx: { a: { width: "100%" } } } : {},
|
|
1595
1470
|
children: p
|
|
1596
1471
|
}
|
|
1597
1472
|
) : null
|
|
@@ -1600,7 +1475,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1600
1475
|
)
|
|
1601
1476
|
]
|
|
1602
1477
|
},
|
|
1603
|
-
|
|
1478
|
+
z
|
|
1604
1479
|
)
|
|
1605
1480
|
}
|
|
1606
1481
|
)
|
|
@@ -1612,23 +1487,23 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1612
1487
|
)
|
|
1613
1488
|
}
|
|
1614
1489
|
);
|
|
1615
|
-
},
|
|
1490
|
+
}, er = ({
|
|
1616
1491
|
source: n,
|
|
1617
1492
|
onSearchCallback: o,
|
|
1618
1493
|
isActive: s
|
|
1619
1494
|
}) => {
|
|
1620
|
-
const [
|
|
1495
|
+
const [l, c] = K(""), [u, p] = K([]), v = (f, x) => {
|
|
1621
1496
|
if (!f) return [];
|
|
1622
|
-
const
|
|
1623
|
-
return x.filter((
|
|
1624
|
-
const
|
|
1625
|
-
if (
|
|
1626
|
-
const
|
|
1627
|
-
const
|
|
1628
|
-
return
|
|
1497
|
+
const k = lt(f).split(/\s+/);
|
|
1498
|
+
return x.filter((E) => {
|
|
1499
|
+
const I = lt(E.label);
|
|
1500
|
+
if (k.some((A) => _t(I, A))) return !0;
|
|
1501
|
+
const z = I.split(/\s+/), D = k.some((A) => z.some((H) => H.includes(A) || Ge(A, H))), N = typeof E.additionalContent == "string" && k.some((A) => {
|
|
1502
|
+
const H = lt(E.additionalContent);
|
|
1503
|
+
return _t(H, A) || H.split(/\s+/).some((X) => X.includes(A) || Ge(A, X));
|
|
1629
1504
|
});
|
|
1630
|
-
return
|
|
1631
|
-
}).sort((
|
|
1505
|
+
return D || N;
|
|
1506
|
+
}).sort((E, I) => E.label.localeCompare(I.label));
|
|
1632
1507
|
}, g = (f) => {
|
|
1633
1508
|
if (c(f), !f) {
|
|
1634
1509
|
p([]);
|
|
@@ -1639,29 +1514,45 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1639
1514
|
}, d = () => {
|
|
1640
1515
|
c(""), p([]);
|
|
1641
1516
|
};
|
|
1642
|
-
return
|
|
1517
|
+
return re(() => {
|
|
1643
1518
|
s || (c(""), p([]));
|
|
1644
1519
|
}, [s]), {
|
|
1645
|
-
query:
|
|
1520
|
+
query: l,
|
|
1646
1521
|
results: u,
|
|
1647
1522
|
handleClose: d,
|
|
1648
1523
|
handleSearch: g
|
|
1649
1524
|
};
|
|
1650
|
-
},
|
|
1525
|
+
}, tr = (n) => {
|
|
1651
1526
|
const o = /* @__PURE__ */ new Set();
|
|
1652
|
-
return n.reduce((s,
|
|
1527
|
+
return n.reduce((s, l) => {
|
|
1653
1528
|
var u;
|
|
1654
|
-
const c = ((u =
|
|
1529
|
+
const c = ((u = l.sections) == null ? void 0 : u.reduce((p, v) => {
|
|
1655
1530
|
const g = v.links.filter((d) => o.has(d.label) || d.isSearchable !== !0 ? !1 : (o.add(d.label), !0));
|
|
1656
1531
|
return [...p, ...g];
|
|
1657
1532
|
}, [])) ?? [];
|
|
1658
1533
|
return [...s, ...c];
|
|
1659
1534
|
}, []);
|
|
1660
|
-
},
|
|
1535
|
+
}, nr = () => {
|
|
1536
|
+
const [n, o] = K(!1), [s, l] = K(!1), [c, u] = K(null);
|
|
1537
|
+
return {
|
|
1538
|
+
isMainMenuOpen: n,
|
|
1539
|
+
isSearchOpen: s,
|
|
1540
|
+
selectedCategory: c,
|
|
1541
|
+
clearSelectedCategory: () => u(null),
|
|
1542
|
+
handleSelectCategory: (k) => u(k),
|
|
1543
|
+
closeMainMenu: () => {
|
|
1544
|
+
o(!1), u(null);
|
|
1545
|
+
},
|
|
1546
|
+
closeSearch: () => l(!1),
|
|
1547
|
+
toggleSearch: () => l((k) => !k),
|
|
1548
|
+
openMainMenu: () => o(!0),
|
|
1549
|
+
openSearch: () => l(!0)
|
|
1550
|
+
};
|
|
1551
|
+
}, mr = ({
|
|
1661
1552
|
categories: n = [],
|
|
1662
1553
|
onCartClick: o,
|
|
1663
1554
|
mainCategoryLabel: s = "Menu",
|
|
1664
|
-
logoLink:
|
|
1555
|
+
logoLink: l = "https://www.everlywell.com",
|
|
1665
1556
|
hasSearch: c = !0,
|
|
1666
1557
|
hasEvaEnabled: u = !1,
|
|
1667
1558
|
onEvaClick: p,
|
|
@@ -1670,45 +1561,54 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1670
1561
|
profileUrl: d = "https://secure.everlywell.com/login",
|
|
1671
1562
|
mobileBottomButtons: f = [],
|
|
1672
1563
|
numberOfCartItems: x = 0,
|
|
1673
|
-
linkComponent:
|
|
1674
|
-
onSearchCallback:
|
|
1675
|
-
onLinkClick:
|
|
1676
|
-
onCategoryOpen:
|
|
1677
|
-
onMobileMenuOpen:
|
|
1678
|
-
onBackToMainMenu:
|
|
1679
|
-
onRegisterKitClick:
|
|
1680
|
-
onProfileClick:
|
|
1681
|
-
onLogoClick:
|
|
1682
|
-
shopAllProductsUrl:
|
|
1683
|
-
onShopAllProductsClick:
|
|
1684
|
-
hideableButtons: te
|
|
1564
|
+
linkComponent: j,
|
|
1565
|
+
onSearchCallback: k,
|
|
1566
|
+
onLinkClick: E,
|
|
1567
|
+
onCategoryOpen: I,
|
|
1568
|
+
onMobileMenuOpen: b,
|
|
1569
|
+
onBackToMainMenu: z,
|
|
1570
|
+
onRegisterKitClick: D,
|
|
1571
|
+
onProfileClick: N,
|
|
1572
|
+
onLogoClick: A,
|
|
1573
|
+
shopAllProductsUrl: H,
|
|
1574
|
+
onShopAllProductsClick: X,
|
|
1575
|
+
hideableButtons: te,
|
|
1576
|
+
children: oe
|
|
1685
1577
|
}) => {
|
|
1686
|
-
var
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1578
|
+
var Te, be, Ve;
|
|
1579
|
+
const ae = nr(), {
|
|
1580
|
+
isMainMenuOpen: V,
|
|
1581
|
+
isSearchOpen: ce,
|
|
1582
|
+
closeMainMenu: J,
|
|
1583
|
+
closeSearch: B,
|
|
1584
|
+
clearSelectedCategory: _,
|
|
1585
|
+
selectedCategory: S,
|
|
1586
|
+
handleSelectCategory: ie
|
|
1587
|
+
} = ae, [Se, Re] = K(!1), [ke, Me] = K(!1), [he, Ae] = K(0), [Pe, $e] = K(!1), [Be, ne] = K(!1);
|
|
1588
|
+
re(() => {
|
|
1589
|
+
const a = () => $e(!0), O = () => $e(!1);
|
|
1590
|
+
return window.addEventListener(pt, a), window.addEventListener(ht, O), () => {
|
|
1691
1591
|
window.removeEventListener(
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
), window.removeEventListener(
|
|
1592
|
+
pt,
|
|
1593
|
+
a
|
|
1594
|
+
), window.removeEventListener(ht, O);
|
|
1695
1595
|
};
|
|
1696
1596
|
}, []);
|
|
1697
|
-
const
|
|
1597
|
+
const ge = ye({
|
|
1698
1598
|
base: !1,
|
|
1699
1599
|
tablet: !1,
|
|
1700
1600
|
largeTablet: !1,
|
|
1701
1601
|
mediumDesktop: !0,
|
|
1702
1602
|
desktop: !0,
|
|
1703
1603
|
fullDesktop: !0
|
|
1704
|
-
}) ?? !1,
|
|
1604
|
+
}) ?? !1, Q = ye({
|
|
1705
1605
|
base: !1,
|
|
1706
1606
|
tablet: !1,
|
|
1707
1607
|
largeTablet: !1,
|
|
1708
1608
|
mediumDesktop: !1,
|
|
1709
1609
|
desktop: !1,
|
|
1710
1610
|
fullDesktop: !0
|
|
1711
|
-
}) ?? !1, _e = !
|
|
1611
|
+
}) ?? !1, _e = !Q, xe = ye({
|
|
1712
1612
|
base: !0,
|
|
1713
1613
|
tablet: !0,
|
|
1714
1614
|
largeTablet: !0,
|
|
@@ -1716,341 +1616,307 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
1716
1616
|
desktop: !1,
|
|
1717
1617
|
fullDesktop: !1
|
|
1718
1618
|
}) ?? !0;
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}, [
|
|
1619
|
+
re(() => {
|
|
1620
|
+
J(), _();
|
|
1621
|
+
}, [ge]);
|
|
1722
1622
|
const {
|
|
1723
|
-
query:
|
|
1724
|
-
results:
|
|
1725
|
-
handleSearch:
|
|
1726
|
-
} =
|
|
1727
|
-
source:
|
|
1728
|
-
onSearchCallback:
|
|
1729
|
-
isActive:
|
|
1730
|
-
}),
|
|
1731
|
-
|
|
1732
|
-
{ gap:
|
|
1733
|
-
|
|
1734
|
-
|
|
1623
|
+
query: Ze,
|
|
1624
|
+
results: ve,
|
|
1625
|
+
handleSearch: Ke
|
|
1626
|
+
} = er({
|
|
1627
|
+
source: tr(n),
|
|
1628
|
+
onSearchCallback: k,
|
|
1629
|
+
isActive: ce
|
|
1630
|
+
}), He = ve.length > 0, le = j || ee, ue = Ee(H, !!j), Fe = Ze && /* @__PURE__ */ t.jsxs(
|
|
1631
|
+
R,
|
|
1632
|
+
{ gap: He ? "6" : 0, direction: "column", children: [
|
|
1633
|
+
He ? /* @__PURE__ */ t.jsx(F, { color: "tints.uiGrey", children: `${ve.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1634
|
+
R,
|
|
1735
1635
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1736
1636
|
/* @__PURE__ */ t.jsx(
|
|
1737
|
-
|
|
1637
|
+
F,
|
|
1738
1638
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1739
1639
|
),
|
|
1740
1640
|
/* @__PURE__ */ t.jsx(
|
|
1741
|
-
|
|
1641
|
+
Lt,
|
|
1742
1642
|
{
|
|
1743
|
-
as:
|
|
1744
|
-
onClick:
|
|
1643
|
+
as: le,
|
|
1644
|
+
onClick: X,
|
|
1745
1645
|
_hover: { textDecoration: "none" },
|
|
1746
1646
|
width: ["100%", null, null, "auto"],
|
|
1747
|
-
...
|
|
1647
|
+
...ue,
|
|
1748
1648
|
children: "Shop all products"
|
|
1749
1649
|
}
|
|
1750
1650
|
)
|
|
1751
1651
|
] }
|
|
1752
1652
|
),
|
|
1753
1653
|
/* @__PURE__ */ t.jsx(
|
|
1754
|
-
|
|
1755
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1756
|
-
(
|
|
1757
|
-
|
|
1654
|
+
on,
|
|
1655
|
+
{ columns: [1, 1, 1, 4], children: ve.map(
|
|
1656
|
+
(a, O) => /* @__PURE__ */ t.jsx(
|
|
1657
|
+
an,
|
|
1758
1658
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1759
|
-
|
|
1659
|
+
Ue,
|
|
1760
1660
|
{
|
|
1761
|
-
href:
|
|
1762
|
-
label:
|
|
1763
|
-
additionalContent:
|
|
1764
|
-
linkComponent:
|
|
1765
|
-
forceMobileStyle: !
|
|
1661
|
+
href: a.href,
|
|
1662
|
+
label: a.label,
|
|
1663
|
+
additionalContent: a == null ? void 0 : a.additionalContent,
|
|
1664
|
+
linkComponent: j,
|
|
1665
|
+
forceMobileStyle: !ge
|
|
1766
1666
|
}
|
|
1767
1667
|
) },
|
|
1768
|
-
`${
|
|
1668
|
+
`${a.label}-${O}`
|
|
1769
1669
|
)
|
|
1770
1670
|
) }
|
|
1771
1671
|
)
|
|
1772
1672
|
] }
|
|
1773
|
-
),
|
|
1774
|
-
|
|
1775
|
-
},
|
|
1776
|
-
|
|
1777
|
-
},
|
|
1778
|
-
|
|
1779
|
-
}, me = () => {
|
|
1780
|
-
q(!1);
|
|
1673
|
+
), q = (a) => "href" in a, me = (a) => {
|
|
1674
|
+
q(a) ? E == null || E(a.label) : (ne(V || !Q), ie(a));
|
|
1675
|
+
}, Xe = (a) => {
|
|
1676
|
+
Re(!0), B(), _(), !q(a) && (a.sections || a.spotlightCards) && (ne(!1), ie(a));
|
|
1677
|
+
}, Je = () => {
|
|
1678
|
+
Re(!1);
|
|
1781
1679
|
};
|
|
1782
|
-
|
|
1783
|
-
const
|
|
1784
|
-
|
|
1680
|
+
re(() => {
|
|
1681
|
+
const a = (O) => {
|
|
1682
|
+
Me(O.detail.isHovering);
|
|
1785
1683
|
};
|
|
1786
1684
|
return window.addEventListener(
|
|
1787
|
-
|
|
1788
|
-
|
|
1685
|
+
ft,
|
|
1686
|
+
a
|
|
1789
1687
|
), () => {
|
|
1790
1688
|
window.removeEventListener(
|
|
1791
|
-
|
|
1792
|
-
|
|
1689
|
+
ft,
|
|
1690
|
+
a
|
|
1793
1691
|
);
|
|
1794
1692
|
};
|
|
1795
|
-
}, []),
|
|
1796
|
-
!
|
|
1797
|
-
}, [
|
|
1798
|
-
let
|
|
1799
|
-
const
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1802
|
-
},
|
|
1803
|
-
return window.addEventListener("popstate",
|
|
1804
|
-
window.removeEventListener("popstate",
|
|
1693
|
+
}, []), re(() => {
|
|
1694
|
+
!Se && !ke && (_(), B(), !V && Q && ne(!1));
|
|
1695
|
+
}, [Se, ke, V, Q]), re(() => {
|
|
1696
|
+
let a = window.location.href;
|
|
1697
|
+
const O = () => {
|
|
1698
|
+
const $ = window.location.href;
|
|
1699
|
+
$ !== a && (a = $, J(), _());
|
|
1700
|
+
}, L = setInterval(O, 100);
|
|
1701
|
+
return window.addEventListener("popstate", O), () => {
|
|
1702
|
+
window.removeEventListener("popstate", O), clearInterval(L);
|
|
1805
1703
|
};
|
|
1806
1704
|
}, []);
|
|
1807
|
-
const
|
|
1808
|
-
var
|
|
1809
|
-
const
|
|
1705
|
+
const de = (a) => q(a) && (!a.buttonProps || Object.keys(a.buttonProps).length === 0 || a.buttonProps === void 0), Qe = n == null ? void 0 : n.map((a, O) => {
|
|
1706
|
+
var $, we;
|
|
1707
|
+
const L = te.includes(a.label);
|
|
1810
1708
|
return /* @__PURE__ */ t.jsx(
|
|
1811
|
-
|
|
1709
|
+
it,
|
|
1812
1710
|
{
|
|
1813
1711
|
height: "48px",
|
|
1814
1712
|
paddingInline: "16px !important",
|
|
1815
1713
|
onMouseEnter: () => {
|
|
1816
|
-
|
|
1714
|
+
Xe(a), I == null || I(a.label);
|
|
1817
1715
|
},
|
|
1818
|
-
onMouseLeave:
|
|
1819
|
-
isSelected: (
|
|
1820
|
-
as:
|
|
1821
|
-
href:
|
|
1822
|
-
onClick:
|
|
1823
|
-
...
|
|
1716
|
+
onMouseLeave: Je,
|
|
1717
|
+
isSelected: (S == null ? void 0 : S.label) === a.label,
|
|
1718
|
+
as: q(a) && le ? le : ee,
|
|
1719
|
+
href: q(a) ? a.href : void 0,
|
|
1720
|
+
onClick: q(a) ? () => E == null ? void 0 : E(a.label) : void 0,
|
|
1721
|
+
...L && {
|
|
1824
1722
|
display: { base: "none", fullDesktop: "flex" }
|
|
1825
1723
|
},
|
|
1826
|
-
...((
|
|
1724
|
+
...(($ = a == null ? void 0 : a.context) == null ? void 0 : $.desktop) === "link" || de(a) ? {
|
|
1827
1725
|
_hover: {
|
|
1828
1726
|
backgroundColor: "tints.lightCream",
|
|
1829
1727
|
textDecoration: "none",
|
|
1830
1728
|
filter: "brightness(0.95)"
|
|
1831
1729
|
}
|
|
1832
1730
|
} : {},
|
|
1833
|
-
...((
|
|
1834
|
-
children:
|
|
1731
|
+
...((we = a == null ? void 0 : a.context) == null ? void 0 : we.desktop) !== "link" && a.buttonProps,
|
|
1732
|
+
children: a.label
|
|
1835
1733
|
},
|
|
1836
|
-
`${
|
|
1734
|
+
`${a.label}-${O}`
|
|
1837
1735
|
);
|
|
1838
|
-
}),
|
|
1839
|
-
(
|
|
1840
|
-
var
|
|
1841
|
-
return ((
|
|
1736
|
+
}), qe = (Te = n.filter(
|
|
1737
|
+
(a) => {
|
|
1738
|
+
var O;
|
|
1739
|
+
return ((O = a == null ? void 0 : a.context) == null ? void 0 : O.mobile) === "link" || (!q(a) && a.isMobileTopLink !== !1 || de(a)) && (_e && te.includes(a.label) || xe);
|
|
1842
1740
|
}
|
|
1843
|
-
)) == null ? void 0 :
|
|
1844
|
-
var
|
|
1845
|
-
const
|
|
1846
|
-
return
|
|
1847
|
-
|
|
1741
|
+
)) == null ? void 0 : Te.map((a, O) => {
|
|
1742
|
+
var $;
|
|
1743
|
+
const L = a;
|
|
1744
|
+
return de(L) || (($ = L == null ? void 0 : L.context) == null ? void 0 : $.mobile) === "link" ? /* @__PURE__ */ t.jsx(
|
|
1745
|
+
y,
|
|
1848
1746
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1849
|
-
|
|
1747
|
+
Ue,
|
|
1850
1748
|
{
|
|
1851
|
-
label:
|
|
1749
|
+
label: L.label,
|
|
1852
1750
|
role: "link",
|
|
1853
|
-
href:
|
|
1751
|
+
href: L.href,
|
|
1854
1752
|
mainTextFontSize: "3xl",
|
|
1855
|
-
linkComponent:
|
|
1753
|
+
linkComponent: j,
|
|
1856
1754
|
forceMobileStyle: !0
|
|
1857
1755
|
}
|
|
1858
1756
|
) },
|
|
1859
|
-
`${
|
|
1757
|
+
`${L.label}-${O}`
|
|
1860
1758
|
) : /* @__PURE__ */ t.jsx(
|
|
1861
|
-
|
|
1759
|
+
y,
|
|
1862
1760
|
{
|
|
1863
1761
|
onClick: () => {
|
|
1864
|
-
|
|
1762
|
+
me(L), I == null || I(L.label);
|
|
1865
1763
|
},
|
|
1866
1764
|
children: /* @__PURE__ */ t.jsx(
|
|
1867
|
-
|
|
1765
|
+
Ue,
|
|
1868
1766
|
{
|
|
1869
|
-
label:
|
|
1767
|
+
label: L.label,
|
|
1870
1768
|
role: "link",
|
|
1871
|
-
additionalContent:
|
|
1769
|
+
additionalContent: L.additionalContent,
|
|
1872
1770
|
mainTextFontSize: "3xl",
|
|
1873
|
-
linkComponent:
|
|
1771
|
+
linkComponent: j,
|
|
1874
1772
|
forceMobileStyle: !0
|
|
1875
1773
|
}
|
|
1876
1774
|
)
|
|
1877
1775
|
},
|
|
1878
|
-
`${
|
|
1776
|
+
`${L.label}-${O}`
|
|
1879
1777
|
);
|
|
1880
|
-
}),
|
|
1778
|
+
}), ze = /* @__PURE__ */ t.jsxs(
|
|
1881
1779
|
t.Fragment,
|
|
1882
1780
|
{ children: [
|
|
1883
1781
|
/* @__PURE__ */ t.jsx(
|
|
1884
|
-
|
|
1782
|
+
it,
|
|
1885
1783
|
{
|
|
1886
|
-
as:
|
|
1784
|
+
as: ee,
|
|
1887
1785
|
href: d,
|
|
1888
1786
|
width: "100%",
|
|
1889
1787
|
backgroundColor: "tints.cream",
|
|
1890
|
-
onClick:
|
|
1788
|
+
onClick: N,
|
|
1891
1789
|
children: /* @__PURE__ */ t.jsxs(
|
|
1892
|
-
|
|
1790
|
+
R,
|
|
1893
1791
|
{ gap: "2", children: [
|
|
1894
1792
|
"Log in to My Everly",
|
|
1895
|
-
/* @__PURE__ */ t.jsx(
|
|
1793
|
+
/* @__PURE__ */ t.jsx(se, { as: Mn, size: 24 })
|
|
1896
1794
|
] }
|
|
1897
1795
|
)
|
|
1898
1796
|
},
|
|
1899
1797
|
"my-everly"
|
|
1900
1798
|
),
|
|
1901
1799
|
/* @__PURE__ */ t.jsx(
|
|
1902
|
-
|
|
1800
|
+
it,
|
|
1903
1801
|
{
|
|
1904
|
-
as:
|
|
1802
|
+
as: ee,
|
|
1905
1803
|
width: "100%",
|
|
1906
1804
|
href: g,
|
|
1907
1805
|
backgroundColor: "tints.cream",
|
|
1908
|
-
onClick:
|
|
1806
|
+
onClick: D,
|
|
1909
1807
|
children: /* @__PURE__ */ t.jsxs(
|
|
1910
|
-
|
|
1808
|
+
R,
|
|
1911
1809
|
{ gap: "2", children: [
|
|
1912
1810
|
"Register kit",
|
|
1913
|
-
/* @__PURE__ */ t.jsx(
|
|
1811
|
+
/* @__PURE__ */ t.jsx(se, { as: An, size: 24 })
|
|
1914
1812
|
] }
|
|
1915
1813
|
)
|
|
1916
1814
|
},
|
|
1917
1815
|
"register-kit"
|
|
1918
1816
|
)
|
|
1919
1817
|
] }
|
|
1920
|
-
),
|
|
1921
|
-
|
|
1818
|
+
), We = /* @__PURE__ */ t.jsxs(
|
|
1819
|
+
R,
|
|
1922
1820
|
{ gap: "2", flexDirection: "column", children: [
|
|
1923
1821
|
f,
|
|
1924
|
-
|
|
1822
|
+
ze
|
|
1925
1823
|
] }
|
|
1926
|
-
),
|
|
1927
|
-
|
|
1928
|
-
{ direction:
|
|
1929
|
-
const
|
|
1930
|
-
for (let
|
|
1931
|
-
|
|
1824
|
+
), Y = Be || V, et = S ? /* @__PURE__ */ t.jsx(
|
|
1825
|
+
R,
|
|
1826
|
+
{ direction: Y ? "column" : ["column", null, null, "row"], gap: "8", children: (be = S == null ? void 0 : S.sections) == null ? void 0 : be.map((a, O) => {
|
|
1827
|
+
const L = [];
|
|
1828
|
+
for (let $ = 0; $ < a.links.length; $ += 3)
|
|
1829
|
+
L.push(a.links.slice($, $ + 3));
|
|
1932
1830
|
return /* @__PURE__ */ t.jsxs(
|
|
1933
|
-
|
|
1831
|
+
y,
|
|
1934
1832
|
{ children: [
|
|
1935
1833
|
/* @__PURE__ */ t.jsx(
|
|
1936
|
-
|
|
1834
|
+
F,
|
|
1937
1835
|
{
|
|
1938
1836
|
fontSize: "md",
|
|
1939
1837
|
color: "tints.uiGrey",
|
|
1940
|
-
marginBottom:
|
|
1941
|
-
children:
|
|
1838
|
+
marginBottom: Y ? 0 : [0, null, null, 6],
|
|
1839
|
+
children: a.title
|
|
1942
1840
|
}
|
|
1943
1841
|
),
|
|
1944
1842
|
/* @__PURE__ */ t.jsx(
|
|
1945
|
-
|
|
1843
|
+
R,
|
|
1946
1844
|
{
|
|
1947
|
-
flexDirection:
|
|
1948
|
-
gap:
|
|
1949
|
-
children:
|
|
1950
|
-
(
|
|
1951
|
-
|
|
1845
|
+
flexDirection: Y ? "column" : ["column", null, null, "row"],
|
|
1846
|
+
gap: Y ? void 0 : [null, null, null, 8],
|
|
1847
|
+
children: L == null ? void 0 : L.map(
|
|
1848
|
+
($, we) => /* @__PURE__ */ t.jsx(
|
|
1849
|
+
R,
|
|
1952
1850
|
{
|
|
1953
1851
|
flexDirection: "column",
|
|
1954
|
-
gap:
|
|
1955
|
-
marginLeft:
|
|
1956
|
-
children:
|
|
1957
|
-
(fe,
|
|
1958
|
-
|
|
1852
|
+
gap: Y ? void 0 : [null, null, null, 5],
|
|
1853
|
+
marginLeft: Y ? void 0 : [null, null, null, -2],
|
|
1854
|
+
children: $ == null ? void 0 : $.map(
|
|
1855
|
+
(fe, De) => /* @__PURE__ */ t.jsx(
|
|
1856
|
+
Ue,
|
|
1959
1857
|
{
|
|
1960
1858
|
label: fe.label,
|
|
1961
1859
|
href: fe.href,
|
|
1962
1860
|
additionalContent: fe.additionalContent,
|
|
1963
|
-
linkComponent:
|
|
1964
|
-
forceMobileStyle:
|
|
1965
|
-
onClick: () =>
|
|
1861
|
+
linkComponent: j,
|
|
1862
|
+
forceMobileStyle: Y,
|
|
1863
|
+
onClick: () => E == null ? void 0 : E(fe.label)
|
|
1966
1864
|
},
|
|
1967
|
-
`${fe.label}-${
|
|
1865
|
+
`${fe.label}-${De}`
|
|
1968
1866
|
)
|
|
1969
1867
|
)
|
|
1970
1868
|
},
|
|
1971
|
-
|
|
1869
|
+
we
|
|
1972
1870
|
)
|
|
1973
1871
|
)
|
|
1974
1872
|
}
|
|
1975
1873
|
)
|
|
1976
1874
|
] },
|
|
1977
|
-
`${
|
|
1875
|
+
`${a.title}-${O}`
|
|
1978
1876
|
);
|
|
1979
1877
|
}) }
|
|
1980
|
-
) : null,
|
|
1981
|
-
(
|
|
1982
|
-
|
|
1878
|
+
) : null, Ne = S != null && S.spotlightCards ? (Ve = S.spotlightCards) == null ? void 0 : Ve.map(
|
|
1879
|
+
(a, O) => /* @__PURE__ */ t.jsx(
|
|
1880
|
+
Gn,
|
|
1983
1881
|
{
|
|
1984
|
-
...
|
|
1985
|
-
forceMobileStyle:
|
|
1882
|
+
...a,
|
|
1883
|
+
forceMobileStyle: Y
|
|
1986
1884
|
},
|
|
1987
|
-
`${
|
|
1885
|
+
`${a.title}-${O}`
|
|
1988
1886
|
)
|
|
1989
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1887
|
+
) : /* @__PURE__ */ t.jsx(y, {});
|
|
1990
1888
|
return /* @__PURE__ */ t.jsxs(
|
|
1991
|
-
|
|
1889
|
+
y,
|
|
1992
1890
|
{
|
|
1993
1891
|
as: "nav",
|
|
1994
1892
|
"aria-label": "Main navigation",
|
|
1995
1893
|
position: "sticky",
|
|
1996
1894
|
top: "0",
|
|
1997
1895
|
width: "100%",
|
|
1998
|
-
zIndex: ["sticky", null, null,
|
|
1896
|
+
zIndex: ["sticky", null, null, Pe ? "modal" : "sticky"],
|
|
1999
1897
|
children: [
|
|
2000
1898
|
/* @__PURE__ */ t.jsx(
|
|
2001
|
-
|
|
1899
|
+
Zn,
|
|
2002
1900
|
{
|
|
2003
|
-
desktopTopButtons:
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
paddingInline: "16px !important",
|
|
2010
|
-
href: g,
|
|
2011
|
-
onClick: S,
|
|
2012
|
-
backgroundColor: "tints.cream",
|
|
2013
|
-
children: "Register Kit"
|
|
2014
|
-
}
|
|
2015
|
-
),
|
|
2016
|
-
profileElement: /* @__PURE__ */ t.jsx(
|
|
2017
|
-
X,
|
|
2018
|
-
{ href: d, "aria-label": "login", onClick: W, children: /* @__PURE__ */ t.jsx(ye, { icon: /* @__PURE__ */ t.jsx(ee, { as: kt }), "aria-label": "Profile" }) }
|
|
2019
|
-
),
|
|
2020
|
-
cartElement: /* @__PURE__ */ t.jsx(
|
|
2021
|
-
Qn,
|
|
2022
|
-
{
|
|
2023
|
-
"aria-label": "Cart",
|
|
2024
|
-
count: x,
|
|
2025
|
-
onClick: o
|
|
2026
|
-
}
|
|
2027
|
-
),
|
|
2028
|
-
onSearchClick: () => {
|
|
2029
|
-
ne(!le), v == null || v();
|
|
2030
|
-
},
|
|
2031
|
-
onMenuClick: () => {
|
|
2032
|
-
ie(!0), m == null || m();
|
|
2033
|
-
},
|
|
2034
|
-
hasSearch: c,
|
|
2035
|
-
hasEvaEnabled: u,
|
|
2036
|
-
onEvaClick: p,
|
|
2037
|
-
logoLink: a,
|
|
2038
|
-
linkComponent: y,
|
|
2039
|
-
onLogoClick: $,
|
|
2040
|
-
setTopOffset: Me
|
|
1901
|
+
desktopTopButtons: Qe,
|
|
1902
|
+
logoLink: l,
|
|
1903
|
+
linkComponent: j,
|
|
1904
|
+
onLogoClick: A,
|
|
1905
|
+
setTopOffset: Ae,
|
|
1906
|
+
rightSideButtons: typeof oe == "function" ? oe(ae) : oe
|
|
2041
1907
|
}
|
|
2042
1908
|
),
|
|
2043
1909
|
/* @__PURE__ */ t.jsxs(
|
|
2044
|
-
|
|
1910
|
+
y,
|
|
2045
1911
|
{ position: "relative", zIndex: "modal", children: [
|
|
2046
1912
|
/* @__PURE__ */ t.jsx(
|
|
2047
1913
|
st,
|
|
2048
1914
|
{
|
|
2049
1915
|
isOpen: V,
|
|
2050
|
-
onClose:
|
|
1916
|
+
onClose: J,
|
|
2051
1917
|
title: s,
|
|
2052
|
-
navDrawerLinks:
|
|
2053
|
-
bottomNavButtons:
|
|
1918
|
+
navDrawerLinks: qe,
|
|
1919
|
+
bottomNavButtons: We,
|
|
2054
1920
|
hasBackButton: !1,
|
|
2055
1921
|
topOffset: he,
|
|
2056
1922
|
forceMobilePlacement: !0
|
|
@@ -2059,31 +1925,31 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2059
1925
|
/* @__PURE__ */ t.jsx(
|
|
2060
1926
|
st,
|
|
2061
1927
|
{
|
|
2062
|
-
isOpen: !!
|
|
1928
|
+
isOpen: !!S,
|
|
2063
1929
|
onClose: () => {
|
|
2064
|
-
|
|
1930
|
+
J(), _(), V || ne(!1);
|
|
2065
1931
|
},
|
|
2066
|
-
title: (
|
|
2067
|
-
navDrawerLinks:
|
|
1932
|
+
title: (S == null ? void 0 : S.label) || "",
|
|
1933
|
+
navDrawerLinks: et,
|
|
2068
1934
|
onBackClick: () => {
|
|
2069
|
-
|
|
1935
|
+
_(), V || ne(!1);
|
|
2070
1936
|
},
|
|
2071
|
-
spotlightCards:
|
|
2072
|
-
hasOnlySpotlightCards:
|
|
2073
|
-
bottomButton:
|
|
1937
|
+
spotlightCards: Ne,
|
|
1938
|
+
hasOnlySpotlightCards: S == null ? void 0 : S.hasOnlySpotlightCards,
|
|
1939
|
+
bottomButton: S == null ? void 0 : S.bottomButton,
|
|
2074
1940
|
topOffset: he,
|
|
2075
|
-
forceMobilePlacement:
|
|
2076
|
-
V && !
|
|
1941
|
+
forceMobilePlacement: Be || V || // Below 1400px, if main menu is open, always use mobile closing
|
|
1942
|
+
V && !Q
|
|
2077
1943
|
}
|
|
2078
1944
|
),
|
|
2079
1945
|
/* @__PURE__ */ t.jsx(
|
|
2080
1946
|
st,
|
|
2081
1947
|
{
|
|
2082
|
-
isOpen:
|
|
2083
|
-
onClose: () =>
|
|
1948
|
+
isOpen: ce,
|
|
1949
|
+
onClose: () => B(),
|
|
2084
1950
|
title: "Search",
|
|
2085
|
-
navDrawerLinks:
|
|
2086
|
-
onSearch:
|
|
1951
|
+
navDrawerLinks: Fe,
|
|
1952
|
+
onSearch: Ke,
|
|
2087
1953
|
hasSearch: !0,
|
|
2088
1954
|
hasBackButton: !1,
|
|
2089
1955
|
topOffset: he
|
|
@@ -2094,17 +1960,17 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2094
1960
|
]
|
|
2095
1961
|
}
|
|
2096
1962
|
);
|
|
2097
|
-
},
|
|
2098
|
-
const
|
|
1963
|
+
}, It = ({ links: n, linkComponent: o, onLinkClick: s }) => {
|
|
1964
|
+
const l = o || ee, c = (u) => {
|
|
2099
1965
|
s && s(u);
|
|
2100
1966
|
};
|
|
2101
1967
|
return /* @__PURE__ */ t.jsx(
|
|
2102
|
-
|
|
1968
|
+
R,
|
|
2103
1969
|
{ direction: "column", gap: 6, children: n.map(
|
|
2104
1970
|
(u) => /* @__PURE__ */ t.jsx(
|
|
2105
|
-
|
|
1971
|
+
F,
|
|
2106
1972
|
{
|
|
2107
|
-
as:
|
|
1973
|
+
as: l,
|
|
2108
1974
|
color: "white",
|
|
2109
1975
|
size: "lg",
|
|
2110
1976
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
@@ -2116,24 +1982,24 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2116
1982
|
)
|
|
2117
1983
|
) }
|
|
2118
1984
|
);
|
|
2119
|
-
},
|
|
2120
|
-
const
|
|
1985
|
+
}, rr = ({ title: n, links: o, isLast: s }) => {
|
|
1986
|
+
const l = s ? "transparent" : `${Z.colors.viridian.lighter}20`;
|
|
2121
1987
|
return o ? /* @__PURE__ */ t.jsx(
|
|
2122
|
-
|
|
2123
|
-
{ borderColor:
|
|
1988
|
+
sn,
|
|
1989
|
+
{ borderColor: l, children: ({ isExpanded: c }) => /* @__PURE__ */ t.jsxs(
|
|
2124
1990
|
t.Fragment,
|
|
2125
1991
|
{ children: [
|
|
2126
1992
|
/* @__PURE__ */ t.jsxs(
|
|
2127
|
-
|
|
1993
|
+
cn,
|
|
2128
1994
|
{ paddingX: 0, paddingY: 4, _hover: { bg: "transparent" }, children: [
|
|
2129
1995
|
/* @__PURE__ */ t.jsx(
|
|
2130
|
-
|
|
1996
|
+
F,
|
|
2131
1997
|
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: n }
|
|
2132
1998
|
),
|
|
2133
1999
|
/* @__PURE__ */ t.jsx(
|
|
2134
|
-
|
|
2000
|
+
se,
|
|
2135
2001
|
{
|
|
2136
|
-
as:
|
|
2002
|
+
as: Pn,
|
|
2137
2003
|
size: "sm",
|
|
2138
2004
|
color: "viridian.lighter",
|
|
2139
2005
|
transform: c ? "rotate(-180deg)" : "rotate(0deg)",
|
|
@@ -2143,44 +2009,44 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2143
2009
|
] }
|
|
2144
2010
|
),
|
|
2145
2011
|
/* @__PURE__ */ t.jsx(
|
|
2146
|
-
|
|
2012
|
+
un,
|
|
2147
2013
|
{ pb: 4, px: 0, children: o }
|
|
2148
2014
|
)
|
|
2149
2015
|
] }
|
|
2150
2016
|
) }
|
|
2151
2017
|
) : null;
|
|
2152
|
-
},
|
|
2153
|
-
|
|
2018
|
+
}, or = ({ title: n, links: o }) => o ? /* @__PURE__ */ t.jsxs(
|
|
2019
|
+
y,
|
|
2154
2020
|
{ children: [
|
|
2155
2021
|
/* @__PURE__ */ t.jsx(
|
|
2156
|
-
|
|
2022
|
+
F,
|
|
2157
2023
|
{ color: "viridian.lighter", mb: 6, fontSize: "lg", children: n }
|
|
2158
2024
|
),
|
|
2159
2025
|
o
|
|
2160
2026
|
] }
|
|
2161
|
-
) : null,
|
|
2027
|
+
) : null, ar = ({
|
|
2162
2028
|
sections: n,
|
|
2163
2029
|
linkComponent: o,
|
|
2164
2030
|
onLinkClick: s
|
|
2165
|
-
}) =>
|
|
2031
|
+
}) => ye({
|
|
2166
2032
|
base: !1,
|
|
2167
2033
|
tablet: !1,
|
|
2168
2034
|
largeTablet: !0,
|
|
2169
2035
|
desktop: !0
|
|
2170
2036
|
}) ? /* @__PURE__ */ t.jsx(
|
|
2171
|
-
|
|
2037
|
+
R,
|
|
2172
2038
|
{
|
|
2173
2039
|
justify: "space-between",
|
|
2174
2040
|
align: "flex-start",
|
|
2175
2041
|
children: /* @__PURE__ */ t.jsx(
|
|
2176
|
-
|
|
2042
|
+
R,
|
|
2177
2043
|
{ gap: 120, children: n.map(
|
|
2178
2044
|
({ title: c, links: u }) => /* @__PURE__ */ t.jsx(
|
|
2179
|
-
|
|
2045
|
+
or,
|
|
2180
2046
|
{
|
|
2181
2047
|
title: c,
|
|
2182
2048
|
links: /* @__PURE__ */ t.jsx(
|
|
2183
|
-
|
|
2049
|
+
It,
|
|
2184
2050
|
{
|
|
2185
2051
|
links: u,
|
|
2186
2052
|
linkComponent: o,
|
|
@@ -2194,7 +2060,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2194
2060
|
)
|
|
2195
2061
|
}
|
|
2196
2062
|
) : /* @__PURE__ */ t.jsx(
|
|
2197
|
-
|
|
2063
|
+
ln,
|
|
2198
2064
|
{
|
|
2199
2065
|
allowMultiple: !0,
|
|
2200
2066
|
defaultIndex: [0],
|
|
@@ -2203,11 +2069,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2203
2069
|
flexDirection: "column",
|
|
2204
2070
|
children: n.map(
|
|
2205
2071
|
({ title: c, links: u }, p) => /* @__PURE__ */ t.jsx(
|
|
2206
|
-
|
|
2072
|
+
rr,
|
|
2207
2073
|
{
|
|
2208
2074
|
title: c,
|
|
2209
2075
|
links: /* @__PURE__ */ t.jsx(
|
|
2210
|
-
|
|
2076
|
+
It,
|
|
2211
2077
|
{
|
|
2212
2078
|
links: u,
|
|
2213
2079
|
linkComponent: o,
|
|
@@ -2221,20 +2087,20 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2221
2087
|
)
|
|
2222
2088
|
}
|
|
2223
2089
|
), Ot = {
|
|
2224
|
-
instagram:
|
|
2225
|
-
linkedin:
|
|
2226
|
-
facebook:
|
|
2227
|
-
tiktok:
|
|
2228
|
-
x:
|
|
2229
|
-
},
|
|
2090
|
+
instagram: Bn,
|
|
2091
|
+
linkedin: Hn,
|
|
2092
|
+
facebook: Fn,
|
|
2093
|
+
tiktok: zn,
|
|
2094
|
+
x: Wn
|
|
2095
|
+
}, ir = ({
|
|
2230
2096
|
socialLinks: n,
|
|
2231
2097
|
onEmailSubmit: o,
|
|
2232
2098
|
socialMediaLabel: s,
|
|
2233
|
-
newsletterLabel:
|
|
2099
|
+
newsletterLabel: l,
|
|
2234
2100
|
onLinkClick: c,
|
|
2235
2101
|
showNewsletter: u = !0
|
|
2236
2102
|
}) => {
|
|
2237
|
-
const [p, v] =
|
|
2103
|
+
const [p, v] = Le.useState(""), g = () => {
|
|
2238
2104
|
p && o && (o(p), v(""));
|
|
2239
2105
|
}, d = (x) => {
|
|
2240
2106
|
x.key === "Enter" && g();
|
|
@@ -2242,20 +2108,20 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2242
2108
|
c && c(x);
|
|
2243
2109
|
};
|
|
2244
2110
|
return /* @__PURE__ */ t.jsxs(
|
|
2245
|
-
|
|
2111
|
+
y,
|
|
2246
2112
|
{ width: ["100%", null, null, "440px"], children: [
|
|
2247
2113
|
u && /* @__PURE__ */ t.jsxs(
|
|
2248
|
-
|
|
2114
|
+
y,
|
|
2249
2115
|
{ mb: [8, 10], children: [
|
|
2250
2116
|
/* @__PURE__ */ t.jsx(
|
|
2251
|
-
|
|
2252
|
-
{ color: "viridian.lighter", mb: 6, size: "lg", children:
|
|
2117
|
+
F,
|
|
2118
|
+
{ color: "viridian.lighter", mb: 6, size: "lg", children: l }
|
|
2253
2119
|
),
|
|
2254
2120
|
/* @__PURE__ */ t.jsxs(
|
|
2255
|
-
|
|
2121
|
+
dn,
|
|
2256
2122
|
{ children: [
|
|
2257
2123
|
/* @__PURE__ */ t.jsx(
|
|
2258
|
-
|
|
2124
|
+
fn,
|
|
2259
2125
|
{
|
|
2260
2126
|
placeholder: "Enter your email",
|
|
2261
2127
|
bg: "transparent",
|
|
@@ -2272,11 +2138,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2272
2138
|
}
|
|
2273
2139
|
),
|
|
2274
2140
|
/* @__PURE__ */ t.jsx(
|
|
2275
|
-
|
|
2141
|
+
pn,
|
|
2276
2142
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2277
|
-
|
|
2143
|
+
se,
|
|
2278
2144
|
{
|
|
2279
|
-
as:
|
|
2145
|
+
as: $n,
|
|
2280
2146
|
color: "viridian.lighter",
|
|
2281
2147
|
width: "24px",
|
|
2282
2148
|
height: "24px",
|
|
@@ -2294,17 +2160,17 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2294
2160
|
] }
|
|
2295
2161
|
),
|
|
2296
2162
|
/* @__PURE__ */ t.jsxs(
|
|
2297
|
-
|
|
2163
|
+
y,
|
|
2298
2164
|
{ children: [
|
|
2299
2165
|
/* @__PURE__ */ t.jsx(
|
|
2300
|
-
|
|
2166
|
+
F,
|
|
2301
2167
|
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children: s }
|
|
2302
2168
|
),
|
|
2303
2169
|
/* @__PURE__ */ t.jsx(
|
|
2304
|
-
|
|
2170
|
+
R,
|
|
2305
2171
|
{ gap: 3, children: n == null ? void 0 : n.map(
|
|
2306
2172
|
(x) => /* @__PURE__ */ t.jsx(
|
|
2307
|
-
|
|
2173
|
+
ee,
|
|
2308
2174
|
{
|
|
2309
2175
|
href: x.href,
|
|
2310
2176
|
target: "_blank",
|
|
@@ -2312,7 +2178,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2312
2178
|
"aria-label": x.name,
|
|
2313
2179
|
onClick: () => f(x.name),
|
|
2314
2180
|
children: Ot[x.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2315
|
-
|
|
2181
|
+
se,
|
|
2316
2182
|
{
|
|
2317
2183
|
as: Ot[x.name.toLowerCase()],
|
|
2318
2184
|
color: "white",
|
|
@@ -2329,18 +2195,18 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2329
2195
|
)
|
|
2330
2196
|
] }
|
|
2331
2197
|
);
|
|
2332
|
-
},
|
|
2198
|
+
}, lr = ({
|
|
2333
2199
|
links: n,
|
|
2334
2200
|
linkComponent: o,
|
|
2335
2201
|
onLinkClick: s
|
|
2336
2202
|
}) => {
|
|
2337
|
-
const
|
|
2203
|
+
const l = o || ee, c = (p) => {
|
|
2338
2204
|
s && s(p);
|
|
2339
2205
|
}, u = n == null ? void 0 : n.map(
|
|
2340
2206
|
(p) => /* @__PURE__ */ t.jsx(
|
|
2341
|
-
|
|
2207
|
+
F,
|
|
2342
2208
|
{
|
|
2343
|
-
as:
|
|
2209
|
+
as: l,
|
|
2344
2210
|
color: "viridian.lighter",
|
|
2345
2211
|
size: "sm",
|
|
2346
2212
|
_hover: { color: "white", textDecoration: "none" },
|
|
@@ -2352,7 +2218,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2352
2218
|
)
|
|
2353
2219
|
);
|
|
2354
2220
|
return /* @__PURE__ */ t.jsxs(
|
|
2355
|
-
|
|
2221
|
+
R,
|
|
2356
2222
|
{
|
|
2357
2223
|
direction: ["column", "column", "row"],
|
|
2358
2224
|
justify: "space-between",
|
|
@@ -2360,7 +2226,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2360
2226
|
gap: [6, 6, 0],
|
|
2361
2227
|
children: [
|
|
2362
2228
|
/* @__PURE__ */ t.jsx(
|
|
2363
|
-
|
|
2229
|
+
R,
|
|
2364
2230
|
{
|
|
2365
2231
|
direction: "row",
|
|
2366
2232
|
flexWrap: "wrap",
|
|
@@ -2370,7 +2236,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2370
2236
|
}
|
|
2371
2237
|
),
|
|
2372
2238
|
/* @__PURE__ */ t.jsxs(
|
|
2373
|
-
|
|
2239
|
+
F,
|
|
2374
2240
|
{ color: "viridian.lighter", fontSize: "sm", children: [
|
|
2375
2241
|
"© Everlywell ",
|
|
2376
2242
|
(/* @__PURE__ */ new Date()).getFullYear()
|
|
@@ -2379,11 +2245,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2379
2245
|
]
|
|
2380
2246
|
}
|
|
2381
2247
|
);
|
|
2382
|
-
},
|
|
2248
|
+
}, br = Le.forwardRef(({
|
|
2383
2249
|
navigationSections: n = [],
|
|
2384
2250
|
disclaimer: o,
|
|
2385
2251
|
newsletterLabel: s,
|
|
2386
|
-
socialMediaLabel:
|
|
2252
|
+
socialMediaLabel: l,
|
|
2387
2253
|
socialLinks: c,
|
|
2388
2254
|
complianceLinks: u,
|
|
2389
2255
|
linkComponent: p,
|
|
@@ -2392,20 +2258,20 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2392
2258
|
onLinkClick: d,
|
|
2393
2259
|
onSocialMediaClick: f,
|
|
2394
2260
|
showNewsletter: x = !0
|
|
2395
|
-
},
|
|
2396
|
-
|
|
2397
|
-
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref:
|
|
2398
|
-
|
|
2261
|
+
}, j) => /* @__PURE__ */ t.jsx(
|
|
2262
|
+
y,
|
|
2263
|
+
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref: j, children: /* @__PURE__ */ t.jsxs(
|
|
2264
|
+
hn,
|
|
2399
2265
|
{ size: "fluid", children: [
|
|
2400
2266
|
/* @__PURE__ */ t.jsxs(
|
|
2401
|
-
|
|
2267
|
+
R,
|
|
2402
2268
|
{ direction: "column", gap: [8, 12], children: [
|
|
2403
2269
|
/* @__PURE__ */ t.jsx(
|
|
2404
|
-
|
|
2405
|
-
{ children: /* @__PURE__ */ t.jsx(
|
|
2270
|
+
y,
|
|
2271
|
+
{ children: /* @__PURE__ */ t.jsx(Wt, { width: ["150px", "202px"], color: "white" }) }
|
|
2406
2272
|
),
|
|
2407
2273
|
/* @__PURE__ */ t.jsxs(
|
|
2408
|
-
|
|
2274
|
+
R,
|
|
2409
2275
|
{
|
|
2410
2276
|
direction: ["column", null, null, "row"],
|
|
2411
2277
|
justify: "space-between",
|
|
@@ -2413,7 +2279,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2413
2279
|
gap: [8, 8, 8, 0],
|
|
2414
2280
|
children: [
|
|
2415
2281
|
/* @__PURE__ */ t.jsx(
|
|
2416
|
-
|
|
2282
|
+
ar,
|
|
2417
2283
|
{
|
|
2418
2284
|
sections: n,
|
|
2419
2285
|
linkComponent: p,
|
|
@@ -2421,11 +2287,11 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2421
2287
|
}
|
|
2422
2288
|
),
|
|
2423
2289
|
/* @__PURE__ */ t.jsx(
|
|
2424
|
-
|
|
2290
|
+
ir,
|
|
2425
2291
|
{
|
|
2426
2292
|
socialLinks: c,
|
|
2427
2293
|
newsletterLabel: s,
|
|
2428
|
-
socialMediaLabel:
|
|
2294
|
+
socialMediaLabel: l,
|
|
2429
2295
|
onEmailSubmit: v,
|
|
2430
2296
|
onLinkClick: f,
|
|
2431
2297
|
showNewsletter: x
|
|
@@ -2435,7 +2301,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2435
2301
|
}
|
|
2436
2302
|
),
|
|
2437
2303
|
/* @__PURE__ */ t.jsxs(
|
|
2438
|
-
|
|
2304
|
+
R,
|
|
2439
2305
|
{
|
|
2440
2306
|
direction: ["column", "column", "row"],
|
|
2441
2307
|
justify: "space-between",
|
|
@@ -2444,7 +2310,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2444
2310
|
gap: [6, 6, 0],
|
|
2445
2311
|
children: [
|
|
2446
2312
|
o && /* @__PURE__ */ t.jsx(
|
|
2447
|
-
|
|
2313
|
+
F,
|
|
2448
2314
|
{
|
|
2449
2315
|
color: "viridian.lighter",
|
|
2450
2316
|
fontSize: "sm",
|
|
@@ -2462,16 +2328,16 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2462
2328
|
] }
|
|
2463
2329
|
),
|
|
2464
2330
|
/* @__PURE__ */ t.jsx(
|
|
2465
|
-
|
|
2331
|
+
y,
|
|
2466
2332
|
{
|
|
2467
2333
|
borderTop: "1px solid",
|
|
2468
|
-
borderColor: `${
|
|
2334
|
+
borderColor: `${Z.colors.viridian.lighter}20`,
|
|
2469
2335
|
marginTop: "10",
|
|
2470
2336
|
marginBottom: "8"
|
|
2471
2337
|
}
|
|
2472
2338
|
),
|
|
2473
2339
|
/* @__PURE__ */ t.jsx(
|
|
2474
|
-
|
|
2340
|
+
lr,
|
|
2475
2341
|
{
|
|
2476
2342
|
disclaimer: o,
|
|
2477
2343
|
links: u,
|
|
@@ -2481,27 +2347,27 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2481
2347
|
)
|
|
2482
2348
|
] }
|
|
2483
2349
|
) }
|
|
2484
|
-
)),
|
|
2485
|
-
Container:
|
|
2486
|
-
Overlay:
|
|
2487
|
-
Content:
|
|
2488
|
-
Header:
|
|
2489
|
-
Body:
|
|
2490
|
-
Footer:
|
|
2491
|
-
CloseButton:
|
|
2350
|
+
)), sr = (n) => n ? {
|
|
2351
|
+
Container: Pt,
|
|
2352
|
+
Overlay: At,
|
|
2353
|
+
Content: Mt,
|
|
2354
|
+
Header: $t,
|
|
2355
|
+
Body: Bt,
|
|
2356
|
+
Footer: gn,
|
|
2357
|
+
CloseButton: xn
|
|
2492
2358
|
} : {
|
|
2493
|
-
Container:
|
|
2494
|
-
Overlay:
|
|
2495
|
-
Content:
|
|
2496
|
-
Header:
|
|
2497
|
-
Body:
|
|
2498
|
-
Footer:
|
|
2499
|
-
CloseButton:
|
|
2500
|
-
},
|
|
2359
|
+
Container: vn,
|
|
2360
|
+
Overlay: mn,
|
|
2361
|
+
Content: bn,
|
|
2362
|
+
Header: wn,
|
|
2363
|
+
Body: jn,
|
|
2364
|
+
Footer: Cn,
|
|
2365
|
+
CloseButton: yn
|
|
2366
|
+
}, wr = ({
|
|
2501
2367
|
isOpen: n,
|
|
2502
2368
|
onClose: o,
|
|
2503
2369
|
children: s,
|
|
2504
|
-
header:
|
|
2370
|
+
header: l,
|
|
2505
2371
|
footer: c,
|
|
2506
2372
|
headerProps: u,
|
|
2507
2373
|
bodyProps: p,
|
|
@@ -2509,18 +2375,18 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2509
2375
|
contentProps: g,
|
|
2510
2376
|
...d
|
|
2511
2377
|
}) => {
|
|
2512
|
-
var
|
|
2513
|
-
const [f] = ct(`(max-width: ${
|
|
2514
|
-
Container:
|
|
2515
|
-
Overlay:
|
|
2516
|
-
Content:
|
|
2517
|
-
Header:
|
|
2518
|
-
Body:
|
|
2519
|
-
Footer:
|
|
2520
|
-
CloseButton:
|
|
2521
|
-
} =
|
|
2378
|
+
var N, A, H, X, te;
|
|
2379
|
+
const [f] = ct(`(max-width: ${Z.breakpoints.tablet})`), x = (te = (X = (H = (A = (N = Z) == null ? void 0 : N.components) == null ? void 0 : A.Modal) == null ? void 0 : H.baseStyle) == null ? void 0 : X.overlay) == null ? void 0 : te.background, {
|
|
2380
|
+
Container: j,
|
|
2381
|
+
Overlay: k,
|
|
2382
|
+
Content: E,
|
|
2383
|
+
Header: I,
|
|
2384
|
+
Body: b,
|
|
2385
|
+
Footer: z,
|
|
2386
|
+
CloseButton: D
|
|
2387
|
+
} = sr(f);
|
|
2522
2388
|
return /* @__PURE__ */ t.jsxs(
|
|
2523
|
-
|
|
2389
|
+
j,
|
|
2524
2390
|
{
|
|
2525
2391
|
...d,
|
|
2526
2392
|
isOpen: n,
|
|
@@ -2528,19 +2394,19 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2528
2394
|
size: "xl",
|
|
2529
2395
|
...f ? { placement: "bottom" } : {},
|
|
2530
2396
|
children: [
|
|
2531
|
-
/* @__PURE__ */ t.jsx(
|
|
2397
|
+
/* @__PURE__ */ t.jsx(k, { backdropFilter: "auto", backgroundColor: x }),
|
|
2532
2398
|
/* @__PURE__ */ t.jsxs(
|
|
2533
|
-
|
|
2399
|
+
E,
|
|
2534
2400
|
{
|
|
2535
2401
|
backgroundColor: "tints.white",
|
|
2536
2402
|
borderRadius: f ? "20px 20px 0 0" : "20px",
|
|
2537
2403
|
overflowY: "auto",
|
|
2538
2404
|
gap: 0,
|
|
2539
|
-
...
|
|
2405
|
+
...l && f && { paddingTop: 0 },
|
|
2540
2406
|
...g,
|
|
2541
2407
|
children: [
|
|
2542
2408
|
/* @__PURE__ */ t.jsxs(
|
|
2543
|
-
|
|
2409
|
+
I,
|
|
2544
2410
|
{
|
|
2545
2411
|
display: "flex",
|
|
2546
2412
|
width: "100%",
|
|
@@ -2557,9 +2423,9 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2557
2423
|
...f ? { paddingBlock: 4 } : { paddingTop: 6, paddingBlockEnd: 2 },
|
|
2558
2424
|
...u,
|
|
2559
2425
|
children: [
|
|
2560
|
-
|
|
2426
|
+
l,
|
|
2561
2427
|
/* @__PURE__ */ t.jsx(
|
|
2562
|
-
|
|
2428
|
+
D,
|
|
2563
2429
|
{
|
|
2564
2430
|
position: "static",
|
|
2565
2431
|
width: 32,
|
|
@@ -2570,14 +2436,14 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2570
2436
|
fontSize: "1rem"
|
|
2571
2437
|
}
|
|
2572
2438
|
},
|
|
2573
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2439
|
+
children: /* @__PURE__ */ t.jsx(se, { as: zt, weight: "light" })
|
|
2574
2440
|
}
|
|
2575
2441
|
)
|
|
2576
2442
|
]
|
|
2577
2443
|
}
|
|
2578
2444
|
),
|
|
2579
2445
|
/* @__PURE__ */ t.jsx(
|
|
2580
|
-
|
|
2446
|
+
b,
|
|
2581
2447
|
{
|
|
2582
2448
|
color: "tints.darkGrey",
|
|
2583
2449
|
paddingInline: 4,
|
|
@@ -2585,7 +2451,7 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2585
2451
|
children: s
|
|
2586
2452
|
}
|
|
2587
2453
|
),
|
|
2588
|
-
/* @__PURE__ */ t.jsx(
|
|
2454
|
+
/* @__PURE__ */ t.jsx(z, { paddingInline: 4, ...v, children: c })
|
|
2589
2455
|
]
|
|
2590
2456
|
}
|
|
2591
2457
|
)
|
|
@@ -2594,17 +2460,18 @@ const lt = 60, St = 6, Un = (n) => {
|
|
|
2594
2460
|
);
|
|
2595
2461
|
};
|
|
2596
2462
|
export {
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2463
|
+
xr as BasketButton,
|
|
2464
|
+
gr as CategoryLabel,
|
|
2465
|
+
wr as DrawerModal,
|
|
2466
|
+
br as Footer,
|
|
2467
|
+
it as NavButton,
|
|
2468
|
+
vr as NavSkeleton,
|
|
2603
2469
|
st as NavbarDrawer,
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2470
|
+
Ue as NavbarDrawerLink,
|
|
2471
|
+
mr as NavigationBar,
|
|
2472
|
+
Gn as SpotlightCard,
|
|
2473
|
+
hr as Stepper,
|
|
2474
|
+
dt as TopNavIconButton,
|
|
2475
|
+
Zn as TopNavigation,
|
|
2476
|
+
nr as useNavigationBar
|
|
2610
2477
|
};
|