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