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