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