@everlywell/consumer-ui 1.31.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -10
- package/index.mjs +708 -677
- package/lib/components/Navbar/NavButton/NavButton.d.ts.map +1 -1
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.d.ts +3 -3
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.d.ts.map +1 -1
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.d.ts +1 -1
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.builder.d.ts +2 -2
- package/lib/components/Navbar/NavigationBar/NavigationBar.builder.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts +6 -4
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as Wt, Box as
|
|
2
|
-
import
|
|
3
|
-
import { Text as qt, useBreakpointValue as mt, InputGroup as Qt, Input as
|
|
4
|
-
import { CaretRight as
|
|
5
|
-
import { motion as
|
|
6
|
-
var
|
|
1
|
+
import { useSteps as Wt, Box as y, Stepper as Mt, Icon as se, Flex as D, Text as K, Link as z, Button as gt, Image as Bt, IconButton as Vt, VStack as Nt, Skeleton as Ne, HStack as st, SkeletonCircle as Oe, DrawerContent as Yt, DrawerOverlay as zt, Drawer as Ut, DrawerHeader as Gt, DrawerBody as Zt, Grid as Kt, GridItem as Xt } from "@everlywell/ui-kit";
|
|
2
|
+
import Ke, { useEffect as q, forwardRef as xt, useRef as Jt, useCallback as bt, useState as W } from "react";
|
|
3
|
+
import { Text as qt, useBreakpointValue as mt, InputGroup as Qt, Input as er, InputRightElement as tr, Icon as rr } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as ut, MagnifyingGlass as jt, List as nr, Basket as lr, CaretLeft as ar, X as ir, User as ct, QrCode as or } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as Xe, AnimatePresence as sr } from "framer-motion";
|
|
6
|
+
var Ge = { exports: {} }, we = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,25 +13,25 @@ var Ue = { exports: {} }, Ce = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
var l =
|
|
22
|
-
function m(R, c,
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
|
|
16
|
+
var dt;
|
|
17
|
+
function ur() {
|
|
18
|
+
if (dt)
|
|
19
|
+
return we;
|
|
20
|
+
dt = 1;
|
|
21
|
+
var l = Ke, o = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, w = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function m(R, c, b) {
|
|
23
|
+
var s, j = {}, v = null, u = null;
|
|
24
|
+
b !== void 0 && (v = "" + b), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (u = c.ref);
|
|
25
|
+
for (s in c)
|
|
26
|
+
d.call(c, s) && !g.hasOwnProperty(s) && (j[s] = c[s]);
|
|
27
27
|
if (R && R.defaultProps)
|
|
28
|
-
for (
|
|
29
|
-
|
|
30
|
-
return { $$typeof:
|
|
28
|
+
for (s in c = R.defaultProps, c)
|
|
29
|
+
j[s] === void 0 && (j[s] = c[s]);
|
|
30
|
+
return { $$typeof: o, type: R, key: v, ref: u, props: j, _owner: w.current };
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return we.Fragment = p, we.jsx = m, we.jsxs = m, we;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var ye = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -42,53 +42,53 @@ var je = {};
|
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
44
|
var ft;
|
|
45
|
-
function
|
|
45
|
+
function cr() {
|
|
46
46
|
return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var l =
|
|
47
|
+
var l = Ke, o = Symbol.for("react.element"), p = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), R = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), O = Symbol.iterator, M = "@@iterator";
|
|
48
48
|
function Q(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var
|
|
52
|
-
return typeof
|
|
51
|
+
var r = O && e[O] || e[M];
|
|
52
|
+
return typeof r == "function" ? r : null;
|
|
53
53
|
}
|
|
54
54
|
var F = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
55
|
function _(e) {
|
|
56
56
|
{
|
|
57
|
-
for (var
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
58
|
+
n[i - 1] = arguments[i];
|
|
59
|
+
ce("error", e, n);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ce(e, r, n) {
|
|
63
63
|
{
|
|
64
|
-
var i = F.ReactDebugCurrentFrame,
|
|
65
|
-
|
|
66
|
-
var C =
|
|
64
|
+
var i = F.ReactDebugCurrentFrame, x = i.getStackAddendum();
|
|
65
|
+
x !== "" && (r += "%s", n = n.concat([x]));
|
|
66
|
+
var C = n.map(function(h) {
|
|
67
67
|
return String(h);
|
|
68
68
|
});
|
|
69
|
-
C.unshift("Warning: " +
|
|
69
|
+
C.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, C);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
|
|
72
|
+
var de = !1, fe = !1, H = !1, ee = !1, B = !1, E;
|
|
73
|
+
E = Symbol.for("react.module.reference");
|
|
74
74
|
function V(e) {
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === g || B || e === w || e === b || e === s || ee || e === u || de || fe || H || typeof e == "object" && e !== null && (e.$$typeof === v || e.$$typeof === j || e.$$typeof === m || e.$$typeof === R || e.$$typeof === c || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
|
-
e.$$typeof ===
|
|
79
|
+
e.$$typeof === E || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ee(e, r, n) {
|
|
82
82
|
var i = e.displayName;
|
|
83
83
|
if (i)
|
|
84
84
|
return i;
|
|
85
|
-
var
|
|
86
|
-
return
|
|
85
|
+
var x = r.displayName || r.name || "";
|
|
86
|
+
return x !== "" ? n + "(" + x + ")" : n;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function pe(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function A(e) {
|
|
92
92
|
if (e == null)
|
|
93
93
|
return null;
|
|
94
94
|
if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -96,36 +96,36 @@ function fn() {
|
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
|
-
case
|
|
99
|
+
case d:
|
|
100
100
|
return "Fragment";
|
|
101
101
|
case p:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case g:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case
|
|
105
|
+
case w:
|
|
106
106
|
return "StrictMode";
|
|
107
|
-
case
|
|
107
|
+
case b:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case s:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
114
|
case R:
|
|
115
|
-
var n = e;
|
|
116
|
-
return fe(n) + ".Consumer";
|
|
117
|
-
case m:
|
|
118
115
|
var r = e;
|
|
119
|
-
return
|
|
116
|
+
return pe(r) + ".Consumer";
|
|
117
|
+
case m:
|
|
118
|
+
var n = e;
|
|
119
|
+
return pe(n._context) + ".Provider";
|
|
120
120
|
case c:
|
|
121
|
-
return
|
|
122
|
-
case
|
|
121
|
+
return Ee(e, e.render, "ForwardRef");
|
|
122
|
+
case j:
|
|
123
123
|
var i = e.displayName || null;
|
|
124
|
-
return i !== null ? i :
|
|
125
|
-
case
|
|
126
|
-
var
|
|
124
|
+
return i !== null ? i : A(e.type) || "Memo";
|
|
125
|
+
case v: {
|
|
126
|
+
var x = e, C = x._payload, h = x._init;
|
|
127
127
|
try {
|
|
128
|
-
return
|
|
128
|
+
return A(h(C));
|
|
129
129
|
} catch {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
@@ -133,18 +133,18 @@ function fn() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var N = Object.assign, Y = 0,
|
|
137
|
-
function
|
|
136
|
+
var N = Object.assign, Y = 0, Re, _e, te, Se, he, re, Te;
|
|
137
|
+
function ke() {
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
function
|
|
139
|
+
ke.__reactDisabledLog = !0;
|
|
140
|
+
function ve() {
|
|
141
141
|
{
|
|
142
142
|
if (Y === 0) {
|
|
143
|
-
|
|
143
|
+
Re = console.log, _e = console.info, te = console.warn, Se = console.error, he = console.group, re = console.groupCollapsed, Te = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
147
|
-
value:
|
|
147
|
+
value: ke,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
@@ -160,7 +160,7 @@ function fn() {
|
|
|
160
160
|
Y++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function U() {
|
|
164
164
|
{
|
|
165
165
|
if (Y--, Y === 0) {
|
|
166
166
|
var e = {
|
|
@@ -170,66 +170,66 @@ function fn() {
|
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
172
|
log: N({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: Re
|
|
174
174
|
}),
|
|
175
175
|
info: N({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: _e
|
|
177
177
|
}),
|
|
178
178
|
warn: N({}, e, {
|
|
179
|
-
value:
|
|
179
|
+
value: te
|
|
180
180
|
}),
|
|
181
181
|
error: N({}, e, {
|
|
182
|
-
value:
|
|
182
|
+
value: Se
|
|
183
183
|
}),
|
|
184
184
|
group: N({}, e, {
|
|
185
|
-
value:
|
|
185
|
+
value: he
|
|
186
186
|
}),
|
|
187
187
|
groupCollapsed: N({}, e, {
|
|
188
|
-
value:
|
|
188
|
+
value: re
|
|
189
189
|
}),
|
|
190
190
|
groupEnd: N({}, e, {
|
|
191
|
-
value:
|
|
191
|
+
value: Te
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
Y < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var ge = F.ReactCurrentDispatcher, xe;
|
|
199
|
+
function ne(e, r, n) {
|
|
200
200
|
{
|
|
201
|
-
if (
|
|
201
|
+
if (xe === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var i =
|
|
206
|
-
|
|
204
|
+
} catch (x) {
|
|
205
|
+
var i = x.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
+
xe = i && i[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
|
-
` +
|
|
209
|
+
` + xe + e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var be = !1, le;
|
|
213
213
|
{
|
|
214
214
|
var Ie = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
-
|
|
215
|
+
le = new Ie();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!e ||
|
|
217
|
+
function De(e, r) {
|
|
218
|
+
if (!e || be)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
return
|
|
221
|
+
var n = le.get(e);
|
|
222
|
+
if (n !== void 0)
|
|
223
|
+
return n;
|
|
224
224
|
}
|
|
225
225
|
var i;
|
|
226
|
-
|
|
227
|
-
var
|
|
226
|
+
be = !0;
|
|
227
|
+
var x = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var C;
|
|
230
|
-
C =
|
|
230
|
+
C = ge.current, ge.current = null, ve();
|
|
231
231
|
try {
|
|
232
|
-
if (
|
|
232
|
+
if (r) {
|
|
233
233
|
var h = function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
};
|
|
@@ -240,253 +240,253 @@ function fn() {
|
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
242
|
Reflect.construct(h, []);
|
|
243
|
-
} catch (
|
|
244
|
-
i =
|
|
243
|
+
} catch (I) {
|
|
244
|
+
i = I;
|
|
245
245
|
}
|
|
246
246
|
Reflect.construct(e, [], h);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
h.call();
|
|
250
|
-
} catch (
|
|
251
|
-
i =
|
|
250
|
+
} catch (I) {
|
|
251
|
+
i = I;
|
|
252
252
|
}
|
|
253
253
|
e.call(h.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
|
-
} catch (
|
|
259
|
-
i =
|
|
258
|
+
} catch (I) {
|
|
259
|
+
i = I;
|
|
260
260
|
}
|
|
261
261
|
e();
|
|
262
262
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var
|
|
266
|
-
`),
|
|
267
|
-
`), S =
|
|
263
|
+
} catch (I) {
|
|
264
|
+
if (I && i && typeof I.stack == "string") {
|
|
265
|
+
for (var f = I.stack.split(`
|
|
266
|
+
`), L = i.stack.split(`
|
|
267
|
+
`), S = f.length - 1, T = L.length - 1; S >= 1 && T >= 0 && f[S] !== L[T]; )
|
|
268
268
|
T--;
|
|
269
269
|
for (; S >= 1 && T >= 0; S--, T--)
|
|
270
|
-
if (
|
|
270
|
+
if (f[S] !== L[T]) {
|
|
271
271
|
if (S !== 1 || T !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (S--, T--, T < 0 ||
|
|
273
|
+
if (S--, T--, T < 0 || f[S] !== L[T]) {
|
|
274
274
|
var $ = `
|
|
275
|
-
` +
|
|
276
|
-
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
275
|
+
` + f[S].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, $), $;
|
|
277
277
|
}
|
|
278
278
|
while (S >= 1 && T >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
be = !1, ge.current = C, U(), Error.prepareStackTrace = x;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
return typeof e == "function" &&
|
|
285
|
+
var oe = e ? e.displayName || e.name : "", J = oe ? ne(oe) : "";
|
|
286
|
+
return typeof e == "function" && le.set(e, J), J;
|
|
287
287
|
}
|
|
288
|
-
function Ae(e,
|
|
289
|
-
return
|
|
288
|
+
function Ae(e, r, n) {
|
|
289
|
+
return De(e, !1);
|
|
290
290
|
}
|
|
291
291
|
function Fe(e) {
|
|
292
|
-
var
|
|
293
|
-
return !!(
|
|
292
|
+
var r = e.prototype;
|
|
293
|
+
return !!(r && r.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function ae(e, r, n) {
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
299
|
+
return De(e, Fe(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return ne(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
303
|
+
case b:
|
|
304
|
+
return ne("Suspense");
|
|
305
|
+
case s:
|
|
306
|
+
return ne("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
310
|
case c:
|
|
311
311
|
return Ae(e.render);
|
|
312
|
-
case
|
|
313
|
-
return
|
|
314
|
-
case
|
|
315
|
-
var i = e,
|
|
312
|
+
case j:
|
|
313
|
+
return ae(e.type, r, n);
|
|
314
|
+
case v: {
|
|
315
|
+
var i = e, x = i._payload, C = i._init;
|
|
316
316
|
try {
|
|
317
|
-
return
|
|
317
|
+
return ae(C(x), r, n);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
324
|
+
var G = Object.prototype.hasOwnProperty, me = {}, je = F.ReactDebugCurrentFrame;
|
|
325
|
+
function a(e) {
|
|
326
326
|
if (e) {
|
|
327
|
-
var
|
|
328
|
-
|
|
327
|
+
var r = e._owner, n = ae(e.type, e._source, r ? r.type : null);
|
|
328
|
+
je.setExtraStackFrame(n);
|
|
329
329
|
} else
|
|
330
|
-
|
|
330
|
+
je.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function k(e, r, n, i, x) {
|
|
333
333
|
{
|
|
334
|
-
var C = Function.call.bind(
|
|
334
|
+
var C = Function.call.bind(G);
|
|
335
335
|
for (var h in e)
|
|
336
336
|
if (C(e, h)) {
|
|
337
|
-
var
|
|
337
|
+
var f = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof e[h] != "function") {
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
340
|
+
var L = Error((i || "React class") + ": " + n + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
|
+
throw L.name = "Invariant Violation", L;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
f = e[h](r, h, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (S) {
|
|
345
|
-
|
|
345
|
+
f = S;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
f && !(f instanceof Error) && (a(x), _("%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).", i || "React class", n, h, typeof f), a(null)), f instanceof Error && !(f.message in me) && (me[f.message] = !0, a(x), _("Failed %s type: %s", n, f.message), a(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var
|
|
352
|
-
function
|
|
353
|
-
return
|
|
351
|
+
var Z = Array.isArray;
|
|
352
|
+
function P(e) {
|
|
353
|
+
return Z(e);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function He(e) {
|
|
356
356
|
{
|
|
357
|
-
var
|
|
358
|
-
return
|
|
357
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
358
|
+
return n;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function X(e) {
|
|
362
362
|
try {
|
|
363
|
-
return
|
|
363
|
+
return Je(e), !1;
|
|
364
364
|
} catch {
|
|
365
365
|
return !0;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Je(e) {
|
|
369
369
|
return "" + e;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
if (
|
|
373
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
371
|
+
function qe(e) {
|
|
372
|
+
if (X(e))
|
|
373
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Je(e);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var Ce = F.ReactCurrentOwner, Ct = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
|
-
},
|
|
381
|
-
|
|
380
|
+
}, Qe, et, $e;
|
|
381
|
+
$e = {};
|
|
382
382
|
function wt(e) {
|
|
383
|
-
if (
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
383
|
+
if (G.call(e, "ref")) {
|
|
384
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
385
|
+
if (r && r.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return e.ref !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function yt(e) {
|
|
391
|
-
if (
|
|
392
|
-
var
|
|
393
|
-
if (
|
|
391
|
+
if (G.call(e, "key")) {
|
|
392
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
393
|
+
if (r && r.isReactWarning)
|
|
394
394
|
return !1;
|
|
395
395
|
}
|
|
396
396
|
return e.key !== void 0;
|
|
397
397
|
}
|
|
398
|
-
function Et(e,
|
|
399
|
-
if (typeof e.ref == "string" &&
|
|
400
|
-
var
|
|
401
|
-
|
|
398
|
+
function Et(e, r) {
|
|
399
|
+
if (typeof e.ref == "string" && Ce.current && r && Ce.current.stateNode !== r) {
|
|
400
|
+
var n = A(Ce.current.type);
|
|
401
|
+
$e[n] || (_('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', A(Ce.current.type), e.ref), $e[n] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function Rt(e,
|
|
404
|
+
function Rt(e, r) {
|
|
405
405
|
{
|
|
406
|
-
var
|
|
407
|
-
|
|
406
|
+
var n = function() {
|
|
407
|
+
Qe || (Qe = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
408
408
|
};
|
|
409
|
-
|
|
410
|
-
get:
|
|
409
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
410
|
+
get: n,
|
|
411
411
|
configurable: !0
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function _t(e,
|
|
415
|
+
function _t(e, r) {
|
|
416
416
|
{
|
|
417
|
-
var
|
|
418
|
-
|
|
417
|
+
var n = function() {
|
|
418
|
+
et || (et = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
419
419
|
};
|
|
420
|
-
|
|
421
|
-
get:
|
|
420
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
421
|
+
get: n,
|
|
422
422
|
configurable: !0
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var St = function(e,
|
|
427
|
-
var
|
|
426
|
+
var St = function(e, r, n, i, x, C, h) {
|
|
427
|
+
var f = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
|
-
$$typeof:
|
|
429
|
+
$$typeof: o,
|
|
430
430
|
// Built-in properties that belong on the element
|
|
431
431
|
type: e,
|
|
432
|
-
key:
|
|
433
|
-
ref:
|
|
432
|
+
key: r,
|
|
433
|
+
ref: n,
|
|
434
434
|
props: h,
|
|
435
435
|
// Record the component responsible for creating this element.
|
|
436
436
|
_owner: C
|
|
437
437
|
};
|
|
438
|
-
return
|
|
438
|
+
return f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !0,
|
|
442
442
|
value: !1
|
|
443
|
-
}), Object.defineProperty(
|
|
443
|
+
}), Object.defineProperty(f, "_self", {
|
|
444
444
|
configurable: !1,
|
|
445
445
|
enumerable: !1,
|
|
446
446
|
writable: !1,
|
|
447
447
|
value: i
|
|
448
|
-
}), Object.defineProperty(
|
|
448
|
+
}), Object.defineProperty(f, "_source", {
|
|
449
449
|
configurable: !1,
|
|
450
450
|
enumerable: !1,
|
|
451
451
|
writable: !1,
|
|
452
|
-
value:
|
|
453
|
-
}), Object.freeze && (Object.freeze(
|
|
452
|
+
value: x
|
|
453
|
+
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
454
454
|
};
|
|
455
|
-
function Tt(e,
|
|
455
|
+
function Tt(e, r, n, i, x) {
|
|
456
456
|
{
|
|
457
|
-
var C, h = {},
|
|
458
|
-
|
|
459
|
-
for (C in
|
|
460
|
-
|
|
457
|
+
var C, h = {}, f = null, L = null;
|
|
458
|
+
n !== void 0 && (qe(n), f = "" + n), yt(r) && (qe(r.key), f = "" + r.key), wt(r) && (L = r.ref, Et(r, x));
|
|
459
|
+
for (C in r)
|
|
460
|
+
G.call(r, C) && !Ct.hasOwnProperty(C) && (h[C] = r[C]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
462
462
|
var S = e.defaultProps;
|
|
463
463
|
for (C in S)
|
|
464
464
|
h[C] === void 0 && (h[C] = S[C]);
|
|
465
465
|
}
|
|
466
|
-
if (
|
|
466
|
+
if (f || L) {
|
|
467
467
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
-
|
|
468
|
+
f && Rt(h, T), L && _t(h, T);
|
|
469
469
|
}
|
|
470
|
-
return St(e,
|
|
470
|
+
return St(e, f, L, x, i, Ce.current, h);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
function
|
|
473
|
+
var We = F.ReactCurrentOwner, tt = F.ReactDebugCurrentFrame;
|
|
474
|
+
function ie(e) {
|
|
475
475
|
if (e) {
|
|
476
|
-
var
|
|
477
|
-
|
|
476
|
+
var r = e._owner, n = ae(e.type, e._source, r ? r.type : null);
|
|
477
|
+
tt.setExtraStackFrame(n);
|
|
478
478
|
} else
|
|
479
|
-
|
|
479
|
+
tt.setExtraStackFrame(null);
|
|
480
480
|
}
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
function
|
|
484
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
481
|
+
var Me;
|
|
482
|
+
Me = !1;
|
|
483
|
+
function Be(e) {
|
|
484
|
+
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function rt() {
|
|
487
487
|
{
|
|
488
|
-
if (
|
|
489
|
-
var e =
|
|
488
|
+
if (We.current) {
|
|
489
|
+
var e = A(We.current.type);
|
|
490
490
|
if (e)
|
|
491
491
|
return `
|
|
492
492
|
|
|
@@ -498,203 +498,203 @@ Check the render method of \`` + e + "`.";
|
|
|
498
498
|
function kt(e) {
|
|
499
499
|
{
|
|
500
500
|
if (e !== void 0) {
|
|
501
|
-
var
|
|
501
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
502
502
|
return `
|
|
503
503
|
|
|
504
|
-
Check your code at ` +
|
|
504
|
+
Check your code at ` + r + ":" + n + ".";
|
|
505
505
|
}
|
|
506
506
|
return "";
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
var nt = {};
|
|
510
|
-
function
|
|
510
|
+
function Dt(e) {
|
|
511
511
|
{
|
|
512
|
-
var
|
|
513
|
-
if (!
|
|
514
|
-
var
|
|
515
|
-
|
|
512
|
+
var r = rt();
|
|
513
|
+
if (!r) {
|
|
514
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
515
|
+
n && (r = `
|
|
516
516
|
|
|
517
|
-
Check the top-level render call using <` +
|
|
517
|
+
Check the top-level render call using <` + n + ">.");
|
|
518
518
|
}
|
|
519
|
-
return
|
|
519
|
+
return r;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function lt(e, r) {
|
|
523
523
|
{
|
|
524
524
|
if (!e._store || e._store.validated || e.key != null)
|
|
525
525
|
return;
|
|
526
526
|
e._store.validated = !0;
|
|
527
|
-
var
|
|
528
|
-
if (nt[
|
|
527
|
+
var n = Dt(r);
|
|
528
|
+
if (nt[n])
|
|
529
529
|
return;
|
|
530
|
-
nt[
|
|
530
|
+
nt[n] = !0;
|
|
531
531
|
var i = "";
|
|
532
|
-
e && e._owner && e._owner !==
|
|
532
|
+
e && e._owner && e._owner !== We.current && (i = " It was passed a child from " + A(e._owner.type) + "."), ie(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), ie(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function at(e, r) {
|
|
536
536
|
{
|
|
537
537
|
if (typeof e != "object")
|
|
538
538
|
return;
|
|
539
|
-
if (
|
|
540
|
-
for (var
|
|
541
|
-
var i = e[
|
|
542
|
-
|
|
539
|
+
if (P(e))
|
|
540
|
+
for (var n = 0; n < e.length; n++) {
|
|
541
|
+
var i = e[n];
|
|
542
|
+
Be(i) && lt(i, r);
|
|
543
543
|
}
|
|
544
|
-
else if (
|
|
544
|
+
else if (Be(e))
|
|
545
545
|
e._store && (e._store.validated = !0);
|
|
546
546
|
else if (e) {
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
for (var C =
|
|
550
|
-
|
|
547
|
+
var x = Q(e);
|
|
548
|
+
if (typeof x == "function" && x !== e.entries)
|
|
549
|
+
for (var C = x.call(e), h; !(h = C.next()).done; )
|
|
550
|
+
Be(h.value) && lt(h.value, r);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ot(e) {
|
|
555
555
|
{
|
|
556
|
-
var
|
|
557
|
-
if (
|
|
556
|
+
var r = e.type;
|
|
557
|
+
if (r == null || typeof r == "string")
|
|
558
558
|
return;
|
|
559
|
-
var
|
|
560
|
-
if (typeof
|
|
561
|
-
|
|
562
|
-
else if (typeof
|
|
559
|
+
var n;
|
|
560
|
+
if (typeof r == "function")
|
|
561
|
+
n = r.propTypes;
|
|
562
|
+
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
563
563
|
// Inner props are checked in the reconciler.
|
|
564
|
-
|
|
565
|
-
|
|
564
|
+
r.$$typeof === j))
|
|
565
|
+
n = r.propTypes;
|
|
566
566
|
else
|
|
567
567
|
return;
|
|
568
|
-
if (
|
|
569
|
-
var i =
|
|
570
|
-
|
|
571
|
-
} else if (
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
568
|
+
if (n) {
|
|
569
|
+
var i = A(r);
|
|
570
|
+
k(n, e.props, "prop", i, e);
|
|
571
|
+
} else if (r.PropTypes !== void 0 && !Me) {
|
|
572
|
+
Me = !0;
|
|
573
|
+
var x = A(r);
|
|
574
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
575
575
|
}
|
|
576
|
-
typeof
|
|
576
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Pt(e) {
|
|
580
580
|
{
|
|
581
|
-
for (var
|
|
582
|
-
var i = n
|
|
581
|
+
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
582
|
+
var i = r[n];
|
|
583
583
|
if (i !== "children" && i !== "key") {
|
|
584
|
-
|
|
584
|
+
ie(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), ie(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
e.ref !== null && (
|
|
588
|
+
e.ref !== null && (ie(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), ie(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var it = {};
|
|
592
|
-
function
|
|
592
|
+
function ot(e, r, n, i, x, C) {
|
|
593
593
|
{
|
|
594
594
|
var h = V(e);
|
|
595
595
|
if (!h) {
|
|
596
|
-
var
|
|
597
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
598
|
-
var
|
|
599
|
-
|
|
596
|
+
var f = "";
|
|
597
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
+
var L = kt(x);
|
|
599
|
+
L ? f += L : f += rt();
|
|
600
600
|
var S;
|
|
601
|
-
e === null ? S = "null" :
|
|
601
|
+
e === null ? S = "null" : P(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (A(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, f);
|
|
602
602
|
}
|
|
603
|
-
var T = Tt(e,
|
|
603
|
+
var T = Tt(e, r, n, x, C);
|
|
604
604
|
if (T == null)
|
|
605
605
|
return T;
|
|
606
606
|
if (h) {
|
|
607
|
-
var $ =
|
|
607
|
+
var $ = r.children;
|
|
608
608
|
if ($ !== void 0)
|
|
609
609
|
if (i)
|
|
610
|
-
if (
|
|
611
|
-
for (var
|
|
612
|
-
|
|
610
|
+
if (P($)) {
|
|
611
|
+
for (var oe = 0; oe < $.length; oe++)
|
|
612
|
+
at($[oe], e);
|
|
613
613
|
Object.freeze && Object.freeze($);
|
|
614
614
|
} else
|
|
615
615
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
616
616
|
else
|
|
617
|
-
|
|
617
|
+
at($, e);
|
|
618
618
|
}
|
|
619
|
-
if (
|
|
620
|
-
var J =
|
|
619
|
+
if (G.call(r, "key")) {
|
|
620
|
+
var J = A(e), I = Object.keys(r).filter(function($t) {
|
|
621
621
|
return $t !== "key";
|
|
622
|
-
}),
|
|
623
|
-
if (!it[J +
|
|
624
|
-
var Ht =
|
|
622
|
+
}), Ve = I.length > 0 ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
623
|
+
if (!it[J + Ve]) {
|
|
624
|
+
var Ht = I.length > 0 ? "{" + I.join(": ..., ") + ": ...}" : "{}";
|
|
625
625
|
_(`A props object containing a "key" prop is being spread into JSX:
|
|
626
626
|
let props = %s;
|
|
627
627
|
<%s {...props} />
|
|
628
628
|
React keys must be passed directly to JSX without using spread:
|
|
629
629
|
let props = %s;
|
|
630
|
-
<%s key={someKey} {...props} />`,
|
|
630
|
+
<%s key={someKey} {...props} />`, Ve, J, Ht, J), it[J + Ve] = !0;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
return e ===
|
|
633
|
+
return e === d ? Pt(T) : Ot(T), T;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
636
|
+
function Lt(e, r, n) {
|
|
637
|
+
return ot(e, r, n, !0);
|
|
638
638
|
}
|
|
639
|
-
function It(e,
|
|
640
|
-
return
|
|
639
|
+
function It(e, r, n) {
|
|
640
|
+
return ot(e, r, n, !1);
|
|
641
641
|
}
|
|
642
|
-
var At = It, Ft =
|
|
643
|
-
|
|
644
|
-
}()),
|
|
642
|
+
var At = It, Ft = Lt;
|
|
643
|
+
ye.Fragment = d, ye.jsx = At, ye.jsxs = Ft;
|
|
644
|
+
}()), ye;
|
|
645
645
|
}
|
|
646
|
-
process.env.NODE_ENV === "production" ?
|
|
647
|
-
var t =
|
|
648
|
-
const
|
|
646
|
+
process.env.NODE_ENV === "production" ? Ge.exports = ur() : Ge.exports = cr();
|
|
647
|
+
var t = Ge.exports;
|
|
648
|
+
const Ye = 60, pt = 6, dr = (l) => {
|
|
649
649
|
const {
|
|
650
|
-
activeStepIndex:
|
|
650
|
+
activeStepIndex: o,
|
|
651
651
|
hideIndicators: p = !1,
|
|
652
|
-
steps:
|
|
653
|
-
stepperTheme:
|
|
652
|
+
steps: d,
|
|
653
|
+
stepperTheme: w = {
|
|
654
654
|
light: "eggplant.light",
|
|
655
655
|
base: "eggplant.base"
|
|
656
656
|
}
|
|
657
|
-
} = l, { activeStep:
|
|
658
|
-
index:
|
|
659
|
-
count:
|
|
657
|
+
} = l, { activeStep: g, setActiveStep: m } = Wt({
|
|
658
|
+
index: o,
|
|
659
|
+
count: d.length
|
|
660
660
|
});
|
|
661
661
|
return q(() => {
|
|
662
|
-
m(
|
|
663
|
-
}, [
|
|
664
|
-
|
|
662
|
+
m(o);
|
|
663
|
+
}, [o, m]), /* @__PURE__ */ t.jsx(
|
|
664
|
+
y,
|
|
665
665
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
666
666
|
Mt,
|
|
667
667
|
{
|
|
668
668
|
role: "progressbar",
|
|
669
|
-
index:
|
|
669
|
+
index: g,
|
|
670
670
|
width: "100%",
|
|
671
671
|
display: "flex",
|
|
672
672
|
flexWrap: "nowrap",
|
|
673
|
-
children:
|
|
674
|
-
const
|
|
675
|
-
let u = `${
|
|
676
|
-
const
|
|
677
|
-
return
|
|
678
|
-
|
|
673
|
+
children: d.map((R, c) => {
|
|
674
|
+
const b = g === c, s = c === 0, j = c === d.length - 1, v = g > c;
|
|
675
|
+
let u = `${Ye}px`;
|
|
676
|
+
const O = `calc(100% - ((${Ye * (d.length - 1)}px) - (${d.length - 1} * ${pt * 2}px)))`;
|
|
677
|
+
return b ? u = O : (s || j) && (u = `${Ye - pt}px`), /* @__PURE__ */ t.jsx(
|
|
678
|
+
y,
|
|
679
679
|
{
|
|
680
680
|
width: u,
|
|
681
|
-
opacity:
|
|
682
|
-
paddingRight:
|
|
683
|
-
paddingLeft:
|
|
681
|
+
opacity: v || b ? 1 : 0.2,
|
|
682
|
+
paddingRight: j ? "0" : "6px",
|
|
683
|
+
paddingLeft: s ? "0" : "6px",
|
|
684
684
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
685
685
|
children: /* @__PURE__ */ t.jsx(
|
|
686
|
-
|
|
686
|
+
y,
|
|
687
687
|
{
|
|
688
688
|
paddingTop: p ? 2 : 5,
|
|
689
689
|
position: "relative",
|
|
690
690
|
width: "100%",
|
|
691
691
|
children: /* @__PURE__ */ t.jsx(
|
|
692
|
-
|
|
692
|
+
y,
|
|
693
693
|
{
|
|
694
694
|
width: "100%",
|
|
695
695
|
position: "absolute",
|
|
696
696
|
top: "0",
|
|
697
|
-
backgroundColor:
|
|
697
|
+
backgroundColor: v ? w.light : w.base,
|
|
698
698
|
height: p ? "4px" : "8px",
|
|
699
699
|
borderRadius: "4",
|
|
700
700
|
left: "0"
|
|
@@ -709,33 +709,33 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
709
709
|
}
|
|
710
710
|
) }
|
|
711
711
|
);
|
|
712
|
-
},
|
|
712
|
+
}, _r = Ke.memo(dr), Sr = ({
|
|
713
713
|
children: l,
|
|
714
|
-
...
|
|
714
|
+
...o
|
|
715
715
|
}) => /* @__PURE__ */ t.jsx(
|
|
716
716
|
qt,
|
|
717
|
-
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...
|
|
718
|
-
),
|
|
717
|
+
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: l }
|
|
718
|
+
), Le = (l, o) => {
|
|
719
719
|
const p = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
|
|
720
|
-
return
|
|
720
|
+
return o && !p ? {
|
|
721
721
|
to: l
|
|
722
722
|
} : {
|
|
723
723
|
href: l
|
|
724
724
|
};
|
|
725
|
-
},
|
|
726
|
-
(l,
|
|
725
|
+
}, ze = xt(
|
|
726
|
+
(l, o) => {
|
|
727
727
|
const {
|
|
728
728
|
label: p,
|
|
729
|
-
additionalContent:
|
|
730
|
-
mainTextFontSize:
|
|
731
|
-
linkComponent:
|
|
729
|
+
additionalContent: d,
|
|
730
|
+
mainTextFontSize: w,
|
|
731
|
+
linkComponent: g,
|
|
732
732
|
href: m,
|
|
733
733
|
...R
|
|
734
|
-
} = l, c =
|
|
734
|
+
} = l, c = g || z, b = Le(m, !!g);
|
|
735
735
|
return /* @__PURE__ */ t.jsxs(
|
|
736
|
-
|
|
736
|
+
y,
|
|
737
737
|
{
|
|
738
|
-
ref:
|
|
738
|
+
ref: o,
|
|
739
739
|
as: c,
|
|
740
740
|
display: "flex",
|
|
741
741
|
alignItems: "center",
|
|
@@ -748,14 +748,14 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
748
748
|
borderColor: ["tints.cream", null, null, "unset"],
|
|
749
749
|
width: ["100%", null, null, "fit-content"],
|
|
750
750
|
cursor: "pointer",
|
|
751
|
-
...
|
|
751
|
+
...b,
|
|
752
752
|
...R,
|
|
753
753
|
children: [
|
|
754
754
|
/* @__PURE__ */ t.jsx(
|
|
755
|
-
|
|
755
|
+
se,
|
|
756
756
|
{
|
|
757
757
|
display: ["none", null, null, "block"],
|
|
758
|
-
as:
|
|
758
|
+
as: ut,
|
|
759
759
|
fontSize: "lg",
|
|
760
760
|
color: "viridian.light",
|
|
761
761
|
role: "img",
|
|
@@ -764,18 +764,18 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
766
|
/* @__PURE__ */ t.jsxs(
|
|
767
|
-
|
|
767
|
+
D,
|
|
768
768
|
{ alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
|
|
769
769
|
/* @__PURE__ */ t.jsx(
|
|
770
|
-
|
|
770
|
+
K,
|
|
771
771
|
{
|
|
772
|
-
fontSize: [
|
|
772
|
+
fontSize: [w || "xl", null, null, "lg"],
|
|
773
773
|
fontWeight: "medium",
|
|
774
774
|
children: p
|
|
775
775
|
}
|
|
776
776
|
),
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
d && (typeof d == "string" ? /* @__PURE__ */ t.jsx(
|
|
778
|
+
K,
|
|
779
779
|
{
|
|
780
780
|
fontSize: ["xl", null, null, "lg"],
|
|
781
781
|
fontWeight: "medium",
|
|
@@ -785,14 +785,14 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
785
785
|
color: "viridian.base"
|
|
786
786
|
}
|
|
787
787
|
},
|
|
788
|
-
children:
|
|
788
|
+
children: d
|
|
789
789
|
}
|
|
790
|
-
) :
|
|
790
|
+
) : d),
|
|
791
791
|
/* @__PURE__ */ t.jsx(
|
|
792
|
-
|
|
792
|
+
se,
|
|
793
793
|
{
|
|
794
794
|
display: ["block", null, null, "none"],
|
|
795
|
-
as:
|
|
795
|
+
as: ut,
|
|
796
796
|
fontSize: "2xl",
|
|
797
797
|
color: "tints.uiGrey",
|
|
798
798
|
role: "img",
|
|
@@ -806,18 +806,23 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
806
806
|
}
|
|
807
807
|
);
|
|
808
808
|
}
|
|
809
|
-
),
|
|
810
|
-
(l,
|
|
811
|
-
const { children: p, isSelected:
|
|
809
|
+
), Pe = xt(
|
|
810
|
+
(l, o) => {
|
|
811
|
+
const { children: p, isSelected: d, ...w } = l, g = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
|
|
812
812
|
return /* @__PURE__ */ t.jsx(
|
|
813
|
-
|
|
813
|
+
gt,
|
|
814
814
|
{
|
|
815
|
-
ref:
|
|
815
|
+
ref: o,
|
|
816
816
|
borderRadius: "full",
|
|
817
|
-
backgroundColor:
|
|
817
|
+
backgroundColor: g,
|
|
818
818
|
fontSize: "lg !important",
|
|
819
819
|
fontWeight: "normal",
|
|
820
820
|
color: "tints.black",
|
|
821
|
+
sx: {
|
|
822
|
+
"&[href]": {
|
|
823
|
+
textDecoration: "none"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
821
826
|
_before: {
|
|
822
827
|
content: '""',
|
|
823
828
|
position: "absolute",
|
|
@@ -827,41 +832,41 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
827
832
|
left: [null, null, null, -2]
|
|
828
833
|
},
|
|
829
834
|
_hover: {
|
|
830
|
-
backgroundColor:
|
|
835
|
+
backgroundColor: g,
|
|
831
836
|
textDecoration: "none",
|
|
832
837
|
filter: "brightness(0.95)"
|
|
833
838
|
},
|
|
834
|
-
...
|
|
839
|
+
...w,
|
|
835
840
|
children: p
|
|
836
841
|
}
|
|
837
842
|
);
|
|
838
843
|
}
|
|
839
|
-
),
|
|
844
|
+
), fr = ({
|
|
840
845
|
title: l,
|
|
841
|
-
description:
|
|
846
|
+
description: o,
|
|
842
847
|
imageSrc: p,
|
|
843
|
-
imageElement:
|
|
844
|
-
button:
|
|
845
|
-
backgroundColor:
|
|
848
|
+
imageElement: d,
|
|
849
|
+
button: w,
|
|
850
|
+
backgroundColor: g = "viridian.wash",
|
|
846
851
|
onClick: m,
|
|
847
852
|
href: R,
|
|
848
853
|
linkComponent: c
|
|
849
854
|
}) => {
|
|
850
|
-
const
|
|
855
|
+
const b = "80px", s = "200px", j = "272px", v = c || z, u = Le(R, !!c), O = mt({
|
|
851
856
|
base: !1,
|
|
852
857
|
tablet: !1,
|
|
853
858
|
largeTablet: !1,
|
|
854
859
|
desktop: !0
|
|
855
860
|
});
|
|
856
861
|
return /* @__PURE__ */ t.jsxs(
|
|
857
|
-
|
|
862
|
+
D,
|
|
858
863
|
{
|
|
859
864
|
direction: ["row", null, null, "column"],
|
|
860
865
|
alignItems: ["center"],
|
|
861
866
|
borderRadius: "xl",
|
|
862
867
|
overflow: "hidden",
|
|
863
|
-
height: [
|
|
864
|
-
backgroundColor:
|
|
868
|
+
height: [b, null, null, j],
|
|
869
|
+
backgroundColor: g,
|
|
865
870
|
onClick: m,
|
|
866
871
|
"data-testid": "spotlight-card",
|
|
867
872
|
position: "relative",
|
|
@@ -875,11 +880,11 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
875
880
|
border: "1px solid",
|
|
876
881
|
borderColor: "tints.white"
|
|
877
882
|
},
|
|
878
|
-
as:
|
|
879
|
-
...
|
|
883
|
+
as: O ? D : v,
|
|
884
|
+
...O ? {} : u,
|
|
880
885
|
children: [
|
|
881
886
|
/* @__PURE__ */ t.jsx(
|
|
882
|
-
|
|
887
|
+
y,
|
|
883
888
|
{
|
|
884
889
|
width: ["72px", null, null, "100%"],
|
|
885
890
|
height: ["100%"],
|
|
@@ -889,23 +894,23 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
889
894
|
{
|
|
890
895
|
src: p,
|
|
891
896
|
objectFit: "cover",
|
|
892
|
-
height: [
|
|
897
|
+
height: [b, null, null, s],
|
|
893
898
|
width: "100%",
|
|
894
899
|
alt: "",
|
|
895
900
|
"data-testid": "spotlight-card-image"
|
|
896
901
|
}
|
|
897
902
|
) : /* @__PURE__ */ t.jsx(
|
|
898
|
-
|
|
903
|
+
y,
|
|
899
904
|
{
|
|
900
|
-
height: [
|
|
905
|
+
height: [b, null, null, s],
|
|
901
906
|
overflow: "hidden",
|
|
902
|
-
children:
|
|
907
|
+
children: d
|
|
903
908
|
}
|
|
904
909
|
)
|
|
905
910
|
}
|
|
906
911
|
),
|
|
907
912
|
/* @__PURE__ */ t.jsxs(
|
|
908
|
-
|
|
913
|
+
D,
|
|
909
914
|
{
|
|
910
915
|
direction: ["column", null, null, "row"],
|
|
911
916
|
justifyContent: [null, null, null, "space-between"],
|
|
@@ -915,30 +920,30 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
915
920
|
width: "100%",
|
|
916
921
|
position: [null, null, null, "absolute"],
|
|
917
922
|
bottom: [null, null, null, "0"],
|
|
918
|
-
backgroundColor: [null, null, null, `${
|
|
923
|
+
backgroundColor: [null, null, null, `${g}CC`],
|
|
919
924
|
backdropFilter: [null, null, null, "blur(8px)"],
|
|
920
925
|
children: [
|
|
921
926
|
/* @__PURE__ */ t.jsxs(
|
|
922
|
-
|
|
927
|
+
y,
|
|
923
928
|
{ children: [
|
|
924
929
|
/* @__PURE__ */ t.jsx(
|
|
925
|
-
|
|
930
|
+
K,
|
|
926
931
|
{ fontSize: "lg", fontWeight: "medium", color: "tints.black", children: l }
|
|
927
932
|
),
|
|
928
933
|
/* @__PURE__ */ t.jsx(
|
|
929
|
-
|
|
930
|
-
{ fontSize: "sm", color: "tints.black", children:
|
|
934
|
+
K,
|
|
935
|
+
{ fontSize: "sm", color: "tints.black", children: o }
|
|
931
936
|
)
|
|
932
937
|
] }
|
|
933
938
|
),
|
|
934
|
-
|
|
939
|
+
O ? /* @__PURE__ */ t.jsx(y, { children: w }) : null
|
|
935
940
|
]
|
|
936
941
|
}
|
|
937
942
|
)
|
|
938
943
|
]
|
|
939
944
|
}
|
|
940
945
|
);
|
|
941
|
-
},
|
|
946
|
+
}, ue = (l) => /* @__PURE__ */ t.jsx(
|
|
942
947
|
Vt,
|
|
943
948
|
{
|
|
944
949
|
size: "sm",
|
|
@@ -959,7 +964,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
959
964
|
},
|
|
960
965
|
...l
|
|
961
966
|
}
|
|
962
|
-
),
|
|
967
|
+
), pr = () => /* @__PURE__ */ t.jsx(
|
|
963
968
|
"svg",
|
|
964
969
|
{
|
|
965
970
|
width: "116",
|
|
@@ -983,31 +988,31 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
983
988
|
) }
|
|
984
989
|
)
|
|
985
990
|
}
|
|
986
|
-
),
|
|
991
|
+
), hr = ({
|
|
987
992
|
desktopTopButtons: l,
|
|
988
|
-
kitRegistrationElement:
|
|
993
|
+
kitRegistrationElement: o,
|
|
989
994
|
profileElement: p,
|
|
990
|
-
cartElement:
|
|
991
|
-
onSearchClick:
|
|
992
|
-
onMenuClick:
|
|
995
|
+
cartElement: d,
|
|
996
|
+
onSearchClick: w,
|
|
997
|
+
onMenuClick: g,
|
|
993
998
|
hasSearch: m = !1,
|
|
994
999
|
logoLink: R = "https://www.everlywell.com",
|
|
995
1000
|
setTopOffset: c,
|
|
996
|
-
linkComponent:
|
|
997
|
-
onLogoClick:
|
|
1001
|
+
linkComponent: b,
|
|
1002
|
+
onLogoClick: s
|
|
998
1003
|
}) => {
|
|
999
|
-
const
|
|
1000
|
-
if (
|
|
1001
|
-
const u =
|
|
1004
|
+
const j = Jt(null), v = bt(() => {
|
|
1005
|
+
if (j.current) {
|
|
1006
|
+
const u = j.current.getBoundingClientRect();
|
|
1002
1007
|
c(u.bottom);
|
|
1003
1008
|
}
|
|
1004
1009
|
}, []);
|
|
1005
1010
|
return q(() => {
|
|
1006
|
-
|
|
1007
|
-
}, [
|
|
1008
|
-
|
|
1011
|
+
v();
|
|
1012
|
+
}, [v]), /* @__PURE__ */ t.jsx(
|
|
1013
|
+
y,
|
|
1009
1014
|
{
|
|
1010
|
-
ref:
|
|
1015
|
+
ref: j,
|
|
1011
1016
|
paddingY: "4",
|
|
1012
1017
|
paddingX: [4, null, null, 12],
|
|
1013
1018
|
borderBottom: "1px solid",
|
|
@@ -1017,73 +1022,73 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1017
1022
|
top: "0",
|
|
1018
1023
|
width: "100%",
|
|
1019
1024
|
zIndex: ["sticky", null, null, "tooltip"],
|
|
1020
|
-
onMouseEnter:
|
|
1025
|
+
onMouseEnter: v,
|
|
1021
1026
|
children: /* @__PURE__ */ t.jsxs(
|
|
1022
|
-
|
|
1027
|
+
D,
|
|
1023
1028
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1024
1029
|
/* @__PURE__ */ t.jsxs(
|
|
1025
|
-
|
|
1030
|
+
D,
|
|
1026
1031
|
{ alignItems: "center", gap: "5", children: [
|
|
1027
1032
|
/* @__PURE__ */ t.jsx(
|
|
1028
|
-
|
|
1033
|
+
y,
|
|
1029
1034
|
{
|
|
1030
1035
|
"aria-label": "Go to homepage",
|
|
1031
|
-
onClick:
|
|
1032
|
-
as:
|
|
1033
|
-
...
|
|
1034
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1036
|
+
onClick: s,
|
|
1037
|
+
as: b || z,
|
|
1038
|
+
...Le(R, !!b),
|
|
1039
|
+
children: /* @__PURE__ */ t.jsx(pr, {})
|
|
1035
1040
|
}
|
|
1036
1041
|
),
|
|
1037
1042
|
/* @__PURE__ */ t.jsx(
|
|
1038
|
-
|
|
1043
|
+
D,
|
|
1039
1044
|
{ display: ["none", null, null, "flex"], children: l }
|
|
1040
1045
|
)
|
|
1041
1046
|
] }
|
|
1042
1047
|
),
|
|
1043
1048
|
/* @__PURE__ */ t.jsxs(
|
|
1044
|
-
|
|
1049
|
+
D,
|
|
1045
1050
|
{ alignItems: "center", gap: "2", children: [
|
|
1046
1051
|
/* @__PURE__ */ t.jsx(
|
|
1047
|
-
|
|
1048
|
-
{ display: ["none", null, null, "block"], children:
|
|
1052
|
+
y,
|
|
1053
|
+
{ display: ["none", null, null, "block"], children: o }
|
|
1049
1054
|
),
|
|
1050
1055
|
m ? /* @__PURE__ */ t.jsx(
|
|
1051
|
-
|
|
1056
|
+
ue,
|
|
1052
1057
|
{
|
|
1053
1058
|
"aria-label": "Search",
|
|
1054
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1055
|
-
onClick:
|
|
1059
|
+
icon: /* @__PURE__ */ t.jsx(se, { as: jt }),
|
|
1060
|
+
onClick: w
|
|
1056
1061
|
}
|
|
1057
1062
|
) : null,
|
|
1058
|
-
|
|
1063
|
+
d,
|
|
1059
1064
|
/* @__PURE__ */ t.jsx(
|
|
1060
|
-
|
|
1065
|
+
y,
|
|
1061
1066
|
{ display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
|
|
1062
|
-
|
|
1067
|
+
ue,
|
|
1063
1068
|
{
|
|
1064
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1069
|
+
icon: /* @__PURE__ */ t.jsx(nr, {}),
|
|
1065
1070
|
"aria-label": "menu",
|
|
1066
1071
|
"data-testid": "menu-button",
|
|
1067
|
-
onClick:
|
|
1072
|
+
onClick: g
|
|
1068
1073
|
}
|
|
1069
1074
|
) }
|
|
1070
1075
|
),
|
|
1071
|
-
/* @__PURE__ */ t.jsx(
|
|
1076
|
+
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: p })
|
|
1072
1077
|
] }
|
|
1073
1078
|
)
|
|
1074
1079
|
] }
|
|
1075
1080
|
)
|
|
1076
1081
|
}
|
|
1077
1082
|
);
|
|
1078
|
-
},
|
|
1083
|
+
}, vr = ({
|
|
1079
1084
|
count: l = 0,
|
|
1080
|
-
...
|
|
1085
|
+
...o
|
|
1081
1086
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1082
|
-
|
|
1087
|
+
y,
|
|
1083
1088
|
{ position: "relative", display: "inline-block", children: [
|
|
1084
|
-
/* @__PURE__ */ t.jsx(
|
|
1089
|
+
/* @__PURE__ */ t.jsx(ue, { icon: /* @__PURE__ */ t.jsx(lr, {}), ...o }),
|
|
1085
1090
|
l > 0 && /* @__PURE__ */ t.jsx(
|
|
1086
|
-
|
|
1091
|
+
y,
|
|
1087
1092
|
{
|
|
1088
1093
|
display: "flex",
|
|
1089
1094
|
minWidth: "20px",
|
|
@@ -1104,111 +1109,131 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1104
1109
|
}
|
|
1105
1110
|
)
|
|
1106
1111
|
] }
|
|
1107
|
-
),
|
|
1108
|
-
|
|
1109
|
-
showPromoButton:
|
|
1112
|
+
), Tr = ({
|
|
1113
|
+
numDesktopLinks: l = 5,
|
|
1114
|
+
showPromoButton: o = !1
|
|
1110
1115
|
}) => /* @__PURE__ */ t.jsx(
|
|
1111
1116
|
Nt,
|
|
1112
1117
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1113
|
-
|
|
1114
|
-
{
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1118
|
+
y,
|
|
1119
|
+
{
|
|
1120
|
+
paddingY: 4,
|
|
1121
|
+
paddingX: 6,
|
|
1122
|
+
borderBottomWidth: "1px",
|
|
1123
|
+
borderColor: "tints.lightCream",
|
|
1124
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
1125
|
+
D,
|
|
1126
|
+
{ justify: "space-between", align: "center", children: [
|
|
1127
|
+
/* @__PURE__ */ t.jsx(Ne, { w: "120px", h: "48px" }),
|
|
1128
|
+
/* @__PURE__ */ t.jsxs(
|
|
1129
|
+
st,
|
|
1130
|
+
{
|
|
1131
|
+
spacing: 8,
|
|
1132
|
+
marginLeft: 12,
|
|
1133
|
+
display: ["none", null, null, "flex"],
|
|
1134
|
+
"data-testid": "desktop-nav",
|
|
1135
|
+
children: [
|
|
1136
|
+
Array.from({ length: l }).map(
|
|
1137
|
+
(p, d) => /* @__PURE__ */ t.jsx(Ne, { width: "90px", height: "48px" }, d)
|
|
1138
|
+
),
|
|
1139
|
+
o && /* @__PURE__ */ t.jsx(Ne, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1140
|
+
]
|
|
1141
|
+
}
|
|
1142
|
+
),
|
|
1143
|
+
/* @__PURE__ */ t.jsxs(
|
|
1144
|
+
st,
|
|
1145
|
+
{ spacing: 4, ml: "auto", children: [
|
|
1146
|
+
/* @__PURE__ */ t.jsx(
|
|
1147
|
+
Oe,
|
|
1148
|
+
{
|
|
1149
|
+
width: "120px",
|
|
1150
|
+
height: "48px",
|
|
1151
|
+
display: ["none", null, null, "block"],
|
|
1152
|
+
"data-testid": "register-kit"
|
|
1153
|
+
}
|
|
1154
|
+
),
|
|
1155
|
+
" ",
|
|
1156
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1157
|
+
" ",
|
|
1158
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1159
|
+
" ",
|
|
1160
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1161
|
+
" "
|
|
1162
|
+
] }
|
|
1163
|
+
)
|
|
1164
|
+
] }
|
|
1165
|
+
)
|
|
1166
|
+
}
|
|
1142
1167
|
) }
|
|
1143
|
-
),
|
|
1168
|
+
), gr = (l, o) => {
|
|
1144
1169
|
let p;
|
|
1145
|
-
return (...
|
|
1170
|
+
return (...d) => {
|
|
1146
1171
|
p && clearTimeout(p), p = setTimeout(() => {
|
|
1147
|
-
l(...
|
|
1148
|
-
},
|
|
1172
|
+
l(...d);
|
|
1173
|
+
}, o);
|
|
1149
1174
|
};
|
|
1150
|
-
},
|
|
1175
|
+
}, Ze = "nav-drawer-hover", ht = (l) => {
|
|
1151
1176
|
window.dispatchEvent(
|
|
1152
|
-
new CustomEvent(
|
|
1177
|
+
new CustomEvent(Ze, {
|
|
1153
1178
|
detail: { isHovering: l },
|
|
1154
1179
|
bubbles: !0,
|
|
1155
1180
|
cancelable: !0
|
|
1156
1181
|
})
|
|
1157
1182
|
);
|
|
1158
|
-
},
|
|
1183
|
+
}, xr = (l = !1, o = !1, p = !1) => l || !o ? "column" : p ? "row" : "row-reverse", br = Xe(Yt), mr = Xe(zt), Ue = ({
|
|
1159
1184
|
isOpen: l = !1,
|
|
1160
|
-
onClose:
|
|
1185
|
+
onClose: o,
|
|
1161
1186
|
title: p,
|
|
1162
|
-
navDrawerLinks:
|
|
1163
|
-
bottomNavButtons:
|
|
1164
|
-
spotlightCards:
|
|
1187
|
+
navDrawerLinks: d,
|
|
1188
|
+
bottomNavButtons: w,
|
|
1189
|
+
spotlightCards: g,
|
|
1165
1190
|
bottomButton: m,
|
|
1166
1191
|
hasBackButton: R = !0,
|
|
1167
1192
|
onBackClick: c,
|
|
1168
|
-
hasOnlySpotlightCards:
|
|
1169
|
-
hasSearch:
|
|
1170
|
-
onSearch:
|
|
1171
|
-
topOffset:
|
|
1193
|
+
hasOnlySpotlightCards: b = !1,
|
|
1194
|
+
hasSearch: s = !1,
|
|
1195
|
+
onSearch: j = () => ({}),
|
|
1196
|
+
topOffset: v
|
|
1172
1197
|
}) => {
|
|
1173
1198
|
const u = mt({
|
|
1174
1199
|
base: !1,
|
|
1175
1200
|
tablet: !1,
|
|
1176
1201
|
largeTablet: !1,
|
|
1177
1202
|
desktop: !0
|
|
1178
|
-
}),
|
|
1203
|
+
}), O = u ? "top" : "left", [M, Q] = W(0), [F, _] = W(!1), ce = () => {
|
|
1179
1204
|
Q((H) => H + 1);
|
|
1180
|
-
},
|
|
1181
|
-
|
|
1182
|
-
|
|
1205
|
+
}, de = bt(
|
|
1206
|
+
gr((H) => {
|
|
1207
|
+
j(H), ce();
|
|
1183
1208
|
}, 100),
|
|
1184
1209
|
[]
|
|
1185
1210
|
);
|
|
1186
1211
|
q(() => {
|
|
1187
1212
|
l && _(!0);
|
|
1188
1213
|
}, [l]);
|
|
1189
|
-
const
|
|
1190
|
-
l || (_(!1),
|
|
1214
|
+
const fe = () => {
|
|
1215
|
+
l || (_(!1), o());
|
|
1191
1216
|
};
|
|
1192
1217
|
return /* @__PURE__ */ t.jsx(
|
|
1193
1218
|
Ut,
|
|
1194
1219
|
{
|
|
1195
1220
|
isOpen: F || l,
|
|
1196
1221
|
onClose: () => {
|
|
1197
|
-
F && u ||
|
|
1222
|
+
F && u || o();
|
|
1198
1223
|
},
|
|
1199
|
-
placement:
|
|
1224
|
+
placement: O,
|
|
1200
1225
|
blockScrollOnMount: !1,
|
|
1201
1226
|
autoFocus: !1,
|
|
1202
1227
|
children: /* @__PURE__ */ t.jsx(
|
|
1203
|
-
|
|
1228
|
+
sr,
|
|
1204
1229
|
{ children: l ? /* @__PURE__ */ t.jsxs(
|
|
1205
1230
|
t.Fragment,
|
|
1206
1231
|
{ children: [
|
|
1207
1232
|
/* @__PURE__ */ t.jsx(
|
|
1208
|
-
|
|
1233
|
+
mr,
|
|
1209
1234
|
{
|
|
1210
1235
|
backgroundColor: "tints.black",
|
|
1211
|
-
top: ["0", null, null, `${
|
|
1236
|
+
top: ["0", null, null, `${v}px`],
|
|
1212
1237
|
opacity: u ? void 0 : "0.4 !important",
|
|
1213
1238
|
...u ? {
|
|
1214
1239
|
initial: { opacity: 0 },
|
|
@@ -1223,17 +1248,17 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1223
1248
|
}
|
|
1224
1249
|
),
|
|
1225
1250
|
/* @__PURE__ */ t.jsxs(
|
|
1226
|
-
|
|
1251
|
+
br,
|
|
1227
1252
|
{
|
|
1228
1253
|
onClick: (H) => {
|
|
1229
1254
|
const B = H.target.closest("a");
|
|
1230
|
-
B && B.href === window.location.href &&
|
|
1255
|
+
B && B.href === window.location.href && o();
|
|
1231
1256
|
},
|
|
1232
1257
|
onMouseEnter: () => {
|
|
1233
|
-
|
|
1258
|
+
u && ht(!0);
|
|
1234
1259
|
},
|
|
1235
1260
|
onMouseLeave: () => {
|
|
1236
|
-
|
|
1261
|
+
u && ht(!1);
|
|
1237
1262
|
},
|
|
1238
1263
|
paddingTop: "4",
|
|
1239
1264
|
paddingX: [4, null, null, 12],
|
|
@@ -1241,8 +1266,8 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1241
1266
|
overflow: ["auto", null, null, "hidden"],
|
|
1242
1267
|
maxHeight: "100vh",
|
|
1243
1268
|
position: "relative",
|
|
1244
|
-
top: u ? `${
|
|
1245
|
-
onAnimationComplete:
|
|
1269
|
+
top: u ? `${v}px !important` : void 0,
|
|
1270
|
+
onAnimationComplete: fe,
|
|
1246
1271
|
...u ? {
|
|
1247
1272
|
initial: { height: 0, opacity: 0 },
|
|
1248
1273
|
animate: { height: "auto", opacity: 1 },
|
|
@@ -1250,32 +1275,32 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1250
1275
|
transition: { duration: 0.3 }
|
|
1251
1276
|
} : {},
|
|
1252
1277
|
children: [
|
|
1253
|
-
!
|
|
1278
|
+
!s && u ? null : /* @__PURE__ */ t.jsxs(
|
|
1254
1279
|
Gt,
|
|
1255
1280
|
{
|
|
1256
1281
|
padding: "0",
|
|
1257
|
-
flexDirection:
|
|
1258
|
-
gap:
|
|
1282
|
+
flexDirection: s ? "column" : "row",
|
|
1283
|
+
gap: s ? "4" : "0",
|
|
1259
1284
|
children: [
|
|
1260
1285
|
u ? null : /* @__PURE__ */ t.jsxs(
|
|
1261
|
-
|
|
1286
|
+
D,
|
|
1262
1287
|
{
|
|
1263
1288
|
width: "100%",
|
|
1264
1289
|
justifyContent: "space-between",
|
|
1265
1290
|
alignItems: "center",
|
|
1266
1291
|
children: [
|
|
1267
1292
|
R ? /* @__PURE__ */ t.jsx(
|
|
1268
|
-
|
|
1293
|
+
ue,
|
|
1269
1294
|
{
|
|
1270
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1295
|
+
icon: /* @__PURE__ */ t.jsx(ar, {}),
|
|
1271
1296
|
onClick: () => {
|
|
1272
|
-
c && c(),
|
|
1297
|
+
c && c(), o();
|
|
1273
1298
|
},
|
|
1274
1299
|
"aria-label": "Back"
|
|
1275
1300
|
}
|
|
1276
1301
|
) : null,
|
|
1277
1302
|
/* @__PURE__ */ t.jsx(
|
|
1278
|
-
|
|
1303
|
+
K,
|
|
1279
1304
|
{
|
|
1280
1305
|
color: "tints.uiGrey",
|
|
1281
1306
|
fontSize: ["xl", null, null, "lg"],
|
|
@@ -1283,24 +1308,24 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1283
1308
|
}
|
|
1284
1309
|
),
|
|
1285
1310
|
/* @__PURE__ */ t.jsx(
|
|
1286
|
-
|
|
1311
|
+
ue,
|
|
1287
1312
|
{
|
|
1288
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1289
|
-
onClick:
|
|
1313
|
+
icon: /* @__PURE__ */ t.jsx(ir, {}),
|
|
1314
|
+
onClick: o,
|
|
1290
1315
|
"aria-label": "Close"
|
|
1291
1316
|
}
|
|
1292
1317
|
)
|
|
1293
1318
|
]
|
|
1294
1319
|
}
|
|
1295
1320
|
),
|
|
1296
|
-
|
|
1321
|
+
s && /* @__PURE__ */ t.jsxs(
|
|
1297
1322
|
Qt,
|
|
1298
1323
|
{ width: "100%", children: [
|
|
1299
1324
|
/* @__PURE__ */ t.jsx(
|
|
1300
|
-
|
|
1325
|
+
er,
|
|
1301
1326
|
{
|
|
1302
1327
|
onChange: (H) => {
|
|
1303
|
-
|
|
1328
|
+
de(H.target.value);
|
|
1304
1329
|
},
|
|
1305
1330
|
placeholder: "Search",
|
|
1306
1331
|
autoFocus: !0,
|
|
@@ -1309,8 +1334,8 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1309
1334
|
}
|
|
1310
1335
|
),
|
|
1311
1336
|
/* @__PURE__ */ t.jsx(
|
|
1312
|
-
|
|
1313
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(
|
|
1337
|
+
tr,
|
|
1338
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(rr, { as: jt, color: "gray.500" }) }
|
|
1314
1339
|
)
|
|
1315
1340
|
] }
|
|
1316
1341
|
)
|
|
@@ -1324,7 +1349,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1324
1349
|
paddingBottom: [6, null, null, 4],
|
|
1325
1350
|
"data-testid": `navbar-drawer-body-${p.toLowerCase()}`,
|
|
1326
1351
|
children: /* @__PURE__ */ t.jsxs(
|
|
1327
|
-
|
|
1352
|
+
Xe.div,
|
|
1328
1353
|
{
|
|
1329
1354
|
...u ? {
|
|
1330
1355
|
initial: { opacity: 0, y: -5 },
|
|
@@ -1343,17 +1368,17 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1343
1368
|
} : {},
|
|
1344
1369
|
style: {
|
|
1345
1370
|
display: "flex",
|
|
1346
|
-
flexDirection:
|
|
1347
|
-
|
|
1371
|
+
flexDirection: xr(
|
|
1372
|
+
b,
|
|
1348
1373
|
u,
|
|
1349
|
-
|
|
1374
|
+
s
|
|
1350
1375
|
),
|
|
1351
1376
|
gap: "24px",
|
|
1352
1377
|
justifyContent: "space-between"
|
|
1353
1378
|
},
|
|
1354
1379
|
children: [
|
|
1355
|
-
|
|
1356
|
-
|
|
1380
|
+
g ? /* @__PURE__ */ t.jsx(
|
|
1381
|
+
y,
|
|
1357
1382
|
{
|
|
1358
1383
|
gap: "6",
|
|
1359
1384
|
display: "flex",
|
|
@@ -1365,21 +1390,21 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1365
1390
|
flexWrap: "wrap",
|
|
1366
1391
|
flexDirection: ["column", null, null, "row"]
|
|
1367
1392
|
},
|
|
1368
|
-
children:
|
|
1393
|
+
children: g
|
|
1369
1394
|
}
|
|
1370
1395
|
) : null,
|
|
1371
1396
|
/* @__PURE__ */ t.jsxs(
|
|
1372
|
-
|
|
1397
|
+
D,
|
|
1373
1398
|
{
|
|
1374
1399
|
position: [null, null, null, "relative"],
|
|
1375
1400
|
flexDirection: "column",
|
|
1376
1401
|
gap: "6",
|
|
1377
|
-
width: ["100%", null, null,
|
|
1402
|
+
width: ["100%", null, null, s ? null : "auto"],
|
|
1378
1403
|
children: [
|
|
1379
|
-
|
|
1380
|
-
|
|
1404
|
+
d ? /* @__PURE__ */ t.jsx(y, { children: d }) : null,
|
|
1405
|
+
w && !u ? /* @__PURE__ */ t.jsx(y, { children: w }) : null,
|
|
1381
1406
|
m ? /* @__PURE__ */ t.jsx(
|
|
1382
|
-
|
|
1407
|
+
y,
|
|
1383
1408
|
{
|
|
1384
1409
|
width: ["100%"],
|
|
1385
1410
|
position: [null, null, null, "absolute"],
|
|
@@ -1404,97 +1429,97 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1404
1429
|
)
|
|
1405
1430
|
}
|
|
1406
1431
|
);
|
|
1407
|
-
},
|
|
1408
|
-
const
|
|
1409
|
-
return l.reduce((p,
|
|
1410
|
-
var
|
|
1411
|
-
const
|
|
1412
|
-
const c = R.links.filter((
|
|
1432
|
+
}, vt = (l) => {
|
|
1433
|
+
const o = /* @__PURE__ */ new Set();
|
|
1434
|
+
return l.reduce((p, d) => {
|
|
1435
|
+
var g;
|
|
1436
|
+
const w = ((g = d.sections) == null ? void 0 : g.reduce((m, R) => {
|
|
1437
|
+
const c = R.links.filter((b) => o.has(b.label) || b.isSearchable !== !0 ? !1 : (o.add(b.label), !0));
|
|
1413
1438
|
return [...m, ...c];
|
|
1414
1439
|
}, [])) ?? [];
|
|
1415
|
-
return [...p, ...
|
|
1440
|
+
return [...p, ...w];
|
|
1416
1441
|
}, []);
|
|
1417
|
-
},
|
|
1442
|
+
}, jr = ({
|
|
1418
1443
|
source: l,
|
|
1419
|
-
onSearchCallback:
|
|
1444
|
+
onSearchCallback: o,
|
|
1420
1445
|
isActive: p
|
|
1421
1446
|
}) => {
|
|
1422
|
-
const [
|
|
1423
|
-
if (!
|
|
1447
|
+
const [d, w] = W(""), [g, m] = W([]), R = (s, j) => {
|
|
1448
|
+
if (!s)
|
|
1424
1449
|
return [];
|
|
1425
|
-
const
|
|
1426
|
-
return
|
|
1427
|
-
const
|
|
1428
|
-
return
|
|
1429
|
-
}).sort((u,
|
|
1430
|
-
}, c = (
|
|
1431
|
-
if (
|
|
1450
|
+
const v = s.toLowerCase();
|
|
1451
|
+
return j.filter((u) => {
|
|
1452
|
+
const O = u.label.toLowerCase().includes(v), M = typeof u.additionalContent == "string" && u.additionalContent.toLowerCase().includes(v);
|
|
1453
|
+
return O || M;
|
|
1454
|
+
}).sort((u, O) => u.label.localeCompare(O.label));
|
|
1455
|
+
}, c = (s) => {
|
|
1456
|
+
if (w(s), !s) {
|
|
1432
1457
|
m([]);
|
|
1433
1458
|
return;
|
|
1434
1459
|
}
|
|
1435
|
-
const
|
|
1436
|
-
m(
|
|
1437
|
-
},
|
|
1438
|
-
|
|
1460
|
+
const j = R(s, l);
|
|
1461
|
+
m(j), o && o(s, j);
|
|
1462
|
+
}, b = () => {
|
|
1463
|
+
w(""), m([]);
|
|
1439
1464
|
};
|
|
1440
1465
|
return q(() => {
|
|
1441
|
-
p || (
|
|
1466
|
+
p || (w(""), m([]));
|
|
1442
1467
|
}, [p]), {
|
|
1443
|
-
query:
|
|
1444
|
-
results:
|
|
1445
|
-
handleClose:
|
|
1468
|
+
query: d,
|
|
1469
|
+
results: g,
|
|
1470
|
+
handleClose: b,
|
|
1446
1471
|
handleSearch: c
|
|
1447
1472
|
};
|
|
1448
|
-
},
|
|
1473
|
+
}, kr = ({
|
|
1449
1474
|
categories: l = [],
|
|
1450
|
-
onCartClick:
|
|
1475
|
+
onCartClick: o,
|
|
1451
1476
|
mainCategoryLabel: p = "Menu",
|
|
1452
|
-
logoLink:
|
|
1453
|
-
hasSearch:
|
|
1454
|
-
onSearchClick:
|
|
1477
|
+
logoLink: d = "https://www.everlywell.com",
|
|
1478
|
+
hasSearch: w = !0,
|
|
1479
|
+
onSearchClick: g,
|
|
1455
1480
|
registrationUrl: m,
|
|
1456
1481
|
profileUrl: R = "https://secure.everlywell.com/login",
|
|
1457
1482
|
mobileBottomButtons: c = [],
|
|
1458
|
-
numberOfCartItems:
|
|
1459
|
-
linkComponent:
|
|
1460
|
-
onSearchCallback:
|
|
1461
|
-
onLinkClick:
|
|
1483
|
+
numberOfCartItems: b = 0,
|
|
1484
|
+
linkComponent: s,
|
|
1485
|
+
onSearchCallback: j,
|
|
1486
|
+
onLinkClick: v,
|
|
1462
1487
|
onCategoryOpen: u,
|
|
1463
|
-
onMobileMenuOpen:
|
|
1488
|
+
onMobileMenuOpen: O,
|
|
1464
1489
|
onBackToMainMenu: M,
|
|
1465
1490
|
onRegisterKitClick: Q,
|
|
1466
1491
|
onProfileClick: F,
|
|
1467
1492
|
onLogoClick: _,
|
|
1468
|
-
shopAllProductsUrl:
|
|
1469
|
-
onShopAllProductsClick:
|
|
1493
|
+
shopAllProductsUrl: ce,
|
|
1494
|
+
onShopAllProductsClick: de
|
|
1470
1495
|
}) => {
|
|
1471
|
-
var
|
|
1472
|
-
const [
|
|
1473
|
-
query:
|
|
1474
|
-
results:
|
|
1475
|
-
handleSearch:
|
|
1476
|
-
} =
|
|
1477
|
-
source:
|
|
1478
|
-
onSearchCallback:
|
|
1479
|
-
isActive:
|
|
1480
|
-
}),
|
|
1481
|
-
|
|
1482
|
-
{ gap:
|
|
1483
|
-
|
|
1484
|
-
|
|
1496
|
+
var G, me, je;
|
|
1497
|
+
const [fe, H] = W(!1), [ee, B] = W(!1), [E, V] = W(null), [Ee, pe] = W(!1), [A, N] = W(!1), [Y, Re] = W(0), {
|
|
1498
|
+
query: _e,
|
|
1499
|
+
results: te,
|
|
1500
|
+
handleSearch: Se
|
|
1501
|
+
} = jr({
|
|
1502
|
+
source: vt(l),
|
|
1503
|
+
onSearchCallback: j,
|
|
1504
|
+
isActive: ee
|
|
1505
|
+
}), he = te.length > 0, re = s || z, Te = Le(ce, !!s), ke = _e && /* @__PURE__ */ t.jsxs(
|
|
1506
|
+
D,
|
|
1507
|
+
{ gap: he ? "6" : 0, direction: "column", children: [
|
|
1508
|
+
he ? /* @__PURE__ */ t.jsx(K, { color: "tints.uiGrey", children: `${te.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1509
|
+
D,
|
|
1485
1510
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1486
1511
|
/* @__PURE__ */ t.jsx(
|
|
1487
|
-
|
|
1512
|
+
K,
|
|
1488
1513
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1489
1514
|
),
|
|
1490
1515
|
/* @__PURE__ */ t.jsx(
|
|
1491
|
-
|
|
1516
|
+
gt,
|
|
1492
1517
|
{
|
|
1493
|
-
as:
|
|
1494
|
-
onClick:
|
|
1518
|
+
as: re,
|
|
1519
|
+
onClick: de,
|
|
1495
1520
|
_hover: { textDecoration: "none" },
|
|
1496
1521
|
width: ["100%", null, null, "auto"],
|
|
1497
|
-
...
|
|
1522
|
+
...Te,
|
|
1498
1523
|
children: "Shop all products"
|
|
1499
1524
|
}
|
|
1500
1525
|
)
|
|
@@ -1502,211 +1527,217 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1502
1527
|
),
|
|
1503
1528
|
/* @__PURE__ */ t.jsx(
|
|
1504
1529
|
Kt,
|
|
1505
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1506
|
-
(
|
|
1530
|
+
{ columns: [1, 1, 1, 4], children: te.map(
|
|
1531
|
+
(a, k) => /* @__PURE__ */ t.jsx(
|
|
1507
1532
|
Xt,
|
|
1508
1533
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1509
|
-
|
|
1534
|
+
ze,
|
|
1510
1535
|
{
|
|
1511
|
-
href:
|
|
1512
|
-
label:
|
|
1513
|
-
additionalContent:
|
|
1514
|
-
linkComponent:
|
|
1536
|
+
href: a.href,
|
|
1537
|
+
label: a.label,
|
|
1538
|
+
additionalContent: a == null ? void 0 : a.additionalContent,
|
|
1539
|
+
linkComponent: s
|
|
1515
1540
|
}
|
|
1516
1541
|
) },
|
|
1517
|
-
`${
|
|
1542
|
+
`${a.label}-${k}`
|
|
1518
1543
|
)
|
|
1519
1544
|
) }
|
|
1520
1545
|
)
|
|
1521
1546
|
] }
|
|
1522
|
-
),
|
|
1547
|
+
), ve = () => {
|
|
1523
1548
|
H(!1), V(null);
|
|
1524
|
-
},
|
|
1525
|
-
V(
|
|
1526
|
-
},
|
|
1527
|
-
|
|
1528
|
-
},
|
|
1529
|
-
|
|
1549
|
+
}, U = (a) => "href" in a, ge = (a) => {
|
|
1550
|
+
U(a) ? v == null || v(a.label) : V(a);
|
|
1551
|
+
}, xe = (a) => {
|
|
1552
|
+
pe(!0), B(!1), !U(a) && (a.sections || a.spotlightCards) && V(a);
|
|
1553
|
+
}, ne = () => {
|
|
1554
|
+
pe(!1);
|
|
1530
1555
|
};
|
|
1531
1556
|
q(() => {
|
|
1532
|
-
const
|
|
1533
|
-
N(
|
|
1557
|
+
const a = (k) => {
|
|
1558
|
+
N(k.detail.isHovering);
|
|
1534
1559
|
};
|
|
1535
1560
|
return window.addEventListener(
|
|
1536
|
-
|
|
1537
|
-
|
|
1561
|
+
Ze,
|
|
1562
|
+
a
|
|
1538
1563
|
), () => {
|
|
1539
1564
|
window.removeEventListener(
|
|
1540
|
-
|
|
1541
|
-
|
|
1565
|
+
Ze,
|
|
1566
|
+
a
|
|
1542
1567
|
);
|
|
1543
1568
|
};
|
|
1544
1569
|
}, []), q(() => {
|
|
1545
|
-
!
|
|
1546
|
-
}, [
|
|
1547
|
-
let
|
|
1548
|
-
const
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
},
|
|
1552
|
-
return window.addEventListener("popstate",
|
|
1553
|
-
window.removeEventListener("popstate",
|
|
1570
|
+
!Ee && !A && (V(null), B(!1));
|
|
1571
|
+
}, [Ee, A]), q(() => {
|
|
1572
|
+
let a = window.location.href;
|
|
1573
|
+
const k = () => {
|
|
1574
|
+
const P = window.location.href;
|
|
1575
|
+
P !== a && (a = P, ve(), V(null));
|
|
1576
|
+
}, Z = setInterval(k, 100);
|
|
1577
|
+
return window.addEventListener("popstate", k), () => {
|
|
1578
|
+
window.removeEventListener("popstate", k), clearInterval(Z);
|
|
1554
1579
|
};
|
|
1555
1580
|
}, []);
|
|
1556
|
-
const
|
|
1581
|
+
const be = () => {
|
|
1557
1582
|
V(null), M == null || M();
|
|
1558
|
-
},
|
|
1583
|
+
}, le = /* @__PURE__ */ t.jsx(
|
|
1559
1584
|
t.Fragment,
|
|
1560
1585
|
{ children: l == null ? void 0 : l.map(
|
|
1561
|
-
(
|
|
1562
|
-
|
|
1586
|
+
(a, k) => /* @__PURE__ */ t.jsx(
|
|
1587
|
+
Pe,
|
|
1563
1588
|
{
|
|
1564
1589
|
onMouseEnter: () => {
|
|
1565
|
-
|
|
1590
|
+
xe(a), u == null || u(a.label);
|
|
1566
1591
|
},
|
|
1567
|
-
onMouseLeave:
|
|
1568
|
-
isSelected: (
|
|
1569
|
-
|
|
1570
|
-
|
|
1592
|
+
onMouseLeave: ne,
|
|
1593
|
+
isSelected: (E == null ? void 0 : E.label) === a.label,
|
|
1594
|
+
as: U(a) && re ? re : z,
|
|
1595
|
+
href: U(a) ? a.href : void 0,
|
|
1596
|
+
onClick: U(a) ? () => v == null ? void 0 : v(a.label) : void 0,
|
|
1597
|
+
...a.buttonProps,
|
|
1598
|
+
children: a.label
|
|
1571
1599
|
},
|
|
1572
|
-
`${
|
|
1600
|
+
`${a.label}-${k}`
|
|
1573
1601
|
)
|
|
1574
1602
|
) }
|
|
1575
|
-
),
|
|
1576
|
-
(
|
|
1577
|
-
|
|
1603
|
+
), Ie = (G = l.filter(
|
|
1604
|
+
(a) => !U(a) && a.isMobileTopLink !== !1
|
|
1605
|
+
)) == null ? void 0 : G.map((a) => {
|
|
1606
|
+
const k = a;
|
|
1607
|
+
return /* @__PURE__ */ t.jsx(
|
|
1608
|
+
y,
|
|
1578
1609
|
{
|
|
1579
1610
|
onClick: () => {
|
|
1580
|
-
|
|
1611
|
+
ge(k), u == null || u(k.label);
|
|
1581
1612
|
},
|
|
1582
1613
|
children: /* @__PURE__ */ t.jsx(
|
|
1583
|
-
|
|
1614
|
+
ze,
|
|
1584
1615
|
{
|
|
1585
|
-
label:
|
|
1616
|
+
label: k.label,
|
|
1586
1617
|
role: "link",
|
|
1587
|
-
additionalContent:
|
|
1618
|
+
additionalContent: k.additionalContent,
|
|
1588
1619
|
mainTextFontSize: "3xl",
|
|
1589
|
-
linkComponent:
|
|
1620
|
+
linkComponent: s
|
|
1590
1621
|
}
|
|
1591
1622
|
)
|
|
1592
1623
|
},
|
|
1593
|
-
|
|
1594
|
-
)
|
|
1595
|
-
);
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1624
|
+
k.label
|
|
1625
|
+
);
|
|
1626
|
+
});
|
|
1627
|
+
vt(l);
|
|
1628
|
+
const De = /* @__PURE__ */ t.jsxs(
|
|
1598
1629
|
t.Fragment,
|
|
1599
1630
|
{ children: [
|
|
1600
1631
|
/* @__PURE__ */ t.jsx(
|
|
1601
|
-
|
|
1632
|
+
Pe,
|
|
1602
1633
|
{
|
|
1603
|
-
as:
|
|
1634
|
+
as: z,
|
|
1604
1635
|
href: R,
|
|
1605
1636
|
width: "100%",
|
|
1606
1637
|
backgroundColor: "tints.cream",
|
|
1607
1638
|
onClick: F,
|
|
1608
1639
|
children: /* @__PURE__ */ t.jsxs(
|
|
1609
|
-
|
|
1640
|
+
D,
|
|
1610
1641
|
{ gap: "2", children: [
|
|
1611
1642
|
"My Everly",
|
|
1612
|
-
/* @__PURE__ */ t.jsx(
|
|
1643
|
+
/* @__PURE__ */ t.jsx(se, { as: ct, size: 24 })
|
|
1613
1644
|
] }
|
|
1614
1645
|
)
|
|
1615
1646
|
},
|
|
1616
1647
|
"my-everly"
|
|
1617
1648
|
),
|
|
1618
1649
|
/* @__PURE__ */ t.jsx(
|
|
1619
|
-
|
|
1650
|
+
Pe,
|
|
1620
1651
|
{
|
|
1621
|
-
as:
|
|
1652
|
+
as: z,
|
|
1622
1653
|
width: "100%",
|
|
1623
1654
|
href: m,
|
|
1624
1655
|
backgroundColor: "tints.cream",
|
|
1625
1656
|
onClick: Q,
|
|
1626
1657
|
children: /* @__PURE__ */ t.jsxs(
|
|
1627
|
-
|
|
1658
|
+
D,
|
|
1628
1659
|
{ gap: "2", children: [
|
|
1629
1660
|
"Register kit",
|
|
1630
|
-
/* @__PURE__ */ t.jsx(
|
|
1661
|
+
/* @__PURE__ */ t.jsx(se, { as: or, size: 24 })
|
|
1631
1662
|
] }
|
|
1632
1663
|
)
|
|
1633
1664
|
},
|
|
1634
1665
|
"register-kit"
|
|
1635
1666
|
)
|
|
1636
1667
|
] }
|
|
1637
|
-
),
|
|
1638
|
-
|
|
1668
|
+
), Ae = /* @__PURE__ */ t.jsxs(
|
|
1669
|
+
D,
|
|
1639
1670
|
{ gap: "2", flexDirection: "column", children: [
|
|
1640
1671
|
c,
|
|
1641
|
-
|
|
1672
|
+
De
|
|
1642
1673
|
] }
|
|
1643
|
-
),
|
|
1644
|
-
|
|
1645
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (
|
|
1646
|
-
const
|
|
1647
|
-
for (let
|
|
1648
|
-
|
|
1674
|
+
), Fe = E ? /* @__PURE__ */ t.jsx(
|
|
1675
|
+
D,
|
|
1676
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (me = E == null ? void 0 : E.sections) == null ? void 0 : me.map((a, k) => {
|
|
1677
|
+
const Z = [];
|
|
1678
|
+
for (let P = 0; P < a.links.length; P += 3)
|
|
1679
|
+
Z.push(a.links.slice(P, P + 3));
|
|
1649
1680
|
return /* @__PURE__ */ t.jsxs(
|
|
1650
|
-
|
|
1681
|
+
y,
|
|
1651
1682
|
{ children: [
|
|
1652
1683
|
/* @__PURE__ */ t.jsx(
|
|
1653
|
-
|
|
1684
|
+
K,
|
|
1654
1685
|
{
|
|
1655
1686
|
fontSize: "md",
|
|
1656
1687
|
color: "tints.uiGrey",
|
|
1657
1688
|
marginBottom: [0, null, null, 6],
|
|
1658
|
-
children:
|
|
1689
|
+
children: a.title
|
|
1659
1690
|
}
|
|
1660
1691
|
),
|
|
1661
1692
|
/* @__PURE__ */ t.jsx(
|
|
1662
|
-
|
|
1693
|
+
D,
|
|
1663
1694
|
{
|
|
1664
1695
|
flexDirection: ["column", null, null, "row"],
|
|
1665
1696
|
gap: [null, null, null, 8],
|
|
1666
|
-
children:
|
|
1667
|
-
(
|
|
1668
|
-
|
|
1697
|
+
children: Z == null ? void 0 : Z.map(
|
|
1698
|
+
(P, He) => /* @__PURE__ */ t.jsx(
|
|
1699
|
+
D,
|
|
1669
1700
|
{
|
|
1670
1701
|
flexDirection: ["column"],
|
|
1671
1702
|
gap: [null, null, null, 5],
|
|
1672
1703
|
marginLeft: [null, null, null, -2],
|
|
1673
|
-
children:
|
|
1704
|
+
children: P == null ? void 0 : P.map(
|
|
1674
1705
|
(X) => /* @__PURE__ */ t.jsx(
|
|
1675
|
-
|
|
1706
|
+
ze,
|
|
1676
1707
|
{
|
|
1677
1708
|
label: X.label,
|
|
1678
1709
|
href: X.href,
|
|
1679
1710
|
additionalContent: X.additionalContent,
|
|
1680
|
-
linkComponent:
|
|
1681
|
-
onClick: () =>
|
|
1711
|
+
linkComponent: s,
|
|
1712
|
+
onClick: () => v == null ? void 0 : v(X.label)
|
|
1682
1713
|
},
|
|
1683
1714
|
X.label
|
|
1684
1715
|
)
|
|
1685
1716
|
)
|
|
1686
1717
|
},
|
|
1687
|
-
|
|
1718
|
+
He
|
|
1688
1719
|
)
|
|
1689
1720
|
)
|
|
1690
1721
|
}
|
|
1691
1722
|
)
|
|
1692
1723
|
] },
|
|
1693
|
-
`${
|
|
1724
|
+
`${a.title}-${k}`
|
|
1694
1725
|
);
|
|
1695
1726
|
}) }
|
|
1696
|
-
) : null,
|
|
1697
|
-
(
|
|
1698
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1727
|
+
) : null, ae = E != null && E.spotlightCards ? (je = E.spotlightCards) == null ? void 0 : je.map(
|
|
1728
|
+
(a) => /* @__PURE__ */ t.jsx(fr, { ...a }, a.title)
|
|
1729
|
+
) : /* @__PURE__ */ t.jsx(y, {});
|
|
1699
1730
|
return /* @__PURE__ */ t.jsxs(
|
|
1700
|
-
|
|
1731
|
+
y,
|
|
1701
1732
|
{ children: [
|
|
1702
1733
|
/* @__PURE__ */ t.jsx(
|
|
1703
|
-
|
|
1734
|
+
hr,
|
|
1704
1735
|
{
|
|
1705
|
-
desktopTopButtons:
|
|
1736
|
+
desktopTopButtons: le,
|
|
1706
1737
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1707
|
-
|
|
1738
|
+
Pe,
|
|
1708
1739
|
{
|
|
1709
|
-
as:
|
|
1740
|
+
as: z,
|
|
1710
1741
|
href: m,
|
|
1711
1742
|
onClick: Q,
|
|
1712
1743
|
backgroundColor: "tints.cream",
|
|
@@ -1714,66 +1745,66 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1714
1745
|
}
|
|
1715
1746
|
),
|
|
1716
1747
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1717
|
-
|
|
1718
|
-
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(
|
|
1748
|
+
z,
|
|
1749
|
+
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(ue, { icon: /* @__PURE__ */ t.jsx(se, { as: ct }), "aria-label": "Profile" }) }
|
|
1719
1750
|
),
|
|
1720
1751
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1721
|
-
|
|
1752
|
+
vr,
|
|
1722
1753
|
{
|
|
1723
1754
|
"aria-label": "Cart",
|
|
1724
|
-
count:
|
|
1725
|
-
onClick:
|
|
1755
|
+
count: b,
|
|
1756
|
+
onClick: o
|
|
1726
1757
|
}
|
|
1727
1758
|
),
|
|
1728
1759
|
onSearchClick: () => {
|
|
1729
|
-
B(!
|
|
1760
|
+
B(!ee), g == null || g();
|
|
1730
1761
|
},
|
|
1731
1762
|
onMenuClick: () => {
|
|
1732
|
-
H(!0),
|
|
1763
|
+
H(!0), O == null || O();
|
|
1733
1764
|
},
|
|
1734
|
-
hasSearch:
|
|
1735
|
-
logoLink:
|
|
1736
|
-
linkComponent:
|
|
1765
|
+
hasSearch: w,
|
|
1766
|
+
logoLink: d,
|
|
1767
|
+
linkComponent: s,
|
|
1737
1768
|
onLogoClick: _,
|
|
1738
|
-
setTopOffset:
|
|
1769
|
+
setTopOffset: Re
|
|
1739
1770
|
}
|
|
1740
1771
|
),
|
|
1741
1772
|
/* @__PURE__ */ t.jsx(
|
|
1742
|
-
|
|
1773
|
+
Ue,
|
|
1743
1774
|
{
|
|
1744
|
-
isOpen:
|
|
1745
|
-
onClose:
|
|
1775
|
+
isOpen: fe,
|
|
1776
|
+
onClose: ve,
|
|
1746
1777
|
title: p,
|
|
1747
|
-
navDrawerLinks:
|
|
1748
|
-
bottomNavButtons:
|
|
1778
|
+
navDrawerLinks: Ie,
|
|
1779
|
+
bottomNavButtons: Ae,
|
|
1749
1780
|
hasBackButton: !1,
|
|
1750
1781
|
topOffset: Y
|
|
1751
1782
|
}
|
|
1752
1783
|
),
|
|
1753
1784
|
/* @__PURE__ */ t.jsx(
|
|
1754
|
-
|
|
1785
|
+
Ue,
|
|
1755
1786
|
{
|
|
1756
|
-
isOpen: !!
|
|
1787
|
+
isOpen: !!E,
|
|
1757
1788
|
onClose: () => {
|
|
1758
|
-
|
|
1789
|
+
ve(), V(null);
|
|
1759
1790
|
},
|
|
1760
|
-
title: (
|
|
1761
|
-
navDrawerLinks:
|
|
1762
|
-
onBackClick:
|
|
1763
|
-
spotlightCards:
|
|
1764
|
-
hasOnlySpotlightCards:
|
|
1765
|
-
bottomButton:
|
|
1791
|
+
title: (E == null ? void 0 : E.label) || "",
|
|
1792
|
+
navDrawerLinks: Fe,
|
|
1793
|
+
onBackClick: be,
|
|
1794
|
+
spotlightCards: ae,
|
|
1795
|
+
hasOnlySpotlightCards: E == null ? void 0 : E.hasOnlySpotlightCards,
|
|
1796
|
+
bottomButton: E == null ? void 0 : E.bottomButton,
|
|
1766
1797
|
topOffset: Y
|
|
1767
1798
|
}
|
|
1768
1799
|
),
|
|
1769
1800
|
/* @__PURE__ */ t.jsx(
|
|
1770
|
-
|
|
1801
|
+
Ue,
|
|
1771
1802
|
{
|
|
1772
|
-
isOpen:
|
|
1803
|
+
isOpen: ee,
|
|
1773
1804
|
onClose: () => B(!1),
|
|
1774
1805
|
title: "Search",
|
|
1775
|
-
navDrawerLinks:
|
|
1776
|
-
onSearch:
|
|
1806
|
+
navDrawerLinks: ke,
|
|
1807
|
+
onSearch: Se,
|
|
1777
1808
|
hasSearch: !0,
|
|
1778
1809
|
hasBackButton: !1,
|
|
1779
1810
|
topOffset: Y
|
|
@@ -1783,15 +1814,15 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1783
1814
|
);
|
|
1784
1815
|
};
|
|
1785
1816
|
export {
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1817
|
+
vr as BasketButton,
|
|
1818
|
+
Sr as CategoryLabel,
|
|
1819
|
+
Pe as NavButton,
|
|
1820
|
+
Tr as NavSkeleton,
|
|
1821
|
+
Ue as NavbarDrawer,
|
|
1822
|
+
ze as NavbarDrawerLink,
|
|
1823
|
+
kr as NavigationBar,
|
|
1824
|
+
fr as SpotlightCard,
|
|
1825
|
+
_r as Stepper,
|
|
1826
|
+
ue as TopNavIconButton,
|
|
1827
|
+
hr as TopNavigation
|
|
1797
1828
|
};
|