@everlywell/consumer-ui 1.30.0 → 1.32.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 +826 -804
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.d.ts +3 -3
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.d.ts.map +1 -1
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.d.ts +1 -1
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.d.ts.map +1 -1
- package/lib/components/Navbar/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 ae, Flex as T, 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 s,
|
|
24
|
-
|
|
25
|
-
for (s in
|
|
26
|
-
d.call(
|
|
16
|
+
var ct;
|
|
17
|
+
function cn() {
|
|
18
|
+
if (ct)
|
|
19
|
+
return Ce;
|
|
20
|
+
ct = 1;
|
|
21
|
+
var l = Ze, o = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = 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 s, 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 (s in c)
|
|
26
|
+
d.call(c, s) && !v.hasOwnProperty(s) && (b[s] = c[s]);
|
|
27
27
|
if (R && R.defaultProps)
|
|
28
|
-
for (s in
|
|
29
|
-
|
|
30
|
-
return { $$typeof: o, type: R, key:
|
|
28
|
+
for (s in c = R.defaultProps, c)
|
|
29
|
+
b[s] === void 0 && (b[s] = c[s]);
|
|
30
|
+
return { $$typeof: o, 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,70 +41,70 @@ 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 dt;
|
|
45
|
+
function dn() {
|
|
46
|
+
return dt || (dt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var l = Ze, o = Symbol.for("react.element"), p = Symbol.for("react.portal"), d = 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"), s = 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
|
+
se("error", e, r);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function se(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 ue = !1, ce = !1, H = !1, ee = !1, B = !1, y;
|
|
73
73
|
y = Symbol.for("react.module.reference");
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e ===
|
|
74
|
+
function V(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === v || B || e === j || e === x || e === s || ee || e === u || ue || ce || 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 de(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
99
|
case d:
|
|
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
109
|
case s:
|
|
110
110
|
return "SuspenseList";
|
|
@@ -113,19 +113,19 @@ function cn() {
|
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
114
|
case R:
|
|
115
115
|
var n = e;
|
|
116
|
-
return
|
|
116
|
+
return de(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 de(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, te, Re, fe, _e, Se;
|
|
137
|
+
function ke() {
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
function
|
|
139
|
+
ke.__reactDisabledLog = !0;
|
|
140
|
+
function pe() {
|
|
141
141
|
{
|
|
142
142
|
if (Y === 0) {
|
|
143
|
-
|
|
143
|
+
ye = console.log, Ee = console.info, te = console.warn, Re = console.error, fe = console.group, _e = console.groupCollapsed, Se = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
147
|
-
value:
|
|
147
|
+
value: ke,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
@@ -160,7 +160,7 @@ function 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: te
|
|
186
180
|
}),
|
|
187
|
-
|
|
181
|
+
error: N({}, e, {
|
|
188
182
|
value: Re
|
|
189
183
|
}),
|
|
190
|
-
|
|
184
|
+
group: N({}, e, {
|
|
185
|
+
value: fe
|
|
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 ne(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, re;
|
|
213
213
|
{
|
|
214
214
|
var Ie = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
-
|
|
215
|
+
re = new Ie();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!e ||
|
|
217
|
+
function Te(e, n) {
|
|
218
|
+
if (!e || ge)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var r =
|
|
221
|
+
var r = re.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
|
-
`),
|
|
263
|
+
} catch (P) {
|
|
264
|
+
if (P && i && typeof P.stack == "string") {
|
|
265
|
+
for (var f = P.stack.split(`
|
|
266
|
+
`), O = i.stack.split(`
|
|
267
|
+
`), S = f.length - 1, k = O.length - 1; S >= 1 && k >= 0 && f[S] !== O[k]; )
|
|
268
268
|
k--;
|
|
269
|
-
for (;
|
|
270
|
-
if (
|
|
271
|
-
if (
|
|
269
|
+
for (; S >= 1 && k >= 0; S--, k--)
|
|
270
|
+
if (f[S] !== O[k]) {
|
|
271
|
+
if (S !== 1 || k !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (
|
|
274
|
-
var
|
|
275
|
-
` +
|
|
276
|
-
return e.displayName &&
|
|
273
|
+
if (S--, k--, k < 0 || f[S] !== O[k]) {
|
|
274
|
+
var $ = `
|
|
275
|
+
` + f[S].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, $), $;
|
|
277
277
|
}
|
|
278
|
-
while (
|
|
278
|
+
while (S >= 1 && k >= 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
|
|
286
|
-
return typeof e == "function" &&
|
|
285
|
+
var ie = e ? e.displayName || e.name : "", J = ie ? ne(ie) : "";
|
|
286
|
+
return typeof e == "function" && re.set(e, J), J;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function Ae(e, n, r) {
|
|
289
|
+
return Te(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
|
|
299
|
+
return Te(e, Fe(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return ne(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
303
|
+
case x:
|
|
304
|
+
return ne("Suspense");
|
|
305
305
|
case s:
|
|
306
|
-
return
|
|
306
|
+
return ne("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 = {}, a = 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
|
+
a.setExtraStackFrame(r);
|
|
329
329
|
} else
|
|
330
|
-
|
|
330
|
+
a.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 f = 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
|
+
f = e[h](n, h, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
|
+
} catch (S) {
|
|
345
|
+
f = S;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
f && !(f 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 f), D(null)), f instanceof Error && !(f.message in xe) && (xe[f.message] = !0, D(g), _("Failed %s type: %s", r, f.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 f = {
|
|
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
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 f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !0,
|
|
442
442
|
value: !1
|
|
443
|
-
}), Object.defineProperty(
|
|
443
|
+
}), Object.defineProperty(f, "_self", {
|
|
444
444
|
configurable: !1,
|
|
445
445
|
enumerable: !1,
|
|
446
446
|
writable: !1,
|
|
447
|
-
value:
|
|
448
|
-
}), Object.defineProperty(
|
|
447
|
+
value: i
|
|
448
|
+
}), Object.defineProperty(f, "_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(f.props), Object.freeze(f)), f;
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function kt(e, n, r, i, g) {
|
|
456
456
|
{
|
|
457
|
-
var C,
|
|
458
|
-
r !== void 0 && (
|
|
457
|
+
var C, h = {}, f = null, O = null;
|
|
458
|
+
r !== void 0 && (Je(r), f = "" + r), yt(n) && (Je(n.key), f = "" + 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 (
|
|
466
|
+
if (f || O) {
|
|
467
467
|
var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
-
|
|
468
|
+
f && Rt(h, k), O && _t(h, k);
|
|
469
469
|
}
|
|
470
|
-
return St(e,
|
|
470
|
+
return St(e, f, O, g, i, be.current, h);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
function
|
|
473
|
+
var $e = F.ReactCurrentOwner, et = F.ReactDebugCurrentFrame;
|
|
474
|
+
function le(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
484
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
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
|
|
|
@@ -495,7 +495,7 @@ Check the render method of \`` + e + "`.";
|
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Tt(e) {
|
|
499
499
|
{
|
|
500
500
|
if (e !== void 0) {
|
|
501
501
|
var n = e.fileName.replace(/^.*[\\\/]/, ""), r = e.lineNumber;
|
|
@@ -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) + "."), le(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), le(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
|
-
|
|
582
|
+
var i = n[r];
|
|
583
|
+
if (i !== "children" && i !== "key") {
|
|
584
|
+
le(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), le(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
e.ref !== null && (
|
|
588
|
+
e.ref !== null && (le(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), le(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 f = "";
|
|
597
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
+
var O = Tt(g);
|
|
599
|
+
O ? f += O : f += tt();
|
|
600
|
+
var S;
|
|
601
|
+
e === null ? S = "null" : me(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (I(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, f);
|
|
602
602
|
}
|
|
603
|
-
var k =
|
|
603
|
+
var k = kt(e, n, r, g, C);
|
|
604
604
|
if (k == null)
|
|
605
605
|
return k;
|
|
606
|
-
if (
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
609
|
-
if (
|
|
610
|
-
if (
|
|
611
|
-
for (var
|
|
612
|
-
|
|
613
|
-
Object.freeze && Object.freeze(
|
|
606
|
+
if (h) {
|
|
607
|
+
var $ = n.children;
|
|
608
|
+
if ($ !== void 0)
|
|
609
|
+
if (i)
|
|
610
|
+
if (me($)) {
|
|
611
|
+
for (var ie = 0; ie < $.length; ie++)
|
|
612
|
+
lt($[ie], 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 === d ?
|
|
633
|
+
return e === d ? Ot(k) : Dt(k), k;
|
|
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 = d, 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 = dn();
|
|
647
|
+
var t = Ue.exports;
|
|
648
|
+
const Ne = 60, ft = 6, fn = (l) => {
|
|
649
649
|
const {
|
|
650
650
|
activeStepIndex: o,
|
|
651
|
-
hideIndicators:
|
|
651
|
+
hideIndicators: p = !1,
|
|
652
652
|
steps: d,
|
|
653
|
-
stepperTheme:
|
|
653
|
+
stepperTheme: j = {
|
|
654
654
|
light: "eggplant.light",
|
|
655
655
|
base: "eggplant.base"
|
|
656
656
|
}
|
|
657
|
-
} = l, { activeStep:
|
|
657
|
+
} = l, { activeStep: v, setActiveStep: m } = Wt({
|
|
658
658
|
index: o,
|
|
659
659
|
count: d.length
|
|
660
660
|
});
|
|
661
|
-
return
|
|
661
|
+
return q(() => {
|
|
662
662
|
m(o);
|
|
663
663
|
}, [o, 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: d.map((R,
|
|
674
|
-
const
|
|
675
|
-
let
|
|
676
|
-
const
|
|
677
|
-
return
|
|
673
|
+
children: d.map((R, c) => {
|
|
674
|
+
const x = v === c, s = c === 0, b = c === d.length - 1, w = v > c;
|
|
675
|
+
let u = `${Ne}px`;
|
|
676
|
+
const L = `calc(100% - ((${Ne * (d.length - 1)}px) - (${d.length - 1} * ${ft * 2}px)))`;
|
|
677
|
+
return x ? u = L : (s || b) && (u = `${Ne - ft}px`), /* @__PURE__ */ t.jsx(
|
|
678
678
|
E,
|
|
679
679
|
{
|
|
680
|
-
width:
|
|
681
|
-
opacity:
|
|
682
|
-
paddingRight:
|
|
680
|
+
width: u,
|
|
681
|
+
opacity: w || x ? 1 : 0.2,
|
|
682
|
+
paddingRight: b ? "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
|
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(fn), kn = ({
|
|
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
|
-
),
|
|
719
|
-
const
|
|
720
|
-
return o && !
|
|
718
|
+
), Oe = (l, o) => {
|
|
719
|
+
const p = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
|
|
720
|
+
return o && !p ? {
|
|
721
721
|
to: l
|
|
722
722
|
} : {
|
|
723
723
|
href: l
|
|
724
724
|
};
|
|
725
|
-
},
|
|
725
|
+
}, Ye = gt(
|
|
726
726
|
(l, o) => {
|
|
727
727
|
const {
|
|
728
|
-
label:
|
|
728
|
+
label: p,
|
|
729
729
|
additionalContent: d,
|
|
730
|
-
mainTextFontSize:
|
|
731
|
-
linkComponent:
|
|
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
738
|
ref: o,
|
|
739
|
-
as:
|
|
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
|
+
ae,
|
|
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,14 +764,14 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
766
|
/* @__PURE__ */ t.jsxs(
|
|
767
|
-
|
|
767
|
+
T,
|
|
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
|
d && (typeof d == "string" ? /* @__PURE__ */ t.jsx(
|
|
@@ -789,10 +789,10 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
789
789
|
}
|
|
790
790
|
) : d),
|
|
791
791
|
/* @__PURE__ */ t.jsx(
|
|
792
|
-
|
|
792
|
+
ae,
|
|
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
|
-
),
|
|
809
|
+
), De = gt(
|
|
810
810
|
(l, o) => {
|
|
811
|
-
const { children:
|
|
811
|
+
const { children: p, isSelected: d, ...j } = l, v = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
|
|
812
812
|
return /* @__PURE__ */ t.jsx(
|
|
813
|
-
|
|
813
|
+
vt,
|
|
814
814
|
{
|
|
815
815
|
ref: o,
|
|
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
841
|
description: o,
|
|
842
|
-
imageSrc:
|
|
842
|
+
imageSrc: p,
|
|
843
843
|
imageElement: d,
|
|
844
|
-
button:
|
|
845
|
-
backgroundColor:
|
|
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", s = "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
|
+
T,
|
|
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 ? T : 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, s],
|
|
893
893
|
width: "100%",
|
|
894
894
|
alt: "",
|
|
895
895
|
"data-testid": "spotlight-card-image"
|
|
@@ -897,7 +897,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
897
897
|
) : /* @__PURE__ */ t.jsx(
|
|
898
898
|
E,
|
|
899
899
|
{
|
|
900
|
-
height: [
|
|
900
|
+
height: [x, null, null, s],
|
|
901
901
|
overflow: "hidden",
|
|
902
902
|
children: d
|
|
903
903
|
}
|
|
@@ -905,7 +905,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
905
905
|
}
|
|
906
906
|
),
|
|
907
907
|
/* @__PURE__ */ t.jsxs(
|
|
908
|
-
|
|
908
|
+
T,
|
|
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(
|
|
@@ -931,7 +931,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
931
931
|
)
|
|
932
932
|
] }
|
|
933
933
|
),
|
|
934
|
-
|
|
934
|
+
L ? /* @__PURE__ */ t.jsx(E, { children: j }) : null
|
|
935
935
|
]
|
|
936
936
|
}
|
|
937
937
|
)
|
|
@@ -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,73 +983,65 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
983
983
|
) }
|
|
984
984
|
)
|
|
985
985
|
}
|
|
986
|
-
),
|
|
986
|
+
), vn = ({
|
|
987
987
|
desktopTopButtons: l,
|
|
988
988
|
kitRegistrationElement: o,
|
|
989
|
-
profileElement:
|
|
989
|
+
profileElement: p,
|
|
990
990
|
cartElement: d,
|
|
991
|
-
onSearchClick:
|
|
992
|
-
onMenuClick:
|
|
991
|
+
onSearchClick: j,
|
|
992
|
+
onMenuClick: v,
|
|
993
993
|
hasSearch: m = !1,
|
|
994
994
|
logoLink: R = "https://www.everlywell.com",
|
|
995
|
-
|
|
996
|
-
linkComponent:
|
|
995
|
+
setTopOffset: c,
|
|
996
|
+
linkComponent: x,
|
|
997
997
|
onLogoClick: s
|
|
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
|
+
T,
|
|
1031
1023
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1032
1024
|
/* @__PURE__ */ t.jsxs(
|
|
1033
|
-
|
|
1025
|
+
T,
|
|
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
1031
|
onClick: s,
|
|
1040
|
-
as:
|
|
1041
|
-
...
|
|
1042
|
-
children: /* @__PURE__ */ t.jsx(
|
|
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
|
+
T,
|
|
1047
1039
|
{ display: ["none", null, null, "flex"], children: l }
|
|
1048
1040
|
)
|
|
1049
1041
|
] }
|
|
1050
1042
|
),
|
|
1051
1043
|
/* @__PURE__ */ t.jsxs(
|
|
1052
|
-
|
|
1044
|
+
T,
|
|
1053
1045
|
{ alignItems: "center", gap: "2", children: [
|
|
1054
1046
|
/* @__PURE__ */ t.jsx(
|
|
1055
1047
|
E,
|
|
@@ -1059,8 +1051,8 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1059
1051
|
oe,
|
|
1060
1052
|
{
|
|
1061
1053
|
"aria-label": "Search",
|
|
1062
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1063
|
-
onClick:
|
|
1054
|
+
icon: /* @__PURE__ */ t.jsx(ae, { as: bt }),
|
|
1055
|
+
onClick: j
|
|
1064
1056
|
}
|
|
1065
1057
|
) : null,
|
|
1066
1058
|
d,
|
|
@@ -1072,18 +1064,18 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
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
|
...o
|
|
1089
1081
|
}) => /* @__PURE__ */ t.jsxs(
|
|
@@ -1112,387 +1104,417 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1112
1104
|
}
|
|
1113
1105
|
)
|
|
1114
1106
|
] }
|
|
1115
|
-
),
|
|
1116
|
-
|
|
1117
|
-
showPromoButton: o = !
|
|
1107
|
+
), Tn = ({
|
|
1108
|
+
numDesktopLinks: l = 5,
|
|
1109
|
+
showPromoButton: o = !1
|
|
1118
1110
|
}) => /* @__PURE__ */ t.jsx(
|
|
1119
1111
|
Nt,
|
|
1120
1112
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1121
1113
|
E,
|
|
1122
|
-
{
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1114
|
+
{
|
|
1115
|
+
paddingY: 4,
|
|
1116
|
+
paddingX: 6,
|
|
1117
|
+
borderBottomWidth: "1px",
|
|
1118
|
+
borderColor: "tints.lightCream",
|
|
1119
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
1120
|
+
T,
|
|
1121
|
+
{ justify: "space-between", align: "center", children: [
|
|
1122
|
+
/* @__PURE__ */ t.jsx(Ve, { w: "120px", h: "48px" }),
|
|
1123
|
+
/* @__PURE__ */ t.jsxs(
|
|
1124
|
+
ot,
|
|
1125
|
+
{
|
|
1126
|
+
spacing: 8,
|
|
1127
|
+
marginLeft: 12,
|
|
1128
|
+
display: ["none", null, null, "flex"],
|
|
1129
|
+
"data-testid": "desktop-nav",
|
|
1130
|
+
children: [
|
|
1131
|
+
Array.from({ length: l }).map(
|
|
1132
|
+
(p, d) => /* @__PURE__ */ t.jsx(Ve, { width: "90px", height: "48px" }, d)
|
|
1133
|
+
),
|
|
1134
|
+
o && /* @__PURE__ */ t.jsx(Ve, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1135
|
+
]
|
|
1136
|
+
}
|
|
1137
|
+
),
|
|
1138
|
+
/* @__PURE__ */ t.jsxs(
|
|
1139
|
+
ot,
|
|
1140
|
+
{ spacing: 4, ml: "auto", children: [
|
|
1141
|
+
/* @__PURE__ */ t.jsx(
|
|
1142
|
+
Le,
|
|
1143
|
+
{
|
|
1144
|
+
width: "120px",
|
|
1145
|
+
height: "48px",
|
|
1146
|
+
display: ["none", null, null, "block"],
|
|
1147
|
+
"data-testid": "register-kit"
|
|
1148
|
+
}
|
|
1149
|
+
),
|
|
1150
|
+
" ",
|
|
1151
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1152
|
+
" ",
|
|
1153
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1154
|
+
" ",
|
|
1155
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1156
|
+
" "
|
|
1157
|
+
] }
|
|
1158
|
+
)
|
|
1159
|
+
] }
|
|
1160
|
+
)
|
|
1161
|
+
}
|
|
1150
1162
|
) }
|
|
1151
1163
|
), xn = (l, o) => {
|
|
1152
|
-
let
|
|
1164
|
+
let p;
|
|
1153
1165
|
return (...d) => {
|
|
1154
|
-
|
|
1166
|
+
p && clearTimeout(p), p = setTimeout(() => {
|
|
1155
1167
|
l(...d);
|
|
1156
1168
|
}, o);
|
|
1157
1169
|
};
|
|
1158
|
-
},
|
|
1170
|
+
}, Ge = "nav-drawer-hover", pt = (l) => {
|
|
1159
1171
|
window.dispatchEvent(
|
|
1160
|
-
new CustomEvent(
|
|
1172
|
+
new CustomEvent(Ge, {
|
|
1161
1173
|
detail: { isHovering: l },
|
|
1162
1174
|
bubbles: !0,
|
|
1163
1175
|
cancelable: !0
|
|
1164
1176
|
})
|
|
1165
1177
|
);
|
|
1166
|
-
},
|
|
1178
|
+
}, mn = (l = !1, o = !1, p = !1) => l || !o ? "column" : p ? "row" : "row-reverse", bn = Ke(Yt), Cn = Ke(zt), ze = ({
|
|
1167
1179
|
isOpen: l = !1,
|
|
1168
1180
|
onClose: o,
|
|
1169
|
-
title:
|
|
1181
|
+
title: p,
|
|
1170
1182
|
navDrawerLinks: d,
|
|
1171
|
-
bottomNavButtons:
|
|
1172
|
-
spotlightCards:
|
|
1183
|
+
bottomNavButtons: j,
|
|
1184
|
+
spotlightCards: v,
|
|
1173
1185
|
bottomButton: m,
|
|
1174
1186
|
hasBackButton: R = !0,
|
|
1175
|
-
onBackClick:
|
|
1176
|
-
hasOnlySpotlightCards:
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1187
|
+
onBackClick: c,
|
|
1188
|
+
hasOnlySpotlightCards: x = !1,
|
|
1189
|
+
hasSearch: s = !1,
|
|
1190
|
+
onSearch: b = () => ({}),
|
|
1191
|
+
topOffset: w
|
|
1180
1192
|
}) => {
|
|
1181
|
-
const
|
|
1193
|
+
const u = mt({
|
|
1182
1194
|
base: !1,
|
|
1183
1195
|
tablet: !1,
|
|
1184
1196
|
largeTablet: !1,
|
|
1185
1197
|
desktop: !0
|
|
1186
|
-
}),
|
|
1187
|
-
|
|
1188
|
-
},
|
|
1189
|
-
xn((
|
|
1190
|
-
|
|
1198
|
+
}), L = u ? "top" : "left", [M, Q] = W(0), [F, _] = W(!1), se = () => {
|
|
1199
|
+
Q((H) => H + 1);
|
|
1200
|
+
}, ue = xt(
|
|
1201
|
+
xn((H) => {
|
|
1202
|
+
b(H), se();
|
|
1191
1203
|
}, 100),
|
|
1192
1204
|
[]
|
|
1193
1205
|
);
|
|
1194
|
-
|
|
1195
|
-
|
|
1206
|
+
q(() => {
|
|
1207
|
+
l && _(!0);
|
|
1208
|
+
}, [l]);
|
|
1209
|
+
const ce = () => {
|
|
1210
|
+
l || (_(!1), o());
|
|
1211
|
+
};
|
|
1212
|
+
return /* @__PURE__ */ t.jsx(
|
|
1213
|
+
Ut,
|
|
1196
1214
|
{
|
|
1197
|
-
isOpen: l,
|
|
1198
|
-
onClose:
|
|
1199
|
-
|
|
1215
|
+
isOpen: F || l,
|
|
1216
|
+
onClose: () => {
|
|
1217
|
+
F && u || o();
|
|
1218
|
+
},
|
|
1219
|
+
placement: L,
|
|
1200
1220
|
blockScrollOnMount: !1,
|
|
1201
1221
|
autoFocus: !1,
|
|
1202
|
-
children:
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1222
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1223
|
+
un,
|
|
1224
|
+
{ children: l ? /* @__PURE__ */ t.jsxs(
|
|
1225
|
+
t.Fragment,
|
|
1226
|
+
{ children: [
|
|
1227
|
+
/* @__PURE__ */ t.jsx(
|
|
1228
|
+
Cn,
|
|
1229
|
+
{
|
|
1230
|
+
backgroundColor: "tints.black",
|
|
1231
|
+
top: ["0", null, null, `${w}px`],
|
|
1232
|
+
opacity: u ? void 0 : "0.4 !important",
|
|
1233
|
+
...u ? {
|
|
1234
|
+
initial: { opacity: 0 },
|
|
1235
|
+
animate: { opacity: 0.4 },
|
|
1236
|
+
exit: { opacity: 0 },
|
|
1237
|
+
transition: {
|
|
1238
|
+
duration: 0.2,
|
|
1239
|
+
delay: 0.3,
|
|
1240
|
+
ease: "easeOut"
|
|
1241
|
+
}
|
|
1242
|
+
} : {}
|
|
1217
1243
|
}
|
|
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,
|
|
1244
|
+
),
|
|
1245
|
+
/* @__PURE__ */ t.jsxs(
|
|
1246
|
+
bn,
|
|
1247
|
+
{
|
|
1248
|
+
onClick: (H) => {
|
|
1249
|
+
const B = H.target.closest("a");
|
|
1250
|
+
B && B.href === window.location.href && o();
|
|
1251
|
+
},
|
|
1252
|
+
onMouseEnter: () => {
|
|
1253
|
+
u && pt(!0);
|
|
1254
|
+
},
|
|
1255
|
+
onMouseLeave: () => {
|
|
1256
|
+
u && pt(!1);
|
|
1257
|
+
},
|
|
1258
|
+
paddingTop: "4",
|
|
1259
|
+
paddingX: [4, null, null, 12],
|
|
1260
|
+
paddingBottom: "24",
|
|
1261
|
+
overflow: ["auto", null, null, "hidden"],
|
|
1262
|
+
maxHeight: "100vh",
|
|
1263
|
+
position: "relative",
|
|
1264
|
+
top: u ? `${w}px !important` : void 0,
|
|
1265
|
+
onAnimationComplete: ce,
|
|
1266
|
+
...u ? {
|
|
1267
|
+
initial: { height: 0, opacity: 0 },
|
|
1268
|
+
animate: { height: "auto", opacity: 1 },
|
|
1269
|
+
exit: { height: 0, opacity: 0 },
|
|
1270
|
+
transition: { duration: 0.3 }
|
|
1271
|
+
} : {},
|
|
1272
|
+
children: [
|
|
1273
|
+
!s && u ? null : /* @__PURE__ */ t.jsxs(
|
|
1274
|
+
Gt,
|
|
1275
|
+
{
|
|
1276
|
+
padding: "0",
|
|
1277
|
+
flexDirection: s ? "column" : "row",
|
|
1278
|
+
gap: s ? "4" : "0",
|
|
1279
|
+
children: [
|
|
1280
|
+
u ? null : /* @__PURE__ */ t.jsxs(
|
|
1281
|
+
T,
|
|
1286
1282
|
{
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1283
|
+
width: "100%",
|
|
1284
|
+
justifyContent: "space-between",
|
|
1285
|
+
alignItems: "center",
|
|
1286
|
+
children: [
|
|
1287
|
+
R ? /* @__PURE__ */ t.jsx(
|
|
1288
|
+
oe,
|
|
1289
|
+
{
|
|
1290
|
+
icon: /* @__PURE__ */ t.jsx(an, {}),
|
|
1291
|
+
onClick: () => {
|
|
1292
|
+
c && c(), o();
|
|
1293
|
+
},
|
|
1294
|
+
"aria-label": "Back"
|
|
1295
|
+
}
|
|
1296
|
+
) : null,
|
|
1297
|
+
/* @__PURE__ */ t.jsx(
|
|
1298
|
+
Z,
|
|
1299
|
+
{
|
|
1300
|
+
color: "tints.uiGrey",
|
|
1301
|
+
fontSize: ["xl", null, null, "lg"],
|
|
1302
|
+
children: p
|
|
1303
|
+
}
|
|
1304
|
+
),
|
|
1305
|
+
/* @__PURE__ */ t.jsx(
|
|
1306
|
+
oe,
|
|
1307
|
+
{
|
|
1308
|
+
icon: /* @__PURE__ */ t.jsx(on, {}),
|
|
1309
|
+
onClick: o,
|
|
1310
|
+
"aria-label": "Close"
|
|
1311
|
+
}
|
|
1312
|
+
)
|
|
1313
|
+
]
|
|
1294
1314
|
}
|
|
1295
1315
|
),
|
|
1296
|
-
/* @__PURE__ */ t.
|
|
1297
|
-
|
|
1298
|
-
{
|
|
1316
|
+
s && /* @__PURE__ */ t.jsxs(
|
|
1317
|
+
Qt,
|
|
1318
|
+
{ width: "100%", children: [
|
|
1319
|
+
/* @__PURE__ */ t.jsx(
|
|
1320
|
+
en,
|
|
1321
|
+
{
|
|
1322
|
+
onChange: (H) => {
|
|
1323
|
+
ue(H.target.value);
|
|
1324
|
+
},
|
|
1325
|
+
placeholder: "Search",
|
|
1326
|
+
autoFocus: !0,
|
|
1327
|
+
width: "full",
|
|
1328
|
+
type: "search"
|
|
1329
|
+
}
|
|
1330
|
+
),
|
|
1331
|
+
/* @__PURE__ */ t.jsx(
|
|
1332
|
+
tn,
|
|
1333
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(nn, { as: bt, color: "gray.500" }) }
|
|
1334
|
+
)
|
|
1335
|
+
] }
|
|
1299
1336
|
)
|
|
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: {
|
|
1337
|
+
]
|
|
1338
|
+
}
|
|
1339
|
+
),
|
|
1340
|
+
/* @__PURE__ */ t.jsx(
|
|
1341
|
+
Zt,
|
|
1342
|
+
{
|
|
1343
|
+
paddingX: "0",
|
|
1344
|
+
paddingBottom: [6, null, null, 4],
|
|
1345
|
+
"data-testid": `navbar-drawer-body-${p.toLowerCase()}`,
|
|
1346
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
1347
|
+
Ke.div,
|
|
1348
|
+
{
|
|
1349
|
+
...u ? {
|
|
1350
|
+
initial: { opacity: 0, y: -5 },
|
|
1351
|
+
animate: { opacity: 1, y: 0 },
|
|
1352
|
+
exit: { opacity: 0, y: -5 },
|
|
1353
|
+
transition: {
|
|
1337
1354
|
duration: 0.5,
|
|
1338
1355
|
delay: 0.2,
|
|
1339
|
-
ease: [0.4, 0, 0.2, 1]
|
|
1356
|
+
ease: [0.4, 0, 0.2, 1],
|
|
1357
|
+
exit: {
|
|
1358
|
+
duration: 0.5,
|
|
1359
|
+
delay: 0.2,
|
|
1360
|
+
ease: [0.4, 0, 0.2, 1]
|
|
1361
|
+
}
|
|
1340
1362
|
}
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
+
} : {},
|
|
1364
|
+
style: {
|
|
1365
|
+
display: "flex",
|
|
1366
|
+
flexDirection: mn(
|
|
1367
|
+
x,
|
|
1368
|
+
u,
|
|
1369
|
+
s
|
|
1370
|
+
),
|
|
1371
|
+
gap: "24px",
|
|
1372
|
+
justifyContent: "space-between"
|
|
1373
|
+
},
|
|
1374
|
+
children: [
|
|
1375
|
+
v ? /* @__PURE__ */ t.jsx(
|
|
1376
|
+
E,
|
|
1377
|
+
{
|
|
1378
|
+
gap: "6",
|
|
1379
|
+
display: "flex",
|
|
1380
|
+
justifyContent: [null, null, null, "center"],
|
|
1381
|
+
sx: {
|
|
1382
|
+
"& > *": {
|
|
1383
|
+
width: ["100%", null, null, "365px", "432px"]
|
|
1384
|
+
},
|
|
1385
|
+
flexWrap: "wrap",
|
|
1386
|
+
flexDirection: ["column", null, null, "row"]
|
|
1363
1387
|
},
|
|
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
|
-
) }
|
|
1388
|
+
children: v
|
|
1389
|
+
}
|
|
1390
|
+
) : null,
|
|
1391
|
+
/* @__PURE__ */ t.jsxs(
|
|
1392
|
+
T,
|
|
1393
|
+
{
|
|
1394
|
+
position: [null, null, null, "relative"],
|
|
1395
|
+
flexDirection: "column",
|
|
1396
|
+
gap: "6",
|
|
1397
|
+
width: ["100%", null, null, s ? null : "auto"],
|
|
1398
|
+
children: [
|
|
1399
|
+
d ? /* @__PURE__ */ t.jsx(E, { children: d }) : null,
|
|
1400
|
+
j && !u ? /* @__PURE__ */ t.jsx(E, { children: j }) : null,
|
|
1401
|
+
m ? /* @__PURE__ */ t.jsx(
|
|
1402
|
+
E,
|
|
1403
|
+
{
|
|
1404
|
+
width: ["100%"],
|
|
1405
|
+
position: [null, null, null, "absolute"],
|
|
1406
|
+
bottom: [null, null, null, 0],
|
|
1407
|
+
children: m
|
|
1408
|
+
}
|
|
1409
|
+
) : null
|
|
1410
|
+
]
|
|
1411
|
+
}
|
|
1412
|
+
)
|
|
1413
|
+
]
|
|
1414
|
+
},
|
|
1415
|
+
M
|
|
1416
|
+
)
|
|
1417
|
+
}
|
|
1396
1418
|
)
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1401
|
-
)
|
|
1402
|
-
|
|
1419
|
+
]
|
|
1420
|
+
}
|
|
1421
|
+
)
|
|
1422
|
+
] }
|
|
1423
|
+
) : null }
|
|
1424
|
+
)
|
|
1403
1425
|
}
|
|
1404
1426
|
);
|
|
1405
|
-
},
|
|
1427
|
+
}, ht = (l) => {
|
|
1428
|
+
const o = /* @__PURE__ */ new Set();
|
|
1429
|
+
return l.reduce((p, d) => {
|
|
1430
|
+
var v;
|
|
1431
|
+
const j = ((v = d.sections) == null ? void 0 : v.reduce((m, R) => {
|
|
1432
|
+
const c = R.links.filter((x) => o.has(x.label) || x.isSearchable !== !0 ? !1 : (o.add(x.label), !0));
|
|
1433
|
+
return [...m, ...c];
|
|
1434
|
+
}, [])) ?? [];
|
|
1435
|
+
return [...p, ...j];
|
|
1436
|
+
}, []);
|
|
1437
|
+
}, jn = ({
|
|
1406
1438
|
source: l,
|
|
1407
1439
|
onSearchCallback: o,
|
|
1408
|
-
isActive:
|
|
1440
|
+
isActive: p
|
|
1409
1441
|
}) => {
|
|
1410
|
-
const [d,
|
|
1442
|
+
const [d, j] = W(""), [v, m] = W([]), R = (s, b) => {
|
|
1411
1443
|
if (!s)
|
|
1412
1444
|
return [];
|
|
1413
|
-
const
|
|
1414
|
-
return
|
|
1415
|
-
const
|
|
1416
|
-
return
|
|
1417
|
-
}).sort((
|
|
1418
|
-
},
|
|
1419
|
-
if (
|
|
1445
|
+
const w = s.toLowerCase();
|
|
1446
|
+
return b.filter((u) => {
|
|
1447
|
+
const L = u.label.toLowerCase().includes(w), M = typeof u.additionalContent == "string" && u.additionalContent.toLowerCase().includes(w);
|
|
1448
|
+
return L || M;
|
|
1449
|
+
}).sort((u, L) => u.label.localeCompare(L.label));
|
|
1450
|
+
}, c = (s) => {
|
|
1451
|
+
if (j(s), !s) {
|
|
1420
1452
|
m([]);
|
|
1421
1453
|
return;
|
|
1422
1454
|
}
|
|
1423
|
-
const
|
|
1424
|
-
m(
|
|
1425
|
-
},
|
|
1426
|
-
|
|
1455
|
+
const b = R(s, l);
|
|
1456
|
+
m(b), o && o(s, b);
|
|
1457
|
+
}, x = () => {
|
|
1458
|
+
j(""), m([]);
|
|
1427
1459
|
};
|
|
1428
|
-
return
|
|
1429
|
-
|
|
1430
|
-
}, [
|
|
1460
|
+
return q(() => {
|
|
1461
|
+
p || (j(""), m([]));
|
|
1462
|
+
}, [p]), {
|
|
1431
1463
|
query: d,
|
|
1432
|
-
results:
|
|
1433
|
-
handleClose:
|
|
1434
|
-
handleSearch:
|
|
1464
|
+
results: v,
|
|
1465
|
+
handleClose: x,
|
|
1466
|
+
handleSearch: c
|
|
1435
1467
|
};
|
|
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 = ({
|
|
1468
|
+
}, Ln = ({
|
|
1447
1469
|
categories: l = [],
|
|
1448
1470
|
onCartClick: o,
|
|
1449
|
-
mainCategoryLabel:
|
|
1471
|
+
mainCategoryLabel: p = "Menu",
|
|
1450
1472
|
logoLink: d = "https://www.everlywell.com",
|
|
1451
|
-
hasSearch:
|
|
1452
|
-
onSearchClick:
|
|
1473
|
+
hasSearch: j = !0,
|
|
1474
|
+
onSearchClick: v,
|
|
1453
1475
|
registrationUrl: m,
|
|
1454
1476
|
profileUrl: R = "https://secure.everlywell.com/login",
|
|
1455
|
-
mobileBottomButtons:
|
|
1456
|
-
numberOfCartItems:
|
|
1477
|
+
mobileBottomButtons: c = [],
|
|
1478
|
+
numberOfCartItems: x = 0,
|
|
1457
1479
|
linkComponent: s,
|
|
1458
|
-
onSearchCallback:
|
|
1459
|
-
onLinkClick:
|
|
1460
|
-
onCategoryOpen:
|
|
1461
|
-
onMobileMenuOpen:
|
|
1462
|
-
onBackToMainMenu:
|
|
1463
|
-
onRegisterKitClick:
|
|
1480
|
+
onSearchCallback: b,
|
|
1481
|
+
onLinkClick: w,
|
|
1482
|
+
onCategoryOpen: u,
|
|
1483
|
+
onMobileMenuOpen: L,
|
|
1484
|
+
onBackToMainMenu: M,
|
|
1485
|
+
onRegisterKitClick: Q,
|
|
1464
1486
|
onProfileClick: F,
|
|
1465
|
-
onLogoClick:
|
|
1466
|
-
shopAllProductsUrl:
|
|
1467
|
-
onShopAllProductsClick:
|
|
1487
|
+
onLogoClick: _,
|
|
1488
|
+
shopAllProductsUrl: se,
|
|
1489
|
+
onShopAllProductsClick: ue
|
|
1468
1490
|
}) => {
|
|
1469
|
-
var
|
|
1470
|
-
const [
|
|
1471
|
-
query:
|
|
1472
|
-
results:
|
|
1473
|
-
handleSearch:
|
|
1474
|
-
} =
|
|
1475
|
-
source:
|
|
1476
|
-
onSearchCallback:
|
|
1477
|
-
isActive:
|
|
1478
|
-
}),
|
|
1479
|
-
|
|
1480
|
-
{ gap:
|
|
1481
|
-
|
|
1482
|
-
|
|
1491
|
+
var K, z, xe;
|
|
1492
|
+
const [ce, H] = W(!1), [ee, B] = W(!1), [y, V] = W(null), [we, de] = W(!1), [I, N] = W(!1), [Y, ye] = W(0), {
|
|
1493
|
+
query: Ee,
|
|
1494
|
+
results: te,
|
|
1495
|
+
handleSearch: Re
|
|
1496
|
+
} = jn({
|
|
1497
|
+
source: ht(l),
|
|
1498
|
+
onSearchCallback: b,
|
|
1499
|
+
isActive: ee
|
|
1500
|
+
}), fe = te.length > 0, _e = s || G, Se = Oe(se, !!s), ke = Ee && /* @__PURE__ */ t.jsxs(
|
|
1501
|
+
T,
|
|
1502
|
+
{ gap: fe ? "6" : 0, direction: "column", children: [
|
|
1503
|
+
fe ? /* @__PURE__ */ t.jsx(Z, { color: "tints.uiGrey", children: `${te.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1504
|
+
T,
|
|
1483
1505
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1484
1506
|
/* @__PURE__ */ t.jsx(
|
|
1485
1507
|
Z,
|
|
1486
1508
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1487
1509
|
),
|
|
1488
1510
|
/* @__PURE__ */ t.jsx(
|
|
1489
|
-
|
|
1511
|
+
vt,
|
|
1490
1512
|
{
|
|
1491
|
-
as:
|
|
1492
|
-
onClick:
|
|
1513
|
+
as: _e,
|
|
1514
|
+
onClick: ue,
|
|
1493
1515
|
_hover: { textDecoration: "none" },
|
|
1494
1516
|
width: ["100%", null, null, "auto"],
|
|
1495
|
-
...
|
|
1517
|
+
...Se,
|
|
1496
1518
|
children: "Shop all products"
|
|
1497
1519
|
}
|
|
1498
1520
|
)
|
|
@@ -1500,105 +1522,103 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1500
1522
|
),
|
|
1501
1523
|
/* @__PURE__ */ t.jsx(
|
|
1502
1524
|
Kt,
|
|
1503
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1504
|
-
(
|
|
1525
|
+
{ columns: [1, 1, 1, 4], children: te.map(
|
|
1526
|
+
(a, D) => /* @__PURE__ */ t.jsx(
|
|
1505
1527
|
Xt,
|
|
1506
1528
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1507
|
-
|
|
1529
|
+
Ye,
|
|
1508
1530
|
{
|
|
1509
|
-
href:
|
|
1510
|
-
label:
|
|
1511
|
-
additionalContent:
|
|
1531
|
+
href: a.href,
|
|
1532
|
+
label: a.label,
|
|
1533
|
+
additionalContent: a == null ? void 0 : a.additionalContent,
|
|
1512
1534
|
linkComponent: s
|
|
1513
1535
|
}
|
|
1514
1536
|
) },
|
|
1515
|
-
`${
|
|
1537
|
+
`${a.label}-${D}`
|
|
1516
1538
|
)
|
|
1517
1539
|
) }
|
|
1518
1540
|
)
|
|
1519
1541
|
] }
|
|
1520
|
-
),
|
|
1521
|
-
|
|
1522
|
-
},
|
|
1523
|
-
|
|
1524
|
-
},
|
|
1525
|
-
|
|
1526
|
-
},
|
|
1527
|
-
|
|
1528
|
-
}, ee = () => {
|
|
1529
|
-
M(!1);
|
|
1542
|
+
), pe = () => {
|
|
1543
|
+
H(!1), V(null);
|
|
1544
|
+
}, Pe = (a) => {
|
|
1545
|
+
V(a);
|
|
1546
|
+
}, he = (a) => {
|
|
1547
|
+
de(!0), B(!1), (a.sections || a.spotlightCards) && V(a);
|
|
1548
|
+
}, ve = () => {
|
|
1549
|
+
de(!1);
|
|
1530
1550
|
};
|
|
1531
|
-
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1551
|
+
q(() => {
|
|
1552
|
+
const a = (D) => {
|
|
1553
|
+
N(D.detail.isHovering);
|
|
1534
1554
|
};
|
|
1535
1555
|
return window.addEventListener(
|
|
1536
|
-
|
|
1537
|
-
|
|
1556
|
+
Ge,
|
|
1557
|
+
a
|
|
1538
1558
|
), () => {
|
|
1539
1559
|
window.removeEventListener(
|
|
1540
|
-
|
|
1541
|
-
|
|
1560
|
+
Ge,
|
|
1561
|
+
a
|
|
1542
1562
|
);
|
|
1543
1563
|
};
|
|
1544
|
-
}, []),
|
|
1545
|
-
!
|
|
1546
|
-
}, [
|
|
1547
|
-
let
|
|
1548
|
-
const
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
}, U = setInterval(
|
|
1552
|
-
return window.addEventListener("popstate",
|
|
1553
|
-
window.removeEventListener("popstate",
|
|
1564
|
+
}, []), q(() => {
|
|
1565
|
+
!we && !I && (V(null), B(!1));
|
|
1566
|
+
}, [we, I]), q(() => {
|
|
1567
|
+
let a = window.location.href;
|
|
1568
|
+
const D = () => {
|
|
1569
|
+
const A = window.location.href;
|
|
1570
|
+
A !== a && (a = A, pe(), V(null));
|
|
1571
|
+
}, U = setInterval(D, 100);
|
|
1572
|
+
return window.addEventListener("popstate", D), () => {
|
|
1573
|
+
window.removeEventListener("popstate", D), clearInterval(U);
|
|
1554
1574
|
};
|
|
1555
1575
|
}, []);
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
-
},
|
|
1576
|
+
const ne = () => {
|
|
1577
|
+
V(null), M == null || M();
|
|
1578
|
+
}, ge = /* @__PURE__ */ t.jsx(
|
|
1559
1579
|
t.Fragment,
|
|
1560
1580
|
{ children: l == null ? void 0 : l.map(
|
|
1561
|
-
(
|
|
1562
|
-
|
|
1581
|
+
(a, D) => /* @__PURE__ */ t.jsx(
|
|
1582
|
+
De,
|
|
1563
1583
|
{
|
|
1564
1584
|
onMouseEnter: () => {
|
|
1565
|
-
|
|
1585
|
+
he(a), u == null || u(a.label);
|
|
1566
1586
|
},
|
|
1567
|
-
onMouseLeave:
|
|
1568
|
-
isSelected: (y == null ? void 0 : y.label) ===
|
|
1569
|
-
...
|
|
1570
|
-
children:
|
|
1587
|
+
onMouseLeave: ve,
|
|
1588
|
+
isSelected: (y == null ? void 0 : y.label) === a.label,
|
|
1589
|
+
...a.buttonProps,
|
|
1590
|
+
children: a.label
|
|
1571
1591
|
},
|
|
1572
|
-
`${
|
|
1592
|
+
`${a.label}-${D}`
|
|
1573
1593
|
)
|
|
1574
1594
|
) }
|
|
1575
|
-
),
|
|
1576
|
-
(
|
|
1595
|
+
), re = (K = l.filter((a) => a.isMobileTopLink !== !1)) == null ? void 0 : K.map(
|
|
1596
|
+
(a) => /* @__PURE__ */ t.jsx(
|
|
1577
1597
|
E,
|
|
1578
1598
|
{
|
|
1579
1599
|
onClick: () => {
|
|
1580
|
-
|
|
1600
|
+
Pe(a), u == null || u(a.label);
|
|
1581
1601
|
},
|
|
1582
1602
|
children: /* @__PURE__ */ t.jsx(
|
|
1583
|
-
|
|
1603
|
+
Ye,
|
|
1584
1604
|
{
|
|
1585
|
-
label:
|
|
1605
|
+
label: a.label,
|
|
1586
1606
|
role: "link",
|
|
1587
|
-
additionalContent:
|
|
1607
|
+
additionalContent: a.additionalContent,
|
|
1588
1608
|
mainTextFontSize: "3xl",
|
|
1589
1609
|
linkComponent: s
|
|
1590
1610
|
}
|
|
1591
1611
|
)
|
|
1592
1612
|
},
|
|
1593
|
-
|
|
1613
|
+
a.label
|
|
1594
1614
|
)
|
|
1595
1615
|
);
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1616
|
+
ht(l);
|
|
1617
|
+
const Ie = /* @__PURE__ */ t.jsxs(
|
|
1598
1618
|
t.Fragment,
|
|
1599
1619
|
{ children: [
|
|
1600
1620
|
/* @__PURE__ */ t.jsx(
|
|
1601
|
-
|
|
1621
|
+
De,
|
|
1602
1622
|
{
|
|
1603
1623
|
as: G,
|
|
1604
1624
|
href: R,
|
|
@@ -1606,46 +1626,46 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1606
1626
|
backgroundColor: "tints.cream",
|
|
1607
1627
|
onClick: F,
|
|
1608
1628
|
children: /* @__PURE__ */ t.jsxs(
|
|
1609
|
-
|
|
1629
|
+
T,
|
|
1610
1630
|
{ gap: "2", children: [
|
|
1611
1631
|
"My Everly",
|
|
1612
|
-
/* @__PURE__ */ t.jsx(
|
|
1632
|
+
/* @__PURE__ */ t.jsx(ae, { as: ut, size: 24 })
|
|
1613
1633
|
] }
|
|
1614
1634
|
)
|
|
1615
1635
|
},
|
|
1616
1636
|
"my-everly"
|
|
1617
1637
|
),
|
|
1618
1638
|
/* @__PURE__ */ t.jsx(
|
|
1619
|
-
|
|
1639
|
+
De,
|
|
1620
1640
|
{
|
|
1621
1641
|
as: G,
|
|
1622
1642
|
width: "100%",
|
|
1623
1643
|
href: m,
|
|
1624
1644
|
backgroundColor: "tints.cream",
|
|
1625
|
-
onClick:
|
|
1645
|
+
onClick: Q,
|
|
1626
1646
|
children: /* @__PURE__ */ t.jsxs(
|
|
1627
|
-
|
|
1647
|
+
T,
|
|
1628
1648
|
{ gap: "2", children: [
|
|
1629
1649
|
"Register kit",
|
|
1630
|
-
/* @__PURE__ */ t.jsx(
|
|
1650
|
+
/* @__PURE__ */ t.jsx(ae, { as: sn, size: 24 })
|
|
1631
1651
|
] }
|
|
1632
1652
|
)
|
|
1633
1653
|
},
|
|
1634
1654
|
"register-kit"
|
|
1635
1655
|
)
|
|
1636
1656
|
] }
|
|
1637
|
-
),
|
|
1638
|
-
|
|
1657
|
+
), Te = /* @__PURE__ */ t.jsxs(
|
|
1658
|
+
T,
|
|
1639
1659
|
{ gap: "2", flexDirection: "column", children: [
|
|
1640
|
-
|
|
1641
|
-
|
|
1660
|
+
c,
|
|
1661
|
+
Ie
|
|
1642
1662
|
] }
|
|
1643
1663
|
), Ae = y ? /* @__PURE__ */ t.jsx(
|
|
1644
|
-
|
|
1645
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (
|
|
1664
|
+
T,
|
|
1665
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (z = y == null ? void 0 : y.sections) == null ? void 0 : z.map((a, D) => {
|
|
1646
1666
|
const U = [];
|
|
1647
|
-
for (let
|
|
1648
|
-
U.push(
|
|
1667
|
+
for (let A = 0; A < a.links.length; A += 3)
|
|
1668
|
+
U.push(a.links.slice(A, A + 3));
|
|
1649
1669
|
return /* @__PURE__ */ t.jsxs(
|
|
1650
1670
|
E,
|
|
1651
1671
|
{ children: [
|
|
@@ -1655,141 +1675,143 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1655
1675
|
fontSize: "md",
|
|
1656
1676
|
color: "tints.uiGrey",
|
|
1657
1677
|
marginBottom: [0, null, null, 6],
|
|
1658
|
-
children:
|
|
1678
|
+
children: a.title
|
|
1659
1679
|
}
|
|
1660
1680
|
),
|
|
1661
1681
|
/* @__PURE__ */ t.jsx(
|
|
1662
|
-
|
|
1682
|
+
T,
|
|
1663
1683
|
{
|
|
1664
1684
|
flexDirection: ["column", null, null, "row"],
|
|
1665
1685
|
gap: [null, null, null, 8],
|
|
1666
1686
|
children: U == null ? void 0 : U.map(
|
|
1667
|
-
(
|
|
1668
|
-
|
|
1687
|
+
(A, me) => /* @__PURE__ */ t.jsx(
|
|
1688
|
+
T,
|
|
1669
1689
|
{
|
|
1670
1690
|
flexDirection: ["column"],
|
|
1671
1691
|
gap: [null, null, null, 5],
|
|
1672
1692
|
marginLeft: [null, null, null, -2],
|
|
1673
|
-
children:
|
|
1674
|
-
(
|
|
1675
|
-
|
|
1693
|
+
children: A == null ? void 0 : A.map(
|
|
1694
|
+
(X) => /* @__PURE__ */ t.jsx(
|
|
1695
|
+
Ye,
|
|
1676
1696
|
{
|
|
1677
|
-
label:
|
|
1678
|
-
href:
|
|
1679
|
-
additionalContent:
|
|
1697
|
+
label: X.label,
|
|
1698
|
+
href: X.href,
|
|
1699
|
+
additionalContent: X.additionalContent,
|
|
1680
1700
|
linkComponent: s,
|
|
1681
|
-
onClick: () =>
|
|
1701
|
+
onClick: () => w == null ? void 0 : w(X.label)
|
|
1682
1702
|
},
|
|
1683
|
-
|
|
1703
|
+
X.label
|
|
1684
1704
|
)
|
|
1685
1705
|
)
|
|
1686
1706
|
},
|
|
1687
|
-
|
|
1707
|
+
me
|
|
1688
1708
|
)
|
|
1689
1709
|
)
|
|
1690
1710
|
}
|
|
1691
1711
|
)
|
|
1692
1712
|
] },
|
|
1693
|
-
`${
|
|
1713
|
+
`${a.title}-${D}`
|
|
1694
1714
|
);
|
|
1695
1715
|
}) }
|
|
1696
|
-
) : null,
|
|
1697
|
-
(
|
|
1716
|
+
) : null, Fe = y != null && y.spotlightCards ? (xe = y.spotlightCards) == null ? void 0 : xe.map(
|
|
1717
|
+
(a) => /* @__PURE__ */ t.jsx(pn, { ...a }, a.title)
|
|
1698
1718
|
) : /* @__PURE__ */ t.jsx(E, {});
|
|
1699
1719
|
return /* @__PURE__ */ t.jsxs(
|
|
1700
1720
|
t.Fragment,
|
|
1701
1721
|
{ children: [
|
|
1702
1722
|
/* @__PURE__ */ t.jsx(
|
|
1703
|
-
|
|
1723
|
+
vn,
|
|
1704
1724
|
{
|
|
1705
|
-
desktopTopButtons:
|
|
1725
|
+
desktopTopButtons: ge,
|
|
1706
1726
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1707
|
-
|
|
1727
|
+
De,
|
|
1708
1728
|
{
|
|
1709
1729
|
as: G,
|
|
1710
1730
|
href: m,
|
|
1711
|
-
onClick:
|
|
1731
|
+
onClick: Q,
|
|
1712
1732
|
backgroundColor: "tints.cream",
|
|
1713
1733
|
children: "Register Kit"
|
|
1714
1734
|
}
|
|
1715
1735
|
),
|
|
1716
1736
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1717
1737
|
G,
|
|
1718
|
-
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(
|
|
1738
|
+
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ae, { as: ut }), "aria-label": "Profile" }) }
|
|
1719
1739
|
),
|
|
1720
1740
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1721
|
-
|
|
1741
|
+
gn,
|
|
1722
1742
|
{
|
|
1723
1743
|
"aria-label": "Cart",
|
|
1724
|
-
count:
|
|
1744
|
+
count: x,
|
|
1725
1745
|
onClick: o
|
|
1726
1746
|
}
|
|
1727
1747
|
),
|
|
1728
1748
|
onSearchClick: () => {
|
|
1729
|
-
|
|
1749
|
+
B(!ee), v == null || v();
|
|
1730
1750
|
},
|
|
1731
1751
|
onMenuClick: () => {
|
|
1732
|
-
|
|
1752
|
+
H(!0), L == null || L();
|
|
1733
1753
|
},
|
|
1734
|
-
hasSearch:
|
|
1754
|
+
hasSearch: j,
|
|
1735
1755
|
logoLink: d,
|
|
1736
|
-
onHeightChange: De,
|
|
1737
1756
|
linkComponent: s,
|
|
1738
|
-
onLogoClick:
|
|
1757
|
+
onLogoClick: _,
|
|
1758
|
+
setTopOffset: ye
|
|
1739
1759
|
}
|
|
1740
1760
|
),
|
|
1741
1761
|
/* @__PURE__ */ t.jsx(
|
|
1742
|
-
|
|
1762
|
+
ze,
|
|
1743
1763
|
{
|
|
1744
|
-
isOpen:
|
|
1745
|
-
onClose:
|
|
1746
|
-
title:
|
|
1747
|
-
navDrawerLinks:
|
|
1748
|
-
bottomNavButtons:
|
|
1764
|
+
isOpen: ce,
|
|
1765
|
+
onClose: pe,
|
|
1766
|
+
title: p,
|
|
1767
|
+
navDrawerLinks: re,
|
|
1768
|
+
bottomNavButtons: Te,
|
|
1749
1769
|
hasBackButton: !1,
|
|
1750
|
-
|
|
1770
|
+
topOffset: Y
|
|
1751
1771
|
}
|
|
1752
1772
|
),
|
|
1753
1773
|
/* @__PURE__ */ t.jsx(
|
|
1754
|
-
|
|
1774
|
+
ze,
|
|
1755
1775
|
{
|
|
1756
1776
|
isOpen: !!y,
|
|
1757
|
-
onClose: () =>
|
|
1777
|
+
onClose: () => {
|
|
1778
|
+
pe(), V(null);
|
|
1779
|
+
},
|
|
1758
1780
|
title: (y == null ? void 0 : y.label) || "",
|
|
1759
1781
|
navDrawerLinks: Ae,
|
|
1760
|
-
onBackClick:
|
|
1761
|
-
spotlightCards:
|
|
1782
|
+
onBackClick: ne,
|
|
1783
|
+
spotlightCards: Fe,
|
|
1762
1784
|
hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
|
|
1763
|
-
|
|
1764
|
-
|
|
1785
|
+
bottomButton: y == null ? void 0 : y.bottomButton,
|
|
1786
|
+
topOffset: Y
|
|
1765
1787
|
}
|
|
1766
1788
|
),
|
|
1767
1789
|
/* @__PURE__ */ t.jsx(
|
|
1768
|
-
|
|
1790
|
+
ze,
|
|
1769
1791
|
{
|
|
1770
|
-
isOpen:
|
|
1771
|
-
onClose: () =>
|
|
1792
|
+
isOpen: ee,
|
|
1793
|
+
onClose: () => B(!1),
|
|
1772
1794
|
title: "Search",
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
onSearch: Ee,
|
|
1795
|
+
navDrawerLinks: ke,
|
|
1796
|
+
onSearch: Re,
|
|
1776
1797
|
hasSearch: !0,
|
|
1777
|
-
hasBackButton: !1
|
|
1798
|
+
hasBackButton: !1,
|
|
1799
|
+
topOffset: Y
|
|
1778
1800
|
}
|
|
1779
1801
|
)
|
|
1780
1802
|
] }
|
|
1781
1803
|
);
|
|
1782
1804
|
};
|
|
1783
1805
|
export {
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1806
|
+
gn as BasketButton,
|
|
1807
|
+
kn as CategoryLabel,
|
|
1808
|
+
De as NavButton,
|
|
1809
|
+
Tn as NavSkeleton,
|
|
1810
|
+
ze as NavbarDrawer,
|
|
1811
|
+
Ye as NavbarDrawerLink,
|
|
1812
|
+
Ln as NavigationBar,
|
|
1813
|
+
pn as SpotlightCard,
|
|
1814
|
+
Sn as Stepper,
|
|
1793
1815
|
oe as TopNavIconButton,
|
|
1794
|
-
|
|
1816
|
+
vn as TopNavigation
|
|
1795
1817
|
};
|