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