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