@everlywell/consumer-ui 1.40.0 → 1.41.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.d.mts +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +10 -10
- package/index.mjs +958 -846
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as
|
|
2
|
-
import Re, { useEffect as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { CaretRight as gt, MagnifyingGlass as
|
|
5
|
-
import { motion as lt, AnimatePresence as
|
|
6
|
-
var et = { exports: {} },
|
|
1
|
+
import { useSteps as en, Box as j, Stepper as tn, Icon as J, Flex as E, Text as P, Link as Y, Button as Rt, Image as nn, IconButton as rn, theme as se, VStack as ln, Skeleton as Ke, HStack as pt, SkeletonCircle as Me, DrawerContent as St, DrawerOverlay as _t, Drawer as Tt, DrawerHeader as kt, DrawerBody as Dt, Grid as on, GridItem as an, Accordion as sn, AccordionItem as cn, AccordionButton as un, AccordionPanel as dn, InputGroup as fn, Input as hn, InputRightElement as pn, Container as gn, DrawerFooter as xn, DrawerCloseButton as vn, Modal as mn, ModalOverlay as bn, ModalContent as jn, ModalHeader as wn, ModalBody as Cn, ModalFooter as yn, ModalCloseButton as En, useMediaQuery as Rn } from "@everlywell/ui-kit";
|
|
2
|
+
import Re, { useEffect as te, forwardRef as It, useRef as Sn, useCallback as Lt, useState as K } from "react";
|
|
3
|
+
import { Text as _n, useBreakpointValue as He, Box as Tn, InputGroup as kn, Input as Dn, InputRightElement as In, Icon as Ln } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as gt, MagnifyingGlass as Ot, List as On, Basket as An, CaretLeft as Pn, X as At, User as xt, QrCode as Mn, CaretDown as $n, ArrowRight as Bn, InstagramLogo as Hn, LinkedinLogo as Fn, FacebookLogo as Wn, TiktokLogo as zn, XLogo as Nn } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as lt, AnimatePresence as Vn } from "framer-motion";
|
|
6
|
+
var et = { exports: {} }, ye = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,20 +14,20 @@ var et = { exports: {} }, Ce = {};
|
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
16
|
var vt;
|
|
17
|
-
function
|
|
18
|
-
if (vt) return
|
|
17
|
+
function Yn() {
|
|
18
|
+
if (vt) return ye;
|
|
19
19
|
vt = 1;
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof: l, type:
|
|
20
|
+
var n = Re, l = Symbol.for("react.element"), s = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function f(w, p, b) {
|
|
22
|
+
var a, C = {}, m = null, g = null;
|
|
23
|
+
b !== void 0 && (m = "" + b), p.key !== void 0 && (m = "" + p.key), p.ref !== void 0 && (g = p.ref);
|
|
24
|
+
for (a in p) i.call(p, a) && !c.hasOwnProperty(a) && (C[a] = p[a]);
|
|
25
|
+
if (w && w.defaultProps) for (a in p = w.defaultProps, p) C[a] === void 0 && (C[a] = p[a]);
|
|
26
|
+
return { $$typeof: l, type: w, key: m, ref: g, props: C, _owner: u.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return ye.Fragment = s, ye.jsx = f, ye.jsxs = f, ye;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var Ee = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -38,90 +38,90 @@ var ye = {};
|
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
40
|
var mt;
|
|
41
|
-
function
|
|
41
|
+
function Gn() {
|
|
42
42
|
return mt || (mt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var
|
|
44
|
-
function
|
|
43
|
+
var n = Re, l = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), w = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), T = Symbol.iterator, G = "@@iterator";
|
|
44
|
+
function Q(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
47
|
+
var r = T && e[T] || e[G];
|
|
48
|
+
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var O =
|
|
51
|
-
function
|
|
50
|
+
var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function _(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), h = 1; h < r; h++)
|
|
54
|
+
o[h - 1] = arguments[h];
|
|
55
|
+
X("error", e, o);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function X(e, r, o) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var R =
|
|
60
|
+
var h = O.ReactDebugCurrentFrame, y = h.getStackAddendum();
|
|
61
|
+
y !== "" && (r += "%s", o = o.concat([y]));
|
|
62
|
+
var R = o.map(function(v) {
|
|
63
63
|
return String(v);
|
|
64
64
|
});
|
|
65
|
-
R.unshift("Warning: " +
|
|
65
|
+
R.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, R);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
68
|
+
var A = !1, $ = !1, W = !1, U = !1, L = !1, S;
|
|
69
|
+
S = Symbol.for("react.module.reference");
|
|
70
|
+
function B(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === c || L || e === u || e === b || e === a || U || e === g || A || $ || W || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === C || e.$$typeof === f || e.$$typeof === w || e.$$typeof === p || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
e.$$typeof ===
|
|
75
|
+
e.$$typeof === S || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
77
|
+
function Se(e, r, o) {
|
|
78
|
+
var h = e.displayName;
|
|
79
|
+
if (h)
|
|
80
|
+
return h;
|
|
81
|
+
var y = r.displayName || r.name || "";
|
|
82
|
+
return y !== "" ? o + "(" + y + ")" : o;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function xe(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function z(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case
|
|
95
|
+
case i:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case a:
|
|
98
|
-
return "Portal";
|
|
99
97
|
case s:
|
|
98
|
+
return "Portal";
|
|
99
|
+
case c:
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case u:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case b:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case a:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
111
|
-
var
|
|
112
|
-
return
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return
|
|
110
|
+
case w:
|
|
111
|
+
var r = e;
|
|
112
|
+
return xe(r) + ".Consumer";
|
|
113
|
+
case f:
|
|
114
|
+
var o = e;
|
|
115
|
+
return xe(o._context) + ".Provider";
|
|
116
116
|
case p:
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
117
|
+
return Se(e, e.render, "ForwardRef");
|
|
118
|
+
case C:
|
|
119
|
+
var h = e.displayName || null;
|
|
120
|
+
return h !== null ? h : z(e.type) || "Memo";
|
|
121
|
+
case m: {
|
|
122
|
+
var y = e, R = y._payload, v = y._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return z(v(R));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function $n() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function ve() {
|
|
134
|
-
}
|
|
135
|
-
ve.__reactDisabledLog = !0;
|
|
132
|
+
var q = Object.assign, ee = 0, _e, Te, ve, ke, De, ce, Ie;
|
|
136
133
|
function me() {
|
|
134
|
+
}
|
|
135
|
+
me.__reactDisabledLog = !0;
|
|
136
|
+
function be() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (ee === 0) {
|
|
139
|
+
_e = console.log, Te = console.info, ve = console.warn, ke = console.error, De = console.group, ce = console.groupCollapsed, Ie = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: me,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -153,79 +153,79 @@ function $n() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
ee++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Fe() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (ee--, ee === 0) {
|
|
162
162
|
var e = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
169
|
-
value:
|
|
168
|
+
log: q({}, e, {
|
|
169
|
+
value: _e
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: q({}, e, {
|
|
172
172
|
value: Te
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
175
|
-
value:
|
|
174
|
+
warn: q({}, e, {
|
|
175
|
+
value: ve
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
177
|
+
error: q({}, e, {
|
|
178
178
|
value: ke
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: q({}, e, {
|
|
181
181
|
value: De
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
184
|
-
value:
|
|
183
|
+
groupCollapsed: q({}, e, {
|
|
184
|
+
value: ce
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
186
|
+
groupEnd: q({}, e, {
|
|
187
187
|
value: Ie
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
ee < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var je = O.ReactCurrentDispatcher, ne;
|
|
195
|
+
function Z(e, r, o) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (ne === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
|
|
200
|
+
} catch (y) {
|
|
201
|
+
var h = y.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ne = h && h[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + ne + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var we = !1, ue;
|
|
209
209
|
{
|
|
210
210
|
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
ue = new We();
|
|
212
212
|
}
|
|
213
|
-
function Le(e,
|
|
214
|
-
if (!e ||
|
|
213
|
+
function Le(e, r) {
|
|
214
|
+
if (!e || we)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
217
|
+
var o = ue.get(e);
|
|
218
|
+
if (o !== void 0)
|
|
219
|
+
return o;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
var
|
|
221
|
+
var h;
|
|
222
|
+
we = !0;
|
|
223
|
+
var y = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var R;
|
|
226
|
-
R =
|
|
226
|
+
R = je.current, je.current = null, be();
|
|
227
227
|
try {
|
|
228
|
-
if (
|
|
228
|
+
if (r) {
|
|
229
229
|
var v = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
@@ -237,14 +237,14 @@ function $n() {
|
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(v, []);
|
|
239
239
|
} catch (F) {
|
|
240
|
-
|
|
240
|
+
h = F;
|
|
241
241
|
}
|
|
242
242
|
Reflect.construct(e, [], v);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
v.call();
|
|
246
246
|
} catch (F) {
|
|
247
|
-
|
|
247
|
+
h = F;
|
|
248
248
|
}
|
|
249
249
|
e.call(v.prototype);
|
|
250
250
|
}
|
|
@@ -252,80 +252,80 @@ function $n() {
|
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (F) {
|
|
255
|
-
|
|
255
|
+
h = F;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
259
|
} catch (F) {
|
|
260
|
-
if (F &&
|
|
260
|
+
if (F && h && typeof F.stack == "string") {
|
|
261
261
|
for (var x = F.stack.split(`
|
|
262
|
-
`),
|
|
263
|
-
`), D = x.length - 1, I =
|
|
262
|
+
`), M = h.stack.split(`
|
|
263
|
+
`), D = x.length - 1, I = M.length - 1; D >= 1 && I >= 0 && x[D] !== M[I]; )
|
|
264
264
|
I--;
|
|
265
265
|
for (; D >= 1 && I >= 0; D--, I--)
|
|
266
|
-
if (x[D] !==
|
|
266
|
+
if (x[D] !== M[I]) {
|
|
267
267
|
if (D !== 1 || I !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (D--, I--, I < 0 || x[D] !==
|
|
270
|
-
var
|
|
269
|
+
if (D--, I--, I < 0 || x[D] !== M[I]) {
|
|
270
|
+
var V = `
|
|
271
271
|
` + x[D].replace(" at new ", " at ");
|
|
272
|
-
return e.displayName &&
|
|
272
|
+
return e.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, V), V;
|
|
273
273
|
}
|
|
274
274
|
while (D >= 1 && I >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
we = !1, je.current = R, Fe(), Error.prepareStackTrace = y;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var he = e ? e.displayName || e.name : "", ae = he ? Z(he) : "";
|
|
282
282
|
return typeof e == "function" && ue.set(e, ae), ae;
|
|
283
283
|
}
|
|
284
|
-
function ze(e,
|
|
284
|
+
function ze(e, r, o) {
|
|
285
285
|
return Le(e, !1);
|
|
286
286
|
}
|
|
287
287
|
function Ne(e) {
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
288
|
+
var r = e.prototype;
|
|
289
|
+
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function de(e, r, o) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
295
|
return Le(e, Ne(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return Z(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
299
|
+
case b:
|
|
300
|
+
return Z("Suspense");
|
|
301
|
+
case a:
|
|
302
|
+
return Z("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case p:
|
|
307
307
|
return ze(e.render);
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var
|
|
308
|
+
case C:
|
|
309
|
+
return de(e.type, r, o);
|
|
310
|
+
case m: {
|
|
311
|
+
var h = e, y = h._payload, R = h._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return de(R(y), r, o);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var le = Object.prototype.hasOwnProperty,
|
|
321
|
-
function
|
|
320
|
+
var le = Object.prototype.hasOwnProperty, Oe = {}, Ce = O.ReactDebugCurrentFrame;
|
|
321
|
+
function oe(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var
|
|
324
|
-
|
|
323
|
+
var r = e._owner, o = de(e.type, e._source, r ? r.type : null);
|
|
324
|
+
Ce.setExtraStackFrame(o);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
Ce.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ae(e, r, o, h, y) {
|
|
329
329
|
{
|
|
330
330
|
var R = Function.call.bind(le);
|
|
331
331
|
for (var v in e)
|
|
@@ -333,28 +333,28 @@ function $n() {
|
|
|
333
333
|
var x = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[v] != "function") {
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
336
|
+
var M = Error((h || "React class") + ": " + o + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw M.name = "Invariant Violation", M;
|
|
338
338
|
}
|
|
339
|
-
x = e[v](
|
|
339
|
+
x = e[v](r, v, h, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (D) {
|
|
341
341
|
x = D;
|
|
342
342
|
}
|
|
343
|
-
x && !(x instanceof Error) && (
|
|
343
|
+
x && !(x instanceof Error) && (oe(y), _("%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).", h || "React class", o, v, typeof x), oe(null)), x instanceof Error && !(x.message in Oe) && (Oe[x.message] = !0, oe(y), _("Failed %s type: %s", o, x.message), oe(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var d = Array.isArray;
|
|
348
|
-
function
|
|
348
|
+
function k(e) {
|
|
349
349
|
return d(e);
|
|
350
350
|
}
|
|
351
351
|
function H(e) {
|
|
352
352
|
{
|
|
353
|
-
var
|
|
354
|
-
return
|
|
353
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
+
return o;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function N(e) {
|
|
358
358
|
try {
|
|
359
359
|
return Pe(e), !1;
|
|
360
360
|
} catch {
|
|
@@ -364,69 +364,69 @@ function $n() {
|
|
|
364
364
|
function Pe(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
367
|
+
function re(e) {
|
|
368
|
+
if (N(e))
|
|
369
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", H(e)), Pe(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var ie = O.ReactCurrentOwner, Mt = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
376
|
+
}, ot, it, Ve;
|
|
377
377
|
Ve = {};
|
|
378
|
-
function
|
|
378
|
+
function $t(e) {
|
|
379
379
|
if (le.call(e, "ref")) {
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
380
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
+
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Bt(e) {
|
|
387
387
|
if (le.call(e, "key")) {
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
388
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
+
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var
|
|
397
|
-
Ve[
|
|
394
|
+
function Ht(e, r) {
|
|
395
|
+
if (typeof e.ref == "string" && ie.current && r && ie.current.stateNode !== r) {
|
|
396
|
+
var o = z(ie.current.type);
|
|
397
|
+
Ve[o] || (_('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', z(ie.current.type), e.ref), Ve[o] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Ft(e, r) {
|
|
401
401
|
{
|
|
402
|
-
var
|
|
403
|
-
|
|
402
|
+
var o = function() {
|
|
403
|
+
ot || (ot = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
get:
|
|
405
|
+
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: o,
|
|
407
407
|
configurable: !0
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Wt(e, r) {
|
|
412
412
|
{
|
|
413
|
-
var
|
|
414
|
-
|
|
413
|
+
var o = function() {
|
|
414
|
+
it || (it = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
|
-
|
|
417
|
-
get:
|
|
416
|
+
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: o,
|
|
418
418
|
configurable: !0
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
422
|
+
var zt = function(e, r, o, h, y, R, v) {
|
|
423
423
|
var x = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: l,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
|
-
key:
|
|
429
|
-
ref:
|
|
428
|
+
key: r,
|
|
429
|
+
ref: o,
|
|
430
430
|
props: v,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: R
|
|
@@ -440,37 +440,37 @@ function $n() {
|
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
443
|
+
value: h
|
|
444
444
|
}), Object.defineProperty(x, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: y
|
|
449
449
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function Nt(e, r, o, h, y) {
|
|
452
452
|
{
|
|
453
|
-
var R, v = {}, x = null,
|
|
454
|
-
|
|
455
|
-
for (R in
|
|
456
|
-
le.call(
|
|
453
|
+
var R, v = {}, x = null, M = null;
|
|
454
|
+
o !== void 0 && (re(o), x = "" + o), Bt(r) && (re(r.key), x = "" + r.key), $t(r) && (M = r.ref, Ht(r, y));
|
|
455
|
+
for (R in r)
|
|
456
|
+
le.call(r, R) && !Mt.hasOwnProperty(R) && (v[R] = r[R]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var D = e.defaultProps;
|
|
459
459
|
for (R in D)
|
|
460
460
|
v[R] === void 0 && (v[R] = D[R]);
|
|
461
461
|
}
|
|
462
|
-
if (x ||
|
|
462
|
+
if (x || M) {
|
|
463
463
|
var I = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
x &&
|
|
464
|
+
x && Ft(v, I), M && Wt(v, I);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return zt(e, x, M, y, h, ie.current, v);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var Ye = O.ReactCurrentOwner, at = O.ReactDebugCurrentFrame;
|
|
470
|
-
function
|
|
470
|
+
function fe(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var
|
|
473
|
-
at.setExtraStackFrame(
|
|
472
|
+
var r = e._owner, o = de(e.type, e._source, r ? r.type : null);
|
|
473
|
+
at.setExtraStackFrame(o);
|
|
474
474
|
} else
|
|
475
475
|
at.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
@@ -482,7 +482,7 @@ function $n() {
|
|
|
482
482
|
function st() {
|
|
483
483
|
{
|
|
484
484
|
if (Ye.current) {
|
|
485
|
-
var e =
|
|
485
|
+
var e = z(Ye.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -491,199 +491,199 @@ Check the render method of \`` + e + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Vt(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
497
|
+
var ct = {};
|
|
498
|
+
function Yt(e) {
|
|
499
499
|
{
|
|
500
|
-
var
|
|
501
|
-
if (!
|
|
502
|
-
var
|
|
503
|
-
|
|
500
|
+
var r = st();
|
|
501
|
+
if (!r) {
|
|
502
|
+
var o = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
+
o && (r = `
|
|
504
504
|
|
|
505
|
-
Check the top-level render call using <` +
|
|
505
|
+
Check the top-level render call using <` + o + ">.");
|
|
506
506
|
}
|
|
507
|
-
return
|
|
507
|
+
return r;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function ut(e, r) {
|
|
511
511
|
{
|
|
512
512
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
513
|
return;
|
|
514
514
|
e._store.validated = !0;
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
515
|
+
var o = Yt(r);
|
|
516
|
+
if (ct[o])
|
|
517
517
|
return;
|
|
518
|
-
|
|
519
|
-
var
|
|
520
|
-
e && e._owner && e._owner !== Ye.current && (
|
|
518
|
+
ct[o] = !0;
|
|
519
|
+
var h = "";
|
|
520
|
+
e && e._owner && e._owner !== Ye.current && (h = " It was passed a child from " + z(e._owner.type) + "."), fe(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, h), fe(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function dt(e,
|
|
523
|
+
function dt(e, r) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
|
-
if (
|
|
528
|
-
for (var
|
|
529
|
-
var
|
|
530
|
-
Ue(
|
|
527
|
+
if (k(e))
|
|
528
|
+
for (var o = 0; o < e.length; o++) {
|
|
529
|
+
var h = e[o];
|
|
530
|
+
Ue(h) && ut(h, r);
|
|
531
531
|
}
|
|
532
532
|
else if (Ue(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var R =
|
|
538
|
-
Ue(v.value) &&
|
|
535
|
+
var y = Q(e);
|
|
536
|
+
if (typeof y == "function" && y !== e.entries)
|
|
537
|
+
for (var R = y.call(e), v; !(v = R.next()).done; )
|
|
538
|
+
Ue(v.value) && ut(v.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Gt(e) {
|
|
543
543
|
{
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
544
|
+
var r = e.type;
|
|
545
|
+
if (r == null || typeof r == "string")
|
|
546
546
|
return;
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
|
|
550
|
-
else if (typeof
|
|
547
|
+
var o;
|
|
548
|
+
if (typeof r == "function")
|
|
549
|
+
o = r.propTypes;
|
|
550
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
|
-
|
|
553
|
-
|
|
552
|
+
r.$$typeof === C))
|
|
553
|
+
o = r.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
|
-
if (
|
|
557
|
-
var
|
|
558
|
-
|
|
559
|
-
} else if (
|
|
556
|
+
if (o) {
|
|
557
|
+
var h = z(r);
|
|
558
|
+
Ae(o, e.props, "prop", h, e);
|
|
559
|
+
} else if (r.PropTypes !== void 0 && !Ge) {
|
|
560
560
|
Ge = !0;
|
|
561
|
-
var
|
|
562
|
-
|
|
561
|
+
var y = z(r);
|
|
562
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof
|
|
564
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ut(e) {
|
|
568
568
|
{
|
|
569
|
-
for (var
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
|
|
569
|
+
for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
|
|
570
|
+
var h = r[o];
|
|
571
|
+
if (h !== "children" && h !== "key") {
|
|
572
|
+
fe(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), fe(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (
|
|
576
|
+
e.ref !== null && (fe(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ft = {};
|
|
580
|
-
function ht(e,
|
|
580
|
+
function ht(e, r, o, h, y, R) {
|
|
581
581
|
{
|
|
582
|
-
var v =
|
|
582
|
+
var v = B(e);
|
|
583
583
|
if (!v) {
|
|
584
584
|
var x = "";
|
|
585
585
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
-
var
|
|
587
|
-
|
|
586
|
+
var M = Vt();
|
|
587
|
+
M ? x += M : x += st();
|
|
588
588
|
var D;
|
|
589
|
-
e === null ? D = "null" :
|
|
589
|
+
e === null ? D = "null" : k(e) ? D = "array" : e !== void 0 && e.$$typeof === l ? (D = "<" + (z(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
|
|
590
590
|
}
|
|
591
|
-
var I =
|
|
591
|
+
var I = Nt(e, r, o, y, R);
|
|
592
592
|
if (I == null)
|
|
593
593
|
return I;
|
|
594
594
|
if (v) {
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
if (
|
|
599
|
-
for (var
|
|
600
|
-
dt(
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
595
|
+
var V = r.children;
|
|
596
|
+
if (V !== void 0)
|
|
597
|
+
if (h)
|
|
598
|
+
if (k(V)) {
|
|
599
|
+
for (var he = 0; he < V.length; he++)
|
|
600
|
+
dt(V[he], e);
|
|
601
|
+
Object.freeze && Object.freeze(V);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
|
-
dt(
|
|
605
|
+
dt(V, e);
|
|
606
606
|
}
|
|
607
|
-
if (le.call(
|
|
608
|
-
var ae =
|
|
609
|
-
return
|
|
607
|
+
if (le.call(r, "key")) {
|
|
608
|
+
var ae = z(e), F = Object.keys(r).filter(function(qt) {
|
|
609
|
+
return qt !== "key";
|
|
610
610
|
}), Ze = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
611
|
if (!ft[ae + Ze]) {
|
|
612
|
-
var
|
|
613
|
-
|
|
612
|
+
var Qt = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
+
_(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
616
616
|
React keys must be passed directly to JSX without using spread:
|
|
617
617
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`, Ze, ae,
|
|
618
|
+
<%s key={someKey} {...props} />`, Ze, ae, Qt, ae), ft[ae + Ze] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === i ? Ut(I) : Gt(I), I;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return ht(e,
|
|
624
|
+
function Zt(e, r, o) {
|
|
625
|
+
return ht(e, r, o, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return ht(e,
|
|
627
|
+
function Kt(e, r, o) {
|
|
628
|
+
return ht(e, r, o, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
}()),
|
|
630
|
+
var Xt = Kt, Jt = Zt;
|
|
631
|
+
Ee.Fragment = i, Ee.jsx = Xt, Ee.jsxs = Jt;
|
|
632
|
+
}()), Ee;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ? et.exports =
|
|
634
|
+
process.env.NODE_ENV === "production" ? et.exports = Yn() : et.exports = Gn();
|
|
635
635
|
var t = et.exports;
|
|
636
|
-
const Xe = 60, bt = 6,
|
|
636
|
+
const Xe = 60, bt = 6, Un = (n) => {
|
|
637
637
|
const {
|
|
638
638
|
activeStepIndex: l,
|
|
639
|
-
hideIndicators:
|
|
640
|
-
steps:
|
|
639
|
+
hideIndicators: s = !1,
|
|
640
|
+
steps: i,
|
|
641
641
|
stepperTheme: u = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
645
|
-
} =
|
|
645
|
+
} = n, { activeStep: c, setActiveStep: f } = en({
|
|
646
646
|
index: l,
|
|
647
|
-
count:
|
|
647
|
+
count: i.length
|
|
648
648
|
});
|
|
649
|
-
return
|
|
650
|
-
|
|
651
|
-
}, [l,
|
|
652
|
-
|
|
649
|
+
return te(() => {
|
|
650
|
+
f(l);
|
|
651
|
+
}, [l, f]), /* @__PURE__ */ t.jsx(
|
|
652
|
+
j,
|
|
653
653
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
654
|
-
|
|
654
|
+
tn,
|
|
655
655
|
{
|
|
656
656
|
role: "progressbar",
|
|
657
|
-
index:
|
|
657
|
+
index: c,
|
|
658
658
|
width: "100%",
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
|
-
children:
|
|
662
|
-
const
|
|
661
|
+
children: i.map((w, p) => {
|
|
662
|
+
const b = c === p, a = p === 0, C = p === i.length - 1, m = c > p;
|
|
663
663
|
let g = `${Xe}px`;
|
|
664
|
-
const
|
|
665
|
-
return
|
|
666
|
-
|
|
664
|
+
const T = `calc(100% - ((${Xe * (i.length - 1)}px) - (${i.length - 1} * ${bt * 2}px)))`;
|
|
665
|
+
return b ? g = T : (a || C) && (g = `${Xe - bt}px`), /* @__PURE__ */ t.jsx(
|
|
666
|
+
j,
|
|
667
667
|
{
|
|
668
668
|
width: g,
|
|
669
|
-
opacity:
|
|
670
|
-
paddingRight:
|
|
671
|
-
paddingLeft:
|
|
669
|
+
opacity: m || b ? 1 : 0.2,
|
|
670
|
+
paddingRight: C ? "0" : "6px",
|
|
671
|
+
paddingLeft: a ? "0" : "6px",
|
|
672
672
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
673
673
|
children: /* @__PURE__ */ t.jsx(
|
|
674
|
-
|
|
674
|
+
j,
|
|
675
675
|
{
|
|
676
|
-
paddingTop:
|
|
676
|
+
paddingTop: s ? 2 : 5,
|
|
677
677
|
position: "relative",
|
|
678
678
|
width: "100%",
|
|
679
679
|
children: /* @__PURE__ */ t.jsx(
|
|
680
|
-
|
|
680
|
+
j,
|
|
681
681
|
{
|
|
682
682
|
width: "100%",
|
|
683
683
|
position: "absolute",
|
|
684
684
|
top: "0",
|
|
685
|
-
backgroundColor:
|
|
686
|
-
height:
|
|
685
|
+
backgroundColor: m ? u.light : u.base,
|
|
686
|
+
height: s ? "4px" : "8px",
|
|
687
687
|
borderRadius: "4",
|
|
688
688
|
left: "0"
|
|
689
689
|
}
|
|
@@ -697,31 +697,31 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
697
697
|
}
|
|
698
698
|
) }
|
|
699
699
|
);
|
|
700
|
-
},
|
|
701
|
-
children:
|
|
700
|
+
}, gr = Re.memo(Un), xr = ({
|
|
701
|
+
children: n,
|
|
702
702
|
...l
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
|
-
|
|
705
|
-
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...l, children:
|
|
706
|
-
),
|
|
707
|
-
const
|
|
708
|
-
return l && !
|
|
709
|
-
to:
|
|
704
|
+
_n,
|
|
705
|
+
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...l, children: n }
|
|
706
|
+
), ge = (n, l) => {
|
|
707
|
+
const s = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
708
|
+
return l && !s ? {
|
|
709
|
+
to: n
|
|
710
710
|
} : {
|
|
711
|
-
href:
|
|
711
|
+
href: n
|
|
712
712
|
};
|
|
713
|
-
}, Je =
|
|
714
|
-
(
|
|
713
|
+
}, Je = It(
|
|
714
|
+
(n, l) => {
|
|
715
715
|
const {
|
|
716
|
-
label:
|
|
717
|
-
additionalContent:
|
|
716
|
+
label: s,
|
|
717
|
+
additionalContent: i,
|
|
718
718
|
mainTextFontSize: u,
|
|
719
|
-
linkComponent:
|
|
720
|
-
href:
|
|
721
|
-
...
|
|
722
|
-
} =
|
|
719
|
+
linkComponent: c,
|
|
720
|
+
href: f,
|
|
721
|
+
...w
|
|
722
|
+
} = n, p = c || Y, b = ge(f, !!c);
|
|
723
723
|
return /* @__PURE__ */ t.jsxs(
|
|
724
|
-
|
|
724
|
+
j,
|
|
725
725
|
{
|
|
726
726
|
ref: l,
|
|
727
727
|
as: p,
|
|
@@ -736,11 +736,11 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
736
736
|
borderColor: ["tints.cream", null, null, "unset"],
|
|
737
737
|
width: ["100%", null, null, "fit-content"],
|
|
738
738
|
cursor: "pointer",
|
|
739
|
-
...
|
|
740
|
-
...
|
|
739
|
+
...b,
|
|
740
|
+
...w,
|
|
741
741
|
children: [
|
|
742
742
|
/* @__PURE__ */ t.jsx(
|
|
743
|
-
|
|
743
|
+
J,
|
|
744
744
|
{
|
|
745
745
|
display: ["none", null, null, "block"],
|
|
746
746
|
as: gt,
|
|
@@ -752,18 +752,18 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
752
752
|
}
|
|
753
753
|
),
|
|
754
754
|
/* @__PURE__ */ t.jsxs(
|
|
755
|
-
|
|
755
|
+
E,
|
|
756
756
|
{ alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
|
|
757
757
|
/* @__PURE__ */ t.jsx(
|
|
758
|
-
|
|
758
|
+
P,
|
|
759
759
|
{
|
|
760
760
|
fontSize: [u || "xl", null, null, "lg"],
|
|
761
761
|
fontWeight: "medium",
|
|
762
|
-
children:
|
|
762
|
+
children: s
|
|
763
763
|
}
|
|
764
764
|
),
|
|
765
|
-
|
|
766
|
-
|
|
765
|
+
i && (typeof i == "string" ? /* @__PURE__ */ t.jsx(
|
|
766
|
+
P,
|
|
767
767
|
{
|
|
768
768
|
fontSize: ["xl", null, null, "lg"],
|
|
769
769
|
fontWeight: "medium",
|
|
@@ -773,11 +773,11 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
773
773
|
color: "viridian.base"
|
|
774
774
|
}
|
|
775
775
|
},
|
|
776
|
-
children:
|
|
776
|
+
children: i
|
|
777
777
|
}
|
|
778
|
-
) :
|
|
778
|
+
) : i),
|
|
779
779
|
/* @__PURE__ */ t.jsx(
|
|
780
|
-
|
|
780
|
+
J,
|
|
781
781
|
{
|
|
782
782
|
display: ["block", null, null, "none"],
|
|
783
783
|
as: gt,
|
|
@@ -794,15 +794,15 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
),
|
|
798
|
-
(
|
|
799
|
-
const { children:
|
|
797
|
+
), $e = It(
|
|
798
|
+
(n, l) => {
|
|
799
|
+
const { children: s, isSelected: i, ...u } = n, c = n.backgroundColor || (i ? "tints.lightCream" : "transparent");
|
|
800
800
|
return /* @__PURE__ */ t.jsx(
|
|
801
801
|
Rt,
|
|
802
802
|
{
|
|
803
803
|
ref: l,
|
|
804
804
|
borderRadius: "full",
|
|
805
|
-
backgroundColor:
|
|
805
|
+
backgroundColor: c,
|
|
806
806
|
fontSize: "lg !important",
|
|
807
807
|
fontWeight: "normal",
|
|
808
808
|
color: "tints.black",
|
|
@@ -820,42 +820,42 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
820
820
|
left: [null, null, null, -2]
|
|
821
821
|
},
|
|
822
822
|
_hover: {
|
|
823
|
-
backgroundColor:
|
|
823
|
+
backgroundColor: c,
|
|
824
824
|
textDecoration: "none",
|
|
825
825
|
filter: "brightness(0.95)"
|
|
826
826
|
},
|
|
827
827
|
...u,
|
|
828
|
-
children:
|
|
828
|
+
children: s
|
|
829
829
|
}
|
|
830
830
|
);
|
|
831
831
|
}
|
|
832
|
-
),
|
|
833
|
-
title:
|
|
832
|
+
), Zn = ({
|
|
833
|
+
title: n,
|
|
834
834
|
description: l,
|
|
835
|
-
imageSrc:
|
|
836
|
-
imageElement:
|
|
835
|
+
imageSrc: s,
|
|
836
|
+
imageElement: i,
|
|
837
837
|
button: u,
|
|
838
|
-
backgroundColor:
|
|
839
|
-
onClick:
|
|
840
|
-
href:
|
|
838
|
+
backgroundColor: c = "viridian.wash",
|
|
839
|
+
onClick: f,
|
|
840
|
+
href: w,
|
|
841
841
|
linkComponent: p
|
|
842
842
|
}) => {
|
|
843
|
-
const
|
|
843
|
+
const m = p || Y, g = ge(w, !!p), T = He({
|
|
844
844
|
base: !1,
|
|
845
845
|
tablet: !1,
|
|
846
846
|
largeTablet: !1,
|
|
847
847
|
desktop: !0
|
|
848
848
|
});
|
|
849
849
|
return /* @__PURE__ */ t.jsxs(
|
|
850
|
-
|
|
850
|
+
E,
|
|
851
851
|
{
|
|
852
852
|
direction: ["row", null, null, "column"],
|
|
853
853
|
alignItems: ["center"],
|
|
854
854
|
borderRadius: "xl",
|
|
855
855
|
overflow: "hidden",
|
|
856
856
|
height: ["80px", null, null, "272px"],
|
|
857
|
-
backgroundColor:
|
|
858
|
-
onClick:
|
|
857
|
+
backgroundColor: c,
|
|
858
|
+
onClick: f,
|
|
859
859
|
"data-testid": "spotlight-card",
|
|
860
860
|
position: "relative",
|
|
861
861
|
transition: "box-shadow 0.2s ease-in-out",
|
|
@@ -869,40 +869,40 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
869
869
|
border: "1px solid",
|
|
870
870
|
borderColor: "tints.white"
|
|
871
871
|
},
|
|
872
|
-
as:
|
|
873
|
-
...
|
|
872
|
+
as: T ? E : m,
|
|
873
|
+
...T ? {} : g,
|
|
874
874
|
children: [
|
|
875
875
|
/* @__PURE__ */ t.jsx(
|
|
876
|
-
|
|
876
|
+
j,
|
|
877
877
|
{
|
|
878
878
|
width: ["72px", null, null, "100%"],
|
|
879
879
|
height: ["100%", null, null, "188px"],
|
|
880
880
|
sx: {
|
|
881
881
|
img: {
|
|
882
|
-
height:
|
|
882
|
+
height: T ? "188px" : "100%"
|
|
883
883
|
}
|
|
884
884
|
},
|
|
885
|
-
children:
|
|
886
|
-
|
|
885
|
+
children: s ? /* @__PURE__ */ t.jsx(
|
|
886
|
+
nn,
|
|
887
887
|
{
|
|
888
|
-
src:
|
|
888
|
+
src: s,
|
|
889
889
|
objectFit: "cover",
|
|
890
890
|
width: "100%",
|
|
891
891
|
alt: "",
|
|
892
892
|
"data-testid": "spotlight-card-image"
|
|
893
893
|
}
|
|
894
894
|
) : /* @__PURE__ */ t.jsx(
|
|
895
|
-
|
|
895
|
+
j,
|
|
896
896
|
{
|
|
897
897
|
height: [80, null, null, 188],
|
|
898
898
|
overflow: "hidden",
|
|
899
|
-
children:
|
|
899
|
+
children: i
|
|
900
900
|
}
|
|
901
901
|
)
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
904
|
/* @__PURE__ */ t.jsxs(
|
|
905
|
-
|
|
905
|
+
E,
|
|
906
906
|
{
|
|
907
907
|
direction: ["column", null, null, "row"],
|
|
908
908
|
justifyContent: [null, null, null, "space-between"],
|
|
@@ -916,33 +916,33 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
916
916
|
],
|
|
917
917
|
width: "100%",
|
|
918
918
|
bottom: [null, null, null, "0"],
|
|
919
|
-
backgroundColor: [null, null, null, `${
|
|
919
|
+
backgroundColor: [null, null, null, `${c}CC`],
|
|
920
920
|
backdropFilter: [null, null, null, "blur(8px)"],
|
|
921
921
|
flex: "1",
|
|
922
922
|
gap: [null, null, null, 3],
|
|
923
923
|
children: [
|
|
924
924
|
/* @__PURE__ */ t.jsxs(
|
|
925
|
-
|
|
925
|
+
E,
|
|
926
926
|
{ direction: "column", justifyContent: "center", height: "100%", children: [
|
|
927
927
|
/* @__PURE__ */ t.jsx(
|
|
928
|
-
|
|
929
|
-
{ fontSize: "lg", fontWeight: "medium", color: "tints.black", children:
|
|
928
|
+
P,
|
|
929
|
+
{ fontSize: "lg", fontWeight: "medium", color: "tints.black", children: n }
|
|
930
930
|
),
|
|
931
931
|
/* @__PURE__ */ t.jsx(
|
|
932
|
-
|
|
932
|
+
P,
|
|
933
933
|
{ fontSize: "sm", color: "tints.darkGrey", children: l }
|
|
934
934
|
)
|
|
935
935
|
] }
|
|
936
936
|
),
|
|
937
|
-
|
|
937
|
+
T ? /* @__PURE__ */ t.jsx(j, { children: u }) : null
|
|
938
938
|
]
|
|
939
939
|
}
|
|
940
940
|
)
|
|
941
941
|
]
|
|
942
942
|
}
|
|
943
943
|
);
|
|
944
|
-
},
|
|
945
|
-
|
|
944
|
+
}, pe = (n) => /* @__PURE__ */ t.jsx(
|
|
945
|
+
rn,
|
|
946
946
|
{
|
|
947
947
|
size: "sm",
|
|
948
948
|
width: ["40px", null, null, "46px"],
|
|
@@ -960,13 +960,13 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
960
960
|
backgroundColor: "tints.cream",
|
|
961
961
|
filter: "brightness(0.95)"
|
|
962
962
|
},
|
|
963
|
-
...
|
|
963
|
+
...n
|
|
964
964
|
}
|
|
965
|
-
),
|
|
966
|
-
color:
|
|
965
|
+
), Pt = ({
|
|
966
|
+
color: n = se.colors.viridian.base,
|
|
967
967
|
width: l
|
|
968
968
|
}) => /* @__PURE__ */ t.jsx(
|
|
969
|
-
|
|
969
|
+
Tn,
|
|
970
970
|
{
|
|
971
971
|
as: "svg",
|
|
972
972
|
width: l,
|
|
@@ -981,7 +981,7 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
981
981
|
{ id: "Everlywell Logo", children: /* @__PURE__ */ t.jsx(
|
|
982
982
|
"path",
|
|
983
983
|
{
|
|
984
|
-
fill:
|
|
984
|
+
fill: n,
|
|
985
985
|
id: "Everlywell Logo_2",
|
|
986
986
|
fillRule: "evenodd",
|
|
987
987
|
clipRule: "evenodd",
|
|
@@ -990,104 +990,104 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
990
990
|
) }
|
|
991
991
|
)
|
|
992
992
|
}
|
|
993
|
-
),
|
|
994
|
-
desktopTopButtons:
|
|
993
|
+
), Kn = ({
|
|
994
|
+
desktopTopButtons: n,
|
|
995
995
|
kitRegistrationElement: l,
|
|
996
|
-
profileElement:
|
|
997
|
-
cartElement:
|
|
996
|
+
profileElement: s,
|
|
997
|
+
cartElement: i,
|
|
998
998
|
onSearchClick: u,
|
|
999
|
-
onMenuClick:
|
|
1000
|
-
hasSearch:
|
|
1001
|
-
logoLink:
|
|
999
|
+
onMenuClick: c,
|
|
1000
|
+
hasSearch: f = !1,
|
|
1001
|
+
logoLink: w = "https://www.everlywell.com",
|
|
1002
1002
|
setTopOffset: p,
|
|
1003
|
-
linkComponent:
|
|
1004
|
-
onLogoClick:
|
|
1003
|
+
linkComponent: b,
|
|
1004
|
+
onLogoClick: a
|
|
1005
1005
|
}) => {
|
|
1006
|
-
const
|
|
1007
|
-
if (
|
|
1008
|
-
const g =
|
|
1006
|
+
const C = Sn(null), m = Lt(() => {
|
|
1007
|
+
if (C.current) {
|
|
1008
|
+
const g = C.current.getBoundingClientRect();
|
|
1009
1009
|
p(g.bottom);
|
|
1010
1010
|
}
|
|
1011
1011
|
}, []);
|
|
1012
|
-
return
|
|
1013
|
-
|
|
1014
|
-
}, [
|
|
1015
|
-
|
|
1012
|
+
return te(() => {
|
|
1013
|
+
m();
|
|
1014
|
+
}, [m]), /* @__PURE__ */ t.jsx(
|
|
1015
|
+
j,
|
|
1016
1016
|
{
|
|
1017
|
-
ref:
|
|
1017
|
+
ref: C,
|
|
1018
1018
|
paddingY: "4",
|
|
1019
1019
|
paddingX: [4, null, null, 12],
|
|
1020
1020
|
borderBottom: "1px solid",
|
|
1021
1021
|
borderColor: "tints.lightCream",
|
|
1022
1022
|
backgroundColor: "tints.white",
|
|
1023
1023
|
width: "100%",
|
|
1024
|
-
onMouseEnter:
|
|
1024
|
+
onMouseEnter: m,
|
|
1025
1025
|
children: /* @__PURE__ */ t.jsxs(
|
|
1026
|
-
|
|
1026
|
+
E,
|
|
1027
1027
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1028
1028
|
/* @__PURE__ */ t.jsxs(
|
|
1029
|
-
|
|
1029
|
+
E,
|
|
1030
1030
|
{ alignItems: "center", gap: "5", children: [
|
|
1031
1031
|
/* @__PURE__ */ t.jsx(
|
|
1032
|
-
|
|
1032
|
+
j,
|
|
1033
1033
|
{
|
|
1034
1034
|
"aria-label": "Go to homepage",
|
|
1035
|
-
onClick:
|
|
1036
|
-
as:
|
|
1037
|
-
...
|
|
1038
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1035
|
+
onClick: a,
|
|
1036
|
+
as: b || Y,
|
|
1037
|
+
...ge(w, !!b),
|
|
1038
|
+
children: /* @__PURE__ */ t.jsx(Pt, { width: "116px" })
|
|
1039
1039
|
}
|
|
1040
1040
|
),
|
|
1041
1041
|
/* @__PURE__ */ t.jsx(
|
|
1042
|
-
|
|
1043
|
-
{ display: ["none", null, null, "flex"], children:
|
|
1042
|
+
E,
|
|
1043
|
+
{ display: ["none", null, null, "flex"], children: n }
|
|
1044
1044
|
)
|
|
1045
1045
|
] }
|
|
1046
1046
|
),
|
|
1047
1047
|
/* @__PURE__ */ t.jsxs(
|
|
1048
|
-
|
|
1048
|
+
E,
|
|
1049
1049
|
{ alignItems: "center", gap: "2", children: [
|
|
1050
1050
|
/* @__PURE__ */ t.jsx(
|
|
1051
|
-
|
|
1051
|
+
j,
|
|
1052
1052
|
{ display: ["none", null, null, "block"], children: l }
|
|
1053
1053
|
),
|
|
1054
|
-
|
|
1055
|
-
|
|
1054
|
+
f ? /* @__PURE__ */ t.jsx(
|
|
1055
|
+
pe,
|
|
1056
1056
|
{
|
|
1057
1057
|
"aria-label": "Search",
|
|
1058
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1058
|
+
icon: /* @__PURE__ */ t.jsx(J, { as: Ot }),
|
|
1059
1059
|
onClick: u
|
|
1060
1060
|
}
|
|
1061
1061
|
) : null,
|
|
1062
|
-
|
|
1062
|
+
i,
|
|
1063
1063
|
/* @__PURE__ */ t.jsx(
|
|
1064
|
-
|
|
1064
|
+
j,
|
|
1065
1065
|
{ display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
|
|
1066
|
-
|
|
1066
|
+
pe,
|
|
1067
1067
|
{
|
|
1068
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1068
|
+
icon: /* @__PURE__ */ t.jsx(On, {}),
|
|
1069
1069
|
"aria-label": "menu",
|
|
1070
1070
|
"data-testid": "menu-button",
|
|
1071
|
-
onClick:
|
|
1071
|
+
onClick: c
|
|
1072
1072
|
}
|
|
1073
1073
|
) }
|
|
1074
1074
|
),
|
|
1075
|
-
/* @__PURE__ */ t.jsx(
|
|
1075
|
+
/* @__PURE__ */ t.jsx(j, { display: ["none", null, null, "block"], children: s })
|
|
1076
1076
|
] }
|
|
1077
1077
|
)
|
|
1078
1078
|
] }
|
|
1079
1079
|
)
|
|
1080
1080
|
}
|
|
1081
1081
|
);
|
|
1082
|
-
},
|
|
1083
|
-
count:
|
|
1082
|
+
}, Xn = ({
|
|
1083
|
+
count: n = 0,
|
|
1084
1084
|
...l
|
|
1085
1085
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1086
|
-
|
|
1086
|
+
j,
|
|
1087
1087
|
{ position: "relative", display: "inline-block", children: [
|
|
1088
|
-
/* @__PURE__ */ t.jsx(
|
|
1089
|
-
|
|
1090
|
-
|
|
1088
|
+
/* @__PURE__ */ t.jsx(pe, { icon: /* @__PURE__ */ t.jsx(An, {}), ...l }),
|
|
1089
|
+
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1090
|
+
j,
|
|
1091
1091
|
{
|
|
1092
1092
|
display: "flex",
|
|
1093
1093
|
minWidth: "20px",
|
|
@@ -1104,24 +1104,24 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1104
1104
|
color: "white",
|
|
1105
1105
|
fontSize: "xs",
|
|
1106
1106
|
fontWeight: "normal",
|
|
1107
|
-
children:
|
|
1107
|
+
children: n
|
|
1108
1108
|
}
|
|
1109
1109
|
)
|
|
1110
1110
|
] }
|
|
1111
|
-
),
|
|
1112
|
-
numDesktopLinks:
|
|
1111
|
+
), vr = ({
|
|
1112
|
+
numDesktopLinks: n = 5,
|
|
1113
1113
|
showPromoButton: l = !1
|
|
1114
1114
|
}) => /* @__PURE__ */ t.jsx(
|
|
1115
|
-
|
|
1115
|
+
ln,
|
|
1116
1116
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1117
|
-
|
|
1117
|
+
j,
|
|
1118
1118
|
{
|
|
1119
1119
|
paddingY: 4,
|
|
1120
1120
|
paddingX: 6,
|
|
1121
1121
|
borderBottomWidth: "1px",
|
|
1122
1122
|
borderColor: "tints.lightCream",
|
|
1123
1123
|
children: /* @__PURE__ */ t.jsxs(
|
|
1124
|
-
|
|
1124
|
+
E,
|
|
1125
1125
|
{ justify: "space-between", align: "center", children: [
|
|
1126
1126
|
/* @__PURE__ */ t.jsx(Ke, { w: "120px", h: "48px" }),
|
|
1127
1127
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1132,8 +1132,8 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1132
1132
|
display: ["none", null, null, "flex"],
|
|
1133
1133
|
"data-testid": "desktop-nav",
|
|
1134
1134
|
children: [
|
|
1135
|
-
Array.from({ length:
|
|
1136
|
-
(
|
|
1135
|
+
Array.from({ length: n }).map(
|
|
1136
|
+
(s, i) => /* @__PURE__ */ t.jsx(Ke, { width: "90px", height: "48px" }, i)
|
|
1137
1137
|
),
|
|
1138
1138
|
l && /* @__PURE__ */ t.jsx(Ke, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1139
1139
|
]
|
|
@@ -1143,7 +1143,7 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1143
1143
|
pt,
|
|
1144
1144
|
{ spacing: 4, ml: "auto", children: [
|
|
1145
1145
|
/* @__PURE__ */ t.jsx(
|
|
1146
|
-
|
|
1146
|
+
Me,
|
|
1147
1147
|
{
|
|
1148
1148
|
width: "120px",
|
|
1149
1149
|
height: "48px",
|
|
@@ -1152,11 +1152,11 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
),
|
|
1154
1154
|
" ",
|
|
1155
|
-
/* @__PURE__ */ t.jsx(
|
|
1155
|
+
/* @__PURE__ */ t.jsx(Me, { width: "48px", height: "48px" }),
|
|
1156
1156
|
" ",
|
|
1157
|
-
/* @__PURE__ */ t.jsx(
|
|
1157
|
+
/* @__PURE__ */ t.jsx(Me, { width: "48px", height: "48px" }),
|
|
1158
1158
|
" ",
|
|
1159
|
-
/* @__PURE__ */ t.jsx(
|
|
1159
|
+
/* @__PURE__ */ t.jsx(Me, { width: "48px", height: "48px" }),
|
|
1160
1160
|
" "
|
|
1161
1161
|
] }
|
|
1162
1162
|
)
|
|
@@ -1164,120 +1164,120 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1164
1164
|
)
|
|
1165
1165
|
}
|
|
1166
1166
|
) }
|
|
1167
|
-
),
|
|
1168
|
-
let
|
|
1169
|
-
return (...
|
|
1170
|
-
|
|
1171
|
-
|
|
1167
|
+
), Jn = (n, l) => {
|
|
1168
|
+
let s;
|
|
1169
|
+
return (...i) => {
|
|
1170
|
+
s && clearTimeout(s), s = setTimeout(() => {
|
|
1171
|
+
n(...i);
|
|
1172
1172
|
}, l);
|
|
1173
1173
|
};
|
|
1174
|
-
}, Qe = (
|
|
1175
|
-
|
|
1176
|
-
let
|
|
1174
|
+
}, Qe = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), Qn = (n, l) => {
|
|
1175
|
+
n.length < l.length && ([n, l] = [l, n]);
|
|
1176
|
+
let s = Array(l.length + 1).fill(0), i = Array(l.length + 1).fill(0);
|
|
1177
1177
|
for (let u = 0; u <= l.length; u++)
|
|
1178
|
-
|
|
1179
|
-
for (let u = 1; u <=
|
|
1180
|
-
|
|
1181
|
-
for (let
|
|
1182
|
-
const
|
|
1183
|
-
|
|
1184
|
-
|
|
1178
|
+
s[u] = u;
|
|
1179
|
+
for (let u = 1; u <= n.length; u++) {
|
|
1180
|
+
i[0] = u;
|
|
1181
|
+
for (let c = 1; c <= l.length; c++) {
|
|
1182
|
+
const f = n[u - 1] === l[c - 1] ? 0 : 1;
|
|
1183
|
+
i[c] = Math.min(
|
|
1184
|
+
i[c - 1] + 1,
|
|
1185
1185
|
// Insertion
|
|
1186
|
-
|
|
1186
|
+
s[c] + 1,
|
|
1187
1187
|
// Deletion
|
|
1188
|
-
|
|
1188
|
+
s[c - 1] + f
|
|
1189
1189
|
// Substitution
|
|
1190
1190
|
);
|
|
1191
1191
|
}
|
|
1192
|
-
[
|
|
1192
|
+
[s, i] = [i, s];
|
|
1193
1193
|
}
|
|
1194
|
-
return
|
|
1195
|
-
},
|
|
1196
|
-
if (
|
|
1197
|
-
return
|
|
1198
|
-
const
|
|
1199
|
-
return 1 -
|
|
1200
|
-
}, jt = (
|
|
1201
|
-
const
|
|
1202
|
-
return l.length <= 4 ?
|
|
1203
|
-
if (
|
|
1194
|
+
return s[l.length];
|
|
1195
|
+
}, Be = (n, l, s = 0.6) => {
|
|
1196
|
+
if (n.length <= 3 || l.length <= 3)
|
|
1197
|
+
return n.includes(l) || l.includes(n);
|
|
1198
|
+
const i = Qn(n, l), u = Math.max(n.length, l.length);
|
|
1199
|
+
return 1 - i / u >= s;
|
|
1200
|
+
}, jt = (n, l) => {
|
|
1201
|
+
const s = n.split(/\s+/);
|
|
1202
|
+
return l.length <= 4 ? s.some((i) => i.includes(l)) : s.some((i) => {
|
|
1203
|
+
if (Be(i, l))
|
|
1204
1204
|
return !0;
|
|
1205
|
-
if (
|
|
1206
|
-
for (let u = 0; u <=
|
|
1207
|
-
const
|
|
1208
|
-
if (
|
|
1205
|
+
if (i.length >= l.length)
|
|
1206
|
+
for (let u = 0; u <= i.length - l.length; u++) {
|
|
1207
|
+
const c = i.slice(u, u + l.length + 1);
|
|
1208
|
+
if (Be(l, c))
|
|
1209
1209
|
return !0;
|
|
1210
1210
|
}
|
|
1211
1211
|
return !1;
|
|
1212
1212
|
});
|
|
1213
|
-
}, tt = "nav-drawer-hover", nt = "nav-drawer-animation-start", rt = "nav-drawer-animation-end", wt = (
|
|
1213
|
+
}, tt = "nav-drawer-hover", nt = "nav-drawer-animation-start", rt = "nav-drawer-animation-end", wt = (n) => {
|
|
1214
1214
|
window.dispatchEvent(
|
|
1215
1215
|
new CustomEvent(tt, {
|
|
1216
|
-
detail: { isHovering:
|
|
1216
|
+
detail: { isHovering: n },
|
|
1217
1217
|
bubbles: !0,
|
|
1218
1218
|
cancelable: !0
|
|
1219
1219
|
})
|
|
1220
1220
|
);
|
|
1221
|
-
}, Ct = (
|
|
1221
|
+
}, Ct = (n) => {
|
|
1222
1222
|
window.dispatchEvent(
|
|
1223
|
-
new CustomEvent(
|
|
1223
|
+
new CustomEvent(n, {
|
|
1224
1224
|
bubbles: !0,
|
|
1225
1225
|
cancelable: !0
|
|
1226
1226
|
})
|
|
1227
1227
|
);
|
|
1228
|
-
},
|
|
1229
|
-
isOpen:
|
|
1228
|
+
}, qn = (n = !1, l = !1, s = !1) => n || !l ? "column" : s ? "row" : "row-reverse", er = lt(St), tr = lt(_t), qe = ({
|
|
1229
|
+
isOpen: n = !1,
|
|
1230
1230
|
onClose: l,
|
|
1231
|
-
title:
|
|
1232
|
-
navDrawerLinks:
|
|
1231
|
+
title: s,
|
|
1232
|
+
navDrawerLinks: i,
|
|
1233
1233
|
bottomNavButtons: u,
|
|
1234
|
-
spotlightCards:
|
|
1235
|
-
bottomButton:
|
|
1236
|
-
hasBackButton:
|
|
1234
|
+
spotlightCards: c,
|
|
1235
|
+
bottomButton: f,
|
|
1236
|
+
hasBackButton: w = !0,
|
|
1237
1237
|
onBackClick: p,
|
|
1238
|
-
hasOnlySpotlightCards:
|
|
1239
|
-
hasSearch:
|
|
1240
|
-
onSearch:
|
|
1241
|
-
topOffset:
|
|
1238
|
+
hasOnlySpotlightCards: b = !1,
|
|
1239
|
+
hasSearch: a = !1,
|
|
1240
|
+
onSearch: C = () => ({}),
|
|
1241
|
+
topOffset: m
|
|
1242
1242
|
}) => {
|
|
1243
|
-
var
|
|
1244
|
-
const g =
|
|
1243
|
+
var W, U;
|
|
1244
|
+
const g = He({
|
|
1245
1245
|
base: !1,
|
|
1246
1246
|
tablet: !1,
|
|
1247
1247
|
largeTablet: !1,
|
|
1248
1248
|
desktop: !0
|
|
1249
|
-
}),
|
|
1250
|
-
|
|
1251
|
-
},
|
|
1252
|
-
|
|
1253
|
-
|
|
1249
|
+
}), T = g ? "top" : "right", [G, Q] = K(0), [O, _] = K(!1), X = () => {
|
|
1250
|
+
Q((L) => L + 1);
|
|
1251
|
+
}, A = Lt(
|
|
1252
|
+
Jn((L) => {
|
|
1253
|
+
C(L), X();
|
|
1254
1254
|
}, 100),
|
|
1255
1255
|
[]
|
|
1256
1256
|
);
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
}, [
|
|
1260
|
-
const
|
|
1261
|
-
|
|
1257
|
+
te(() => {
|
|
1258
|
+
n && (_(!0), Ct(nt));
|
|
1259
|
+
}, [n]);
|
|
1260
|
+
const $ = () => {
|
|
1261
|
+
n || (_(!1), l()), Ct(rt);
|
|
1262
1262
|
};
|
|
1263
1263
|
return /* @__PURE__ */ t.jsx(
|
|
1264
|
-
|
|
1264
|
+
Tt,
|
|
1265
1265
|
{
|
|
1266
|
-
isOpen: O ||
|
|
1266
|
+
isOpen: O || n,
|
|
1267
1267
|
onClose: () => {
|
|
1268
1268
|
O && g || l();
|
|
1269
1269
|
},
|
|
1270
|
-
placement:
|
|
1270
|
+
placement: T,
|
|
1271
1271
|
blockScrollOnMount: !1,
|
|
1272
1272
|
autoFocus: !1,
|
|
1273
1273
|
...g ? {
|
|
1274
1274
|
styleConfig: {
|
|
1275
1275
|
baseStyle: {
|
|
1276
|
-
...
|
|
1276
|
+
...se.components.Drawer.baseStyle,
|
|
1277
1277
|
dialogContainer: {
|
|
1278
|
-
...(
|
|
1278
|
+
...(U = (W = se.components.Drawer) == null ? void 0 : W.baseStyle) == null ? void 0 : U.dialogContainer,
|
|
1279
1279
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1280
|
-
top: g ? `${
|
|
1280
|
+
top: g ? `${m}px` : void 0,
|
|
1281
1281
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
1282
1282
|
zIndex: ["overlay"]
|
|
1283
1283
|
}
|
|
@@ -1285,15 +1285,15 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
} : {},
|
|
1287
1287
|
children: /* @__PURE__ */ t.jsx(
|
|
1288
|
-
|
|
1289
|
-
{ children:
|
|
1288
|
+
Vn,
|
|
1289
|
+
{ children: n ? /* @__PURE__ */ t.jsxs(
|
|
1290
1290
|
t.Fragment,
|
|
1291
1291
|
{ children: [
|
|
1292
1292
|
/* @__PURE__ */ t.jsx(
|
|
1293
|
-
|
|
1293
|
+
tr,
|
|
1294
1294
|
{
|
|
1295
1295
|
backgroundColor: "tints.black",
|
|
1296
|
-
top: ["0", null, null, `${
|
|
1296
|
+
top: ["0", null, null, `${m}px`],
|
|
1297
1297
|
opacity: g ? void 0 : "0.4 !important",
|
|
1298
1298
|
...g ? {
|
|
1299
1299
|
initial: { opacity: 0 },
|
|
@@ -1308,17 +1308,17 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
),
|
|
1310
1310
|
/* @__PURE__ */ t.jsxs(
|
|
1311
|
-
|
|
1311
|
+
er,
|
|
1312
1312
|
{
|
|
1313
1313
|
onClick: (L) => {
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1314
|
+
const B = L.target.closest("a");
|
|
1315
|
+
B && B.href === window.location.href && l();
|
|
1316
1316
|
},
|
|
1317
1317
|
onMouseEnter: () => {
|
|
1318
1318
|
g && wt(!0);
|
|
1319
1319
|
},
|
|
1320
1320
|
onMouseLeave: (L) => {
|
|
1321
|
-
g && (!
|
|
1321
|
+
g && (!a || a && (L.target === L.currentTarget || !L.currentTarget.contains(L.target) && !O)) && wt(!1);
|
|
1322
1322
|
},
|
|
1323
1323
|
paddingTop: "4",
|
|
1324
1324
|
paddingX: [4, null, null, 12],
|
|
@@ -1326,8 +1326,8 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1326
1326
|
overflow: ["auto", null, null, "hidden"],
|
|
1327
1327
|
maxHeight: "100vh",
|
|
1328
1328
|
position: "relative",
|
|
1329
|
-
top: g ? `${
|
|
1330
|
-
onAnimationComplete:
|
|
1329
|
+
top: g ? `${m}px !important` : void 0,
|
|
1330
|
+
onAnimationComplete: $,
|
|
1331
1331
|
boxShadow: "none",
|
|
1332
1332
|
...g ? {
|
|
1333
1333
|
initial: { height: 0, opacity: 0 },
|
|
@@ -1336,24 +1336,24 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1336
1336
|
transition: { duration: 0.3 }
|
|
1337
1337
|
} : {},
|
|
1338
1338
|
children: [
|
|
1339
|
-
!
|
|
1340
|
-
|
|
1339
|
+
!a && g ? null : /* @__PURE__ */ t.jsxs(
|
|
1340
|
+
kt,
|
|
1341
1341
|
{
|
|
1342
1342
|
padding: "0",
|
|
1343
|
-
flexDirection:
|
|
1344
|
-
gap:
|
|
1343
|
+
flexDirection: a ? "column" : "row",
|
|
1344
|
+
gap: a ? "4" : "0",
|
|
1345
1345
|
children: [
|
|
1346
1346
|
g ? null : /* @__PURE__ */ t.jsxs(
|
|
1347
|
-
|
|
1347
|
+
E,
|
|
1348
1348
|
{
|
|
1349
1349
|
width: "100%",
|
|
1350
1350
|
justifyContent: "space-between",
|
|
1351
1351
|
alignItems: "center",
|
|
1352
1352
|
children: [
|
|
1353
|
-
|
|
1354
|
-
|
|
1353
|
+
w ? /* @__PURE__ */ t.jsx(
|
|
1354
|
+
pe,
|
|
1355
1355
|
{
|
|
1356
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1356
|
+
icon: /* @__PURE__ */ t.jsx(Pn, {}),
|
|
1357
1357
|
onClick: () => {
|
|
1358
1358
|
p && p();
|
|
1359
1359
|
},
|
|
@@ -1361,17 +1361,17 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
) : null,
|
|
1363
1363
|
/* @__PURE__ */ t.jsx(
|
|
1364
|
-
|
|
1364
|
+
P,
|
|
1365
1365
|
{
|
|
1366
1366
|
color: "tints.uiGrey",
|
|
1367
1367
|
fontSize: ["xl", null, null, "lg"],
|
|
1368
|
-
children:
|
|
1368
|
+
children: s
|
|
1369
1369
|
}
|
|
1370
1370
|
),
|
|
1371
1371
|
/* @__PURE__ */ t.jsx(
|
|
1372
|
-
|
|
1372
|
+
pe,
|
|
1373
1373
|
{
|
|
1374
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1374
|
+
icon: /* @__PURE__ */ t.jsx(At, {}),
|
|
1375
1375
|
onClick: l,
|
|
1376
1376
|
"aria-label": "Close"
|
|
1377
1377
|
}
|
|
@@ -1379,14 +1379,14 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1379
1379
|
]
|
|
1380
1380
|
}
|
|
1381
1381
|
),
|
|
1382
|
-
|
|
1383
|
-
|
|
1382
|
+
a && /* @__PURE__ */ t.jsxs(
|
|
1383
|
+
kn,
|
|
1384
1384
|
{ width: "100%", children: [
|
|
1385
1385
|
/* @__PURE__ */ t.jsx(
|
|
1386
|
-
|
|
1386
|
+
Dn,
|
|
1387
1387
|
{
|
|
1388
1388
|
onChange: (L) => {
|
|
1389
|
-
|
|
1389
|
+
A(L.target.value);
|
|
1390
1390
|
},
|
|
1391
1391
|
placeholder: "Search",
|
|
1392
1392
|
autoFocus: !0,
|
|
@@ -1395,8 +1395,8 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
),
|
|
1397
1397
|
/* @__PURE__ */ t.jsx(
|
|
1398
|
-
|
|
1399
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(
|
|
1398
|
+
In,
|
|
1399
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Ln, { as: Ot, color: "gray.500" }) }
|
|
1400
1400
|
)
|
|
1401
1401
|
] }
|
|
1402
1402
|
)
|
|
@@ -1404,11 +1404,11 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
),
|
|
1406
1406
|
/* @__PURE__ */ t.jsx(
|
|
1407
|
-
|
|
1407
|
+
Dt,
|
|
1408
1408
|
{
|
|
1409
1409
|
paddingX: "0",
|
|
1410
1410
|
paddingBottom: [6, null, null, 4],
|
|
1411
|
-
"data-testid": `navbar-drawer-body-${
|
|
1411
|
+
"data-testid": `navbar-drawer-body-${s.toLowerCase()}`,
|
|
1412
1412
|
children: /* @__PURE__ */ t.jsxs(
|
|
1413
1413
|
lt.div,
|
|
1414
1414
|
{
|
|
@@ -1429,17 +1429,17 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1429
1429
|
} : {},
|
|
1430
1430
|
style: {
|
|
1431
1431
|
display: "flex",
|
|
1432
|
-
flexDirection:
|
|
1433
|
-
|
|
1432
|
+
flexDirection: qn(
|
|
1433
|
+
b,
|
|
1434
1434
|
g,
|
|
1435
|
-
|
|
1435
|
+
a
|
|
1436
1436
|
),
|
|
1437
1437
|
gap: "24px",
|
|
1438
1438
|
justifyContent: "space-between"
|
|
1439
1439
|
},
|
|
1440
1440
|
children: [
|
|
1441
|
-
|
|
1442
|
-
|
|
1441
|
+
c ? /* @__PURE__ */ t.jsx(
|
|
1442
|
+
j,
|
|
1443
1443
|
{
|
|
1444
1444
|
gap: [3, null, null, 6],
|
|
1445
1445
|
display: "flex",
|
|
@@ -1448,26 +1448,26 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1448
1448
|
flexWrap: "wrap",
|
|
1449
1449
|
flexDirection: ["column", null, null, "row"]
|
|
1450
1450
|
},
|
|
1451
|
-
children:
|
|
1451
|
+
children: c
|
|
1452
1452
|
}
|
|
1453
1453
|
) : null,
|
|
1454
1454
|
/* @__PURE__ */ t.jsxs(
|
|
1455
|
-
|
|
1455
|
+
E,
|
|
1456
1456
|
{
|
|
1457
1457
|
position: [null, null, null, "relative"],
|
|
1458
1458
|
flexDirection: "column",
|
|
1459
1459
|
gap: "6",
|
|
1460
|
-
width: ["100%", null, null,
|
|
1460
|
+
width: ["100%", null, null, a ? null : "auto"],
|
|
1461
1461
|
children: [
|
|
1462
|
-
|
|
1463
|
-
u && !g ? /* @__PURE__ */ t.jsx(
|
|
1464
|
-
|
|
1465
|
-
|
|
1462
|
+
i ? /* @__PURE__ */ t.jsx(j, { children: i }) : null,
|
|
1463
|
+
u && !g ? /* @__PURE__ */ t.jsx(j, { children: u }) : null,
|
|
1464
|
+
f ? /* @__PURE__ */ t.jsx(
|
|
1465
|
+
j,
|
|
1466
1466
|
{
|
|
1467
1467
|
width: ["100%"],
|
|
1468
1468
|
position: [null, null, null, "absolute"],
|
|
1469
1469
|
bottom: [null, null, null, 0],
|
|
1470
|
-
children:
|
|
1470
|
+
children: f
|
|
1471
1471
|
}
|
|
1472
1472
|
) : null
|
|
1473
1473
|
]
|
|
@@ -1475,7 +1475,7 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1475
1475
|
)
|
|
1476
1476
|
]
|
|
1477
1477
|
},
|
|
1478
|
-
|
|
1478
|
+
G
|
|
1479
1479
|
)
|
|
1480
1480
|
}
|
|
1481
1481
|
)
|
|
@@ -1487,156 +1487,156 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1487
1487
|
)
|
|
1488
1488
|
}
|
|
1489
1489
|
);
|
|
1490
|
-
},
|
|
1491
|
-
source:
|
|
1490
|
+
}, nr = ({
|
|
1491
|
+
source: n,
|
|
1492
1492
|
onSearchCallback: l,
|
|
1493
|
-
isActive:
|
|
1493
|
+
isActive: s
|
|
1494
1494
|
}) => {
|
|
1495
|
-
const [
|
|
1496
|
-
if (!
|
|
1497
|
-
const g = Qe(
|
|
1498
|
-
return
|
|
1499
|
-
const
|
|
1500
|
-
if (g.some((
|
|
1501
|
-
const O =
|
|
1502
|
-
const
|
|
1503
|
-
return jt(
|
|
1495
|
+
const [i, u] = K(""), [c, f] = K([]), w = (a, C) => {
|
|
1496
|
+
if (!a) return [];
|
|
1497
|
+
const g = Qe(a).split(/\s+/);
|
|
1498
|
+
return C.filter((T) => {
|
|
1499
|
+
const G = Qe(T.label);
|
|
1500
|
+
if (g.some((A) => jt(G, A))) return !0;
|
|
1501
|
+
const O = G.split(/\s+/), _ = g.some((A) => O.some(($) => $.includes(A) || Be(A, $))), X = typeof T.additionalContent == "string" && g.some((A) => {
|
|
1502
|
+
const $ = Qe(T.additionalContent);
|
|
1503
|
+
return jt($, A) || $.split(/\s+/).some((W) => W.includes(A) || Be(A, W));
|
|
1504
1504
|
});
|
|
1505
|
-
return
|
|
1506
|
-
}).sort((
|
|
1507
|
-
}, p = (
|
|
1508
|
-
if (u(
|
|
1509
|
-
|
|
1505
|
+
return _ || X;
|
|
1506
|
+
}).sort((T, G) => T.label.localeCompare(G.label));
|
|
1507
|
+
}, p = (a) => {
|
|
1508
|
+
if (u(a), !a) {
|
|
1509
|
+
f([]);
|
|
1510
1510
|
return;
|
|
1511
1511
|
}
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
},
|
|
1515
|
-
u(""),
|
|
1512
|
+
const C = w(a, n);
|
|
1513
|
+
f(C), l && l(a, C);
|
|
1514
|
+
}, b = () => {
|
|
1515
|
+
u(""), f([]);
|
|
1516
1516
|
};
|
|
1517
|
-
return
|
|
1518
|
-
|
|
1519
|
-
}, [
|
|
1520
|
-
query:
|
|
1521
|
-
results:
|
|
1522
|
-
handleClose:
|
|
1517
|
+
return te(() => {
|
|
1518
|
+
s || (u(""), f([]));
|
|
1519
|
+
}, [s]), {
|
|
1520
|
+
query: i,
|
|
1521
|
+
results: c,
|
|
1522
|
+
handleClose: b,
|
|
1523
1523
|
handleSearch: p
|
|
1524
1524
|
};
|
|
1525
|
-
},
|
|
1525
|
+
}, rr = (n) => {
|
|
1526
1526
|
const l = /* @__PURE__ */ new Set();
|
|
1527
|
-
return
|
|
1528
|
-
var
|
|
1529
|
-
const u = ((
|
|
1530
|
-
const p =
|
|
1531
|
-
return [...
|
|
1527
|
+
return n.reduce((s, i) => {
|
|
1528
|
+
var c;
|
|
1529
|
+
const u = ((c = i.sections) == null ? void 0 : c.reduce((f, w) => {
|
|
1530
|
+
const p = w.links.filter((b) => l.has(b.label) || b.isSearchable !== !0 ? !1 : (l.add(b.label), !0));
|
|
1531
|
+
return [...f, ...p];
|
|
1532
1532
|
}, [])) ?? [];
|
|
1533
|
-
return [...
|
|
1533
|
+
return [...s, ...u];
|
|
1534
1534
|
}, []);
|
|
1535
|
-
},
|
|
1536
|
-
categories:
|
|
1535
|
+
}, mr = ({
|
|
1536
|
+
categories: n = [],
|
|
1537
1537
|
onCartClick: l,
|
|
1538
|
-
mainCategoryLabel:
|
|
1539
|
-
logoLink:
|
|
1538
|
+
mainCategoryLabel: s = "Menu",
|
|
1539
|
+
logoLink: i = "https://www.everlywell.com",
|
|
1540
1540
|
hasSearch: u = !0,
|
|
1541
|
-
onSearchClick:
|
|
1542
|
-
registrationUrl:
|
|
1543
|
-
profileUrl:
|
|
1541
|
+
onSearchClick: c,
|
|
1542
|
+
registrationUrl: f,
|
|
1543
|
+
profileUrl: w = "https://secure.everlywell.com/login",
|
|
1544
1544
|
mobileBottomButtons: p = [],
|
|
1545
|
-
numberOfCartItems:
|
|
1546
|
-
linkComponent:
|
|
1547
|
-
onSearchCallback:
|
|
1548
|
-
onLinkClick:
|
|
1545
|
+
numberOfCartItems: b = 0,
|
|
1546
|
+
linkComponent: a,
|
|
1547
|
+
onSearchCallback: C,
|
|
1548
|
+
onLinkClick: m,
|
|
1549
1549
|
onCategoryOpen: g,
|
|
1550
|
-
onMobileMenuOpen:
|
|
1551
|
-
onBackToMainMenu:
|
|
1552
|
-
onRegisterKitClick:
|
|
1550
|
+
onMobileMenuOpen: T,
|
|
1551
|
+
onBackToMainMenu: G,
|
|
1552
|
+
onRegisterKitClick: Q,
|
|
1553
1553
|
onProfileClick: O,
|
|
1554
|
-
onLogoClick:
|
|
1555
|
-
shopAllProductsUrl:
|
|
1556
|
-
onShopAllProductsClick:
|
|
1554
|
+
onLogoClick: _,
|
|
1555
|
+
shopAllProductsUrl: X,
|
|
1556
|
+
onShopAllProductsClick: A
|
|
1557
1557
|
}) => {
|
|
1558
|
-
var
|
|
1559
|
-
const [
|
|
1560
|
-
|
|
1561
|
-
const d = () =>
|
|
1562
|
-
return window.addEventListener(nt, d), window.addEventListener(rt,
|
|
1558
|
+
var Ce, oe, Ae;
|
|
1559
|
+
const [$, W] = K(!1), [U, L] = K(!1), [S, B] = K(null), [Se, xe] = K(!1), [z, q] = K(!1), [ee, _e] = K(0), [Te, ve] = K(!1);
|
|
1560
|
+
te(() => {
|
|
1561
|
+
const d = () => ve(!0), k = () => ve(!1);
|
|
1562
|
+
return window.addEventListener(nt, d), window.addEventListener(rt, k), () => {
|
|
1563
1563
|
window.removeEventListener(
|
|
1564
1564
|
nt,
|
|
1565
1565
|
d
|
|
1566
|
-
), window.removeEventListener(rt,
|
|
1566
|
+
), window.removeEventListener(rt, k);
|
|
1567
1567
|
};
|
|
1568
1568
|
}, []);
|
|
1569
|
-
const ke =
|
|
1569
|
+
const ke = He({
|
|
1570
1570
|
base: !1,
|
|
1571
1571
|
tablet: !1,
|
|
1572
1572
|
largeTablet: !1,
|
|
1573
1573
|
desktop: !0
|
|
1574
1574
|
}) ?? !1;
|
|
1575
|
-
|
|
1576
|
-
|
|
1575
|
+
te(() => {
|
|
1576
|
+
ne(), B(null);
|
|
1577
1577
|
}, [ke]);
|
|
1578
1578
|
const {
|
|
1579
1579
|
query: De,
|
|
1580
|
-
results:
|
|
1580
|
+
results: ce,
|
|
1581
1581
|
handleSearch: Ie
|
|
1582
|
-
} =
|
|
1583
|
-
source:
|
|
1584
|
-
onSearchCallback:
|
|
1585
|
-
isActive:
|
|
1586
|
-
}),
|
|
1587
|
-
|
|
1588
|
-
{ gap:
|
|
1589
|
-
|
|
1590
|
-
|
|
1582
|
+
} = nr({
|
|
1583
|
+
source: rr(n),
|
|
1584
|
+
onSearchCallback: C,
|
|
1585
|
+
isActive: U
|
|
1586
|
+
}), me = ce.length > 0, be = a || Y, Fe = ge(X, !!a), je = De && /* @__PURE__ */ t.jsxs(
|
|
1587
|
+
E,
|
|
1588
|
+
{ gap: me ? "6" : 0, direction: "column", children: [
|
|
1589
|
+
me ? /* @__PURE__ */ t.jsx(P, { color: "tints.uiGrey", children: `${ce.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1590
|
+
E,
|
|
1591
1591
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1592
1592
|
/* @__PURE__ */ t.jsx(
|
|
1593
|
-
|
|
1593
|
+
P,
|
|
1594
1594
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1595
1595
|
),
|
|
1596
1596
|
/* @__PURE__ */ t.jsx(
|
|
1597
1597
|
Rt,
|
|
1598
1598
|
{
|
|
1599
|
-
as:
|
|
1600
|
-
onClick:
|
|
1599
|
+
as: be,
|
|
1600
|
+
onClick: A,
|
|
1601
1601
|
_hover: { textDecoration: "none" },
|
|
1602
1602
|
width: ["100%", null, null, "auto"],
|
|
1603
|
-
...
|
|
1603
|
+
...Fe,
|
|
1604
1604
|
children: "Shop all products"
|
|
1605
1605
|
}
|
|
1606
1606
|
)
|
|
1607
1607
|
] }
|
|
1608
1608
|
),
|
|
1609
1609
|
/* @__PURE__ */ t.jsx(
|
|
1610
|
-
|
|
1611
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1612
|
-
(d,
|
|
1613
|
-
|
|
1610
|
+
on,
|
|
1611
|
+
{ columns: [1, 1, 1, 4], children: ce.map(
|
|
1612
|
+
(d, k) => /* @__PURE__ */ t.jsx(
|
|
1613
|
+
an,
|
|
1614
1614
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1615
1615
|
Je,
|
|
1616
1616
|
{
|
|
1617
1617
|
href: d.href,
|
|
1618
1618
|
label: d.label,
|
|
1619
1619
|
additionalContent: d == null ? void 0 : d.additionalContent,
|
|
1620
|
-
linkComponent:
|
|
1620
|
+
linkComponent: a
|
|
1621
1621
|
}
|
|
1622
1622
|
) },
|
|
1623
|
-
`${d.label}-${
|
|
1623
|
+
`${d.label}-${k}`
|
|
1624
1624
|
)
|
|
1625
1625
|
) }
|
|
1626
1626
|
)
|
|
1627
1627
|
] }
|
|
1628
|
-
),
|
|
1629
|
-
|
|
1630
|
-
},
|
|
1631
|
-
|
|
1628
|
+
), ne = () => {
|
|
1629
|
+
W(!1), B(null);
|
|
1630
|
+
}, Z = (d) => "href" in d, we = (d) => {
|
|
1631
|
+
Z(d) ? m == null || m(d.label) : B(d);
|
|
1632
1632
|
}, ue = (d) => {
|
|
1633
|
-
|
|
1633
|
+
xe(!0), L(!1), B(null), !Z(d) && (d.sections || d.spotlightCards) && B(d);
|
|
1634
1634
|
}, We = () => {
|
|
1635
|
-
|
|
1635
|
+
xe(!1);
|
|
1636
1636
|
};
|
|
1637
|
-
|
|
1638
|
-
const d = (
|
|
1639
|
-
|
|
1637
|
+
te(() => {
|
|
1638
|
+
const d = (k) => {
|
|
1639
|
+
q(k.detail.isHovering);
|
|
1640
1640
|
};
|
|
1641
1641
|
return window.addEventListener(
|
|
1642
1642
|
tt,
|
|
@@ -1647,44 +1647,44 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1647
1647
|
d
|
|
1648
1648
|
);
|
|
1649
1649
|
};
|
|
1650
|
-
}, []),
|
|
1651
|
-
!
|
|
1652
|
-
}, [
|
|
1650
|
+
}, []), te(() => {
|
|
1651
|
+
!Se && !z && (B(null), L(!1));
|
|
1652
|
+
}, [Se, z]), te(() => {
|
|
1653
1653
|
let d = window.location.href;
|
|
1654
|
-
const
|
|
1655
|
-
const
|
|
1656
|
-
|
|
1657
|
-
}, H = setInterval(
|
|
1658
|
-
return window.addEventListener("popstate",
|
|
1659
|
-
window.removeEventListener("popstate",
|
|
1654
|
+
const k = () => {
|
|
1655
|
+
const N = window.location.href;
|
|
1656
|
+
N !== d && (d = N, ne(), B(null));
|
|
1657
|
+
}, H = setInterval(k, 100);
|
|
1658
|
+
return window.addEventListener("popstate", k), () => {
|
|
1659
|
+
window.removeEventListener("popstate", k), clearInterval(H);
|
|
1660
1660
|
};
|
|
1661
1661
|
}, []);
|
|
1662
|
-
const Le =
|
|
1663
|
-
(d,
|
|
1664
|
-
|
|
1662
|
+
const Le = n == null ? void 0 : n.map(
|
|
1663
|
+
(d, k) => /* @__PURE__ */ t.jsx(
|
|
1664
|
+
$e,
|
|
1665
1665
|
{
|
|
1666
1666
|
onMouseEnter: () => {
|
|
1667
1667
|
ue(d), g == null || g(d.label);
|
|
1668
1668
|
},
|
|
1669
1669
|
onMouseLeave: We,
|
|
1670
|
-
isSelected: (
|
|
1671
|
-
as:
|
|
1672
|
-
href:
|
|
1673
|
-
onClick:
|
|
1670
|
+
isSelected: (S == null ? void 0 : S.label) === d.label,
|
|
1671
|
+
as: Z(d) && be ? be : Y,
|
|
1672
|
+
href: Z(d) ? d.href : void 0,
|
|
1673
|
+
onClick: Z(d) ? () => m == null ? void 0 : m(d.label) : void 0,
|
|
1674
1674
|
...d.buttonProps,
|
|
1675
1675
|
children: d.label
|
|
1676
1676
|
},
|
|
1677
|
-
`${d.label}-${
|
|
1677
|
+
`${d.label}-${k}`
|
|
1678
1678
|
)
|
|
1679
|
-
), ze = (
|
|
1680
|
-
(d) => !
|
|
1681
|
-
)) == null ? void 0 :
|
|
1679
|
+
), ze = (Ce = n.filter(
|
|
1680
|
+
(d) => !Z(d) && d.isMobileTopLink !== !1
|
|
1681
|
+
)) == null ? void 0 : Ce.map((d, k) => {
|
|
1682
1682
|
const H = d;
|
|
1683
1683
|
return /* @__PURE__ */ t.jsx(
|
|
1684
|
-
|
|
1684
|
+
j,
|
|
1685
1685
|
{
|
|
1686
1686
|
onClick: () => {
|
|
1687
|
-
|
|
1687
|
+
we(H), g == null || g(H.label);
|
|
1688
1688
|
},
|
|
1689
1689
|
children: /* @__PURE__ */ t.jsx(
|
|
1690
1690
|
Je,
|
|
@@ -1693,69 +1693,69 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1693
1693
|
role: "link",
|
|
1694
1694
|
additionalContent: H.additionalContent,
|
|
1695
1695
|
mainTextFontSize: "3xl",
|
|
1696
|
-
linkComponent:
|
|
1696
|
+
linkComponent: a
|
|
1697
1697
|
}
|
|
1698
1698
|
)
|
|
1699
1699
|
},
|
|
1700
|
-
`${H.label}-${
|
|
1700
|
+
`${H.label}-${k}`
|
|
1701
1701
|
);
|
|
1702
1702
|
}), Ne = /* @__PURE__ */ t.jsxs(
|
|
1703
1703
|
t.Fragment,
|
|
1704
1704
|
{ children: [
|
|
1705
1705
|
/* @__PURE__ */ t.jsx(
|
|
1706
|
-
|
|
1706
|
+
$e,
|
|
1707
1707
|
{
|
|
1708
|
-
as:
|
|
1709
|
-
href:
|
|
1708
|
+
as: Y,
|
|
1709
|
+
href: w,
|
|
1710
1710
|
width: "100%",
|
|
1711
1711
|
backgroundColor: "tints.cream",
|
|
1712
1712
|
onClick: O,
|
|
1713
1713
|
children: /* @__PURE__ */ t.jsxs(
|
|
1714
|
-
|
|
1714
|
+
E,
|
|
1715
1715
|
{ gap: "2", children: [
|
|
1716
1716
|
"My Everly",
|
|
1717
|
-
/* @__PURE__ */ t.jsx(
|
|
1717
|
+
/* @__PURE__ */ t.jsx(J, { as: xt, size: 24 })
|
|
1718
1718
|
] }
|
|
1719
1719
|
)
|
|
1720
1720
|
},
|
|
1721
1721
|
"my-everly"
|
|
1722
1722
|
),
|
|
1723
1723
|
/* @__PURE__ */ t.jsx(
|
|
1724
|
-
|
|
1724
|
+
$e,
|
|
1725
1725
|
{
|
|
1726
|
-
as:
|
|
1726
|
+
as: Y,
|
|
1727
1727
|
width: "100%",
|
|
1728
|
-
href:
|
|
1728
|
+
href: f,
|
|
1729
1729
|
backgroundColor: "tints.cream",
|
|
1730
|
-
onClick:
|
|
1730
|
+
onClick: Q,
|
|
1731
1731
|
children: /* @__PURE__ */ t.jsxs(
|
|
1732
|
-
|
|
1732
|
+
E,
|
|
1733
1733
|
{ gap: "2", children: [
|
|
1734
1734
|
"Register kit",
|
|
1735
|
-
/* @__PURE__ */ t.jsx(
|
|
1735
|
+
/* @__PURE__ */ t.jsx(J, { as: Mn, size: 24 })
|
|
1736
1736
|
] }
|
|
1737
1737
|
)
|
|
1738
1738
|
},
|
|
1739
1739
|
"register-kit"
|
|
1740
1740
|
)
|
|
1741
1741
|
] }
|
|
1742
|
-
),
|
|
1743
|
-
|
|
1742
|
+
), de = /* @__PURE__ */ t.jsxs(
|
|
1743
|
+
E,
|
|
1744
1744
|
{ gap: "2", flexDirection: "column", children: [
|
|
1745
1745
|
p,
|
|
1746
1746
|
Ne
|
|
1747
1747
|
] }
|
|
1748
|
-
), le =
|
|
1749
|
-
|
|
1750
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (
|
|
1748
|
+
), le = S ? /* @__PURE__ */ t.jsx(
|
|
1749
|
+
E,
|
|
1750
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (oe = S == null ? void 0 : S.sections) == null ? void 0 : oe.map((d, k) => {
|
|
1751
1751
|
const H = [];
|
|
1752
|
-
for (let
|
|
1753
|
-
H.push(d.links.slice(
|
|
1752
|
+
for (let N = 0; N < d.links.length; N += 3)
|
|
1753
|
+
H.push(d.links.slice(N, N + 3));
|
|
1754
1754
|
return /* @__PURE__ */ t.jsxs(
|
|
1755
|
-
|
|
1755
|
+
j,
|
|
1756
1756
|
{ children: [
|
|
1757
1757
|
/* @__PURE__ */ t.jsx(
|
|
1758
|
-
|
|
1758
|
+
P,
|
|
1759
1759
|
{
|
|
1760
1760
|
fontSize: "md",
|
|
1761
1761
|
color: "tints.uiGrey",
|
|
@@ -1764,28 +1764,28 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
),
|
|
1766
1766
|
/* @__PURE__ */ t.jsx(
|
|
1767
|
-
|
|
1767
|
+
E,
|
|
1768
1768
|
{
|
|
1769
1769
|
flexDirection: ["column", null, null, "row"],
|
|
1770
1770
|
gap: [null, null, null, 8],
|
|
1771
1771
|
children: H == null ? void 0 : H.map(
|
|
1772
|
-
(
|
|
1773
|
-
|
|
1772
|
+
(N, Pe) => /* @__PURE__ */ t.jsx(
|
|
1773
|
+
E,
|
|
1774
1774
|
{
|
|
1775
1775
|
flexDirection: ["column"],
|
|
1776
1776
|
gap: [null, null, null, 5],
|
|
1777
1777
|
marginLeft: [null, null, null, -2],
|
|
1778
|
-
children:
|
|
1779
|
-
(
|
|
1778
|
+
children: N == null ? void 0 : N.map(
|
|
1779
|
+
(re, ie) => /* @__PURE__ */ t.jsx(
|
|
1780
1780
|
Je,
|
|
1781
1781
|
{
|
|
1782
|
-
label:
|
|
1783
|
-
href:
|
|
1784
|
-
additionalContent:
|
|
1785
|
-
linkComponent:
|
|
1786
|
-
onClick: () =>
|
|
1782
|
+
label: re.label,
|
|
1783
|
+
href: re.href,
|
|
1784
|
+
additionalContent: re.additionalContent,
|
|
1785
|
+
linkComponent: a,
|
|
1786
|
+
onClick: () => m == null ? void 0 : m(re.label)
|
|
1787
1787
|
},
|
|
1788
|
-
`${
|
|
1788
|
+
`${re.label}-${ie}`
|
|
1789
1789
|
)
|
|
1790
1790
|
)
|
|
1791
1791
|
},
|
|
@@ -1795,14 +1795,14 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
)
|
|
1797
1797
|
] },
|
|
1798
|
-
`${d.title}-${
|
|
1798
|
+
`${d.title}-${k}`
|
|
1799
1799
|
);
|
|
1800
1800
|
}) }
|
|
1801
|
-
) : null,
|
|
1802
|
-
(d,
|
|
1803
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1801
|
+
) : null, Oe = S != null && S.spotlightCards ? (Ae = S.spotlightCards) == null ? void 0 : Ae.map(
|
|
1802
|
+
(d, k) => /* @__PURE__ */ t.jsx(Zn, { ...d }, `${d.title}-${k}`)
|
|
1803
|
+
) : /* @__PURE__ */ t.jsx(j, {});
|
|
1804
1804
|
return /* @__PURE__ */ t.jsxs(
|
|
1805
|
-
|
|
1805
|
+
j,
|
|
1806
1806
|
{
|
|
1807
1807
|
as: "nav",
|
|
1808
1808
|
"aria-label": "Main navigation",
|
|
@@ -1812,86 +1812,86 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1812
1812
|
zIndex: ["sticky", null, null, Te ? "modal" : "sticky"],
|
|
1813
1813
|
children: [
|
|
1814
1814
|
/* @__PURE__ */ t.jsx(
|
|
1815
|
-
|
|
1815
|
+
Kn,
|
|
1816
1816
|
{
|
|
1817
1817
|
desktopTopButtons: Le,
|
|
1818
1818
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1819
|
-
|
|
1819
|
+
$e,
|
|
1820
1820
|
{
|
|
1821
|
-
as:
|
|
1822
|
-
href:
|
|
1823
|
-
onClick:
|
|
1821
|
+
as: Y,
|
|
1822
|
+
href: f,
|
|
1823
|
+
onClick: Q,
|
|
1824
1824
|
backgroundColor: "tints.cream",
|
|
1825
1825
|
children: "Register Kit"
|
|
1826
1826
|
}
|
|
1827
1827
|
),
|
|
1828
1828
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1829
|
-
|
|
1830
|
-
{ href:
|
|
1829
|
+
Y,
|
|
1830
|
+
{ href: w, "aria-label": "login", onClick: O, children: /* @__PURE__ */ t.jsx(pe, { icon: /* @__PURE__ */ t.jsx(J, { as: xt }), "aria-label": "Profile" }) }
|
|
1831
1831
|
),
|
|
1832
1832
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1833
|
-
|
|
1833
|
+
Xn,
|
|
1834
1834
|
{
|
|
1835
1835
|
"aria-label": "Cart",
|
|
1836
|
-
count:
|
|
1836
|
+
count: b,
|
|
1837
1837
|
onClick: l
|
|
1838
1838
|
}
|
|
1839
1839
|
),
|
|
1840
1840
|
onSearchClick: () => {
|
|
1841
|
-
L(!
|
|
1841
|
+
L(!U), c == null || c();
|
|
1842
1842
|
},
|
|
1843
1843
|
onMenuClick: () => {
|
|
1844
|
-
|
|
1844
|
+
W(!0), T == null || T();
|
|
1845
1845
|
},
|
|
1846
1846
|
hasSearch: u,
|
|
1847
|
-
logoLink:
|
|
1848
|
-
linkComponent:
|
|
1849
|
-
onLogoClick:
|
|
1850
|
-
setTopOffset:
|
|
1847
|
+
logoLink: i,
|
|
1848
|
+
linkComponent: a,
|
|
1849
|
+
onLogoClick: _,
|
|
1850
|
+
setTopOffset: _e
|
|
1851
1851
|
}
|
|
1852
1852
|
),
|
|
1853
1853
|
/* @__PURE__ */ t.jsxs(
|
|
1854
|
-
|
|
1854
|
+
j,
|
|
1855
1855
|
{ position: "relative", zIndex: "modal", children: [
|
|
1856
1856
|
/* @__PURE__ */ t.jsx(
|
|
1857
1857
|
qe,
|
|
1858
1858
|
{
|
|
1859
|
-
isOpen:
|
|
1860
|
-
onClose:
|
|
1861
|
-
title:
|
|
1859
|
+
isOpen: $,
|
|
1860
|
+
onClose: ne,
|
|
1861
|
+
title: s,
|
|
1862
1862
|
navDrawerLinks: ze,
|
|
1863
|
-
bottomNavButtons:
|
|
1863
|
+
bottomNavButtons: de,
|
|
1864
1864
|
hasBackButton: !1,
|
|
1865
|
-
topOffset:
|
|
1865
|
+
topOffset: ee
|
|
1866
1866
|
}
|
|
1867
1867
|
),
|
|
1868
1868
|
/* @__PURE__ */ t.jsx(
|
|
1869
1869
|
qe,
|
|
1870
1870
|
{
|
|
1871
|
-
isOpen: !!
|
|
1871
|
+
isOpen: !!S,
|
|
1872
1872
|
onClose: () => {
|
|
1873
|
-
|
|
1873
|
+
ne(), B(null);
|
|
1874
1874
|
},
|
|
1875
|
-
title: (
|
|
1875
|
+
title: (S == null ? void 0 : S.label) || "",
|
|
1876
1876
|
navDrawerLinks: le,
|
|
1877
|
-
onBackClick: () =>
|
|
1878
|
-
spotlightCards:
|
|
1879
|
-
hasOnlySpotlightCards:
|
|
1880
|
-
bottomButton:
|
|
1881
|
-
topOffset:
|
|
1877
|
+
onBackClick: () => B(null),
|
|
1878
|
+
spotlightCards: Oe,
|
|
1879
|
+
hasOnlySpotlightCards: S == null ? void 0 : S.hasOnlySpotlightCards,
|
|
1880
|
+
bottomButton: S == null ? void 0 : S.bottomButton,
|
|
1881
|
+
topOffset: ee
|
|
1882
1882
|
}
|
|
1883
1883
|
),
|
|
1884
1884
|
/* @__PURE__ */ t.jsx(
|
|
1885
1885
|
qe,
|
|
1886
1886
|
{
|
|
1887
|
-
isOpen:
|
|
1887
|
+
isOpen: U,
|
|
1888
1888
|
onClose: () => L(!1),
|
|
1889
1889
|
title: "Search",
|
|
1890
|
-
navDrawerLinks:
|
|
1890
|
+
navDrawerLinks: je,
|
|
1891
1891
|
onSearch: Ie,
|
|
1892
1892
|
hasSearch: !0,
|
|
1893
1893
|
hasBackButton: !1,
|
|
1894
|
-
topOffset:
|
|
1894
|
+
topOffset: ee
|
|
1895
1895
|
}
|
|
1896
1896
|
)
|
|
1897
1897
|
] }
|
|
@@ -1899,46 +1899,46 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1899
1899
|
]
|
|
1900
1900
|
}
|
|
1901
1901
|
);
|
|
1902
|
-
}, yt = ({ links:
|
|
1903
|
-
const
|
|
1904
|
-
|
|
1902
|
+
}, yt = ({ links: n, linkComponent: l, onLinkClick: s }) => {
|
|
1903
|
+
const i = l || Y, u = (c) => {
|
|
1904
|
+
s && s(c);
|
|
1905
1905
|
};
|
|
1906
1906
|
return /* @__PURE__ */ t.jsx(
|
|
1907
|
-
|
|
1908
|
-
{ direction: "column", gap: 6, children:
|
|
1909
|
-
(
|
|
1910
|
-
|
|
1907
|
+
E,
|
|
1908
|
+
{ direction: "column", gap: 6, children: n.map(
|
|
1909
|
+
(c) => /* @__PURE__ */ t.jsx(
|
|
1910
|
+
P,
|
|
1911
1911
|
{
|
|
1912
|
-
as:
|
|
1912
|
+
as: i,
|
|
1913
1913
|
color: "white",
|
|
1914
1914
|
size: "lg",
|
|
1915
1915
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
1916
|
-
onClick: () => u(
|
|
1917
|
-
...
|
|
1918
|
-
children:
|
|
1916
|
+
onClick: () => u(c.label),
|
|
1917
|
+
...ge(c.href, !!l),
|
|
1918
|
+
children: c.label
|
|
1919
1919
|
},
|
|
1920
|
-
|
|
1920
|
+
c.label
|
|
1921
1921
|
)
|
|
1922
1922
|
) }
|
|
1923
1923
|
);
|
|
1924
|
-
},
|
|
1925
|
-
const
|
|
1924
|
+
}, lr = ({ title: n, links: l, isLast: s }) => {
|
|
1925
|
+
const i = s ? "transparent" : `${se.colors.viridian.lighter}20`;
|
|
1926
1926
|
return l ? /* @__PURE__ */ t.jsx(
|
|
1927
|
-
|
|
1928
|
-
{ borderColor:
|
|
1927
|
+
cn,
|
|
1928
|
+
{ borderColor: i, children: ({ isExpanded: u }) => /* @__PURE__ */ t.jsxs(
|
|
1929
1929
|
t.Fragment,
|
|
1930
1930
|
{ children: [
|
|
1931
1931
|
/* @__PURE__ */ t.jsxs(
|
|
1932
1932
|
un,
|
|
1933
1933
|
{ paddingX: 0, paddingY: 4, _hover: { bg: "transparent" }, children: [
|
|
1934
1934
|
/* @__PURE__ */ t.jsx(
|
|
1935
|
-
|
|
1936
|
-
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children:
|
|
1935
|
+
P,
|
|
1936
|
+
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: n }
|
|
1937
1937
|
),
|
|
1938
1938
|
/* @__PURE__ */ t.jsx(
|
|
1939
|
-
|
|
1939
|
+
J,
|
|
1940
1940
|
{
|
|
1941
|
-
as:
|
|
1941
|
+
as: $n,
|
|
1942
1942
|
size: "sm",
|
|
1943
1943
|
color: "viridian.lighter",
|
|
1944
1944
|
transform: u ? "rotate(-180deg)" : "rotate(0deg)",
|
|
@@ -1948,48 +1948,48 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1948
1948
|
] }
|
|
1949
1949
|
),
|
|
1950
1950
|
/* @__PURE__ */ t.jsx(
|
|
1951
|
-
|
|
1951
|
+
dn,
|
|
1952
1952
|
{ pb: 4, px: 0, children: l }
|
|
1953
1953
|
)
|
|
1954
1954
|
] }
|
|
1955
1955
|
) }
|
|
1956
1956
|
) : null;
|
|
1957
|
-
},
|
|
1958
|
-
|
|
1957
|
+
}, or = ({ title: n, links: l }) => l ? /* @__PURE__ */ t.jsxs(
|
|
1958
|
+
j,
|
|
1959
1959
|
{ children: [
|
|
1960
1960
|
/* @__PURE__ */ t.jsx(
|
|
1961
|
-
|
|
1962
|
-
{ color: "viridian.lighter", mb: 6, fontSize: "lg", children:
|
|
1961
|
+
P,
|
|
1962
|
+
{ color: "viridian.lighter", mb: 6, fontSize: "lg", children: n }
|
|
1963
1963
|
),
|
|
1964
1964
|
l
|
|
1965
1965
|
] }
|
|
1966
|
-
) : null,
|
|
1967
|
-
sections:
|
|
1966
|
+
) : null, ir = ({
|
|
1967
|
+
sections: n,
|
|
1968
1968
|
linkComponent: l,
|
|
1969
|
-
onLinkClick:
|
|
1970
|
-
}) =>
|
|
1969
|
+
onLinkClick: s
|
|
1970
|
+
}) => He({
|
|
1971
1971
|
base: !1,
|
|
1972
1972
|
tablet: !1,
|
|
1973
1973
|
largeTablet: !0,
|
|
1974
1974
|
desktop: !0
|
|
1975
1975
|
}) ? /* @__PURE__ */ t.jsx(
|
|
1976
|
-
|
|
1976
|
+
E,
|
|
1977
1977
|
{
|
|
1978
1978
|
justify: "space-between",
|
|
1979
1979
|
align: "flex-start",
|
|
1980
1980
|
children: /* @__PURE__ */ t.jsx(
|
|
1981
|
-
|
|
1982
|
-
{ gap: 120, children:
|
|
1983
|
-
({ title: u, links:
|
|
1984
|
-
|
|
1981
|
+
E,
|
|
1982
|
+
{ gap: 120, children: n.map(
|
|
1983
|
+
({ title: u, links: c }) => /* @__PURE__ */ t.jsx(
|
|
1984
|
+
or,
|
|
1985
1985
|
{
|
|
1986
1986
|
title: u,
|
|
1987
1987
|
links: /* @__PURE__ */ t.jsx(
|
|
1988
1988
|
yt,
|
|
1989
1989
|
{
|
|
1990
|
-
links:
|
|
1990
|
+
links: c,
|
|
1991
1991
|
linkComponent: l,
|
|
1992
|
-
onLinkClick:
|
|
1992
|
+
onLinkClick: s
|
|
1993
1993
|
}
|
|
1994
1994
|
)
|
|
1995
1995
|
},
|
|
@@ -1999,67 +1999,67 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
1999
1999
|
)
|
|
2000
2000
|
}
|
|
2001
2001
|
) : /* @__PURE__ */ t.jsx(
|
|
2002
|
-
|
|
2002
|
+
sn,
|
|
2003
2003
|
{
|
|
2004
2004
|
allowMultiple: !0,
|
|
2005
2005
|
defaultIndex: [0],
|
|
2006
2006
|
width: "100%",
|
|
2007
2007
|
display: "flex",
|
|
2008
2008
|
flexDirection: "column",
|
|
2009
|
-
children:
|
|
2010
|
-
({ title: u, links:
|
|
2011
|
-
|
|
2009
|
+
children: n.map(
|
|
2010
|
+
({ title: u, links: c }, f) => /* @__PURE__ */ t.jsx(
|
|
2011
|
+
lr,
|
|
2012
2012
|
{
|
|
2013
2013
|
title: u,
|
|
2014
2014
|
links: /* @__PURE__ */ t.jsx(
|
|
2015
2015
|
yt,
|
|
2016
2016
|
{
|
|
2017
|
-
links:
|
|
2017
|
+
links: c,
|
|
2018
2018
|
linkComponent: l,
|
|
2019
|
-
onLinkClick:
|
|
2019
|
+
onLinkClick: s
|
|
2020
2020
|
}
|
|
2021
2021
|
),
|
|
2022
|
-
isLast:
|
|
2022
|
+
isLast: f === n.length - 1
|
|
2023
2023
|
},
|
|
2024
2024
|
u
|
|
2025
2025
|
)
|
|
2026
2026
|
)
|
|
2027
2027
|
}
|
|
2028
2028
|
), Et = {
|
|
2029
|
-
instagram:
|
|
2030
|
-
linkedin:
|
|
2031
|
-
facebook:
|
|
2032
|
-
tiktok:
|
|
2033
|
-
x:
|
|
2034
|
-
},
|
|
2035
|
-
socialLinks:
|
|
2029
|
+
instagram: Hn,
|
|
2030
|
+
linkedin: Fn,
|
|
2031
|
+
facebook: Wn,
|
|
2032
|
+
tiktok: zn,
|
|
2033
|
+
x: Nn
|
|
2034
|
+
}, ar = ({
|
|
2035
|
+
socialLinks: n,
|
|
2036
2036
|
onEmailSubmit: l,
|
|
2037
|
-
socialMediaLabel:
|
|
2038
|
-
newsletterLabel:
|
|
2037
|
+
socialMediaLabel: s,
|
|
2038
|
+
newsletterLabel: i,
|
|
2039
2039
|
onLinkClick: u
|
|
2040
2040
|
}) => {
|
|
2041
|
-
const [
|
|
2042
|
-
|
|
2043
|
-
}, p = (
|
|
2044
|
-
|
|
2045
|
-
},
|
|
2046
|
-
u && u(
|
|
2041
|
+
const [c, f] = Re.useState(""), w = () => {
|
|
2042
|
+
c && l && (l(c), f(""));
|
|
2043
|
+
}, p = (a) => {
|
|
2044
|
+
a.key === "Enter" && w();
|
|
2045
|
+
}, b = (a) => {
|
|
2046
|
+
u && u(a);
|
|
2047
2047
|
};
|
|
2048
2048
|
return /* @__PURE__ */ t.jsxs(
|
|
2049
|
-
|
|
2049
|
+
j,
|
|
2050
2050
|
{ width: ["100%", null, null, "440px"], children: [
|
|
2051
2051
|
/* @__PURE__ */ t.jsxs(
|
|
2052
|
-
|
|
2052
|
+
j,
|
|
2053
2053
|
{ mb: [8, 10], children: [
|
|
2054
2054
|
/* @__PURE__ */ t.jsx(
|
|
2055
|
-
|
|
2056
|
-
{ color: "viridian.lighter", mb: 6, size: "lg", children:
|
|
2055
|
+
P,
|
|
2056
|
+
{ color: "viridian.lighter", mb: 6, size: "lg", children: i }
|
|
2057
2057
|
),
|
|
2058
2058
|
/* @__PURE__ */ t.jsxs(
|
|
2059
|
-
|
|
2059
|
+
fn,
|
|
2060
2060
|
{ children: [
|
|
2061
2061
|
/* @__PURE__ */ t.jsx(
|
|
2062
|
-
|
|
2062
|
+
hn,
|
|
2063
2063
|
{
|
|
2064
2064
|
placeholder: "Enter your email",
|
|
2065
2065
|
bg: "transparent",
|
|
@@ -2070,23 +2070,23 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
2070
2070
|
opacity: 0.66,
|
|
2071
2071
|
height: "52px",
|
|
2072
2072
|
pr: "48px",
|
|
2073
|
-
value:
|
|
2074
|
-
onChange: (
|
|
2073
|
+
value: c,
|
|
2074
|
+
onChange: (a) => f(a.target.value),
|
|
2075
2075
|
onKeyPress: p
|
|
2076
2076
|
}
|
|
2077
2077
|
),
|
|
2078
2078
|
/* @__PURE__ */ t.jsx(
|
|
2079
|
-
|
|
2079
|
+
pn,
|
|
2080
2080
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2081
|
-
|
|
2081
|
+
J,
|
|
2082
2082
|
{
|
|
2083
|
-
as:
|
|
2083
|
+
as: Bn,
|
|
2084
2084
|
color: "viridian.lighter",
|
|
2085
2085
|
width: "24px",
|
|
2086
2086
|
height: "24px",
|
|
2087
2087
|
opacity: 0.66,
|
|
2088
2088
|
cursor: "pointer",
|
|
2089
|
-
onClick:
|
|
2089
|
+
onClick: w,
|
|
2090
2090
|
"data-testid": "arrow-right-icon",
|
|
2091
2091
|
role: "button",
|
|
2092
2092
|
"aria-label": "Submit"
|
|
@@ -2098,34 +2098,34 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
2098
2098
|
] }
|
|
2099
2099
|
),
|
|
2100
2100
|
/* @__PURE__ */ t.jsxs(
|
|
2101
|
-
|
|
2101
|
+
j,
|
|
2102
2102
|
{ children: [
|
|
2103
2103
|
/* @__PURE__ */ t.jsx(
|
|
2104
|
-
|
|
2105
|
-
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children:
|
|
2104
|
+
P,
|
|
2105
|
+
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children: s }
|
|
2106
2106
|
),
|
|
2107
2107
|
/* @__PURE__ */ t.jsx(
|
|
2108
|
-
|
|
2109
|
-
{ gap: 3, children:
|
|
2110
|
-
(
|
|
2111
|
-
|
|
2108
|
+
E,
|
|
2109
|
+
{ gap: 3, children: n == null ? void 0 : n.map(
|
|
2110
|
+
(a) => /* @__PURE__ */ t.jsx(
|
|
2111
|
+
Y,
|
|
2112
2112
|
{
|
|
2113
|
-
href:
|
|
2113
|
+
href: a.href,
|
|
2114
2114
|
target: "_blank",
|
|
2115
2115
|
rel: "noopener noreferrer",
|
|
2116
|
-
"aria-label":
|
|
2117
|
-
onClick: () =>
|
|
2118
|
-
children: Et[
|
|
2119
|
-
|
|
2116
|
+
"aria-label": a.name,
|
|
2117
|
+
onClick: () => b(a.name),
|
|
2118
|
+
children: Et[a.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2119
|
+
J,
|
|
2120
2120
|
{
|
|
2121
|
-
as: Et[
|
|
2121
|
+
as: Et[a.name.toLowerCase()],
|
|
2122
2122
|
color: "white",
|
|
2123
2123
|
width: ["48px", null, "24px", null],
|
|
2124
2124
|
height: ["48px", null, "24px", null]
|
|
2125
2125
|
}
|
|
2126
2126
|
)
|
|
2127
2127
|
},
|
|
2128
|
-
|
|
2128
|
+
a.name
|
|
2129
2129
|
)
|
|
2130
2130
|
) }
|
|
2131
2131
|
)
|
|
@@ -2133,30 +2133,30 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
2133
2133
|
)
|
|
2134
2134
|
] }
|
|
2135
2135
|
);
|
|
2136
|
-
},
|
|
2137
|
-
links:
|
|
2136
|
+
}, sr = ({
|
|
2137
|
+
links: n,
|
|
2138
2138
|
linkComponent: l,
|
|
2139
|
-
onLinkClick:
|
|
2139
|
+
onLinkClick: s
|
|
2140
2140
|
}) => {
|
|
2141
|
-
const
|
|
2142
|
-
|
|
2143
|
-
},
|
|
2144
|
-
(
|
|
2145
|
-
|
|
2141
|
+
const i = l || Y, u = (f) => {
|
|
2142
|
+
s && s(f);
|
|
2143
|
+
}, c = n == null ? void 0 : n.map(
|
|
2144
|
+
(f) => /* @__PURE__ */ t.jsx(
|
|
2145
|
+
P,
|
|
2146
2146
|
{
|
|
2147
|
-
as:
|
|
2147
|
+
as: i,
|
|
2148
2148
|
color: "viridian.lighter",
|
|
2149
2149
|
size: "sm",
|
|
2150
2150
|
_hover: { color: "white", textDecoration: "none" },
|
|
2151
|
-
onClick: () => u(
|
|
2152
|
-
...
|
|
2153
|
-
children:
|
|
2151
|
+
onClick: () => u(f.label),
|
|
2152
|
+
...ge(f.href, !!l),
|
|
2153
|
+
children: f.label
|
|
2154
2154
|
},
|
|
2155
|
-
|
|
2155
|
+
f.label
|
|
2156
2156
|
)
|
|
2157
2157
|
);
|
|
2158
2158
|
return /* @__PURE__ */ t.jsxs(
|
|
2159
|
-
|
|
2159
|
+
E,
|
|
2160
2160
|
{
|
|
2161
2161
|
direction: ["column", "column", "row"],
|
|
2162
2162
|
justify: "space-between",
|
|
@@ -2164,17 +2164,17 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
2164
2164
|
gap: [6, 6, 0],
|
|
2165
2165
|
children: [
|
|
2166
2166
|
/* @__PURE__ */ t.jsx(
|
|
2167
|
-
|
|
2167
|
+
E,
|
|
2168
2168
|
{
|
|
2169
2169
|
direction: "row",
|
|
2170
2170
|
flexWrap: "wrap",
|
|
2171
2171
|
gap: [4, 6, 10],
|
|
2172
2172
|
width: ["100%", "auto"],
|
|
2173
|
-
children:
|
|
2173
|
+
children: c
|
|
2174
2174
|
}
|
|
2175
2175
|
),
|
|
2176
2176
|
/* @__PURE__ */ t.jsxs(
|
|
2177
|
-
|
|
2177
|
+
P,
|
|
2178
2178
|
{ color: "viridian.lighter", fontSize: "sm", children: [
|
|
2179
2179
|
"© Everlywell ",
|
|
2180
2180
|
(/* @__PURE__ */ new Date()).getFullYear()
|
|
@@ -2183,32 +2183,32 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
2183
2183
|
]
|
|
2184
2184
|
}
|
|
2185
2185
|
);
|
|
2186
|
-
},
|
|
2187
|
-
navigationSections:
|
|
2186
|
+
}, br = Re.forwardRef(({
|
|
2187
|
+
navigationSections: n = [],
|
|
2188
2188
|
disclaimer: l,
|
|
2189
|
-
newsletterLabel:
|
|
2190
|
-
socialMediaLabel:
|
|
2189
|
+
newsletterLabel: s,
|
|
2190
|
+
socialMediaLabel: i,
|
|
2191
2191
|
socialLinks: u,
|
|
2192
|
-
complianceLinks:
|
|
2193
|
-
linkComponent:
|
|
2194
|
-
onEmailSubmit:
|
|
2192
|
+
complianceLinks: c,
|
|
2193
|
+
linkComponent: f,
|
|
2194
|
+
onEmailSubmit: w,
|
|
2195
2195
|
additionalContent: p,
|
|
2196
|
-
onLinkClick:
|
|
2197
|
-
onSocialMediaClick:
|
|
2198
|
-
},
|
|
2199
|
-
|
|
2200
|
-
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref:
|
|
2201
|
-
|
|
2196
|
+
onLinkClick: b,
|
|
2197
|
+
onSocialMediaClick: a
|
|
2198
|
+
}, C) => /* @__PURE__ */ t.jsx(
|
|
2199
|
+
j,
|
|
2200
|
+
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref: C, children: /* @__PURE__ */ t.jsxs(
|
|
2201
|
+
gn,
|
|
2202
2202
|
{ size: "fluid", children: [
|
|
2203
2203
|
/* @__PURE__ */ t.jsxs(
|
|
2204
|
-
|
|
2204
|
+
E,
|
|
2205
2205
|
{ direction: "column", gap: [8, 12], children: [
|
|
2206
2206
|
/* @__PURE__ */ t.jsx(
|
|
2207
|
-
|
|
2208
|
-
{ children: /* @__PURE__ */ t.jsx(
|
|
2207
|
+
j,
|
|
2208
|
+
{ children: /* @__PURE__ */ t.jsx(Pt, { width: ["150px", "202px"], color: "white" }) }
|
|
2209
2209
|
),
|
|
2210
2210
|
/* @__PURE__ */ t.jsxs(
|
|
2211
|
-
|
|
2211
|
+
E,
|
|
2212
2212
|
{
|
|
2213
2213
|
direction: ["column", null, null, "row"],
|
|
2214
2214
|
justify: "space-between",
|
|
@@ -2216,28 +2216,28 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
2216
2216
|
gap: [8, 8, 8, 0],
|
|
2217
2217
|
children: [
|
|
2218
2218
|
/* @__PURE__ */ t.jsx(
|
|
2219
|
-
|
|
2219
|
+
ir,
|
|
2220
2220
|
{
|
|
2221
|
-
sections:
|
|
2222
|
-
linkComponent:
|
|
2223
|
-
onLinkClick:
|
|
2221
|
+
sections: n,
|
|
2222
|
+
linkComponent: f,
|
|
2223
|
+
onLinkClick: b
|
|
2224
2224
|
}
|
|
2225
2225
|
),
|
|
2226
2226
|
/* @__PURE__ */ t.jsx(
|
|
2227
|
-
|
|
2227
|
+
ar,
|
|
2228
2228
|
{
|
|
2229
2229
|
socialLinks: u,
|
|
2230
|
-
newsletterLabel:
|
|
2231
|
-
socialMediaLabel:
|
|
2232
|
-
onEmailSubmit:
|
|
2233
|
-
onLinkClick:
|
|
2230
|
+
newsletterLabel: s,
|
|
2231
|
+
socialMediaLabel: i,
|
|
2232
|
+
onEmailSubmit: w,
|
|
2233
|
+
onLinkClick: a
|
|
2234
2234
|
}
|
|
2235
2235
|
)
|
|
2236
2236
|
]
|
|
2237
2237
|
}
|
|
2238
2238
|
),
|
|
2239
2239
|
/* @__PURE__ */ t.jsxs(
|
|
2240
|
-
|
|
2240
|
+
E,
|
|
2241
2241
|
{
|
|
2242
2242
|
direction: ["column", "column", "row"],
|
|
2243
2243
|
justify: "space-between",
|
|
@@ -2246,7 +2246,7 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
2246
2246
|
gap: [6, 6, 0],
|
|
2247
2247
|
children: [
|
|
2248
2248
|
l && /* @__PURE__ */ t.jsx(
|
|
2249
|
-
|
|
2249
|
+
P,
|
|
2250
2250
|
{
|
|
2251
2251
|
color: "viridian.lighter",
|
|
2252
2252
|
fontSize: "sm",
|
|
@@ -2264,37 +2264,149 @@ const Xe = 60, bt = 6, Mn = (r) => {
|
|
|
2264
2264
|
] }
|
|
2265
2265
|
),
|
|
2266
2266
|
/* @__PURE__ */ t.jsx(
|
|
2267
|
-
|
|
2267
|
+
j,
|
|
2268
2268
|
{
|
|
2269
2269
|
borderTop: "1px solid",
|
|
2270
|
-
borderColor: `${
|
|
2270
|
+
borderColor: `${se.colors.viridian.lighter}20`,
|
|
2271
2271
|
marginTop: "10",
|
|
2272
2272
|
marginBottom: "8"
|
|
2273
2273
|
}
|
|
2274
2274
|
),
|
|
2275
2275
|
/* @__PURE__ */ t.jsx(
|
|
2276
|
-
|
|
2276
|
+
sr,
|
|
2277
2277
|
{
|
|
2278
2278
|
disclaimer: l,
|
|
2279
|
-
links:
|
|
2280
|
-
linkComponent:
|
|
2281
|
-
onLinkClick:
|
|
2279
|
+
links: c,
|
|
2280
|
+
linkComponent: f,
|
|
2281
|
+
onLinkClick: b
|
|
2282
2282
|
}
|
|
2283
2283
|
)
|
|
2284
2284
|
] }
|
|
2285
2285
|
) }
|
|
2286
|
-
))
|
|
2286
|
+
)), cr = (n) => n ? {
|
|
2287
|
+
Container: Tt,
|
|
2288
|
+
Overlay: _t,
|
|
2289
|
+
Content: St,
|
|
2290
|
+
Header: kt,
|
|
2291
|
+
Body: Dt,
|
|
2292
|
+
Footer: xn,
|
|
2293
|
+
CloseButton: vn
|
|
2294
|
+
} : {
|
|
2295
|
+
Container: mn,
|
|
2296
|
+
Overlay: bn,
|
|
2297
|
+
Content: jn,
|
|
2298
|
+
Header: wn,
|
|
2299
|
+
Body: Cn,
|
|
2300
|
+
Footer: yn,
|
|
2301
|
+
CloseButton: En
|
|
2302
|
+
}, jr = ({
|
|
2303
|
+
isOpen: n,
|
|
2304
|
+
onClose: l,
|
|
2305
|
+
children: s,
|
|
2306
|
+
header: i,
|
|
2307
|
+
footer: u,
|
|
2308
|
+
headerProps: c,
|
|
2309
|
+
bodyProps: f,
|
|
2310
|
+
footerProps: w,
|
|
2311
|
+
contentProps: p,
|
|
2312
|
+
...b
|
|
2313
|
+
}) => {
|
|
2314
|
+
var X, A, $, W, U;
|
|
2315
|
+
const [a] = Rn(`(max-width: ${se.breakpoints.tablet})`), C = (U = (W = ($ = (A = (X = se) == null ? void 0 : X.components) == null ? void 0 : A.Modal) == null ? void 0 : $.baseStyle) == null ? void 0 : W.overlay) == null ? void 0 : U.background, {
|
|
2316
|
+
Container: m,
|
|
2317
|
+
Overlay: g,
|
|
2318
|
+
Content: T,
|
|
2319
|
+
Header: G,
|
|
2320
|
+
Body: Q,
|
|
2321
|
+
Footer: O,
|
|
2322
|
+
CloseButton: _
|
|
2323
|
+
} = cr(a);
|
|
2324
|
+
return /* @__PURE__ */ t.jsxs(
|
|
2325
|
+
m,
|
|
2326
|
+
{
|
|
2327
|
+
...b,
|
|
2328
|
+
isOpen: n,
|
|
2329
|
+
onClose: l,
|
|
2330
|
+
size: "xl",
|
|
2331
|
+
...a ? { placement: "bottom" } : {},
|
|
2332
|
+
children: [
|
|
2333
|
+
/* @__PURE__ */ t.jsx(g, { backdropFilter: "auto", backgroundColor: C }),
|
|
2334
|
+
/* @__PURE__ */ t.jsxs(
|
|
2335
|
+
T,
|
|
2336
|
+
{
|
|
2337
|
+
backgroundColor: "tints.white",
|
|
2338
|
+
borderRadius: a ? "20px 20px 0 0" : "20px",
|
|
2339
|
+
overflowY: "auto",
|
|
2340
|
+
gap: 0,
|
|
2341
|
+
...i && a && { paddingTop: 0 },
|
|
2342
|
+
...p,
|
|
2343
|
+
children: [
|
|
2344
|
+
/* @__PURE__ */ t.jsxs(
|
|
2345
|
+
G,
|
|
2346
|
+
{
|
|
2347
|
+
display: "flex",
|
|
2348
|
+
width: "100%",
|
|
2349
|
+
justifyContent: "space-between",
|
|
2350
|
+
alignItems: "center",
|
|
2351
|
+
fontSize: "lg",
|
|
2352
|
+
color: "tints.black",
|
|
2353
|
+
fontWeight: "normal",
|
|
2354
|
+
position: "sticky",
|
|
2355
|
+
top: 0,
|
|
2356
|
+
zIndex: "modal",
|
|
2357
|
+
backgroundColor: "tints.white",
|
|
2358
|
+
paddingInline: 4,
|
|
2359
|
+
...a ? { paddingBlock: 4 } : { paddingTop: 6, paddingBlockEnd: 2 },
|
|
2360
|
+
...c,
|
|
2361
|
+
children: [
|
|
2362
|
+
i,
|
|
2363
|
+
/* @__PURE__ */ t.jsx(
|
|
2364
|
+
_,
|
|
2365
|
+
{
|
|
2366
|
+
position: "static",
|
|
2367
|
+
width: 32,
|
|
2368
|
+
height: 32,
|
|
2369
|
+
backgroundColor: "tints.cream",
|
|
2370
|
+
sx: {
|
|
2371
|
+
".chakra-icon": {
|
|
2372
|
+
fontSize: "1rem"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
children: /* @__PURE__ */ t.jsx(J, { as: At, weight: "light" })
|
|
2376
|
+
}
|
|
2377
|
+
)
|
|
2378
|
+
]
|
|
2379
|
+
}
|
|
2380
|
+
),
|
|
2381
|
+
/* @__PURE__ */ t.jsx(
|
|
2382
|
+
Q,
|
|
2383
|
+
{
|
|
2384
|
+
color: "tints.darkGrey",
|
|
2385
|
+
paddingInline: 4,
|
|
2386
|
+
...f,
|
|
2387
|
+
children: s
|
|
2388
|
+
}
|
|
2389
|
+
),
|
|
2390
|
+
/* @__PURE__ */ t.jsx(O, { paddingInline: 4, ...w, children: u })
|
|
2391
|
+
]
|
|
2392
|
+
}
|
|
2393
|
+
)
|
|
2394
|
+
]
|
|
2395
|
+
}
|
|
2396
|
+
);
|
|
2397
|
+
};
|
|
2287
2398
|
export {
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2399
|
+
Xn as BasketButton,
|
|
2400
|
+
xr as CategoryLabel,
|
|
2401
|
+
jr as DrawerModal,
|
|
2402
|
+
br as Footer,
|
|
2403
|
+
$e as NavButton,
|
|
2404
|
+
vr as NavSkeleton,
|
|
2293
2405
|
qe as NavbarDrawer,
|
|
2294
2406
|
Je as NavbarDrawerLink,
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2407
|
+
mr as NavigationBar,
|
|
2408
|
+
Zn as SpotlightCard,
|
|
2409
|
+
gr as Stepper,
|
|
2410
|
+
pe as TopNavIconButton,
|
|
2411
|
+
Kn as TopNavigation
|
|
2300
2412
|
};
|