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