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