@everlywell/consumer-ui 1.29.4 → 1.30.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.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as Wt, Box as E, Stepper as Bt, Icon as
|
|
2
|
-
import Ke, { useEffect as
|
|
1
|
+
import { useSteps as Wt, Box as E, Stepper as Bt, Icon as ie, Flex as L, Text as Z, Link as G, Button as gt, Image as Mt, IconButton as Vt, VStack as Nt, Skeleton as Ne, HStack as st, SkeletonCircle as Le, Drawer as Yt, DrawerOverlay as zt, DrawerContent as Ut, DrawerHeader as Gt, DrawerBody as Zt, Grid as Kt, GridItem as Xt } from "@everlywell/ui-kit";
|
|
2
|
+
import Ke, { useEffect as ae, forwardRef as bt, useRef as Jt, useState as V, useCallback as Xe } from "react";
|
|
3
3
|
import { Text as qt, useBreakpointValue as mt, InputGroup as Qt, Input as en, InputRightElement as tn, Icon as nn } from "@chakra-ui/react";
|
|
4
4
|
import { CaretRight as ut, MagnifyingGlass as Ct, List as rn, Basket as ln, CaretLeft as an, X as on, User as ct, QrCode as sn } from "@phosphor-icons/react";
|
|
5
5
|
import { motion as dt } from "framer-motion";
|
|
6
|
-
var Ge = { exports: {} },
|
|
6
|
+
var Ge = { exports: {} }, xe = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,22 +16,22 @@ var Ge = { exports: {} }, ve = {};
|
|
|
16
16
|
var ft;
|
|
17
17
|
function un() {
|
|
18
18
|
if (ft)
|
|
19
|
-
return
|
|
19
|
+
return xe;
|
|
20
20
|
ft = 1;
|
|
21
|
-
var l = Ke, o = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty,
|
|
21
|
+
var l = Ke, o = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, w = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function m(R, u, b) {
|
|
23
|
-
var s, f = {},
|
|
24
|
-
b !== void 0 && (
|
|
23
|
+
var s, f = {}, j = null, c = null;
|
|
24
|
+
b !== void 0 && (j = "" + b), u.key !== void 0 && (j = "" + u.key), u.ref !== void 0 && (c = u.ref);
|
|
25
25
|
for (s in u)
|
|
26
26
|
d.call(u, s) && !x.hasOwnProperty(s) && (f[s] = u[s]);
|
|
27
27
|
if (R && R.defaultProps)
|
|
28
28
|
for (s in u = R.defaultProps, u)
|
|
29
29
|
f[s] === void 0 && (f[s] = u[s]);
|
|
30
|
-
return { $$typeof: o, type: R, key:
|
|
30
|
+
return { $$typeof: o, type: R, key: j, ref: c, props: f, _owner: w.current };
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return xe.Fragment = h, xe.jsx = m, xe.jsxs = m, xe;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var ge = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -44,7 +44,7 @@ var xe = {};
|
|
|
44
44
|
var pt;
|
|
45
45
|
function cn() {
|
|
46
46
|
return pt || (pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var l = Ke, o = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"),
|
|
47
|
+
var l = Ke, o = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), R = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), S = Symbol.iterator, I = "@@iterator";
|
|
48
48
|
function $(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
@@ -56,10 +56,10 @@ function cn() {
|
|
|
56
56
|
{
|
|
57
57
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
58
58
|
r[a - 1] = arguments[a];
|
|
59
|
-
|
|
59
|
+
B("error", e, r);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function B(e, n, r) {
|
|
63
63
|
{
|
|
64
64
|
var a = F.ReactDebugCurrentFrame, g = a.getStackAddendum();
|
|
65
65
|
g !== "" && (n += "%s", r = r.concat([g]));
|
|
@@ -69,23 +69,23 @@ function cn() {
|
|
|
69
69
|
C.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, C);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var be = !1, J = !1, me = !1, Ce = !1, q = !1, y;
|
|
73
73
|
y = Symbol.for("react.module.reference");
|
|
74
74
|
function N(e) {
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e === x ||
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || q || e === w || e === b || e === s || Ce || e === c || be || J || me || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === f || e.$$typeof === m || e.$$typeof === R || e.$$typeof === u || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
79
|
e.$$typeof === y || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function se(e, n, r) {
|
|
82
82
|
var a = e.displayName;
|
|
83
83
|
if (a)
|
|
84
84
|
return a;
|
|
85
85
|
var g = n.displayName || n.name || "";
|
|
86
86
|
return g !== "" ? r + "(" + g + ")" : r;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function we(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
90
90
|
}
|
|
91
91
|
function A(e) {
|
|
@@ -102,7 +102,7 @@ function cn() {
|
|
|
102
102
|
return "Portal";
|
|
103
103
|
case x:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case
|
|
105
|
+
case w:
|
|
106
106
|
return "StrictMode";
|
|
107
107
|
case b:
|
|
108
108
|
return "Suspense";
|
|
@@ -113,16 +113,16 @@ function cn() {
|
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
114
|
case R:
|
|
115
115
|
var n = e;
|
|
116
|
-
return
|
|
116
|
+
return we(n) + ".Consumer";
|
|
117
117
|
case m:
|
|
118
118
|
var r = e;
|
|
119
|
-
return
|
|
119
|
+
return we(r._context) + ".Provider";
|
|
120
120
|
case u:
|
|
121
|
-
return
|
|
121
|
+
return se(e, e.render, "ForwardRef");
|
|
122
122
|
case f:
|
|
123
123
|
var a = e.displayName || null;
|
|
124
124
|
return a !== null ? a : A(e.type) || "Memo";
|
|
125
|
-
case
|
|
125
|
+
case j: {
|
|
126
126
|
var g = e, C = g._payload, v = g._init;
|
|
127
127
|
try {
|
|
128
128
|
return A(v(C));
|
|
@@ -133,18 +133,18 @@ function cn() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var
|
|
137
|
-
function
|
|
136
|
+
var M = Object.assign, Y = 0, je, ye, Q, Ee, ue, Re, _e;
|
|
137
|
+
function Se() {
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
Se.__reactDisabledLog = !0;
|
|
140
140
|
function De() {
|
|
141
141
|
{
|
|
142
142
|
if (Y === 0) {
|
|
143
|
-
|
|
143
|
+
je = console.log, ye = console.info, Q = console.warn, Ee = console.error, ue = console.group, Re = console.groupCollapsed, _e = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
147
|
-
value:
|
|
147
|
+
value: Se,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
@@ -160,7 +160,7 @@ function cn() {
|
|
|
160
160
|
Y++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Te() {
|
|
164
164
|
{
|
|
165
165
|
if (Y--, Y === 0) {
|
|
166
166
|
var e = {
|
|
@@ -169,65 +169,65 @@ function cn() {
|
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
|
-
log:
|
|
173
|
-
value: Ce
|
|
174
|
-
}),
|
|
175
|
-
info: B({}, e, {
|
|
172
|
+
log: M({}, e, {
|
|
176
173
|
value: je
|
|
177
174
|
}),
|
|
178
|
-
|
|
179
|
-
value:
|
|
175
|
+
info: M({}, e, {
|
|
176
|
+
value: ye
|
|
180
177
|
}),
|
|
181
|
-
|
|
182
|
-
value:
|
|
178
|
+
warn: M({}, e, {
|
|
179
|
+
value: Q
|
|
183
180
|
}),
|
|
184
|
-
|
|
185
|
-
value:
|
|
181
|
+
error: M({}, e, {
|
|
182
|
+
value: Ee
|
|
186
183
|
}),
|
|
187
|
-
|
|
188
|
-
value:
|
|
184
|
+
group: M({}, e, {
|
|
185
|
+
value: ue
|
|
189
186
|
}),
|
|
190
|
-
|
|
191
|
-
value:
|
|
187
|
+
groupCollapsed: M({}, e, {
|
|
188
|
+
value: Re
|
|
189
|
+
}),
|
|
190
|
+
groupEnd: M({}, e, {
|
|
191
|
+
value: _e
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
Y < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var ce = F.ReactCurrentDispatcher, de;
|
|
199
|
+
function ee(e, n, r) {
|
|
200
200
|
{
|
|
201
|
-
if (
|
|
201
|
+
if (de === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
204
|
} catch (g) {
|
|
205
205
|
var a = g.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
-
|
|
206
|
+
de = a && a[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
|
-
` +
|
|
209
|
+
` + de + e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var fe = !1, te;
|
|
213
213
|
{
|
|
214
214
|
var Ie = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
-
|
|
215
|
+
te = new Ie();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!e ||
|
|
217
|
+
function ke(e, n) {
|
|
218
|
+
if (!e || fe)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var r =
|
|
221
|
+
var r = te.get(e);
|
|
222
222
|
if (r !== void 0)
|
|
223
223
|
return r;
|
|
224
224
|
}
|
|
225
225
|
var a;
|
|
226
|
-
|
|
226
|
+
fe = !0;
|
|
227
227
|
var g = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var C;
|
|
230
|
-
C =
|
|
230
|
+
C = ce.current, ce.current = null, De();
|
|
231
231
|
try {
|
|
232
232
|
if (n) {
|
|
233
233
|
var v = function() {
|
|
@@ -273,61 +273,61 @@ function cn() {
|
|
|
273
273
|
if (_--, k--, k < 0 || p[_] !== P[k]) {
|
|
274
274
|
var W = `
|
|
275
275
|
` + p[_].replace(" at new ", " at ");
|
|
276
|
-
return e.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
276
|
+
return e.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, W), W;
|
|
277
277
|
}
|
|
278
278
|
while (_ >= 1 && k >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
fe = !1, ce.current = C, Te(), Error.prepareStackTrace = g;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
return typeof e == "function" &&
|
|
285
|
+
var le = e ? e.displayName || e.name : "", X = le ? ee(le) : "";
|
|
286
|
+
return typeof e == "function" && te.set(e, X), X;
|
|
287
287
|
}
|
|
288
288
|
function Fe(e, n, r) {
|
|
289
|
-
return
|
|
289
|
+
return ke(e, !1);
|
|
290
290
|
}
|
|
291
291
|
function Ae(e) {
|
|
292
292
|
var n = e.prototype;
|
|
293
293
|
return !!(n && n.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function ne(e, n, r) {
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
299
|
+
return ke(e, Ae(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return ee(e);
|
|
302
302
|
switch (e) {
|
|
303
303
|
case b:
|
|
304
|
-
return
|
|
304
|
+
return ee("Suspense");
|
|
305
305
|
case s:
|
|
306
|
-
return
|
|
306
|
+
return ee("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
310
|
case u:
|
|
311
311
|
return Fe(e.render);
|
|
312
312
|
case f:
|
|
313
|
-
return
|
|
314
|
-
case
|
|
313
|
+
return ne(e.type, n, r);
|
|
314
|
+
case j: {
|
|
315
315
|
var a = e, g = a._payload, C = a._init;
|
|
316
316
|
try {
|
|
317
|
-
return
|
|
317
|
+
return ne(C(g), n, r);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var z = Object.prototype.hasOwnProperty,
|
|
324
|
+
var z = Object.prototype.hasOwnProperty, pe = {}, he = F.ReactDebugCurrentFrame;
|
|
325
325
|
function i(e) {
|
|
326
326
|
if (e) {
|
|
327
|
-
var n = e._owner, r =
|
|
328
|
-
|
|
327
|
+
var n = e._owner, r = ne(e.type, e._source, n ? n.type : null);
|
|
328
|
+
he.setExtraStackFrame(r);
|
|
329
329
|
} else
|
|
330
|
-
|
|
330
|
+
he.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
332
|
function H(e, n, r, a, g) {
|
|
333
333
|
{
|
|
@@ -344,7 +344,7 @@ function cn() {
|
|
|
344
344
|
} catch (_) {
|
|
345
345
|
p = _;
|
|
346
346
|
}
|
|
347
|
-
p && !(p instanceof Error) && (i(g), T("%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).", a || "React class", r, v, typeof p), i(null)), p instanceof Error && !(p.message in
|
|
347
|
+
p && !(p instanceof Error) && (i(g), T("%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).", a || "React class", r, v, typeof p), i(null)), p instanceof Error && !(p.message in pe) && (pe[p.message] = !0, i(g), T("Failed %s type: %s", r, p.message), i(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -372,14 +372,14 @@ function cn() {
|
|
|
372
372
|
if (K(e))
|
|
373
373
|
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Je(e);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var ve = F.ReactCurrentOwner, wt = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
380
|
}, Qe, et, $e;
|
|
381
381
|
$e = {};
|
|
382
|
-
function
|
|
382
|
+
function jt(e) {
|
|
383
383
|
if (z.call(e, "ref")) {
|
|
384
384
|
var n = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
385
385
|
if (n && n.isReactWarning)
|
|
@@ -396,9 +396,9 @@ function cn() {
|
|
|
396
396
|
return e.key !== void 0;
|
|
397
397
|
}
|
|
398
398
|
function Et(e, n) {
|
|
399
|
-
if (typeof e.ref == "string" &&
|
|
400
|
-
var r = A(
|
|
401
|
-
$e[r] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(
|
|
399
|
+
if (typeof e.ref == "string" && ve.current && n && ve.current.stateNode !== n) {
|
|
400
|
+
var r = A(ve.current.type);
|
|
401
|
+
$e[r] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(ve.current.type), e.ref), $e[r] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
function Rt(e, n) {
|
|
@@ -455,9 +455,9 @@ function cn() {
|
|
|
455
455
|
function Tt(e, n, r, a, g) {
|
|
456
456
|
{
|
|
457
457
|
var C, v = {}, p = null, P = null;
|
|
458
|
-
r !== void 0 && (qe(r), p = "" + r), yt(n) && (qe(n.key), p = "" + n.key),
|
|
458
|
+
r !== void 0 && (qe(r), p = "" + r), yt(n) && (qe(n.key), p = "" + n.key), jt(n) && (P = n.ref, Et(n, g));
|
|
459
459
|
for (C in n)
|
|
460
|
-
z.call(n, C) && !
|
|
460
|
+
z.call(n, C) && !wt.hasOwnProperty(C) && (v[C] = n[C]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
462
462
|
var _ = e.defaultProps;
|
|
463
463
|
for (C in _)
|
|
@@ -467,13 +467,13 @@ function cn() {
|
|
|
467
467
|
var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
468
|
p && Rt(v, k), P && _t(v, k);
|
|
469
469
|
}
|
|
470
|
-
return St(e, p, P, g, a,
|
|
470
|
+
return St(e, p, P, g, a, ve.current, v);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
var We = F.ReactCurrentOwner, tt = F.ReactDebugCurrentFrame;
|
|
474
|
-
function
|
|
474
|
+
function re(e) {
|
|
475
475
|
if (e) {
|
|
476
|
-
var n = e._owner, r =
|
|
476
|
+
var n = e._owner, r = ne(e.type, e._source, n ? n.type : null);
|
|
477
477
|
tt.setExtraStackFrame(r);
|
|
478
478
|
} else
|
|
479
479
|
tt.setExtraStackFrame(null);
|
|
@@ -529,7 +529,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
529
529
|
return;
|
|
530
530
|
rt[r] = !0;
|
|
531
531
|
var a = "";
|
|
532
|
-
e && e._owner && e._owner !== We.current && (a = " It was passed a child from " + A(e._owner.type) + "."),
|
|
532
|
+
e && e._owner && e._owner !== We.current && (a = " It was passed a child from " + A(e._owner.type) + "."), re(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), re(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function it(e, n) {
|
|
@@ -581,11 +581,11 @@ Check the top-level render call using <` + r + ">.");
|
|
|
581
581
|
for (var n = Object.keys(e.props), r = 0; r < n.length; r++) {
|
|
582
582
|
var a = n[r];
|
|
583
583
|
if (a !== "children" && a !== "key") {
|
|
584
|
-
|
|
584
|
+
re(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), re(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
e.ref !== null && (
|
|
588
|
+
e.ref !== null && (re(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var at = {};
|
|
@@ -608,8 +608,8 @@ Check the top-level render call using <` + r + ">.");
|
|
|
608
608
|
if (W !== void 0)
|
|
609
609
|
if (a)
|
|
610
610
|
if (O(W)) {
|
|
611
|
-
for (var
|
|
612
|
-
it(W[
|
|
611
|
+
for (var le = 0; le < W.length; le++)
|
|
612
|
+
it(W[le], e);
|
|
613
613
|
Object.freeze && Object.freeze(W);
|
|
614
614
|
} else
|
|
615
615
|
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -640,8 +640,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
640
640
|
return ot(e, n, r, !1);
|
|
641
641
|
}
|
|
642
642
|
var Ft = It, At = Dt;
|
|
643
|
-
|
|
644
|
-
}()),
|
|
643
|
+
ge.Fragment = d, ge.jsx = Ft, ge.jsxs = At;
|
|
644
|
+
}()), ge;
|
|
645
645
|
}
|
|
646
646
|
process.env.NODE_ENV === "production" ? Ge.exports = un() : Ge.exports = cn();
|
|
647
647
|
var t = Ge.exports;
|
|
@@ -650,7 +650,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
650
650
|
activeStepIndex: o,
|
|
651
651
|
hideIndicators: h = !1,
|
|
652
652
|
steps: d,
|
|
653
|
-
stepperTheme:
|
|
653
|
+
stepperTheme: w = {
|
|
654
654
|
light: "eggplant.light",
|
|
655
655
|
base: "eggplant.base"
|
|
656
656
|
}
|
|
@@ -658,7 +658,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
658
658
|
index: o,
|
|
659
659
|
count: d.length
|
|
660
660
|
});
|
|
661
|
-
return
|
|
661
|
+
return ae(() => {
|
|
662
662
|
m(o);
|
|
663
663
|
}, [o, m]), /* @__PURE__ */ t.jsx(
|
|
664
664
|
E,
|
|
@@ -671,14 +671,14 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
671
671
|
display: "flex",
|
|
672
672
|
flexWrap: "nowrap",
|
|
673
673
|
children: d.map((R, u) => {
|
|
674
|
-
const b = x === u, s = u === 0, f = u === d.length - 1,
|
|
674
|
+
const b = x === u, s = u === 0, f = u === d.length - 1, j = x > u;
|
|
675
675
|
let c = `${Ye}px`;
|
|
676
676
|
const S = `calc(100% - ((${Ye * (d.length - 1)}px) - (${d.length - 1} * ${ht * 2}px)))`;
|
|
677
677
|
return b ? c = S : (s || f) && (c = `${Ye - ht}px`), /* @__PURE__ */ t.jsx(
|
|
678
678
|
E,
|
|
679
679
|
{
|
|
680
680
|
width: c,
|
|
681
|
-
opacity:
|
|
681
|
+
opacity: j || b ? 1 : 0.2,
|
|
682
682
|
paddingRight: f ? "0" : "6px",
|
|
683
683
|
paddingLeft: s ? "0" : "6px",
|
|
684
684
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
@@ -694,7 +694,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
694
694
|
width: "100%",
|
|
695
695
|
position: "absolute",
|
|
696
696
|
top: "0",
|
|
697
|
-
backgroundColor:
|
|
697
|
+
backgroundColor: j ? w.light : w.base,
|
|
698
698
|
height: h ? "4px" : "8px",
|
|
699
699
|
borderRadius: "4",
|
|
700
700
|
left: "0"
|
|
@@ -715,7 +715,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
715
715
|
}) => /* @__PURE__ */ t.jsx(
|
|
716
716
|
qt,
|
|
717
717
|
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: l }
|
|
718
|
-
),
|
|
718
|
+
), Pe = (l, o) => {
|
|
719
719
|
const h = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
|
|
720
720
|
return o && !h ? {
|
|
721
721
|
to: l
|
|
@@ -727,11 +727,11 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
727
727
|
const {
|
|
728
728
|
label: h,
|
|
729
729
|
additionalContent: d,
|
|
730
|
-
mainTextFontSize:
|
|
730
|
+
mainTextFontSize: w,
|
|
731
731
|
linkComponent: x,
|
|
732
732
|
href: m,
|
|
733
733
|
...R
|
|
734
|
-
} = l, u = x || G, b =
|
|
734
|
+
} = l, u = x || G, b = Pe(m, !!x);
|
|
735
735
|
return /* @__PURE__ */ t.jsxs(
|
|
736
736
|
E,
|
|
737
737
|
{
|
|
@@ -752,7 +752,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
752
752
|
...R,
|
|
753
753
|
children: [
|
|
754
754
|
/* @__PURE__ */ t.jsx(
|
|
755
|
-
|
|
755
|
+
ie,
|
|
756
756
|
{
|
|
757
757
|
display: ["none", null, null, "block"],
|
|
758
758
|
as: ut,
|
|
@@ -769,7 +769,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
769
769
|
/* @__PURE__ */ t.jsx(
|
|
770
770
|
Z,
|
|
771
771
|
{
|
|
772
|
-
fontSize: [
|
|
772
|
+
fontSize: [w || "xl", null, null, "lg"],
|
|
773
773
|
fontWeight: "medium",
|
|
774
774
|
children: h
|
|
775
775
|
}
|
|
@@ -789,7 +789,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
789
789
|
}
|
|
790
790
|
) : d),
|
|
791
791
|
/* @__PURE__ */ t.jsx(
|
|
792
|
-
|
|
792
|
+
ie,
|
|
793
793
|
{
|
|
794
794
|
display: ["block", null, null, "none"],
|
|
795
795
|
as: ut,
|
|
@@ -806,9 +806,9 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
806
806
|
}
|
|
807
807
|
);
|
|
808
808
|
}
|
|
809
|
-
),
|
|
809
|
+
), Oe = bt(
|
|
810
810
|
(l, o) => {
|
|
811
|
-
const { children: h, isSelected: d, ...
|
|
811
|
+
const { children: h, isSelected: d, ...w } = l, x = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
|
|
812
812
|
return /* @__PURE__ */ t.jsx(
|
|
813
813
|
gt,
|
|
814
814
|
{
|
|
@@ -831,7 +831,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
831
831
|
textDecoration: "none",
|
|
832
832
|
filter: "brightness(0.95)"
|
|
833
833
|
},
|
|
834
|
-
...
|
|
834
|
+
...w,
|
|
835
835
|
children: h
|
|
836
836
|
}
|
|
837
837
|
);
|
|
@@ -841,13 +841,13 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
841
841
|
description: o,
|
|
842
842
|
imageSrc: h,
|
|
843
843
|
imageElement: d,
|
|
844
|
-
button:
|
|
844
|
+
button: w,
|
|
845
845
|
backgroundColor: x = "viridian.wash",
|
|
846
846
|
onClick: m,
|
|
847
847
|
href: R,
|
|
848
848
|
linkComponent: u
|
|
849
849
|
}) => {
|
|
850
|
-
const b = "80px", s = "200px", f = "272px",
|
|
850
|
+
const b = "80px", s = "200px", f = "272px", j = u || G, c = Pe(R, !!u), S = mt({
|
|
851
851
|
base: !1,
|
|
852
852
|
tablet: !1,
|
|
853
853
|
largeTablet: !1,
|
|
@@ -875,7 +875,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
875
875
|
border: "1px solid",
|
|
876
876
|
borderColor: "tints.white"
|
|
877
877
|
},
|
|
878
|
-
as: S ? L :
|
|
878
|
+
as: S ? L : j,
|
|
879
879
|
...S ? {} : c,
|
|
880
880
|
children: [
|
|
881
881
|
/* @__PURE__ */ t.jsx(
|
|
@@ -931,14 +931,14 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
931
931
|
)
|
|
932
932
|
] }
|
|
933
933
|
),
|
|
934
|
-
S ? /* @__PURE__ */ t.jsx(E, { children:
|
|
934
|
+
S ? /* @__PURE__ */ t.jsx(E, { children: w }) : null
|
|
935
935
|
]
|
|
936
936
|
}
|
|
937
937
|
)
|
|
938
938
|
]
|
|
939
939
|
}
|
|
940
940
|
);
|
|
941
|
-
},
|
|
941
|
+
}, oe = (l) => /* @__PURE__ */ t.jsx(
|
|
942
942
|
Vt,
|
|
943
943
|
{
|
|
944
944
|
size: "sm",
|
|
@@ -988,7 +988,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
988
988
|
kitRegistrationElement: o,
|
|
989
989
|
profileElement: h,
|
|
990
990
|
cartElement: d,
|
|
991
|
-
onSearchClick:
|
|
991
|
+
onSearchClick: w,
|
|
992
992
|
onMenuClick: x,
|
|
993
993
|
hasSearch: m = !1,
|
|
994
994
|
logoLink: R = "https://www.everlywell.com",
|
|
@@ -996,16 +996,16 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
996
996
|
linkComponent: b,
|
|
997
997
|
onLogoClick: s
|
|
998
998
|
}) => {
|
|
999
|
-
const f = Jt(null), [
|
|
999
|
+
const f = Jt(null), [j, c] = V(0), S = 100, I = Xe(() => {
|
|
1000
1000
|
if (f.current && u) {
|
|
1001
1001
|
const $ = Date.now();
|
|
1002
|
-
if ($ -
|
|
1002
|
+
if ($ - j > S) {
|
|
1003
1003
|
const F = f.current.getBoundingClientRect().height;
|
|
1004
1004
|
u(F), c($);
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
|
-
}, [u,
|
|
1008
|
-
return
|
|
1007
|
+
}, [u, j]);
|
|
1008
|
+
return ae(() => {
|
|
1009
1009
|
I();
|
|
1010
1010
|
const $ = new ResizeObserver(() => {
|
|
1011
1011
|
I();
|
|
@@ -1038,7 +1038,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1038
1038
|
"aria-label": "Go to homepage",
|
|
1039
1039
|
onClick: s,
|
|
1040
1040
|
as: b || G,
|
|
1041
|
-
...
|
|
1041
|
+
...Pe(R, !!b),
|
|
1042
1042
|
children: /* @__PURE__ */ t.jsx(pn, {})
|
|
1043
1043
|
}
|
|
1044
1044
|
),
|
|
@@ -1056,18 +1056,18 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1056
1056
|
{ display: ["none", null, null, "block"], children: o }
|
|
1057
1057
|
),
|
|
1058
1058
|
m ? /* @__PURE__ */ t.jsx(
|
|
1059
|
-
|
|
1059
|
+
oe,
|
|
1060
1060
|
{
|
|
1061
1061
|
"aria-label": "Search",
|
|
1062
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1063
|
-
onClick:
|
|
1062
|
+
icon: /* @__PURE__ */ t.jsx(ie, { as: Ct }),
|
|
1063
|
+
onClick: w
|
|
1064
1064
|
}
|
|
1065
1065
|
) : null,
|
|
1066
1066
|
d,
|
|
1067
1067
|
/* @__PURE__ */ t.jsx(
|
|
1068
1068
|
E,
|
|
1069
1069
|
{ display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
|
|
1070
|
-
|
|
1070
|
+
oe,
|
|
1071
1071
|
{
|
|
1072
1072
|
icon: /* @__PURE__ */ t.jsx(rn, {}),
|
|
1073
1073
|
"aria-label": "menu",
|
|
@@ -1089,7 +1089,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1089
1089
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1090
1090
|
E,
|
|
1091
1091
|
{ position: "relative", display: "inline-block", children: [
|
|
1092
|
-
/* @__PURE__ */ t.jsx(
|
|
1092
|
+
/* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ln, {}), ...o }),
|
|
1093
1093
|
l > 0 && /* @__PURE__ */ t.jsx(
|
|
1094
1094
|
E,
|
|
1095
1095
|
{
|
|
@@ -1135,13 +1135,13 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1135
1135
|
/* @__PURE__ */ t.jsxs(
|
|
1136
1136
|
st,
|
|
1137
1137
|
{ spacing: 4, ml: "auto", children: [
|
|
1138
|
-
/* @__PURE__ */ t.jsx(
|
|
1138
|
+
/* @__PURE__ */ t.jsx(Le, { width: "120px", height: "48px" }),
|
|
1139
1139
|
" ",
|
|
1140
|
-
/* @__PURE__ */ t.jsx(
|
|
1140
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1141
1141
|
" ",
|
|
1142
|
-
/* @__PURE__ */ t.jsx(
|
|
1142
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1143
1143
|
" ",
|
|
1144
|
-
/* @__PURE__ */ t.jsx(
|
|
1144
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1145
1145
|
" "
|
|
1146
1146
|
] }
|
|
1147
1147
|
)
|
|
@@ -1168,7 +1168,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1168
1168
|
onClose: o,
|
|
1169
1169
|
title: h,
|
|
1170
1170
|
navDrawerLinks: d,
|
|
1171
|
-
bottomNavButtons:
|
|
1171
|
+
bottomNavButtons: w,
|
|
1172
1172
|
spotlightCards: x,
|
|
1173
1173
|
bottomButton: m,
|
|
1174
1174
|
hasBackButton: R = !0,
|
|
@@ -1176,19 +1176,18 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1176
1176
|
hasOnlySpotlightCards: b = !1,
|
|
1177
1177
|
navHeight: s,
|
|
1178
1178
|
hasSearch: f = !1,
|
|
1179
|
-
onSearch:
|
|
1180
|
-
}
|
|
1179
|
+
onSearch: j = () => ({})
|
|
1181
1180
|
}) => {
|
|
1182
1181
|
const c = mt({
|
|
1183
1182
|
base: !1,
|
|
1184
1183
|
tablet: !1,
|
|
1185
1184
|
largeTablet: !1,
|
|
1186
1185
|
desktop: !0
|
|
1187
|
-
}), S = c ? "top" : "left", [I, $] =
|
|
1188
|
-
$((
|
|
1186
|
+
}), S = c ? "top" : "left", [I, $] = V(0), F = () => {
|
|
1187
|
+
$((B) => B + 1);
|
|
1189
1188
|
}, T = Xe(
|
|
1190
|
-
xn((
|
|
1191
|
-
|
|
1189
|
+
xn((B) => {
|
|
1190
|
+
j(B), F();
|
|
1192
1191
|
}, 100),
|
|
1193
1192
|
[]
|
|
1194
1193
|
);
|
|
@@ -1222,6 +1221,10 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1222
1221
|
/* @__PURE__ */ t.jsxs(
|
|
1223
1222
|
Ut,
|
|
1224
1223
|
{
|
|
1224
|
+
onClick: (B) => {
|
|
1225
|
+
const J = B.target.closest("a");
|
|
1226
|
+
J && J.href === window.location.href && o();
|
|
1227
|
+
},
|
|
1225
1228
|
onMouseEnter: () => {
|
|
1226
1229
|
!f && c && vt(!0);
|
|
1227
1230
|
},
|
|
@@ -1251,7 +1254,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1251
1254
|
alignItems: "center",
|
|
1252
1255
|
children: [
|
|
1253
1256
|
R ? /* @__PURE__ */ t.jsx(
|
|
1254
|
-
|
|
1257
|
+
oe,
|
|
1255
1258
|
{
|
|
1256
1259
|
icon: /* @__PURE__ */ t.jsx(an, {}),
|
|
1257
1260
|
onClick: () => {
|
|
@@ -1265,7 +1268,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1265
1268
|
{ color: "tints.uiGrey", fontSize: ["xl", null, null, "lg"], children: h }
|
|
1266
1269
|
),
|
|
1267
1270
|
/* @__PURE__ */ t.jsx(
|
|
1268
|
-
|
|
1271
|
+
oe,
|
|
1269
1272
|
{
|
|
1270
1273
|
icon: /* @__PURE__ */ t.jsx(on, {}),
|
|
1271
1274
|
onClick: o,
|
|
@@ -1281,8 +1284,8 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1281
1284
|
/* @__PURE__ */ t.jsx(
|
|
1282
1285
|
en,
|
|
1283
1286
|
{
|
|
1284
|
-
onChange: (
|
|
1285
|
-
T(
|
|
1287
|
+
onChange: (B) => {
|
|
1288
|
+
T(B.target.value);
|
|
1286
1289
|
},
|
|
1287
1290
|
placeholder: "Search",
|
|
1288
1291
|
autoFocus: !0,
|
|
@@ -1373,7 +1376,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1373
1376
|
width: ["100%", null, null, f ? null : "auto"],
|
|
1374
1377
|
children: [
|
|
1375
1378
|
d ? /* @__PURE__ */ t.jsx(E, { children: d }) : null,
|
|
1376
|
-
|
|
1379
|
+
w && !c ? /* @__PURE__ */ t.jsx(E, { children: w }) : null,
|
|
1377
1380
|
m ? /* @__PURE__ */ t.jsx(
|
|
1378
1381
|
E,
|
|
1379
1382
|
{
|
|
@@ -1399,53 +1402,53 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1399
1402
|
]
|
|
1400
1403
|
}
|
|
1401
1404
|
);
|
|
1402
|
-
}, xt = (l) => {
|
|
1403
|
-
const o = /* @__PURE__ */ new Set();
|
|
1404
|
-
return l.reduce((h, d) => {
|
|
1405
|
-
var x;
|
|
1406
|
-
const j = ((x = d.sections) == null ? void 0 : x.reduce((m, R) => {
|
|
1407
|
-
const u = R.links.filter((b) => o.has(b.label) || b.isSearchable !== !0 ? !1 : (o.add(b.label), !0));
|
|
1408
|
-
return [...m, ...u];
|
|
1409
|
-
}, [])) ?? [];
|
|
1410
|
-
return [...h, ...j];
|
|
1411
|
-
}, []);
|
|
1412
1405
|
}, bn = ({
|
|
1413
1406
|
source: l,
|
|
1414
1407
|
onSearchCallback: o,
|
|
1415
1408
|
isActive: h
|
|
1416
1409
|
}) => {
|
|
1417
|
-
const [d,
|
|
1410
|
+
const [d, w] = V(""), [x, m] = V([]), R = (s, f) => {
|
|
1418
1411
|
if (!s)
|
|
1419
1412
|
return [];
|
|
1420
|
-
const
|
|
1413
|
+
const j = s.toLowerCase();
|
|
1421
1414
|
return f.filter((c) => {
|
|
1422
|
-
const S = c.label.toLowerCase().includes(
|
|
1415
|
+
const S = c.label.toLowerCase().includes(j), I = typeof c.additionalContent == "string" && c.additionalContent.toLowerCase().includes(j);
|
|
1423
1416
|
return S || I;
|
|
1424
1417
|
}).sort((c, S) => c.label.localeCompare(S.label));
|
|
1425
1418
|
}, u = (s) => {
|
|
1426
|
-
if (
|
|
1419
|
+
if (w(s), !s) {
|
|
1427
1420
|
m([]);
|
|
1428
1421
|
return;
|
|
1429
1422
|
}
|
|
1430
1423
|
const f = R(s, l);
|
|
1431
1424
|
m(f), o && o(s, f);
|
|
1432
1425
|
}, b = () => {
|
|
1433
|
-
|
|
1426
|
+
w(""), m([]);
|
|
1434
1427
|
};
|
|
1435
|
-
return
|
|
1436
|
-
h || (
|
|
1428
|
+
return ae(() => {
|
|
1429
|
+
h || (w(""), m([]));
|
|
1437
1430
|
}, [h]), {
|
|
1438
1431
|
query: d,
|
|
1439
1432
|
results: x,
|
|
1440
1433
|
handleClose: b,
|
|
1441
1434
|
handleSearch: u
|
|
1442
1435
|
};
|
|
1436
|
+
}, xt = (l) => {
|
|
1437
|
+
const o = /* @__PURE__ */ new Set();
|
|
1438
|
+
return l.reduce((h, d) => {
|
|
1439
|
+
var x;
|
|
1440
|
+
const w = ((x = d.sections) == null ? void 0 : x.reduce((m, R) => {
|
|
1441
|
+
const u = R.links.filter((b) => o.has(b.label) || b.isSearchable !== !0 ? !1 : (o.add(b.label), !0));
|
|
1442
|
+
return [...m, ...u];
|
|
1443
|
+
}, [])) ?? [];
|
|
1444
|
+
return [...h, ...w];
|
|
1445
|
+
}, []);
|
|
1443
1446
|
}, Sn = ({
|
|
1444
1447
|
categories: l = [],
|
|
1445
1448
|
onCartClick: o,
|
|
1446
1449
|
mainCategoryLabel: h = "Menu",
|
|
1447
1450
|
logoLink: d = "https://www.everlywell.com",
|
|
1448
|
-
hasSearch:
|
|
1451
|
+
hasSearch: w = !0,
|
|
1449
1452
|
onSearchClick: x,
|
|
1450
1453
|
registrationUrl: m,
|
|
1451
1454
|
profileUrl: R = "https://secure.everlywell.com/login",
|
|
@@ -1453,29 +1456,29 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1453
1456
|
numberOfCartItems: b = 0,
|
|
1454
1457
|
linkComponent: s,
|
|
1455
1458
|
onSearchCallback: f,
|
|
1456
|
-
onLinkClick:
|
|
1459
|
+
onLinkClick: j,
|
|
1457
1460
|
onCategoryOpen: c,
|
|
1458
1461
|
onMobileMenuOpen: S,
|
|
1459
1462
|
onBackToMainMenu: I,
|
|
1460
1463
|
onRegisterKitClick: $,
|
|
1461
1464
|
onProfileClick: F,
|
|
1462
1465
|
onLogoClick: T,
|
|
1463
|
-
shopAllProductsUrl:
|
|
1464
|
-
onShopAllProductsClick:
|
|
1466
|
+
shopAllProductsUrl: B,
|
|
1467
|
+
onShopAllProductsClick: be
|
|
1465
1468
|
}) => {
|
|
1466
|
-
var z,
|
|
1467
|
-
const [
|
|
1468
|
-
query:
|
|
1469
|
-
results:
|
|
1470
|
-
handleSearch:
|
|
1469
|
+
var z, pe, he;
|
|
1470
|
+
const [J, me] = V(!1), [Ce, q] = V(!1), [y, N] = V(null), [se, we] = V(0), [A, M] = V(!1), [Y, je] = V(!1), {
|
|
1471
|
+
query: ye,
|
|
1472
|
+
results: Q,
|
|
1473
|
+
handleSearch: Ee
|
|
1471
1474
|
} = bn({
|
|
1472
1475
|
source: xt(l),
|
|
1473
1476
|
onSearchCallback: f,
|
|
1474
|
-
isActive:
|
|
1475
|
-
}),
|
|
1477
|
+
isActive: Ce
|
|
1478
|
+
}), ue = Q.length > 0, Re = s || G, _e = Pe(B, !!s), Se = ye && /* @__PURE__ */ t.jsxs(
|
|
1476
1479
|
L,
|
|
1477
|
-
{ gap:
|
|
1478
|
-
|
|
1480
|
+
{ gap: ue ? "6" : 0, direction: "column", children: [
|
|
1481
|
+
ue ? /* @__PURE__ */ t.jsx(Z, { color: "tints.uiGrey", children: `${Q.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1479
1482
|
L,
|
|
1480
1483
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1481
1484
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1485,11 +1488,11 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1485
1488
|
/* @__PURE__ */ t.jsx(
|
|
1486
1489
|
gt,
|
|
1487
1490
|
{
|
|
1488
|
-
as:
|
|
1489
|
-
onClick:
|
|
1491
|
+
as: Re,
|
|
1492
|
+
onClick: be,
|
|
1490
1493
|
_hover: { textDecoration: "none" },
|
|
1491
1494
|
width: ["100%", null, null, "auto"],
|
|
1492
|
-
...
|
|
1495
|
+
..._e,
|
|
1493
1496
|
children: "Shop all products"
|
|
1494
1497
|
}
|
|
1495
1498
|
)
|
|
@@ -1497,7 +1500,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1497
1500
|
),
|
|
1498
1501
|
/* @__PURE__ */ t.jsx(
|
|
1499
1502
|
Kt,
|
|
1500
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1503
|
+
{ columns: [1, 1, 1, 4], children: Q.map(
|
|
1501
1504
|
(i, H) => /* @__PURE__ */ t.jsx(
|
|
1502
1505
|
Xt,
|
|
1503
1506
|
{ children: /* @__PURE__ */ t.jsx(
|
|
@@ -1515,19 +1518,19 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1515
1518
|
)
|
|
1516
1519
|
] }
|
|
1517
1520
|
), De = Xe((i) => {
|
|
1518
|
-
|
|
1519
|
-
}, []),
|
|
1520
|
-
|
|
1521
|
-
}, ue = (i) => {
|
|
1522
|
-
N(i);
|
|
1521
|
+
we(i);
|
|
1522
|
+
}, []), Te = () => {
|
|
1523
|
+
me(!1), N(null);
|
|
1523
1524
|
}, ce = (i) => {
|
|
1524
|
-
|
|
1525
|
-
},
|
|
1526
|
-
|
|
1525
|
+
N(i);
|
|
1526
|
+
}, de = (i) => {
|
|
1527
|
+
M(!0), q(!1), (i.sections || i.spotlightCards) && N(i);
|
|
1528
|
+
}, ee = () => {
|
|
1529
|
+
M(!1);
|
|
1527
1530
|
};
|
|
1528
|
-
|
|
1531
|
+
ae(() => {
|
|
1529
1532
|
const i = (H) => {
|
|
1530
|
-
|
|
1533
|
+
je(H.detail.isHovering);
|
|
1531
1534
|
};
|
|
1532
1535
|
return window.addEventListener(
|
|
1533
1536
|
Ze,
|
|
@@ -1538,30 +1541,30 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1538
1541
|
i
|
|
1539
1542
|
);
|
|
1540
1543
|
};
|
|
1541
|
-
}, []),
|
|
1542
|
-
!A && !Y && (N(null),
|
|
1543
|
-
}, [A, Y]),
|
|
1544
|
+
}, []), ae(() => {
|
|
1545
|
+
!A && !Y && (N(null), q(!1));
|
|
1546
|
+
}, [A, Y]), ae(() => {
|
|
1544
1547
|
let i = window.location.href;
|
|
1545
1548
|
const H = () => {
|
|
1546
1549
|
const O = window.location.href;
|
|
1547
|
-
O !== i && (i = O,
|
|
1550
|
+
O !== i && (i = O, Te(), N(null));
|
|
1548
1551
|
}, U = setInterval(H, 100);
|
|
1549
1552
|
return window.addEventListener("popstate", H), () => {
|
|
1550
1553
|
window.removeEventListener("popstate", H), clearInterval(U);
|
|
1551
1554
|
};
|
|
1552
1555
|
}, []);
|
|
1553
|
-
const
|
|
1556
|
+
const fe = () => {
|
|
1554
1557
|
N(null), I == null || I();
|
|
1555
|
-
},
|
|
1558
|
+
}, te = /* @__PURE__ */ t.jsx(
|
|
1556
1559
|
t.Fragment,
|
|
1557
1560
|
{ children: l == null ? void 0 : l.map(
|
|
1558
1561
|
(i, H) => /* @__PURE__ */ t.jsx(
|
|
1559
|
-
|
|
1562
|
+
Oe,
|
|
1560
1563
|
{
|
|
1561
1564
|
onMouseEnter: () => {
|
|
1562
|
-
|
|
1565
|
+
de(i), c == null || c(i.label);
|
|
1563
1566
|
},
|
|
1564
|
-
onMouseLeave:
|
|
1567
|
+
onMouseLeave: ee,
|
|
1565
1568
|
isSelected: (y == null ? void 0 : y.label) === i.label,
|
|
1566
1569
|
...i.buttonProps,
|
|
1567
1570
|
children: i.label
|
|
@@ -1574,7 +1577,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1574
1577
|
E,
|
|
1575
1578
|
{
|
|
1576
1579
|
onClick: () => {
|
|
1577
|
-
|
|
1580
|
+
ce(i), c == null || c(i.label);
|
|
1578
1581
|
},
|
|
1579
1582
|
children: /* @__PURE__ */ t.jsx(
|
|
1580
1583
|
ze,
|
|
@@ -1591,11 +1594,11 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1591
1594
|
)
|
|
1592
1595
|
);
|
|
1593
1596
|
xt(l);
|
|
1594
|
-
const
|
|
1597
|
+
const ke = /* @__PURE__ */ t.jsxs(
|
|
1595
1598
|
t.Fragment,
|
|
1596
1599
|
{ children: [
|
|
1597
1600
|
/* @__PURE__ */ t.jsx(
|
|
1598
|
-
|
|
1601
|
+
Oe,
|
|
1599
1602
|
{
|
|
1600
1603
|
as: G,
|
|
1601
1604
|
href: R,
|
|
@@ -1606,14 +1609,14 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1606
1609
|
L,
|
|
1607
1610
|
{ gap: "2", children: [
|
|
1608
1611
|
"My Everly",
|
|
1609
|
-
/* @__PURE__ */ t.jsx(
|
|
1612
|
+
/* @__PURE__ */ t.jsx(ie, { as: ct, size: 24 })
|
|
1610
1613
|
] }
|
|
1611
1614
|
)
|
|
1612
1615
|
},
|
|
1613
1616
|
"my-everly"
|
|
1614
1617
|
),
|
|
1615
1618
|
/* @__PURE__ */ t.jsx(
|
|
1616
|
-
|
|
1619
|
+
Oe,
|
|
1617
1620
|
{
|
|
1618
1621
|
as: G,
|
|
1619
1622
|
width: "100%",
|
|
@@ -1624,7 +1627,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1624
1627
|
L,
|
|
1625
1628
|
{ gap: "2", children: [
|
|
1626
1629
|
"Register kit",
|
|
1627
|
-
/* @__PURE__ */ t.jsx(
|
|
1630
|
+
/* @__PURE__ */ t.jsx(ie, { as: sn, size: 24 })
|
|
1628
1631
|
] }
|
|
1629
1632
|
)
|
|
1630
1633
|
},
|
|
@@ -1635,11 +1638,11 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1635
1638
|
L,
|
|
1636
1639
|
{ gap: "2", flexDirection: "column", children: [
|
|
1637
1640
|
u,
|
|
1638
|
-
|
|
1641
|
+
ke
|
|
1639
1642
|
] }
|
|
1640
1643
|
), Ae = y ? /* @__PURE__ */ t.jsx(
|
|
1641
1644
|
L,
|
|
1642
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (
|
|
1645
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (pe = y == null ? void 0 : y.sections) == null ? void 0 : pe.map((i, H) => {
|
|
1643
1646
|
const U = [];
|
|
1644
1647
|
for (let O = 0; O < i.links.length; O += 3)
|
|
1645
1648
|
U.push(i.links.slice(O, O + 3));
|
|
@@ -1675,7 +1678,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1675
1678
|
href: K.href,
|
|
1676
1679
|
additionalContent: K.additionalContent,
|
|
1677
1680
|
linkComponent: s,
|
|
1678
|
-
onClick: () =>
|
|
1681
|
+
onClick: () => j == null ? void 0 : j(K.label)
|
|
1679
1682
|
},
|
|
1680
1683
|
K.label
|
|
1681
1684
|
)
|
|
@@ -1690,7 +1693,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1690
1693
|
`${i.title}-${H}`
|
|
1691
1694
|
);
|
|
1692
1695
|
}) }
|
|
1693
|
-
) : null,
|
|
1696
|
+
) : null, ne = y != null && y.spotlightCards ? (he = y.spotlightCards) == null ? void 0 : he.map(
|
|
1694
1697
|
(i) => /* @__PURE__ */ t.jsx(fn, { ...i }, i.title)
|
|
1695
1698
|
) : /* @__PURE__ */ t.jsx(E, {});
|
|
1696
1699
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -1699,9 +1702,9 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1699
1702
|
/* @__PURE__ */ t.jsx(
|
|
1700
1703
|
hn,
|
|
1701
1704
|
{
|
|
1702
|
-
desktopTopButtons:
|
|
1705
|
+
desktopTopButtons: te,
|
|
1703
1706
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1704
|
-
|
|
1707
|
+
Oe,
|
|
1705
1708
|
{
|
|
1706
1709
|
as: G,
|
|
1707
1710
|
href: m,
|
|
@@ -1712,7 +1715,7 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1712
1715
|
),
|
|
1713
1716
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1714
1717
|
G,
|
|
1715
|
-
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(
|
|
1718
|
+
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ie, { as: ct }), "aria-label": "Profile" }) }
|
|
1716
1719
|
),
|
|
1717
1720
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1718
1721
|
vn,
|
|
@@ -1723,12 +1726,12 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1723
1726
|
}
|
|
1724
1727
|
),
|
|
1725
1728
|
onSearchClick: () => {
|
|
1726
|
-
|
|
1729
|
+
q(!0), x == null || x();
|
|
1727
1730
|
},
|
|
1728
1731
|
onMenuClick: () => {
|
|
1729
|
-
|
|
1732
|
+
me(!0), S == null || S();
|
|
1730
1733
|
},
|
|
1731
|
-
hasSearch:
|
|
1734
|
+
hasSearch: w,
|
|
1732
1735
|
logoLink: d,
|
|
1733
1736
|
onHeightChange: De,
|
|
1734
1737
|
linkComponent: s,
|
|
@@ -1738,13 +1741,13 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1738
1741
|
/* @__PURE__ */ t.jsx(
|
|
1739
1742
|
Ue,
|
|
1740
1743
|
{
|
|
1741
|
-
isOpen:
|
|
1742
|
-
onClose:
|
|
1744
|
+
isOpen: J,
|
|
1745
|
+
onClose: Te,
|
|
1743
1746
|
title: h,
|
|
1744
1747
|
navDrawerLinks: Ie,
|
|
1745
1748
|
bottomNavButtons: Fe,
|
|
1746
1749
|
hasBackButton: !1,
|
|
1747
|
-
navHeight:
|
|
1750
|
+
navHeight: se
|
|
1748
1751
|
}
|
|
1749
1752
|
),
|
|
1750
1753
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1754,22 +1757,22 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1754
1757
|
onClose: () => N(null),
|
|
1755
1758
|
title: (y == null ? void 0 : y.label) || "",
|
|
1756
1759
|
navDrawerLinks: Ae,
|
|
1757
|
-
onBackClick:
|
|
1758
|
-
spotlightCards:
|
|
1760
|
+
onBackClick: fe,
|
|
1761
|
+
spotlightCards: ne,
|
|
1759
1762
|
hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
|
|
1760
|
-
navHeight:
|
|
1763
|
+
navHeight: se,
|
|
1761
1764
|
bottomButton: y == null ? void 0 : y.bottomButton
|
|
1762
1765
|
}
|
|
1763
1766
|
),
|
|
1764
1767
|
/* @__PURE__ */ t.jsx(
|
|
1765
1768
|
Ue,
|
|
1766
1769
|
{
|
|
1767
|
-
isOpen:
|
|
1768
|
-
onClose: () =>
|
|
1770
|
+
isOpen: Ce,
|
|
1771
|
+
onClose: () => q(!1),
|
|
1769
1772
|
title: "Search",
|
|
1770
|
-
navHeight:
|
|
1771
|
-
navDrawerLinks:
|
|
1772
|
-
onSearch:
|
|
1773
|
+
navHeight: se,
|
|
1774
|
+
navDrawerLinks: Se,
|
|
1775
|
+
onSearch: Ee,
|
|
1773
1776
|
hasSearch: !0,
|
|
1774
1777
|
hasBackButton: !1
|
|
1775
1778
|
}
|
|
@@ -1780,13 +1783,13 @@ const Ye = 60, ht = 6, dn = (l) => {
|
|
|
1780
1783
|
export {
|
|
1781
1784
|
vn as BasketButton,
|
|
1782
1785
|
Rn as CategoryLabel,
|
|
1783
|
-
|
|
1786
|
+
Oe as NavButton,
|
|
1784
1787
|
_n as NavSkeleton,
|
|
1785
1788
|
Ue as NavbarDrawer,
|
|
1786
1789
|
ze as NavbarDrawerLink,
|
|
1787
1790
|
Sn as NavigationBar,
|
|
1788
1791
|
fn as SpotlightCard,
|
|
1789
1792
|
En as Stepper,
|
|
1790
|
-
|
|
1793
|
+
oe as TopNavIconButton,
|
|
1791
1794
|
hn as TopNavigation
|
|
1792
1795
|
};
|