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