@everlywell/consumer-ui 1.32.0 → 1.34.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 +660 -640
- package/lib/components/Navbar/NavButton/NavButton.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
|
|
4
|
-
import { CaretRight as
|
|
5
|
-
import { motion as
|
|
6
|
-
var
|
|
1
|
+
import { useSteps as Wt, Box as y, Stepper as Mt, Icon as ce, Flex as D, Text as X, Link as G, Button as xt, Image as Bt, IconButton as Vt, VStack as Nt, Skeleton as Ye, HStack as ut, 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 Xe, { useEffect as K, forwardRef as bt, useRef as Jt, useCallback as mt, useState as V } from "react";
|
|
3
|
+
import { Text as qt, useBreakpointValue as Je, InputGroup as Qt, Input as er, InputRightElement as tr, Icon as rr } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as ct, MagnifyingGlass as jt, List as nr, Basket as lr, CaretLeft as ar, X as ir, User as ft, QrCode as or } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as qe, AnimatePresence as sr } from "framer-motion";
|
|
6
|
+
var Ze = { 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 s,
|
|
24
|
-
|
|
16
|
+
var dt;
|
|
17
|
+
function ur() {
|
|
18
|
+
if (dt)
|
|
19
|
+
return we;
|
|
20
|
+
dt = 1;
|
|
21
|
+
var l = Xe, o = Symbol.for("react.element"), p = Symbol.for("react.fragment"), f = 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
25
|
for (s in c)
|
|
26
|
-
|
|
26
|
+
f.call(c, s) && !g.hasOwnProperty(s) && (j[s] = c[s]);
|
|
27
27
|
if (R && R.defaultProps)
|
|
28
28
|
for (s in c = R.defaultProps, c)
|
|
29
|
-
|
|
30
|
-
return { $$typeof: o, type: R, key:
|
|
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
|
|
@@ -41,51 +41,51 @@ var je = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
var l =
|
|
48
|
-
function
|
|
44
|
+
var pt;
|
|
45
|
+
function cr() {
|
|
46
|
+
return pt || (pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var l = Xe, o = Symbol.for("react.element"), p = Symbol.for("react.portal"), f = 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, N = "@@iterator";
|
|
48
|
+
function ee(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[N];
|
|
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
|
+
de("error", e, n);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function de(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
|
-
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
72
|
+
var pe = !1, he = !1, H = !1, te = !1, Y = !1, E;
|
|
73
|
+
E = Symbol.for("react.module.reference");
|
|
74
|
+
function W(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === g || Y || e === w || e === b || e === s || te || e === u || pe || he || 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 ve(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
90
90
|
}
|
|
91
91
|
function I(e) {
|
|
@@ -96,15 +96,15 @@ function dn() {
|
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
|
-
case
|
|
99
|
+
case f:
|
|
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
109
|
case s:
|
|
110
110
|
return "SuspenseList";
|
|
@@ -112,18 +112,18 @@ function dn() {
|
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
114
|
case R:
|
|
115
|
-
var n = e;
|
|
116
|
-
return de(n) + ".Consumer";
|
|
117
|
-
case m:
|
|
118
115
|
var r = e;
|
|
119
|
-
return
|
|
116
|
+
return ve(r) + ".Consumer";
|
|
117
|
+
case m:
|
|
118
|
+
var n = e;
|
|
119
|
+
return ve(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
124
|
return i !== null ? i : I(e.type) || "Memo";
|
|
125
|
-
case
|
|
126
|
-
var
|
|
125
|
+
case v: {
|
|
126
|
+
var x = e, C = x._payload, h = x._init;
|
|
127
127
|
try {
|
|
128
128
|
return I(h(C));
|
|
129
129
|
} catch {
|
|
@@ -133,14 +133,14 @@ function dn() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var z = Object.assign, U = 0, Re, _e, Se, re, Te, ge, ne;
|
|
137
137
|
function ke() {
|
|
138
138
|
}
|
|
139
139
|
ke.__reactDisabledLog = !0;
|
|
140
|
-
function
|
|
140
|
+
function Ie() {
|
|
141
141
|
{
|
|
142
|
-
if (
|
|
143
|
-
|
|
142
|
+
if (U === 0) {
|
|
143
|
+
Re = console.log, _e = console.info, Se = console.warn, re = console.error, Te = console.group, ge = console.groupCollapsed, ne = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
@@ -157,79 +157,79 @@ function dn() {
|
|
|
157
157
|
groupEnd: e
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
U++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function le() {
|
|
164
164
|
{
|
|
165
|
-
if (
|
|
165
|
+
if (U--, U === 0) {
|
|
166
166
|
var e = {
|
|
167
167
|
configurable: !0,
|
|
168
168
|
enumerable: !0,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
|
-
log:
|
|
173
|
-
value:
|
|
172
|
+
log: z({}, e, {
|
|
173
|
+
value: Re
|
|
174
174
|
}),
|
|
175
|
-
info:
|
|
176
|
-
value:
|
|
175
|
+
info: z({}, e, {
|
|
176
|
+
value: _e
|
|
177
177
|
}),
|
|
178
|
-
warn:
|
|
179
|
-
value:
|
|
178
|
+
warn: z({}, e, {
|
|
179
|
+
value: Se
|
|
180
180
|
}),
|
|
181
|
-
error:
|
|
182
|
-
value:
|
|
181
|
+
error: z({}, e, {
|
|
182
|
+
value: re
|
|
183
183
|
}),
|
|
184
|
-
group:
|
|
185
|
-
value:
|
|
184
|
+
group: z({}, e, {
|
|
185
|
+
value: Te
|
|
186
186
|
}),
|
|
187
|
-
groupCollapsed:
|
|
188
|
-
value:
|
|
187
|
+
groupCollapsed: z({}, e, {
|
|
188
|
+
value: ge
|
|
189
189
|
}),
|
|
190
|
-
groupEnd:
|
|
191
|
-
value:
|
|
190
|
+
groupEnd: z({}, e, {
|
|
191
|
+
value: ne
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
U < 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 M = F.ReactCurrentDispatcher, xe;
|
|
199
|
+
function ae(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, ie;
|
|
213
213
|
{
|
|
214
|
-
var
|
|
215
|
-
|
|
214
|
+
var Ae = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
+
ie = new Ae();
|
|
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 = ie.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 = M.current, M.current = null, Ie();
|
|
231
231
|
try {
|
|
232
|
-
if (
|
|
232
|
+
if (r) {
|
|
233
233
|
var h = function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
};
|
|
@@ -240,253 +240,253 @@ function dn() {
|
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
242
|
Reflect.construct(h, []);
|
|
243
|
-
} catch (
|
|
244
|
-
i =
|
|
243
|
+
} catch (L) {
|
|
244
|
+
i = L;
|
|
245
245
|
}
|
|
246
246
|
Reflect.construct(e, [], h);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
h.call();
|
|
250
|
-
} catch (
|
|
251
|
-
i =
|
|
250
|
+
} catch (L) {
|
|
251
|
+
i = L;
|
|
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 (L) {
|
|
259
|
+
i = L;
|
|
260
260
|
}
|
|
261
261
|
e();
|
|
262
262
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var
|
|
266
|
-
`),
|
|
267
|
-
`), S =
|
|
268
|
-
|
|
269
|
-
for (; S >= 1 &&
|
|
270
|
-
if (
|
|
271
|
-
if (S !== 1 ||
|
|
263
|
+
} catch (L) {
|
|
264
|
+
if (L && i && typeof L.stack == "string") {
|
|
265
|
+
for (var d = L.stack.split(`
|
|
266
|
+
`), P = i.stack.split(`
|
|
267
|
+
`), S = d.length - 1, T = P.length - 1; S >= 1 && T >= 0 && d[S] !== P[T]; )
|
|
268
|
+
T--;
|
|
269
|
+
for (; S >= 1 && T >= 0; S--, T--)
|
|
270
|
+
if (d[S] !== P[T]) {
|
|
271
|
+
if (S !== 1 || T !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (S--,
|
|
273
|
+
if (S--, T--, T < 0 || d[S] !== P[T]) {
|
|
274
274
|
var $ = `
|
|
275
|
-
` +
|
|
276
|
-
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
275
|
+
` + d[S].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && ie.set(e, $), $;
|
|
277
277
|
}
|
|
278
|
-
while (S >= 1 &&
|
|
278
|
+
while (S >= 1 && T >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
be = !1, M.current = C, le(), Error.prepareStackTrace = x;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
return typeof e == "function" &&
|
|
285
|
+
var ue = e ? e.displayName || e.name : "", Q = ue ? ae(ue) : "";
|
|
286
|
+
return typeof e == "function" && ie.set(e, Q), Q;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function Fe(e, r, n) {
|
|
289
|
+
return De(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
var
|
|
293
|
-
return !!(
|
|
291
|
+
function He(e) {
|
|
292
|
+
var r = e.prototype;
|
|
293
|
+
return !!(r && r.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function oe(e, r, n) {
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
299
|
+
return De(e, He(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return ae(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
303
|
+
case b:
|
|
304
|
+
return ae("Suspense");
|
|
305
305
|
case s:
|
|
306
|
-
return
|
|
306
|
+
return ae("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
310
|
case c:
|
|
311
|
-
return
|
|
312
|
-
case
|
|
313
|
-
return
|
|
314
|
-
case
|
|
315
|
-
var i = e,
|
|
311
|
+
return Fe(e.render);
|
|
312
|
+
case j:
|
|
313
|
+
return oe(e.type, r, n);
|
|
314
|
+
case v: {
|
|
315
|
+
var i = e, x = i._payload, C = i._init;
|
|
316
316
|
try {
|
|
317
|
-
return
|
|
317
|
+
return oe(C(x), r, n);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
324
|
+
var J = Object.prototype.hasOwnProperty, me = {}, je = F.ReactDebugCurrentFrame;
|
|
325
|
+
function q(e) {
|
|
326
326
|
if (e) {
|
|
327
|
-
var
|
|
328
|
-
|
|
327
|
+
var r = e._owner, n = oe(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 a(e, r, n, i, x) {
|
|
333
333
|
{
|
|
334
|
-
var C = Function.call.bind(
|
|
334
|
+
var C = Function.call.bind(J);
|
|
335
335
|
for (var h in e)
|
|
336
336
|
if (C(e, h)) {
|
|
337
|
-
var
|
|
337
|
+
var d = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof e[h] != "function") {
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
340
|
+
var P = 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 P.name = "Invariant Violation", P;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
d = e[h](r, h, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (S) {
|
|
345
|
-
|
|
345
|
+
d = S;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
d && !(d instanceof Error) && (q(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 d), q(null)), d instanceof Error && !(d.message in me) && (me[d.message] = !0, q(x), _("Failed %s type: %s", n, d.message), q(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var
|
|
352
|
-
function
|
|
353
|
-
return
|
|
351
|
+
var k = Array.isArray;
|
|
352
|
+
function B(e) {
|
|
353
|
+
return k(e);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function A(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 $e(e) {
|
|
362
362
|
try {
|
|
363
|
-
return
|
|
363
|
+
return Z(e), !1;
|
|
364
364
|
} catch {
|
|
365
365
|
return !0;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Z(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 ($e(e))
|
|
373
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", A(e)), Z(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
|
+
}, et, tt, We;
|
|
381
|
+
We = {};
|
|
382
382
|
function wt(e) {
|
|
383
|
-
if (
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
383
|
+
if (J.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 (J.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 = I(Ce.current.type);
|
|
401
|
+
We[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', I(Ce.current.type), e.ref), We[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
|
+
et || (et = !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
|
+
tt || (tt = !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 d = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
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 d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !0,
|
|
442
442
|
value: !1
|
|
443
|
-
}), Object.defineProperty(
|
|
443
|
+
}), Object.defineProperty(d, "_self", {
|
|
444
444
|
configurable: !1,
|
|
445
445
|
enumerable: !1,
|
|
446
446
|
writable: !1,
|
|
447
447
|
value: i
|
|
448
|
-
}), Object.defineProperty(
|
|
448
|
+
}), Object.defineProperty(d, "_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(d.props), Object.freeze(d)), d;
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function Tt(e, r, n, i, x) {
|
|
456
456
|
{
|
|
457
|
-
var C, h = {},
|
|
458
|
-
|
|
459
|
-
for (C in
|
|
460
|
-
|
|
457
|
+
var C, h = {}, d = null, P = null;
|
|
458
|
+
n !== void 0 && (Qe(n), d = "" + n), yt(r) && (Qe(r.key), d = "" + r.key), wt(r) && (P = r.ref, Et(r, x));
|
|
459
|
+
for (C in r)
|
|
460
|
+
J.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 (
|
|
467
|
-
var
|
|
468
|
-
|
|
466
|
+
if (d || P) {
|
|
467
|
+
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
+
d && Rt(h, T), P && _t(h, T);
|
|
469
469
|
}
|
|
470
|
-
return St(e,
|
|
470
|
+
return St(e, d, P, x, i, Ce.current, h);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
function
|
|
473
|
+
var Me = F.ReactCurrentOwner, rt = F.ReactDebugCurrentFrame;
|
|
474
|
+
function se(e) {
|
|
475
475
|
if (e) {
|
|
476
|
-
var
|
|
477
|
-
|
|
476
|
+
var r = e._owner, n = oe(e.type, e._source, r ? r.type : null);
|
|
477
|
+
rt.setExtraStackFrame(n);
|
|
478
478
|
} else
|
|
479
|
-
|
|
479
|
+
rt.setExtraStackFrame(null);
|
|
480
480
|
}
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
function
|
|
481
|
+
var Be;
|
|
482
|
+
Be = !1;
|
|
483
|
+
function Ve(e) {
|
|
484
484
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function nt() {
|
|
487
487
|
{
|
|
488
|
-
if (
|
|
489
|
-
var e = I(
|
|
488
|
+
if (Me.current) {
|
|
489
|
+
var e = I(Me.current.type);
|
|
490
490
|
if (e)
|
|
491
491
|
return `
|
|
492
492
|
|
|
@@ -495,206 +495,206 @@ Check the render method of \`` + e + "`.";
|
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
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
|
-
var
|
|
510
|
-
function
|
|
509
|
+
var lt = {};
|
|
510
|
+
function Dt(e) {
|
|
511
511
|
{
|
|
512
|
-
var
|
|
513
|
-
if (!
|
|
514
|
-
var
|
|
515
|
-
|
|
512
|
+
var r = nt();
|
|
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 at(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 (
|
|
527
|
+
var n = Dt(r);
|
|
528
|
+
if (lt[n])
|
|
529
529
|
return;
|
|
530
|
-
|
|
530
|
+
lt[n] = !0;
|
|
531
531
|
var i = "";
|
|
532
|
-
e && e._owner && e._owner !==
|
|
532
|
+
e && e._owner && e._owner !== Me.current && (i = " It was passed a child from " + I(e._owner.type) + "."), se(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), se(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function it(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 (B(e))
|
|
540
|
+
for (var n = 0; n < e.length; n++) {
|
|
541
|
+
var i = e[n];
|
|
542
|
+
Ve(i) && at(i, r);
|
|
543
543
|
}
|
|
544
|
-
else if (
|
|
544
|
+
else if (Ve(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 = ee(e);
|
|
548
|
+
if (typeof x == "function" && x !== e.entries)
|
|
549
|
+
for (var C = x.call(e), h; !(h = C.next()).done; )
|
|
550
|
+
Ve(h.value) && at(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 = 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 = I(r);
|
|
570
|
+
a(n, e.props, "prop", i, e);
|
|
571
|
+
} else if (r.PropTypes !== void 0 && !Be) {
|
|
572
|
+
Be = !0;
|
|
573
|
+
var x = I(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
|
+
se(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), se(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
e.ref !== null && (
|
|
588
|
+
e.ref !== null && (se(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
function
|
|
591
|
+
var ot = {};
|
|
592
|
+
function st(e, r, n, i, x, C) {
|
|
593
593
|
{
|
|
594
|
-
var h =
|
|
594
|
+
var h = W(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 d = "";
|
|
597
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " 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 P = kt(x);
|
|
599
|
+
P ? d += P : d += nt();
|
|
600
600
|
var S;
|
|
601
|
-
e === null ? S = "null" :
|
|
601
|
+
e === null ? S = "null" : B(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (I(e.type) || "Unknown") + " />", d = " 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, d);
|
|
602
602
|
}
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
605
|
-
return
|
|
603
|
+
var T = Tt(e, r, n, x, C);
|
|
604
|
+
if (T == null)
|
|
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 (B($)) {
|
|
611
|
+
for (var ue = 0; ue < $.length; ue++)
|
|
612
|
+
it($[ue], 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
|
+
it($, e);
|
|
618
618
|
}
|
|
619
|
-
if (
|
|
620
|
-
var
|
|
619
|
+
if (J.call(r, "key")) {
|
|
620
|
+
var Q = I(e), L = Object.keys(r).filter(function($t) {
|
|
621
621
|
return $t !== "key";
|
|
622
|
-
}),
|
|
623
|
-
if (!
|
|
624
|
-
var Ht =
|
|
622
|
+
}), Ne = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
623
|
+
if (!ot[Q + Ne]) {
|
|
624
|
+
var Ht = L.length > 0 ? "{" + L.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} />`, Ne, Q, Ht, Q), ot[Q + Ne] = !0;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
return e ===
|
|
633
|
+
return e === f ? Pt(T) : Ot(T), T;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
636
|
+
function Lt(e, r, n) {
|
|
637
|
+
return st(e, r, n, !0);
|
|
638
638
|
}
|
|
639
|
-
function It(e,
|
|
640
|
-
return
|
|
639
|
+
function It(e, r, n) {
|
|
640
|
+
return st(e, r, n, !1);
|
|
641
641
|
}
|
|
642
|
-
var At = It, Ft =
|
|
643
|
-
|
|
644
|
-
}()),
|
|
642
|
+
var At = It, Ft = Lt;
|
|
643
|
+
ye.Fragment = f, 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" ? Ze.exports = ur() : Ze.exports = cr();
|
|
647
|
+
var t = Ze.exports;
|
|
648
|
+
const ze = 60, ht = 6, fr = (l) => {
|
|
649
649
|
const {
|
|
650
650
|
activeStepIndex: o,
|
|
651
651
|
hideIndicators: p = !1,
|
|
652
|
-
steps:
|
|
653
|
-
stepperTheme:
|
|
652
|
+
steps: f,
|
|
653
|
+
stepperTheme: w = {
|
|
654
654
|
light: "eggplant.light",
|
|
655
655
|
base: "eggplant.base"
|
|
656
656
|
}
|
|
657
|
-
} = l, { activeStep:
|
|
657
|
+
} = l, { activeStep: g, setActiveStep: m } = Wt({
|
|
658
658
|
index: o,
|
|
659
|
-
count:
|
|
659
|
+
count: f.length
|
|
660
660
|
});
|
|
661
|
-
return
|
|
661
|
+
return K(() => {
|
|
662
662
|
m(o);
|
|
663
663
|
}, [o, m]), /* @__PURE__ */ t.jsx(
|
|
664
|
-
|
|
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: f.map((R, c) => {
|
|
674
|
+
const b = g === c, s = c === 0, j = c === f.length - 1, v = g > c;
|
|
675
|
+
let u = `${ze}px`;
|
|
676
|
+
const O = `calc(100% - ((${ze * (f.length - 1)}px) - (${f.length - 1} * ${ht * 2}px)))`;
|
|
677
|
+
return b ? u = O : (s || j) && (u = `${ze - ht}px`), /* @__PURE__ */ t.jsx(
|
|
678
|
+
y,
|
|
679
679
|
{
|
|
680
680
|
width: u,
|
|
681
|
-
opacity:
|
|
682
|
-
paddingRight:
|
|
681
|
+
opacity: v || b ? 1 : 0.2,
|
|
682
|
+
paddingRight: j ? "0" : "6px",
|
|
683
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,31 +709,31 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
709
709
|
}
|
|
710
710
|
) }
|
|
711
711
|
);
|
|
712
|
-
},
|
|
712
|
+
}, _r = Xe.memo(fr), Sr = ({
|
|
713
713
|
children: l,
|
|
714
714
|
...o
|
|
715
715
|
}) => /* @__PURE__ */ t.jsx(
|
|
716
716
|
qt,
|
|
717
717
|
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: l }
|
|
718
|
-
),
|
|
718
|
+
), Le = (l, o) => {
|
|
719
719
|
const p = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
|
|
720
720
|
return o && !p ? {
|
|
721
721
|
to: l
|
|
722
722
|
} : {
|
|
723
723
|
href: l
|
|
724
724
|
};
|
|
725
|
-
},
|
|
725
|
+
}, Ue = bt(
|
|
726
726
|
(l, o) => {
|
|
727
727
|
const {
|
|
728
728
|
label: p,
|
|
729
|
-
additionalContent:
|
|
730
|
-
mainTextFontSize:
|
|
731
|
-
linkComponent:
|
|
729
|
+
additionalContent: f,
|
|
730
|
+
mainTextFontSize: w,
|
|
731
|
+
linkComponent: g,
|
|
732
732
|
href: m,
|
|
733
733
|
...R
|
|
734
|
-
} = l, c =
|
|
734
|
+
} = l, c = g || G, b = Le(m, !!g);
|
|
735
735
|
return /* @__PURE__ */ t.jsxs(
|
|
736
|
-
|
|
736
|
+
y,
|
|
737
737
|
{
|
|
738
738
|
ref: o,
|
|
739
739
|
as: c,
|
|
@@ -748,14 +748,14 @@ const Ne = 60, ft = 6, fn = (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
|
+
ce,
|
|
756
756
|
{
|
|
757
757
|
display: ["none", null, null, "block"],
|
|
758
|
-
as:
|
|
758
|
+
as: ct,
|
|
759
759
|
fontSize: "lg",
|
|
760
760
|
color: "viridian.light",
|
|
761
761
|
role: "img",
|
|
@@ -764,18 +764,18 @@ const Ne = 60, ft = 6, fn = (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
|
+
X,
|
|
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
|
+
f && (typeof f == "string" ? /* @__PURE__ */ t.jsx(
|
|
778
|
+
X,
|
|
779
779
|
{
|
|
780
780
|
fontSize: ["xl", null, null, "lg"],
|
|
781
781
|
fontWeight: "medium",
|
|
@@ -785,14 +785,14 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
785
785
|
color: "viridian.base"
|
|
786
786
|
}
|
|
787
787
|
},
|
|
788
|
-
children:
|
|
788
|
+
children: f
|
|
789
789
|
}
|
|
790
|
-
) :
|
|
790
|
+
) : f),
|
|
791
791
|
/* @__PURE__ */ t.jsx(
|
|
792
|
-
|
|
792
|
+
ce,
|
|
793
793
|
{
|
|
794
794
|
display: ["block", null, null, "none"],
|
|
795
|
-
as:
|
|
795
|
+
as: ct,
|
|
796
796
|
fontSize: "2xl",
|
|
797
797
|
color: "tints.uiGrey",
|
|
798
798
|
role: "img",
|
|
@@ -806,18 +806,23 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
806
806
|
}
|
|
807
807
|
);
|
|
808
808
|
}
|
|
809
|
-
),
|
|
809
|
+
), Pe = bt(
|
|
810
810
|
(l, o) => {
|
|
811
|
-
const { children: p, isSelected:
|
|
811
|
+
const { children: p, isSelected: f, ...w } = l, g = l.backgroundColor || (f ? "tints.lightCream" : "transparent");
|
|
812
812
|
return /* @__PURE__ */ t.jsx(
|
|
813
|
-
|
|
813
|
+
xt,
|
|
814
814
|
{
|
|
815
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, ft = 6, fn = (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
|
+
), dr = ({
|
|
840
845
|
title: l,
|
|
841
846
|
description: o,
|
|
842
847
|
imageSrc: p,
|
|
843
|
-
imageElement:
|
|
844
|
-
button:
|
|
845
|
-
backgroundColor:
|
|
848
|
+
imageElement: f,
|
|
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 || G, u = Le(R, !!c), O = Je({
|
|
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, ft = 6, fn = (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, ft = 6, fn = (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: f
|
|
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, ft = 6, fn = (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
|
+
X,
|
|
926
931
|
{ fontSize: "lg", fontWeight: "medium", color: "tints.black", children: l }
|
|
927
932
|
),
|
|
928
933
|
/* @__PURE__ */ t.jsx(
|
|
929
|
-
|
|
934
|
+
X,
|
|
930
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
|
+
}, fe = (l) => /* @__PURE__ */ t.jsx(
|
|
942
947
|
Vt,
|
|
943
948
|
{
|
|
944
949
|
size: "sm",
|
|
@@ -959,7 +964,7 @@ const Ne = 60, ft = 6, fn = (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, ft = 6, fn = (l) => {
|
|
|
983
988
|
) }
|
|
984
989
|
)
|
|
985
990
|
}
|
|
986
|
-
),
|
|
991
|
+
), hr = ({
|
|
987
992
|
desktopTopButtons: l,
|
|
988
993
|
kitRegistrationElement: o,
|
|
989
994
|
profileElement: p,
|
|
990
|
-
cartElement:
|
|
991
|
-
onSearchClick:
|
|
992
|
-
onMenuClick:
|
|
995
|
+
cartElement: f,
|
|
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:
|
|
1001
|
+
linkComponent: b,
|
|
997
1002
|
onLogoClick: s
|
|
998
1003
|
}) => {
|
|
999
|
-
const
|
|
1000
|
-
if (
|
|
1001
|
-
const u =
|
|
1004
|
+
const j = Jt(null), v = mt(() => {
|
|
1005
|
+
if (j.current) {
|
|
1006
|
+
const u = j.current.getBoundingClientRect();
|
|
1002
1007
|
c(u.bottom);
|
|
1003
1008
|
}
|
|
1004
1009
|
}, []);
|
|
1005
|
-
return
|
|
1006
|
-
|
|
1007
|
-
}, [
|
|
1008
|
-
|
|
1010
|
+
return K(() => {
|
|
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, ft = 6, fn = (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
1036
|
onClick: s,
|
|
1032
|
-
as:
|
|
1033
|
-
...
|
|
1034
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1037
|
+
as: b || G,
|
|
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
|
-
|
|
1052
|
+
y,
|
|
1048
1053
|
{ display: ["none", null, null, "block"], children: o }
|
|
1049
1054
|
),
|
|
1050
1055
|
m ? /* @__PURE__ */ t.jsx(
|
|
1051
|
-
|
|
1056
|
+
fe,
|
|
1052
1057
|
{
|
|
1053
1058
|
"aria-label": "Search",
|
|
1054
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1055
|
-
onClick:
|
|
1059
|
+
icon: /* @__PURE__ */ t.jsx(ce, { as: jt }),
|
|
1060
|
+
onClick: w
|
|
1056
1061
|
}
|
|
1057
1062
|
) : null,
|
|
1058
|
-
|
|
1063
|
+
f,
|
|
1059
1064
|
/* @__PURE__ */ t.jsx(
|
|
1060
|
-
|
|
1065
|
+
y,
|
|
1061
1066
|
{ display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
|
|
1062
|
-
|
|
1067
|
+
fe,
|
|
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(fe, { 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,24 +1109,24 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1104
1109
|
}
|
|
1105
1110
|
)
|
|
1106
1111
|
] }
|
|
1107
|
-
),
|
|
1112
|
+
), Tr = ({
|
|
1108
1113
|
numDesktopLinks: l = 5,
|
|
1109
1114
|
showPromoButton: o = !1
|
|
1110
1115
|
}) => /* @__PURE__ */ t.jsx(
|
|
1111
1116
|
Nt,
|
|
1112
1117
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1113
|
-
|
|
1118
|
+
y,
|
|
1114
1119
|
{
|
|
1115
1120
|
paddingY: 4,
|
|
1116
1121
|
paddingX: 6,
|
|
1117
1122
|
borderBottomWidth: "1px",
|
|
1118
1123
|
borderColor: "tints.lightCream",
|
|
1119
1124
|
children: /* @__PURE__ */ t.jsxs(
|
|
1120
|
-
|
|
1125
|
+
D,
|
|
1121
1126
|
{ justify: "space-between", align: "center", children: [
|
|
1122
|
-
/* @__PURE__ */ t.jsx(
|
|
1127
|
+
/* @__PURE__ */ t.jsx(Ye, { w: "120px", h: "48px" }),
|
|
1123
1128
|
/* @__PURE__ */ t.jsxs(
|
|
1124
|
-
|
|
1129
|
+
ut,
|
|
1125
1130
|
{
|
|
1126
1131
|
spacing: 8,
|
|
1127
1132
|
marginLeft: 12,
|
|
@@ -1129,17 +1134,17 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1129
1134
|
"data-testid": "desktop-nav",
|
|
1130
1135
|
children: [
|
|
1131
1136
|
Array.from({ length: l }).map(
|
|
1132
|
-
(p,
|
|
1137
|
+
(p, f) => /* @__PURE__ */ t.jsx(Ye, { width: "90px", height: "48px" }, f)
|
|
1133
1138
|
),
|
|
1134
|
-
o && /* @__PURE__ */ t.jsx(
|
|
1139
|
+
o && /* @__PURE__ */ t.jsx(Ye, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1135
1140
|
]
|
|
1136
1141
|
}
|
|
1137
1142
|
),
|
|
1138
1143
|
/* @__PURE__ */ t.jsxs(
|
|
1139
|
-
|
|
1144
|
+
ut,
|
|
1140
1145
|
{ spacing: 4, ml: "auto", children: [
|
|
1141
1146
|
/* @__PURE__ */ t.jsx(
|
|
1142
|
-
|
|
1147
|
+
Oe,
|
|
1143
1148
|
{
|
|
1144
1149
|
width: "120px",
|
|
1145
1150
|
height: "48px",
|
|
@@ -1148,11 +1153,11 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1148
1153
|
}
|
|
1149
1154
|
),
|
|
1150
1155
|
" ",
|
|
1151
|
-
/* @__PURE__ */ t.jsx(
|
|
1156
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1152
1157
|
" ",
|
|
1153
|
-
/* @__PURE__ */ t.jsx(
|
|
1158
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1154
1159
|
" ",
|
|
1155
|
-
/* @__PURE__ */ t.jsx(
|
|
1160
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1156
1161
|
" "
|
|
1157
1162
|
] }
|
|
1158
1163
|
)
|
|
@@ -1160,53 +1165,53 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1160
1165
|
)
|
|
1161
1166
|
}
|
|
1162
1167
|
) }
|
|
1163
|
-
),
|
|
1168
|
+
), gr = (l, o) => {
|
|
1164
1169
|
let p;
|
|
1165
|
-
return (...
|
|
1170
|
+
return (...f) => {
|
|
1166
1171
|
p && clearTimeout(p), p = setTimeout(() => {
|
|
1167
|
-
l(...
|
|
1172
|
+
l(...f);
|
|
1168
1173
|
}, o);
|
|
1169
1174
|
};
|
|
1170
|
-
},
|
|
1175
|
+
}, Ke = "nav-drawer-hover", vt = (l) => {
|
|
1171
1176
|
window.dispatchEvent(
|
|
1172
|
-
new CustomEvent(
|
|
1177
|
+
new CustomEvent(Ke, {
|
|
1173
1178
|
detail: { isHovering: l },
|
|
1174
1179
|
bubbles: !0,
|
|
1175
1180
|
cancelable: !0
|
|
1176
1181
|
})
|
|
1177
1182
|
);
|
|
1178
|
-
},
|
|
1183
|
+
}, xr = (l = !1, o = !1, p = !1) => l || !o ? "column" : p ? "row" : "row-reverse", br = qe(Yt), mr = qe(zt), Ge = ({
|
|
1179
1184
|
isOpen: l = !1,
|
|
1180
1185
|
onClose: o,
|
|
1181
1186
|
title: p,
|
|
1182
|
-
navDrawerLinks:
|
|
1183
|
-
bottomNavButtons:
|
|
1184
|
-
spotlightCards:
|
|
1187
|
+
navDrawerLinks: f,
|
|
1188
|
+
bottomNavButtons: w,
|
|
1189
|
+
spotlightCards: g,
|
|
1185
1190
|
bottomButton: m,
|
|
1186
1191
|
hasBackButton: R = !0,
|
|
1187
1192
|
onBackClick: c,
|
|
1188
|
-
hasOnlySpotlightCards:
|
|
1193
|
+
hasOnlySpotlightCards: b = !1,
|
|
1189
1194
|
hasSearch: s = !1,
|
|
1190
|
-
onSearch:
|
|
1191
|
-
topOffset:
|
|
1195
|
+
onSearch: j = () => ({}),
|
|
1196
|
+
topOffset: v
|
|
1192
1197
|
}) => {
|
|
1193
|
-
const u =
|
|
1198
|
+
const u = Je({
|
|
1194
1199
|
base: !1,
|
|
1195
1200
|
tablet: !1,
|
|
1196
1201
|
largeTablet: !1,
|
|
1197
1202
|
desktop: !0
|
|
1198
|
-
}),
|
|
1199
|
-
|
|
1200
|
-
},
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
+
}), O = u ? "top" : "left", [N, ee] = V(0), [F, _] = V(!1), de = () => {
|
|
1204
|
+
ee((H) => H + 1);
|
|
1205
|
+
}, pe = mt(
|
|
1206
|
+
gr((H) => {
|
|
1207
|
+
j(H), de();
|
|
1203
1208
|
}, 100),
|
|
1204
1209
|
[]
|
|
1205
1210
|
);
|
|
1206
|
-
|
|
1211
|
+
K(() => {
|
|
1207
1212
|
l && _(!0);
|
|
1208
1213
|
}, [l]);
|
|
1209
|
-
const
|
|
1214
|
+
const he = () => {
|
|
1210
1215
|
l || (_(!1), o());
|
|
1211
1216
|
};
|
|
1212
1217
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1216,19 +1221,19 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1216
1221
|
onClose: () => {
|
|
1217
1222
|
F && u || o();
|
|
1218
1223
|
},
|
|
1219
|
-
placement:
|
|
1224
|
+
placement: O,
|
|
1220
1225
|
blockScrollOnMount: !1,
|
|
1221
1226
|
autoFocus: !1,
|
|
1222
1227
|
children: /* @__PURE__ */ t.jsx(
|
|
1223
|
-
|
|
1228
|
+
sr,
|
|
1224
1229
|
{ children: l ? /* @__PURE__ */ t.jsxs(
|
|
1225
1230
|
t.Fragment,
|
|
1226
1231
|
{ children: [
|
|
1227
1232
|
/* @__PURE__ */ t.jsx(
|
|
1228
|
-
|
|
1233
|
+
mr,
|
|
1229
1234
|
{
|
|
1230
1235
|
backgroundColor: "tints.black",
|
|
1231
|
-
top: ["0", null, null, `${
|
|
1236
|
+
top: ["0", null, null, `${v}px`],
|
|
1232
1237
|
opacity: u ? void 0 : "0.4 !important",
|
|
1233
1238
|
...u ? {
|
|
1234
1239
|
initial: { opacity: 0 },
|
|
@@ -1243,17 +1248,17 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1243
1248
|
}
|
|
1244
1249
|
),
|
|
1245
1250
|
/* @__PURE__ */ t.jsxs(
|
|
1246
|
-
|
|
1251
|
+
br,
|
|
1247
1252
|
{
|
|
1248
1253
|
onClick: (H) => {
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1254
|
+
const Y = H.target.closest("a");
|
|
1255
|
+
Y && Y.href === window.location.href && o();
|
|
1251
1256
|
},
|
|
1252
1257
|
onMouseEnter: () => {
|
|
1253
|
-
u &&
|
|
1258
|
+
u && vt(!0);
|
|
1254
1259
|
},
|
|
1255
1260
|
onMouseLeave: () => {
|
|
1256
|
-
u &&
|
|
1261
|
+
u && vt(!1);
|
|
1257
1262
|
},
|
|
1258
1263
|
paddingTop: "4",
|
|
1259
1264
|
paddingX: [4, null, null, 12],
|
|
@@ -1261,8 +1266,8 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1261
1266
|
overflow: ["auto", null, null, "hidden"],
|
|
1262
1267
|
maxHeight: "100vh",
|
|
1263
1268
|
position: "relative",
|
|
1264
|
-
top: u ? `${
|
|
1265
|
-
onAnimationComplete:
|
|
1269
|
+
top: u ? `${v}px !important` : void 0,
|
|
1270
|
+
onAnimationComplete: he,
|
|
1266
1271
|
...u ? {
|
|
1267
1272
|
initial: { height: 0, opacity: 0 },
|
|
1268
1273
|
animate: { height: "auto", opacity: 1 },
|
|
@@ -1278,16 +1283,16 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1278
1283
|
gap: s ? "4" : "0",
|
|
1279
1284
|
children: [
|
|
1280
1285
|
u ? null : /* @__PURE__ */ t.jsxs(
|
|
1281
|
-
|
|
1286
|
+
D,
|
|
1282
1287
|
{
|
|
1283
1288
|
width: "100%",
|
|
1284
1289
|
justifyContent: "space-between",
|
|
1285
1290
|
alignItems: "center",
|
|
1286
1291
|
children: [
|
|
1287
1292
|
R ? /* @__PURE__ */ t.jsx(
|
|
1288
|
-
|
|
1293
|
+
fe,
|
|
1289
1294
|
{
|
|
1290
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1295
|
+
icon: /* @__PURE__ */ t.jsx(ar, {}),
|
|
1291
1296
|
onClick: () => {
|
|
1292
1297
|
c && c(), o();
|
|
1293
1298
|
},
|
|
@@ -1295,7 +1300,7 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1295
1300
|
}
|
|
1296
1301
|
) : null,
|
|
1297
1302
|
/* @__PURE__ */ t.jsx(
|
|
1298
|
-
|
|
1303
|
+
X,
|
|
1299
1304
|
{
|
|
1300
1305
|
color: "tints.uiGrey",
|
|
1301
1306
|
fontSize: ["xl", null, null, "lg"],
|
|
@@ -1303,9 +1308,9 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1303
1308
|
}
|
|
1304
1309
|
),
|
|
1305
1310
|
/* @__PURE__ */ t.jsx(
|
|
1306
|
-
|
|
1311
|
+
fe,
|
|
1307
1312
|
{
|
|
1308
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1313
|
+
icon: /* @__PURE__ */ t.jsx(ir, {}),
|
|
1309
1314
|
onClick: o,
|
|
1310
1315
|
"aria-label": "Close"
|
|
1311
1316
|
}
|
|
@@ -1317,10 +1322,10 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1317
1322
|
Qt,
|
|
1318
1323
|
{ width: "100%", children: [
|
|
1319
1324
|
/* @__PURE__ */ t.jsx(
|
|
1320
|
-
|
|
1325
|
+
er,
|
|
1321
1326
|
{
|
|
1322
1327
|
onChange: (H) => {
|
|
1323
|
-
|
|
1328
|
+
pe(H.target.value);
|
|
1324
1329
|
},
|
|
1325
1330
|
placeholder: "Search",
|
|
1326
1331
|
autoFocus: !0,
|
|
@@ -1329,8 +1334,8 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1329
1334
|
}
|
|
1330
1335
|
),
|
|
1331
1336
|
/* @__PURE__ */ t.jsx(
|
|
1332
|
-
|
|
1333
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(
|
|
1337
|
+
tr,
|
|
1338
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(rr, { as: jt, color: "gray.500" }) }
|
|
1334
1339
|
)
|
|
1335
1340
|
] }
|
|
1336
1341
|
)
|
|
@@ -1344,7 +1349,7 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1344
1349
|
paddingBottom: [6, null, null, 4],
|
|
1345
1350
|
"data-testid": `navbar-drawer-body-${p.toLowerCase()}`,
|
|
1346
1351
|
children: /* @__PURE__ */ t.jsxs(
|
|
1347
|
-
|
|
1352
|
+
qe.div,
|
|
1348
1353
|
{
|
|
1349
1354
|
...u ? {
|
|
1350
1355
|
initial: { opacity: 0, y: -5 },
|
|
@@ -1363,8 +1368,8 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1363
1368
|
} : {},
|
|
1364
1369
|
style: {
|
|
1365
1370
|
display: "flex",
|
|
1366
|
-
flexDirection:
|
|
1367
|
-
|
|
1371
|
+
flexDirection: xr(
|
|
1372
|
+
b,
|
|
1368
1373
|
u,
|
|
1369
1374
|
s
|
|
1370
1375
|
),
|
|
@@ -1372,8 +1377,8 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1372
1377
|
justifyContent: "space-between"
|
|
1373
1378
|
},
|
|
1374
1379
|
children: [
|
|
1375
|
-
|
|
1376
|
-
|
|
1380
|
+
g ? /* @__PURE__ */ t.jsx(
|
|
1381
|
+
y,
|
|
1377
1382
|
{
|
|
1378
1383
|
gap: "6",
|
|
1379
1384
|
display: "flex",
|
|
@@ -1385,21 +1390,21 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1385
1390
|
flexWrap: "wrap",
|
|
1386
1391
|
flexDirection: ["column", null, null, "row"]
|
|
1387
1392
|
},
|
|
1388
|
-
children:
|
|
1393
|
+
children: g
|
|
1389
1394
|
}
|
|
1390
1395
|
) : null,
|
|
1391
1396
|
/* @__PURE__ */ t.jsxs(
|
|
1392
|
-
|
|
1397
|
+
D,
|
|
1393
1398
|
{
|
|
1394
1399
|
position: [null, null, null, "relative"],
|
|
1395
1400
|
flexDirection: "column",
|
|
1396
1401
|
gap: "6",
|
|
1397
1402
|
width: ["100%", null, null, s ? null : "auto"],
|
|
1398
1403
|
children: [
|
|
1399
|
-
|
|
1400
|
-
|
|
1404
|
+
f ? /* @__PURE__ */ t.jsx(y, { children: f }) : null,
|
|
1405
|
+
w && !u ? /* @__PURE__ */ t.jsx(y, { children: w }) : null,
|
|
1401
1406
|
m ? /* @__PURE__ */ t.jsx(
|
|
1402
|
-
|
|
1407
|
+
y,
|
|
1403
1408
|
{
|
|
1404
1409
|
width: ["100%"],
|
|
1405
1410
|
position: [null, null, null, "absolute"],
|
|
@@ -1412,7 +1417,7 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1412
1417
|
)
|
|
1413
1418
|
]
|
|
1414
1419
|
},
|
|
1415
|
-
|
|
1420
|
+
N
|
|
1416
1421
|
)
|
|
1417
1422
|
}
|
|
1418
1423
|
)
|
|
@@ -1424,97 +1429,106 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1424
1429
|
)
|
|
1425
1430
|
}
|
|
1426
1431
|
);
|
|
1427
|
-
},
|
|
1432
|
+
}, gt = (l) => {
|
|
1428
1433
|
const o = /* @__PURE__ */ new Set();
|
|
1429
|
-
return l.reduce((p,
|
|
1430
|
-
var
|
|
1431
|
-
const
|
|
1432
|
-
const c = R.links.filter((
|
|
1434
|
+
return l.reduce((p, f) => {
|
|
1435
|
+
var g;
|
|
1436
|
+
const w = ((g = f.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));
|
|
1433
1438
|
return [...m, ...c];
|
|
1434
1439
|
}, [])) ?? [];
|
|
1435
|
-
return [...p, ...
|
|
1440
|
+
return [...p, ...w];
|
|
1436
1441
|
}, []);
|
|
1437
|
-
},
|
|
1442
|
+
}, jr = ({
|
|
1438
1443
|
source: l,
|
|
1439
1444
|
onSearchCallback: o,
|
|
1440
1445
|
isActive: p
|
|
1441
1446
|
}) => {
|
|
1442
|
-
const [
|
|
1447
|
+
const [f, w] = V(""), [g, m] = V([]), R = (s, j) => {
|
|
1443
1448
|
if (!s)
|
|
1444
1449
|
return [];
|
|
1445
|
-
const
|
|
1446
|
-
return
|
|
1447
|
-
const
|
|
1448
|
-
return
|
|
1449
|
-
}).sort((u,
|
|
1450
|
+
const v = s.toLowerCase();
|
|
1451
|
+
return j.filter((u) => {
|
|
1452
|
+
const O = u.label.toLowerCase().includes(v), N = typeof u.additionalContent == "string" && u.additionalContent.toLowerCase().includes(v);
|
|
1453
|
+
return O || N;
|
|
1454
|
+
}).sort((u, O) => u.label.localeCompare(O.label));
|
|
1450
1455
|
}, c = (s) => {
|
|
1451
|
-
if (
|
|
1456
|
+
if (w(s), !s) {
|
|
1452
1457
|
m([]);
|
|
1453
1458
|
return;
|
|
1454
1459
|
}
|
|
1455
|
-
const
|
|
1456
|
-
m(
|
|
1457
|
-
},
|
|
1458
|
-
|
|
1460
|
+
const j = R(s, l);
|
|
1461
|
+
m(j), o && o(s, j);
|
|
1462
|
+
}, b = () => {
|
|
1463
|
+
w(""), m([]);
|
|
1459
1464
|
};
|
|
1460
|
-
return
|
|
1461
|
-
p || (
|
|
1465
|
+
return K(() => {
|
|
1466
|
+
p || (w(""), m([]));
|
|
1462
1467
|
}, [p]), {
|
|
1463
|
-
query:
|
|
1464
|
-
results:
|
|
1465
|
-
handleClose:
|
|
1468
|
+
query: f,
|
|
1469
|
+
results: g,
|
|
1470
|
+
handleClose: b,
|
|
1466
1471
|
handleSearch: c
|
|
1467
1472
|
};
|
|
1468
|
-
},
|
|
1473
|
+
}, kr = ({
|
|
1469
1474
|
categories: l = [],
|
|
1470
1475
|
onCartClick: o,
|
|
1471
1476
|
mainCategoryLabel: p = "Menu",
|
|
1472
|
-
logoLink:
|
|
1473
|
-
hasSearch:
|
|
1474
|
-
onSearchClick:
|
|
1477
|
+
logoLink: f = "https://www.everlywell.com",
|
|
1478
|
+
hasSearch: w = !0,
|
|
1479
|
+
onSearchClick: g,
|
|
1475
1480
|
registrationUrl: m,
|
|
1476
1481
|
profileUrl: R = "https://secure.everlywell.com/login",
|
|
1477
1482
|
mobileBottomButtons: c = [],
|
|
1478
|
-
numberOfCartItems:
|
|
1483
|
+
numberOfCartItems: b = 0,
|
|
1479
1484
|
linkComponent: s,
|
|
1480
|
-
onSearchCallback:
|
|
1481
|
-
onLinkClick:
|
|
1485
|
+
onSearchCallback: j,
|
|
1486
|
+
onLinkClick: v,
|
|
1482
1487
|
onCategoryOpen: u,
|
|
1483
|
-
onMobileMenuOpen:
|
|
1484
|
-
onBackToMainMenu:
|
|
1485
|
-
onRegisterKitClick:
|
|
1488
|
+
onMobileMenuOpen: O,
|
|
1489
|
+
onBackToMainMenu: N,
|
|
1490
|
+
onRegisterKitClick: ee,
|
|
1486
1491
|
onProfileClick: F,
|
|
1487
1492
|
onLogoClick: _,
|
|
1488
|
-
shopAllProductsUrl:
|
|
1489
|
-
onShopAllProductsClick:
|
|
1493
|
+
shopAllProductsUrl: de,
|
|
1494
|
+
onShopAllProductsClick: pe
|
|
1490
1495
|
}) => {
|
|
1491
|
-
var
|
|
1492
|
-
const [
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1496
|
+
var me, je, q;
|
|
1497
|
+
const [he, H] = V(!1), [te, Y] = V(!1), [E, W] = V(null), [Ee, ve] = V(!1), [I, z] = V(!1), [U, Re] = V(0), _e = Je({
|
|
1498
|
+
base: !1,
|
|
1499
|
+
tablet: !1,
|
|
1500
|
+
largeTablet: !1,
|
|
1501
|
+
desktop: !0
|
|
1502
|
+
}) ?? !1;
|
|
1503
|
+
K(() => {
|
|
1504
|
+
le(), W(null);
|
|
1505
|
+
}, [_e]);
|
|
1506
|
+
const {
|
|
1507
|
+
query: Se,
|
|
1508
|
+
results: re,
|
|
1509
|
+
handleSearch: Te
|
|
1510
|
+
} = jr({
|
|
1511
|
+
source: gt(l),
|
|
1512
|
+
onSearchCallback: j,
|
|
1513
|
+
isActive: te
|
|
1514
|
+
}), ge = re.length > 0, ne = s || G, ke = Le(de, !!s), Ie = Se && /* @__PURE__ */ t.jsxs(
|
|
1515
|
+
D,
|
|
1516
|
+
{ gap: ge ? "6" : 0, direction: "column", children: [
|
|
1517
|
+
ge ? /* @__PURE__ */ t.jsx(X, { color: "tints.uiGrey", children: `${re.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1518
|
+
D,
|
|
1505
1519
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1506
1520
|
/* @__PURE__ */ t.jsx(
|
|
1507
|
-
|
|
1521
|
+
X,
|
|
1508
1522
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1509
1523
|
),
|
|
1510
1524
|
/* @__PURE__ */ t.jsx(
|
|
1511
|
-
|
|
1525
|
+
xt,
|
|
1512
1526
|
{
|
|
1513
|
-
as:
|
|
1514
|
-
onClick:
|
|
1527
|
+
as: ne,
|
|
1528
|
+
onClick: pe,
|
|
1515
1529
|
_hover: { textDecoration: "none" },
|
|
1516
1530
|
width: ["100%", null, null, "auto"],
|
|
1517
|
-
...
|
|
1531
|
+
...ke,
|
|
1518
1532
|
children: "Shop all products"
|
|
1519
1533
|
}
|
|
1520
1534
|
)
|
|
@@ -1522,11 +1536,11 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1522
1536
|
),
|
|
1523
1537
|
/* @__PURE__ */ t.jsx(
|
|
1524
1538
|
Kt,
|
|
1525
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1526
|
-
(a,
|
|
1539
|
+
{ columns: [1, 1, 1, 4], children: re.map(
|
|
1540
|
+
(a, k) => /* @__PURE__ */ t.jsx(
|
|
1527
1541
|
Xt,
|
|
1528
1542
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1529
|
-
|
|
1543
|
+
Ue,
|
|
1530
1544
|
{
|
|
1531
1545
|
href: a.href,
|
|
1532
1546
|
label: a.label,
|
|
@@ -1534,91 +1548,97 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1534
1548
|
linkComponent: s
|
|
1535
1549
|
}
|
|
1536
1550
|
) },
|
|
1537
|
-
`${a.label}-${
|
|
1551
|
+
`${a.label}-${k}`
|
|
1538
1552
|
)
|
|
1539
1553
|
) }
|
|
1540
1554
|
)
|
|
1541
1555
|
] }
|
|
1542
|
-
),
|
|
1543
|
-
H(!1),
|
|
1544
|
-
},
|
|
1545
|
-
|
|
1546
|
-
},
|
|
1547
|
-
|
|
1548
|
-
},
|
|
1549
|
-
|
|
1556
|
+
), le = () => {
|
|
1557
|
+
H(!1), W(null);
|
|
1558
|
+
}, M = (a) => "href" in a, xe = (a) => {
|
|
1559
|
+
M(a) ? v == null || v(a.label) : W(a);
|
|
1560
|
+
}, ae = (a) => {
|
|
1561
|
+
ve(!0), Y(!1), W(null), !M(a) && (a.sections || a.spotlightCards) && W(a);
|
|
1562
|
+
}, be = () => {
|
|
1563
|
+
ve(!1);
|
|
1550
1564
|
};
|
|
1551
|
-
|
|
1552
|
-
const a = (
|
|
1553
|
-
|
|
1565
|
+
K(() => {
|
|
1566
|
+
const a = (k) => {
|
|
1567
|
+
z(k.detail.isHovering);
|
|
1554
1568
|
};
|
|
1555
1569
|
return window.addEventListener(
|
|
1556
|
-
|
|
1570
|
+
Ke,
|
|
1557
1571
|
a
|
|
1558
1572
|
), () => {
|
|
1559
1573
|
window.removeEventListener(
|
|
1560
|
-
|
|
1574
|
+
Ke,
|
|
1561
1575
|
a
|
|
1562
1576
|
);
|
|
1563
1577
|
};
|
|
1564
|
-
}, []),
|
|
1565
|
-
!
|
|
1566
|
-
}, [
|
|
1578
|
+
}, []), K(() => {
|
|
1579
|
+
!Ee && !I && (W(null), Y(!1));
|
|
1580
|
+
}, [Ee, I]), K(() => {
|
|
1567
1581
|
let a = window.location.href;
|
|
1568
|
-
const
|
|
1582
|
+
const k = () => {
|
|
1569
1583
|
const A = window.location.href;
|
|
1570
|
-
A !== a && (a = A,
|
|
1571
|
-
},
|
|
1572
|
-
return window.addEventListener("popstate",
|
|
1573
|
-
window.removeEventListener("popstate",
|
|
1584
|
+
A !== a && (a = A, le(), W(null));
|
|
1585
|
+
}, B = setInterval(k, 100);
|
|
1586
|
+
return window.addEventListener("popstate", k), () => {
|
|
1587
|
+
window.removeEventListener("popstate", k), clearInterval(B);
|
|
1574
1588
|
};
|
|
1575
1589
|
}, []);
|
|
1576
|
-
const
|
|
1577
|
-
|
|
1578
|
-
},
|
|
1590
|
+
const ie = () => {
|
|
1591
|
+
W(null), N == null || N();
|
|
1592
|
+
}, Ae = /* @__PURE__ */ t.jsx(
|
|
1579
1593
|
t.Fragment,
|
|
1580
1594
|
{ children: l == null ? void 0 : l.map(
|
|
1581
|
-
(a,
|
|
1582
|
-
|
|
1595
|
+
(a, k) => /* @__PURE__ */ t.jsx(
|
|
1596
|
+
Pe,
|
|
1583
1597
|
{
|
|
1584
1598
|
onMouseEnter: () => {
|
|
1585
|
-
|
|
1599
|
+
ae(a), u == null || u(a.label);
|
|
1586
1600
|
},
|
|
1587
|
-
onMouseLeave:
|
|
1588
|
-
isSelected: (
|
|
1601
|
+
onMouseLeave: be,
|
|
1602
|
+
isSelected: (E == null ? void 0 : E.label) === a.label,
|
|
1603
|
+
as: M(a) && ne ? ne : G,
|
|
1604
|
+
href: M(a) ? a.href : void 0,
|
|
1605
|
+
onClick: M(a) ? () => v == null ? void 0 : v(a.label) : void 0,
|
|
1589
1606
|
...a.buttonProps,
|
|
1590
1607
|
children: a.label
|
|
1591
1608
|
},
|
|
1592
|
-
`${a.label}-${
|
|
1609
|
+
`${a.label}-${k}`
|
|
1593
1610
|
)
|
|
1594
1611
|
) }
|
|
1595
|
-
),
|
|
1596
|
-
(a) =>
|
|
1597
|
-
|
|
1612
|
+
), De = (me = l.filter(
|
|
1613
|
+
(a) => !M(a) && a.isMobileTopLink !== !1
|
|
1614
|
+
)) == null ? void 0 : me.map((a) => {
|
|
1615
|
+
const k = a;
|
|
1616
|
+
return /* @__PURE__ */ t.jsx(
|
|
1617
|
+
y,
|
|
1598
1618
|
{
|
|
1599
1619
|
onClick: () => {
|
|
1600
|
-
|
|
1620
|
+
xe(k), u == null || u(k.label);
|
|
1601
1621
|
},
|
|
1602
1622
|
children: /* @__PURE__ */ t.jsx(
|
|
1603
|
-
|
|
1623
|
+
Ue,
|
|
1604
1624
|
{
|
|
1605
|
-
label:
|
|
1625
|
+
label: k.label,
|
|
1606
1626
|
role: "link",
|
|
1607
|
-
additionalContent:
|
|
1627
|
+
additionalContent: k.additionalContent,
|
|
1608
1628
|
mainTextFontSize: "3xl",
|
|
1609
1629
|
linkComponent: s
|
|
1610
1630
|
}
|
|
1611
1631
|
)
|
|
1612
1632
|
},
|
|
1613
|
-
|
|
1614
|
-
)
|
|
1615
|
-
);
|
|
1616
|
-
|
|
1617
|
-
const
|
|
1633
|
+
k.label
|
|
1634
|
+
);
|
|
1635
|
+
});
|
|
1636
|
+
gt(l);
|
|
1637
|
+
const Fe = /* @__PURE__ */ t.jsxs(
|
|
1618
1638
|
t.Fragment,
|
|
1619
1639
|
{ children: [
|
|
1620
1640
|
/* @__PURE__ */ t.jsx(
|
|
1621
|
-
|
|
1641
|
+
Pe,
|
|
1622
1642
|
{
|
|
1623
1643
|
as: G,
|
|
1624
1644
|
href: R,
|
|
@@ -1626,51 +1646,51 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1626
1646
|
backgroundColor: "tints.cream",
|
|
1627
1647
|
onClick: F,
|
|
1628
1648
|
children: /* @__PURE__ */ t.jsxs(
|
|
1629
|
-
|
|
1649
|
+
D,
|
|
1630
1650
|
{ gap: "2", children: [
|
|
1631
1651
|
"My Everly",
|
|
1632
|
-
/* @__PURE__ */ t.jsx(
|
|
1652
|
+
/* @__PURE__ */ t.jsx(ce, { as: ft, size: 24 })
|
|
1633
1653
|
] }
|
|
1634
1654
|
)
|
|
1635
1655
|
},
|
|
1636
1656
|
"my-everly"
|
|
1637
1657
|
),
|
|
1638
1658
|
/* @__PURE__ */ t.jsx(
|
|
1639
|
-
|
|
1659
|
+
Pe,
|
|
1640
1660
|
{
|
|
1641
1661
|
as: G,
|
|
1642
1662
|
width: "100%",
|
|
1643
1663
|
href: m,
|
|
1644
1664
|
backgroundColor: "tints.cream",
|
|
1645
|
-
onClick:
|
|
1665
|
+
onClick: ee,
|
|
1646
1666
|
children: /* @__PURE__ */ t.jsxs(
|
|
1647
|
-
|
|
1667
|
+
D,
|
|
1648
1668
|
{ gap: "2", children: [
|
|
1649
1669
|
"Register kit",
|
|
1650
|
-
/* @__PURE__ */ t.jsx(
|
|
1670
|
+
/* @__PURE__ */ t.jsx(ce, { as: or, size: 24 })
|
|
1651
1671
|
] }
|
|
1652
1672
|
)
|
|
1653
1673
|
},
|
|
1654
1674
|
"register-kit"
|
|
1655
1675
|
)
|
|
1656
1676
|
] }
|
|
1657
|
-
),
|
|
1658
|
-
|
|
1677
|
+
), He = /* @__PURE__ */ t.jsxs(
|
|
1678
|
+
D,
|
|
1659
1679
|
{ gap: "2", flexDirection: "column", children: [
|
|
1660
1680
|
c,
|
|
1661
|
-
|
|
1681
|
+
Fe
|
|
1662
1682
|
] }
|
|
1663
|
-
),
|
|
1664
|
-
|
|
1665
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (
|
|
1666
|
-
const
|
|
1683
|
+
), oe = E ? /* @__PURE__ */ t.jsx(
|
|
1684
|
+
D,
|
|
1685
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (je = E == null ? void 0 : E.sections) == null ? void 0 : je.map((a, k) => {
|
|
1686
|
+
const B = [];
|
|
1667
1687
|
for (let A = 0; A < a.links.length; A += 3)
|
|
1668
|
-
|
|
1688
|
+
B.push(a.links.slice(A, A + 3));
|
|
1669
1689
|
return /* @__PURE__ */ t.jsxs(
|
|
1670
|
-
|
|
1690
|
+
y,
|
|
1671
1691
|
{ children: [
|
|
1672
1692
|
/* @__PURE__ */ t.jsx(
|
|
1673
|
-
|
|
1693
|
+
X,
|
|
1674
1694
|
{
|
|
1675
1695
|
fontSize: "md",
|
|
1676
1696
|
color: "tints.uiGrey",
|
|
@@ -1679,139 +1699,139 @@ const Ne = 60, ft = 6, fn = (l) => {
|
|
|
1679
1699
|
}
|
|
1680
1700
|
),
|
|
1681
1701
|
/* @__PURE__ */ t.jsx(
|
|
1682
|
-
|
|
1702
|
+
D,
|
|
1683
1703
|
{
|
|
1684
1704
|
flexDirection: ["column", null, null, "row"],
|
|
1685
1705
|
gap: [null, null, null, 8],
|
|
1686
|
-
children:
|
|
1687
|
-
(A,
|
|
1688
|
-
|
|
1706
|
+
children: B == null ? void 0 : B.map(
|
|
1707
|
+
(A, $e) => /* @__PURE__ */ t.jsx(
|
|
1708
|
+
D,
|
|
1689
1709
|
{
|
|
1690
1710
|
flexDirection: ["column"],
|
|
1691
1711
|
gap: [null, null, null, 5],
|
|
1692
1712
|
marginLeft: [null, null, null, -2],
|
|
1693
1713
|
children: A == null ? void 0 : A.map(
|
|
1694
|
-
(
|
|
1695
|
-
|
|
1714
|
+
(Z) => /* @__PURE__ */ t.jsx(
|
|
1715
|
+
Ue,
|
|
1696
1716
|
{
|
|
1697
|
-
label:
|
|
1698
|
-
href:
|
|
1699
|
-
additionalContent:
|
|
1717
|
+
label: Z.label,
|
|
1718
|
+
href: Z.href,
|
|
1719
|
+
additionalContent: Z.additionalContent,
|
|
1700
1720
|
linkComponent: s,
|
|
1701
|
-
onClick: () =>
|
|
1721
|
+
onClick: () => v == null ? void 0 : v(Z.label)
|
|
1702
1722
|
},
|
|
1703
|
-
|
|
1723
|
+
Z.label
|
|
1704
1724
|
)
|
|
1705
1725
|
)
|
|
1706
1726
|
},
|
|
1707
|
-
|
|
1727
|
+
$e
|
|
1708
1728
|
)
|
|
1709
1729
|
)
|
|
1710
1730
|
}
|
|
1711
1731
|
)
|
|
1712
1732
|
] },
|
|
1713
|
-
`${a.title}-${
|
|
1733
|
+
`${a.title}-${k}`
|
|
1714
1734
|
);
|
|
1715
1735
|
}) }
|
|
1716
|
-
) : null,
|
|
1717
|
-
(a) => /* @__PURE__ */ t.jsx(
|
|
1718
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1736
|
+
) : null, J = E != null && E.spotlightCards ? (q = E.spotlightCards) == null ? void 0 : q.map(
|
|
1737
|
+
(a) => /* @__PURE__ */ t.jsx(dr, { ...a }, a.title)
|
|
1738
|
+
) : /* @__PURE__ */ t.jsx(y, {});
|
|
1719
1739
|
return /* @__PURE__ */ t.jsxs(
|
|
1720
|
-
|
|
1740
|
+
y,
|
|
1721
1741
|
{ children: [
|
|
1722
1742
|
/* @__PURE__ */ t.jsx(
|
|
1723
|
-
|
|
1743
|
+
hr,
|
|
1724
1744
|
{
|
|
1725
|
-
desktopTopButtons:
|
|
1745
|
+
desktopTopButtons: Ae,
|
|
1726
1746
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1727
|
-
|
|
1747
|
+
Pe,
|
|
1728
1748
|
{
|
|
1729
1749
|
as: G,
|
|
1730
1750
|
href: m,
|
|
1731
|
-
onClick:
|
|
1751
|
+
onClick: ee,
|
|
1732
1752
|
backgroundColor: "tints.cream",
|
|
1733
1753
|
children: "Register Kit"
|
|
1734
1754
|
}
|
|
1735
1755
|
),
|
|
1736
1756
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1737
1757
|
G,
|
|
1738
|
-
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(
|
|
1758
|
+
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(fe, { icon: /* @__PURE__ */ t.jsx(ce, { as: ft }), "aria-label": "Profile" }) }
|
|
1739
1759
|
),
|
|
1740
1760
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1741
|
-
|
|
1761
|
+
vr,
|
|
1742
1762
|
{
|
|
1743
1763
|
"aria-label": "Cart",
|
|
1744
|
-
count:
|
|
1764
|
+
count: b,
|
|
1745
1765
|
onClick: o
|
|
1746
1766
|
}
|
|
1747
1767
|
),
|
|
1748
1768
|
onSearchClick: () => {
|
|
1749
|
-
|
|
1769
|
+
Y(!te), g == null || g();
|
|
1750
1770
|
},
|
|
1751
1771
|
onMenuClick: () => {
|
|
1752
|
-
H(!0),
|
|
1772
|
+
H(!0), O == null || O();
|
|
1753
1773
|
},
|
|
1754
|
-
hasSearch:
|
|
1755
|
-
logoLink:
|
|
1774
|
+
hasSearch: w,
|
|
1775
|
+
logoLink: f,
|
|
1756
1776
|
linkComponent: s,
|
|
1757
1777
|
onLogoClick: _,
|
|
1758
|
-
setTopOffset:
|
|
1778
|
+
setTopOffset: Re
|
|
1759
1779
|
}
|
|
1760
1780
|
),
|
|
1761
1781
|
/* @__PURE__ */ t.jsx(
|
|
1762
|
-
|
|
1782
|
+
Ge,
|
|
1763
1783
|
{
|
|
1764
|
-
isOpen:
|
|
1765
|
-
onClose:
|
|
1784
|
+
isOpen: he,
|
|
1785
|
+
onClose: le,
|
|
1766
1786
|
title: p,
|
|
1767
|
-
navDrawerLinks:
|
|
1768
|
-
bottomNavButtons:
|
|
1787
|
+
navDrawerLinks: De,
|
|
1788
|
+
bottomNavButtons: He,
|
|
1769
1789
|
hasBackButton: !1,
|
|
1770
|
-
topOffset:
|
|
1790
|
+
topOffset: U
|
|
1771
1791
|
}
|
|
1772
1792
|
),
|
|
1773
1793
|
/* @__PURE__ */ t.jsx(
|
|
1774
|
-
|
|
1794
|
+
Ge,
|
|
1775
1795
|
{
|
|
1776
|
-
isOpen: !!
|
|
1796
|
+
isOpen: !!E,
|
|
1777
1797
|
onClose: () => {
|
|
1778
|
-
|
|
1798
|
+
le(), W(null);
|
|
1779
1799
|
},
|
|
1780
|
-
title: (
|
|
1781
|
-
navDrawerLinks:
|
|
1782
|
-
onBackClick:
|
|
1783
|
-
spotlightCards:
|
|
1784
|
-
hasOnlySpotlightCards:
|
|
1785
|
-
bottomButton:
|
|
1786
|
-
topOffset:
|
|
1800
|
+
title: (E == null ? void 0 : E.label) || "",
|
|
1801
|
+
navDrawerLinks: oe,
|
|
1802
|
+
onBackClick: ie,
|
|
1803
|
+
spotlightCards: J,
|
|
1804
|
+
hasOnlySpotlightCards: E == null ? void 0 : E.hasOnlySpotlightCards,
|
|
1805
|
+
bottomButton: E == null ? void 0 : E.bottomButton,
|
|
1806
|
+
topOffset: U
|
|
1787
1807
|
}
|
|
1788
1808
|
),
|
|
1789
1809
|
/* @__PURE__ */ t.jsx(
|
|
1790
|
-
|
|
1810
|
+
Ge,
|
|
1791
1811
|
{
|
|
1792
|
-
isOpen:
|
|
1793
|
-
onClose: () =>
|
|
1812
|
+
isOpen: te,
|
|
1813
|
+
onClose: () => Y(!1),
|
|
1794
1814
|
title: "Search",
|
|
1795
|
-
navDrawerLinks:
|
|
1796
|
-
onSearch:
|
|
1815
|
+
navDrawerLinks: Ie,
|
|
1816
|
+
onSearch: Te,
|
|
1797
1817
|
hasSearch: !0,
|
|
1798
1818
|
hasBackButton: !1,
|
|
1799
|
-
topOffset:
|
|
1819
|
+
topOffset: U
|
|
1800
1820
|
}
|
|
1801
1821
|
)
|
|
1802
1822
|
] }
|
|
1803
1823
|
);
|
|
1804
1824
|
};
|
|
1805
1825
|
export {
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1826
|
+
vr as BasketButton,
|
|
1827
|
+
Sr as CategoryLabel,
|
|
1828
|
+
Pe as NavButton,
|
|
1829
|
+
Tr as NavSkeleton,
|
|
1830
|
+
Ge as NavbarDrawer,
|
|
1831
|
+
Ue as NavbarDrawerLink,
|
|
1832
|
+
kr as NavigationBar,
|
|
1833
|
+
dr as SpotlightCard,
|
|
1834
|
+
_r as Stepper,
|
|
1835
|
+
fe as TopNavIconButton,
|
|
1836
|
+
hr as TopNavigation
|
|
1817
1837
|
};
|