@everlywell/consumer-ui 1.27.0 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -7
- package/index.mjs +208 -201
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.builder.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts +2 -0
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -18,16 +18,16 @@ function on() {
|
|
|
18
18
|
if (st)
|
|
19
19
|
return pe;
|
|
20
20
|
st = 1;
|
|
21
|
-
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty,
|
|
22
|
-
function m(
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
d.call(
|
|
27
|
-
if (
|
|
28
|
-
for (
|
|
29
|
-
p[
|
|
30
|
-
return { $$typeof: a, type:
|
|
21
|
+
var l = Ye, a = 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
|
+
function m(E, o, b) {
|
|
23
|
+
var s, p = {}, j = null, c = null;
|
|
24
|
+
b !== void 0 && (j = "" + b), o.key !== void 0 && (j = "" + o.key), o.ref !== void 0 && (c = o.ref);
|
|
25
|
+
for (s in o)
|
|
26
|
+
d.call(o, s) && !x.hasOwnProperty(s) && (p[s] = o[s]);
|
|
27
|
+
if (E && E.defaultProps)
|
|
28
|
+
for (s in o = E.defaultProps, o)
|
|
29
|
+
p[s] === void 0 && (p[s] = o[s]);
|
|
30
|
+
return { $$typeof: a, type: E, key: j, ref: c, props: p, _owner: w.current };
|
|
31
31
|
}
|
|
32
32
|
return pe.Fragment = h, pe.jsx = m, pe.jsxs = m, pe;
|
|
33
33
|
}
|
|
@@ -44,7 +44,7 @@ var he = {};
|
|
|
44
44
|
var ut;
|
|
45
45
|
function sn() {
|
|
46
46
|
return ut || (ut = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"),
|
|
47
|
+
var l = Ye, a = 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"), E = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
|
|
48
48
|
function W(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
@@ -61,18 +61,18 @@ function sn() {
|
|
|
61
61
|
}
|
|
62
62
|
function N(e, n, r) {
|
|
63
63
|
{
|
|
64
|
-
var i = H.ReactDebugCurrentFrame,
|
|
65
|
-
|
|
64
|
+
var i = H.ReactDebugCurrentFrame, g = i.getStackAddendum();
|
|
65
|
+
g !== "" && (n += "%s", r = r.concat([g]));
|
|
66
66
|
var C = r.map(function(v) {
|
|
67
67
|
return String(v);
|
|
68
68
|
});
|
|
69
69
|
C.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, C);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var ve = !1, xe = !1, J = !1,
|
|
72
|
+
var ve = !1, xe = !1, J = !1, R = !1, Y = !1, q;
|
|
73
73
|
q = Symbol.for("react.module.reference");
|
|
74
74
|
function ke(e) {
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e ===
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || Y || e === w || e === b || e === s || R || e === c || ve || xe || J || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === p || e.$$typeof === m || e.$$typeof === E || e.$$typeof === o || // 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.
|
|
@@ -82,8 +82,8 @@ function sn() {
|
|
|
82
82
|
var i = e.displayName;
|
|
83
83
|
if (i)
|
|
84
84
|
return i;
|
|
85
|
-
var
|
|
86
|
-
return
|
|
85
|
+
var g = n.displayName || n.name || "";
|
|
86
|
+
return g !== "" ? r + "(" + g + ")" : r;
|
|
87
87
|
}
|
|
88
88
|
function ae(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
@@ -100,30 +100,30 @@ function sn() {
|
|
|
100
100
|
return "Fragment";
|
|
101
101
|
case h:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case x:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case
|
|
105
|
+
case w:
|
|
106
106
|
return "StrictMode";
|
|
107
|
-
case
|
|
107
|
+
case b:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case s:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
|
-
case
|
|
114
|
+
case E:
|
|
115
115
|
var n = e;
|
|
116
116
|
return ae(n) + ".Consumer";
|
|
117
117
|
case m:
|
|
118
118
|
var r = e;
|
|
119
119
|
return ae(r._context) + ".Provider";
|
|
120
|
-
case
|
|
120
|
+
case o:
|
|
121
121
|
return ge(e, e.render, "ForwardRef");
|
|
122
122
|
case p:
|
|
123
123
|
var i = e.displayName || null;
|
|
124
124
|
return i !== null ? i : $(e.type) || "Memo";
|
|
125
|
-
case
|
|
126
|
-
var
|
|
125
|
+
case j: {
|
|
126
|
+
var g = e, C = g._payload, v = g._init;
|
|
127
127
|
try {
|
|
128
128
|
return $(v(C));
|
|
129
129
|
} catch {
|
|
@@ -133,14 +133,14 @@ function sn() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var z = Object.assign, G = 0, Z, be, me, Ce, oe,
|
|
136
|
+
var z = Object.assign, G = 0, Z, be, me, Ce, oe, we, je;
|
|
137
137
|
function ye() {
|
|
138
138
|
}
|
|
139
139
|
ye.__reactDisabledLog = !0;
|
|
140
140
|
function Le() {
|
|
141
141
|
{
|
|
142
142
|
if (G === 0) {
|
|
143
|
-
Z = console.log, be = console.info, me = console.warn, Ce = console.error, oe = console.group,
|
|
143
|
+
Z = console.log, be = console.info, me = console.warn, Ce = console.error, oe = console.group, we = console.groupCollapsed, je = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
@@ -185,10 +185,10 @@ function sn() {
|
|
|
185
185
|
value: oe
|
|
186
186
|
}),
|
|
187
187
|
groupCollapsed: z({}, e, {
|
|
188
|
-
value:
|
|
188
|
+
value: we
|
|
189
189
|
}),
|
|
190
190
|
groupEnd: z({}, e, {
|
|
191
|
-
value:
|
|
191
|
+
value: je
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
@@ -201,8 +201,8 @@ function sn() {
|
|
|
201
201
|
if (ue === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var i =
|
|
204
|
+
} catch (g) {
|
|
205
|
+
var i = g.stack.trim().match(/\n( *(at )?)/);
|
|
206
206
|
ue = i && i[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
@@ -224,7 +224,7 @@ function sn() {
|
|
|
224
224
|
}
|
|
225
225
|
var i;
|
|
226
226
|
ce = !0;
|
|
227
|
-
var
|
|
227
|
+
var g = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var C;
|
|
230
230
|
C = se.current, se.current = null, Le();
|
|
@@ -280,7 +280,7 @@ function sn() {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
ce = !1, se.current = C, Oe(), Error.prepareStackTrace =
|
|
283
|
+
ce = !1, se.current = C, Oe(), Error.prepareStackTrace = g;
|
|
284
284
|
}
|
|
285
285
|
var ne = e ? e.displayName || e.name : "", K = ne ? Q(ne) : "";
|
|
286
286
|
return typeof e == "function" && ee.set(e, K), K;
|
|
@@ -288,7 +288,7 @@ function sn() {
|
|
|
288
288
|
function Re(e, n, r) {
|
|
289
289
|
return de(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function u(e) {
|
|
292
292
|
var n = e.prototype;
|
|
293
293
|
return !!(n && n.isReactComponent);
|
|
294
294
|
}
|
|
@@ -296,25 +296,25 @@ function sn() {
|
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return de(e,
|
|
299
|
+
return de(e, u(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
301
|
return Q(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
303
|
+
case b:
|
|
304
304
|
return Q("Suspense");
|
|
305
|
-
case
|
|
305
|
+
case s:
|
|
306
306
|
return Q("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
|
-
case
|
|
310
|
+
case o:
|
|
311
311
|
return Re(e.render);
|
|
312
312
|
case p:
|
|
313
313
|
return O(e.type, n, r);
|
|
314
|
-
case
|
|
315
|
-
var i = e,
|
|
314
|
+
case j: {
|
|
315
|
+
var i = e, g = i._payload, C = i._init;
|
|
316
316
|
try {
|
|
317
|
-
return O(C(
|
|
317
|
+
return O(C(g), n, r);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
@@ -329,7 +329,7 @@ function sn() {
|
|
|
329
329
|
} else
|
|
330
330
|
_e.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function vt(e, n, r, i,
|
|
332
|
+
function vt(e, n, r, i, g) {
|
|
333
333
|
{
|
|
334
334
|
var C = Function.call.bind(k);
|
|
335
335
|
for (var v in e)
|
|
@@ -344,7 +344,7 @@ function sn() {
|
|
|
344
344
|
} catch (_) {
|
|
345
345
|
f = _;
|
|
346
346
|
}
|
|
347
|
-
f && !(f instanceof Error) && (B(
|
|
347
|
+
f && !(f instanceof Error) && (B(g), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", r, v, typeof f), B(null)), f instanceof Error && !(f.message in D) && (D[f.message] = !0, B(g), S("Failed %s type: %s", r, f.message), B(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -387,7 +387,7 @@ function sn() {
|
|
|
387
387
|
}
|
|
388
388
|
return e.ref !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function wt(e) {
|
|
391
391
|
if (k.call(e, "key")) {
|
|
392
392
|
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
393
393
|
if (n && n.isReactWarning)
|
|
@@ -395,7 +395,7 @@ function sn() {
|
|
|
395
395
|
}
|
|
396
396
|
return e.key !== void 0;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function jt(e, n) {
|
|
399
399
|
if (typeof e.ref == "string" && fe.current && n && fe.current.stateNode !== n) {
|
|
400
400
|
var r = $(fe.current.type);
|
|
401
401
|
De[r] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(fe.current.type), e.ref), De[r] = !0);
|
|
@@ -423,7 +423,7 @@ function sn() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var Rt = function(e, n, r, i,
|
|
426
|
+
var Rt = function(e, n, r, i, g, C, v) {
|
|
427
427
|
var f = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
429
|
$$typeof: a,
|
|
@@ -449,13 +449,13 @@ function sn() {
|
|
|
449
449
|
configurable: !1,
|
|
450
450
|
enumerable: !1,
|
|
451
451
|
writable: !1,
|
|
452
|
-
value:
|
|
452
|
+
value: g
|
|
453
453
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
454
454
|
};
|
|
455
|
-
function _t(e, n, r, i,
|
|
455
|
+
function _t(e, n, r, i, g) {
|
|
456
456
|
{
|
|
457
457
|
var C, v = {}, f = null, I = null;
|
|
458
|
-
r !== void 0 && (Ze(r), f = "" + r),
|
|
458
|
+
r !== void 0 && (Ze(r), f = "" + r), wt(n) && (Ze(n.key), f = "" + n.key), Ct(n) && (I = n.ref, jt(n, g));
|
|
459
459
|
for (C in n)
|
|
460
460
|
k.call(n, C) && !mt.hasOwnProperty(C) && (v[C] = n[C]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
@@ -467,7 +467,7 @@ function sn() {
|
|
|
467
467
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
468
|
f && yt(v, T), I && Et(v, T);
|
|
469
469
|
}
|
|
470
|
-
return Rt(e, f, I,
|
|
470
|
+
return Rt(e, f, I, g, i, fe.current, v);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
var Ie = H.ReactCurrentOwner, Je = H.ReactDebugCurrentFrame;
|
|
@@ -544,9 +544,9 @@ Check the top-level render call using <` + r + ">.");
|
|
|
544
544
|
else if (Ae(e))
|
|
545
545
|
e._store && (e._store.validated = !0);
|
|
546
546
|
else if (e) {
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
for (var C =
|
|
547
|
+
var g = W(e);
|
|
548
|
+
if (typeof g == "function" && g !== e.entries)
|
|
549
|
+
for (var C = g.call(e), v; !(v = C.next()).done; )
|
|
550
550
|
Ae(v.value) && et(v.value, n);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
@@ -559,7 +559,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
559
559
|
var r;
|
|
560
560
|
if (typeof n == "function")
|
|
561
561
|
r = n.propTypes;
|
|
562
|
-
else if (typeof n == "object" && (n.$$typeof ===
|
|
562
|
+
else if (typeof n == "object" && (n.$$typeof === o || // Note: Memo only checks outer props here.
|
|
563
563
|
// Inner props are checked in the reconciler.
|
|
564
564
|
n.$$typeof === p))
|
|
565
565
|
r = n.propTypes;
|
|
@@ -570,8 +570,8 @@ Check the top-level render call using <` + r + ">.");
|
|
|
570
570
|
vt(r, e.props, "prop", i, e);
|
|
571
571
|
} else if (n.PropTypes !== void 0 && !Fe) {
|
|
572
572
|
Fe = !0;
|
|
573
|
-
var
|
|
574
|
-
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
573
|
+
var g = $(n);
|
|
574
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
|
|
575
575
|
}
|
|
576
576
|
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
@@ -589,18 +589,18 @@ Check the top-level render call using <` + r + ">.");
|
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var nt = {};
|
|
592
|
-
function rt(e, n, r, i,
|
|
592
|
+
function rt(e, n, r, i, g, C) {
|
|
593
593
|
{
|
|
594
594
|
var v = ke(e);
|
|
595
595
|
if (!v) {
|
|
596
596
|
var f = "";
|
|
597
597
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
-
var I = St(
|
|
598
|
+
var I = St(g);
|
|
599
599
|
I ? f += I : f += qe();
|
|
600
600
|
var _;
|
|
601
601
|
e === null ? _ = "null" : Pe(e) ? _ = "array" : e !== void 0 && e.$$typeof === a ? (_ = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, f);
|
|
602
602
|
}
|
|
603
|
-
var T = _t(e, n, r,
|
|
603
|
+
var T = _t(e, n, r, g, C);
|
|
604
604
|
if (T == null)
|
|
605
605
|
return T;
|
|
606
606
|
if (v) {
|
|
@@ -650,11 +650,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
650
650
|
activeStepIndex: a,
|
|
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
|
}
|
|
657
|
-
} = l, { activeStep:
|
|
657
|
+
} = l, { activeStep: x, setActiveStep: m } = Ht({
|
|
658
658
|
index: a,
|
|
659
659
|
count: d.length
|
|
660
660
|
});
|
|
@@ -666,21 +666,21 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
666
666
|
$t,
|
|
667
667
|
{
|
|
668
668
|
role: "progressbar",
|
|
669
|
-
index:
|
|
669
|
+
index: x,
|
|
670
670
|
width: "100%",
|
|
671
671
|
display: "flex",
|
|
672
672
|
flexWrap: "nowrap",
|
|
673
|
-
children: d.map((
|
|
674
|
-
const
|
|
673
|
+
children: d.map((E, o) => {
|
|
674
|
+
const b = x === o, s = o === 0, p = o === d.length - 1, j = x > o;
|
|
675
675
|
let c = `${We}px`;
|
|
676
676
|
const P = `calc(100% - ((${We * (d.length - 1)}px) - (${d.length - 1} * ${ct * 2}px)))`;
|
|
677
|
-
return
|
|
677
|
+
return b ? c = P : (s || p) && (c = `${We - ct}px`), /* @__PURE__ */ t.jsx(
|
|
678
678
|
y,
|
|
679
679
|
{
|
|
680
680
|
width: c,
|
|
681
|
-
opacity:
|
|
681
|
+
opacity: j || b ? 1 : 0.2,
|
|
682
682
|
paddingRight: p ? "0" : "6px",
|
|
683
|
-
paddingLeft:
|
|
683
|
+
paddingLeft: s ? "0" : "6px",
|
|
684
684
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
685
685
|
children: /* @__PURE__ */ t.jsx(
|
|
686
686
|
y,
|
|
@@ -694,7 +694,7 @@ const We = 60, ct = 6, un = (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"
|
|
@@ -703,13 +703,13 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
703
703
|
}
|
|
704
704
|
)
|
|
705
705
|
},
|
|
706
|
-
`step-${
|
|
706
|
+
`step-${o}`
|
|
707
707
|
);
|
|
708
708
|
})
|
|
709
709
|
}
|
|
710
710
|
) }
|
|
711
711
|
);
|
|
712
|
-
},
|
|
712
|
+
}, jn = Ye.memo(un), yn = ({
|
|
713
713
|
children: l,
|
|
714
714
|
...a
|
|
715
715
|
}) => /* @__PURE__ */ t.jsx(
|
|
@@ -727,16 +727,16 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
727
727
|
const {
|
|
728
728
|
label: h,
|
|
729
729
|
additionalContent: d,
|
|
730
|
-
mainTextFontSize:
|
|
731
|
-
linkComponent:
|
|
730
|
+
mainTextFontSize: w,
|
|
731
|
+
linkComponent: x,
|
|
732
732
|
href: m,
|
|
733
|
-
...
|
|
734
|
-
} = l,
|
|
733
|
+
...E
|
|
734
|
+
} = l, o = x || X, b = Ue(m, !!x);
|
|
735
735
|
return /* @__PURE__ */ t.jsxs(
|
|
736
736
|
y,
|
|
737
737
|
{
|
|
738
738
|
ref: a,
|
|
739
|
-
as:
|
|
739
|
+
as: o,
|
|
740
740
|
display: "flex",
|
|
741
741
|
alignItems: "center",
|
|
742
742
|
gap: [null, null, null, 1],
|
|
@@ -748,8 +748,8 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
748
748
|
borderColor: ["tints.cream", null, null, "unset"],
|
|
749
749
|
width: ["100%", null, null, "fit-content"],
|
|
750
750
|
cursor: "pointer",
|
|
751
|
-
...
|
|
752
|
-
...
|
|
751
|
+
...b,
|
|
752
|
+
...E,
|
|
753
753
|
children: [
|
|
754
754
|
/* @__PURE__ */ t.jsx(
|
|
755
755
|
re,
|
|
@@ -769,7 +769,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
769
769
|
/* @__PURE__ */ t.jsx(
|
|
770
770
|
U,
|
|
771
771
|
{
|
|
772
|
-
fontSize: [
|
|
772
|
+
fontSize: [w || "xl", null, null, "lg"],
|
|
773
773
|
fontWeight: "medium",
|
|
774
774
|
children: h
|
|
775
775
|
}
|
|
@@ -808,13 +808,13 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
808
808
|
}
|
|
809
809
|
), Te = pt(
|
|
810
810
|
(l, a) => {
|
|
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
|
Wt,
|
|
814
814
|
{
|
|
815
815
|
ref: a,
|
|
816
816
|
borderRadius: "full",
|
|
817
|
-
backgroundColor:
|
|
817
|
+
backgroundColor: x,
|
|
818
818
|
fontSize: "lg !important",
|
|
819
819
|
fontWeight: "normal",
|
|
820
820
|
color: "tints.black",
|
|
@@ -827,11 +827,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
827
827
|
left: [null, null, null, -2]
|
|
828
828
|
},
|
|
829
829
|
_hover: {
|
|
830
|
-
backgroundColor:
|
|
830
|
+
backgroundColor: x,
|
|
831
831
|
textDecoration: "none",
|
|
832
832
|
filter: "brightness(0.95)"
|
|
833
833
|
},
|
|
834
|
-
...
|
|
834
|
+
...w,
|
|
835
835
|
children: h
|
|
836
836
|
}
|
|
837
837
|
);
|
|
@@ -841,13 +841,13 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
841
841
|
description: a,
|
|
842
842
|
imageSrc: h,
|
|
843
843
|
imageElement: d,
|
|
844
|
-
button:
|
|
845
|
-
backgroundColor:
|
|
844
|
+
button: w,
|
|
845
|
+
backgroundColor: x = "viridian.wash",
|
|
846
846
|
onClick: m,
|
|
847
|
-
href:
|
|
848
|
-
linkComponent:
|
|
847
|
+
href: E,
|
|
848
|
+
linkComponent: o
|
|
849
849
|
}) => {
|
|
850
|
-
const
|
|
850
|
+
const b = "80px", s = "200px", p = "272px", j = o || X, c = Ue(E, !!o);
|
|
851
851
|
return /* @__PURE__ */ t.jsxs(
|
|
852
852
|
L,
|
|
853
853
|
{
|
|
@@ -855,8 +855,8 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
855
855
|
alignItems: ["center"],
|
|
856
856
|
borderRadius: "xl",
|
|
857
857
|
overflow: "hidden",
|
|
858
|
-
height: [
|
|
859
|
-
backgroundColor:
|
|
858
|
+
height: [b, null, null, p],
|
|
859
|
+
backgroundColor: x,
|
|
860
860
|
onClick: m,
|
|
861
861
|
"data-testid": "spotlight-card",
|
|
862
862
|
position: "relative",
|
|
@@ -870,7 +870,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
870
870
|
border: "1px solid",
|
|
871
871
|
borderColor: "tints.white"
|
|
872
872
|
},
|
|
873
|
-
as:
|
|
873
|
+
as: j,
|
|
874
874
|
...c,
|
|
875
875
|
children: [
|
|
876
876
|
/* @__PURE__ */ t.jsx(
|
|
@@ -884,7 +884,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
884
884
|
{
|
|
885
885
|
src: h,
|
|
886
886
|
objectFit: "cover",
|
|
887
|
-
height: [
|
|
887
|
+
height: [b, null, null, s],
|
|
888
888
|
width: "100%",
|
|
889
889
|
alt: "",
|
|
890
890
|
"data-testid": "spotlight-card-image"
|
|
@@ -892,7 +892,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
892
892
|
) : /* @__PURE__ */ t.jsx(
|
|
893
893
|
y,
|
|
894
894
|
{
|
|
895
|
-
height: [
|
|
895
|
+
height: [b, null, null, s],
|
|
896
896
|
overflow: "hidden",
|
|
897
897
|
children: d
|
|
898
898
|
}
|
|
@@ -910,7 +910,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
910
910
|
width: "100%",
|
|
911
911
|
position: [null, null, null, "absolute"],
|
|
912
912
|
bottom: [null, null, null, "0"],
|
|
913
|
-
backgroundColor: [null, null, null, `${
|
|
913
|
+
backgroundColor: [null, null, null, `${x}CC`],
|
|
914
914
|
backdropFilter: [null, null, null, "blur(8px)"],
|
|
915
915
|
children: [
|
|
916
916
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -926,7 +926,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
926
926
|
)
|
|
927
927
|
] }
|
|
928
928
|
),
|
|
929
|
-
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children:
|
|
929
|
+
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: w })
|
|
930
930
|
]
|
|
931
931
|
}
|
|
932
932
|
)
|
|
@@ -983,23 +983,23 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
983
983
|
kitRegistrationElement: a,
|
|
984
984
|
profileElement: h,
|
|
985
985
|
cartElement: d,
|
|
986
|
-
onSearchClick:
|
|
987
|
-
onMenuClick:
|
|
986
|
+
onSearchClick: w,
|
|
987
|
+
onMenuClick: x,
|
|
988
988
|
hasSearch: m = !1,
|
|
989
|
-
logoLink:
|
|
990
|
-
onHeightChange:
|
|
991
|
-
linkComponent:
|
|
992
|
-
onLogoClick:
|
|
989
|
+
logoLink: E = "https://www.everlywell.com",
|
|
990
|
+
onHeightChange: o,
|
|
991
|
+
linkComponent: b,
|
|
992
|
+
onLogoClick: s
|
|
993
993
|
}) => {
|
|
994
|
-
const p = Zt(null), [
|
|
995
|
-
if (p.current &&
|
|
994
|
+
const p = Zt(null), [j, c] = V(0), P = 100, A = ze(() => {
|
|
995
|
+
if (p.current && o) {
|
|
996
996
|
const W = Date.now();
|
|
997
|
-
if (W -
|
|
997
|
+
if (W - j > P) {
|
|
998
998
|
const H = p.current.getBoundingClientRect().height;
|
|
999
|
-
|
|
999
|
+
o(H), c(W);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
}, [
|
|
1002
|
+
}, [o, j]);
|
|
1003
1003
|
return le(() => {
|
|
1004
1004
|
A();
|
|
1005
1005
|
const W = new ResizeObserver(() => {
|
|
@@ -1030,9 +1030,9 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1030
1030
|
y,
|
|
1031
1031
|
{
|
|
1032
1032
|
"aria-label": "Go to homepage",
|
|
1033
|
-
onClick:
|
|
1034
|
-
as:
|
|
1035
|
-
...Ue(
|
|
1033
|
+
onClick: s,
|
|
1034
|
+
as: b || X,
|
|
1035
|
+
...Ue(E, !!b),
|
|
1036
1036
|
children: /* @__PURE__ */ t.jsx(dn, {})
|
|
1037
1037
|
}
|
|
1038
1038
|
),
|
|
@@ -1054,7 +1054,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1054
1054
|
{
|
|
1055
1055
|
"aria-label": "Search",
|
|
1056
1056
|
icon: /* @__PURE__ */ t.jsx(re, { as: ht }),
|
|
1057
|
-
onClick:
|
|
1057
|
+
onClick: w
|
|
1058
1058
|
}
|
|
1059
1059
|
) : null,
|
|
1060
1060
|
d,
|
|
@@ -1066,7 +1066,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1066
1066
|
icon: /* @__PURE__ */ t.jsx(tn, {}),
|
|
1067
1067
|
"aria-label": "menu",
|
|
1068
1068
|
"data-testid": "menu-button",
|
|
1069
|
-
onClick:
|
|
1069
|
+
onClick: x
|
|
1070
1070
|
}
|
|
1071
1071
|
) }
|
|
1072
1072
|
),
|
|
@@ -1162,15 +1162,15 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1162
1162
|
onClose: a,
|
|
1163
1163
|
title: h,
|
|
1164
1164
|
navDrawerLinks: d,
|
|
1165
|
-
bottomNavButtons:
|
|
1166
|
-
spotlightCards:
|
|
1165
|
+
bottomNavButtons: w,
|
|
1166
|
+
spotlightCards: x,
|
|
1167
1167
|
bottomButton: m,
|
|
1168
|
-
hasBackButton:
|
|
1169
|
-
onBackClick:
|
|
1170
|
-
hasOnlySpotlightCards:
|
|
1171
|
-
navHeight:
|
|
1168
|
+
hasBackButton: E = !0,
|
|
1169
|
+
onBackClick: o,
|
|
1170
|
+
hasOnlySpotlightCards: b = !1,
|
|
1171
|
+
navHeight: s,
|
|
1172
1172
|
hasSearch: p = !1,
|
|
1173
|
-
onSearch:
|
|
1173
|
+
onSearch: j = () => {
|
|
1174
1174
|
}
|
|
1175
1175
|
}) => {
|
|
1176
1176
|
const c = Xt({
|
|
@@ -1182,7 +1182,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1182
1182
|
W((N) => N + 1);
|
|
1183
1183
|
}, S = ze(
|
|
1184
1184
|
hn((N) => {
|
|
1185
|
-
|
|
1185
|
+
j(N), H();
|
|
1186
1186
|
}, 100),
|
|
1187
1187
|
[]
|
|
1188
1188
|
);
|
|
@@ -1199,7 +1199,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1199
1199
|
Yt,
|
|
1200
1200
|
{
|
|
1201
1201
|
backgroundColor: "tints.black",
|
|
1202
|
-
top: ["0", null, null,
|
|
1202
|
+
top: ["0", null, null, s ? `${s}px` : null],
|
|
1203
1203
|
opacity: c ? void 0 : "0.4 !important",
|
|
1204
1204
|
motionProps: c ? {
|
|
1205
1205
|
initial: { opacity: 0 },
|
|
@@ -1222,12 +1222,13 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1222
1222
|
onMouseLeave: () => {
|
|
1223
1223
|
!p && c && dt(!1);
|
|
1224
1224
|
},
|
|
1225
|
-
paddingTop: [4, null, null,
|
|
1225
|
+
paddingTop: [4, null, null, s ? `${s + 24}px` : null],
|
|
1226
1226
|
paddingX: [4, null, null, 12],
|
|
1227
1227
|
paddingBottom: "24",
|
|
1228
1228
|
overflow: "auto",
|
|
1229
1229
|
maxHeight: "100vh",
|
|
1230
1230
|
position: "relative",
|
|
1231
|
+
className: "navbar-drawer-content-container",
|
|
1231
1232
|
children: [
|
|
1232
1233
|
!p && c ? null : /* @__PURE__ */ t.jsxs(
|
|
1233
1234
|
Ut,
|
|
@@ -1243,12 +1244,12 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1243
1244
|
justifyContent: "space-between",
|
|
1244
1245
|
alignItems: "center",
|
|
1245
1246
|
children: [
|
|
1246
|
-
|
|
1247
|
+
E ? /* @__PURE__ */ t.jsx(
|
|
1247
1248
|
ie,
|
|
1248
1249
|
{
|
|
1249
1250
|
icon: /* @__PURE__ */ t.jsx(rn, {}),
|
|
1250
1251
|
onClick: () => {
|
|
1251
|
-
|
|
1252
|
+
o && o(), a();
|
|
1252
1253
|
},
|
|
1253
1254
|
"aria-label": "Back"
|
|
1254
1255
|
}
|
|
@@ -1333,7 +1334,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1333
1334
|
style: {
|
|
1334
1335
|
display: "flex",
|
|
1335
1336
|
flexDirection: vn(
|
|
1336
|
-
|
|
1337
|
+
b,
|
|
1337
1338
|
c,
|
|
1338
1339
|
p
|
|
1339
1340
|
),
|
|
@@ -1341,7 +1342,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1341
1342
|
justifyContent: "space-between"
|
|
1342
1343
|
},
|
|
1343
1344
|
children: [
|
|
1344
|
-
|
|
1345
|
+
x ? /* @__PURE__ */ t.jsx(
|
|
1345
1346
|
y,
|
|
1346
1347
|
{
|
|
1347
1348
|
gap: "6",
|
|
@@ -1354,7 +1355,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1354
1355
|
flexWrap: "wrap",
|
|
1355
1356
|
flexDirection: ["column", null, null, "row"]
|
|
1356
1357
|
},
|
|
1357
|
-
children:
|
|
1358
|
+
children: x
|
|
1358
1359
|
}
|
|
1359
1360
|
) : null,
|
|
1360
1361
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1366,7 +1367,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1366
1367
|
width: ["100%", null, null, "auto"],
|
|
1367
1368
|
children: [
|
|
1368
1369
|
d ? /* @__PURE__ */ t.jsx(y, { children: d }) : null,
|
|
1369
|
-
|
|
1370
|
+
w && !c ? /* @__PURE__ */ t.jsx(y, { children: w }) : null,
|
|
1370
1371
|
m ? /* @__PURE__ */ t.jsx(
|
|
1371
1372
|
y,
|
|
1372
1373
|
{
|
|
@@ -1392,55 +1393,61 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1392
1393
|
]
|
|
1393
1394
|
}
|
|
1394
1395
|
);
|
|
1395
|
-
}, ft = (l) =>
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1396
|
+
}, ft = (l) => {
|
|
1397
|
+
const a = /* @__PURE__ */ new Set();
|
|
1398
|
+
return l.reduce((h, d) => {
|
|
1399
|
+
var x;
|
|
1400
|
+
const w = ((x = d.sections) == null ? void 0 : x.reduce((m, E) => {
|
|
1401
|
+
const o = E.links.filter((b) => a.has(b.label) || b.isSearchable !== !0 ? !1 : (a.add(b.label), !0));
|
|
1402
|
+
return [...m, ...o];
|
|
1403
|
+
}, [])) ?? [];
|
|
1404
|
+
return [...h, ...w];
|
|
1405
|
+
}, []);
|
|
1406
|
+
}, xn = ({
|
|
1400
1407
|
source: l,
|
|
1401
1408
|
onSearchCallback: a,
|
|
1402
1409
|
isActive: h
|
|
1403
1410
|
}) => {
|
|
1404
|
-
const [d,
|
|
1405
|
-
if (!
|
|
1411
|
+
const [d, w] = V(""), [x, m] = V([]), E = (s, p) => {
|
|
1412
|
+
if (!s)
|
|
1406
1413
|
return [];
|
|
1407
|
-
const
|
|
1414
|
+
const j = s.toLowerCase();
|
|
1408
1415
|
return p.filter((c) => {
|
|
1409
|
-
const P = c.label.toLowerCase().includes(
|
|
1416
|
+
const P = c.label.toLowerCase().includes(j), A = typeof c.additionalContent == "string" && c.additionalContent.toLowerCase().includes(j);
|
|
1410
1417
|
return P || A;
|
|
1411
1418
|
}).sort((c, P) => c.label.localeCompare(P.label));
|
|
1412
|
-
},
|
|
1413
|
-
if (
|
|
1419
|
+
}, o = (s) => {
|
|
1420
|
+
if (w(s), !s) {
|
|
1414
1421
|
m([]);
|
|
1415
1422
|
return;
|
|
1416
1423
|
}
|
|
1417
|
-
const p =
|
|
1418
|
-
m(p), a && a(
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1424
|
+
const p = E(s, l);
|
|
1425
|
+
m(p), a && a(s, p);
|
|
1426
|
+
}, b = () => {
|
|
1427
|
+
w(""), m([]);
|
|
1421
1428
|
};
|
|
1422
1429
|
return le(() => {
|
|
1423
|
-
h || (
|
|
1430
|
+
h || (w(""), m([]));
|
|
1424
1431
|
}, [h]), {
|
|
1425
1432
|
query: d,
|
|
1426
|
-
results:
|
|
1427
|
-
handleClose:
|
|
1428
|
-
handleSearch:
|
|
1433
|
+
results: x,
|
|
1434
|
+
handleClose: b,
|
|
1435
|
+
handleSearch: o
|
|
1429
1436
|
};
|
|
1430
1437
|
}, Rn = ({
|
|
1431
1438
|
categories: l = [],
|
|
1432
1439
|
onCartClick: a,
|
|
1433
1440
|
mainCategoryLabel: h = "Menu",
|
|
1434
1441
|
logoLink: d = "https://www.everlywell.com",
|
|
1435
|
-
hasSearch:
|
|
1436
|
-
onSearchClick:
|
|
1442
|
+
hasSearch: w = !0,
|
|
1443
|
+
onSearchClick: x,
|
|
1437
1444
|
registrationUrl: m,
|
|
1438
|
-
profileUrl:
|
|
1439
|
-
mobileBottomButtons:
|
|
1440
|
-
numberOfCartItems:
|
|
1441
|
-
linkComponent:
|
|
1445
|
+
profileUrl: E = "https://secure.everlywell.com/login",
|
|
1446
|
+
mobileBottomButtons: o = [],
|
|
1447
|
+
numberOfCartItems: b = 0,
|
|
1448
|
+
linkComponent: s,
|
|
1442
1449
|
onSearchCallback: p,
|
|
1443
|
-
onLinkClick:
|
|
1450
|
+
onLinkClick: j,
|
|
1444
1451
|
onCategoryOpen: c,
|
|
1445
1452
|
onMobileMenuOpen: P,
|
|
1446
1453
|
onBackToMainMenu: A,
|
|
@@ -1449,7 +1456,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1449
1456
|
onLogoClick: S
|
|
1450
1457
|
}) => {
|
|
1451
1458
|
var Ee, de, Re;
|
|
1452
|
-
const [N, ve] = V(!1), [xe, J] = V(!1), [
|
|
1459
|
+
const [N, ve] = V(!1), [xe, J] = V(!1), [R, Y] = V(null), [q, ke] = V(0), [ge, ae] = V(!1), [$, z] = V(!1), {
|
|
1453
1460
|
query: G,
|
|
1454
1461
|
results: Z,
|
|
1455
1462
|
handleSearch: be
|
|
@@ -1472,7 +1479,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1472
1479
|
justifyContent: [null, null, null, "flex-start"],
|
|
1473
1480
|
children: Array.from(
|
|
1474
1481
|
{ length: Math.ceil(Z.length / 4) },
|
|
1475
|
-
(
|
|
1482
|
+
(u, O) => /* @__PURE__ */ t.jsx(
|
|
1476
1483
|
L,
|
|
1477
1484
|
{ direction: "column", gap: "6", children: Z.slice(O * 4, (O + 1) * 4).map(
|
|
1478
1485
|
(k, D) => /* @__PURE__ */ t.jsx(
|
|
@@ -1481,7 +1488,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1481
1488
|
href: k.href,
|
|
1482
1489
|
label: k.label,
|
|
1483
1490
|
additionalContent: k == null ? void 0 : k.additionalContent,
|
|
1484
|
-
linkComponent:
|
|
1491
|
+
linkComponent: s
|
|
1485
1492
|
},
|
|
1486
1493
|
`${k.label}-${D}`
|
|
1487
1494
|
)
|
|
@@ -1492,37 +1499,37 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1492
1499
|
}
|
|
1493
1500
|
)
|
|
1494
1501
|
] }
|
|
1495
|
-
), Ce = ze((
|
|
1496
|
-
ke(
|
|
1502
|
+
), Ce = ze((u) => {
|
|
1503
|
+
ke(u);
|
|
1497
1504
|
}, []), oe = () => {
|
|
1498
1505
|
ve(!1), Y(null);
|
|
1499
|
-
},
|
|
1500
|
-
Y(
|
|
1501
|
-
},
|
|
1502
|
-
ae(!0), J(!1), (
|
|
1506
|
+
}, we = (u) => {
|
|
1507
|
+
Y(u);
|
|
1508
|
+
}, je = (u) => {
|
|
1509
|
+
ae(!0), J(!1), (u.sections || u.spotlightCards) && Y(u);
|
|
1503
1510
|
}, ye = () => {
|
|
1504
1511
|
ae(!1);
|
|
1505
1512
|
};
|
|
1506
1513
|
le(() => {
|
|
1507
|
-
const
|
|
1514
|
+
const u = (O) => {
|
|
1508
1515
|
z(O.detail.isHovering);
|
|
1509
1516
|
};
|
|
1510
1517
|
return window.addEventListener(
|
|
1511
1518
|
Ne,
|
|
1512
|
-
|
|
1519
|
+
u
|
|
1513
1520
|
), () => {
|
|
1514
1521
|
window.removeEventListener(
|
|
1515
1522
|
Ne,
|
|
1516
|
-
|
|
1523
|
+
u
|
|
1517
1524
|
);
|
|
1518
1525
|
};
|
|
1519
1526
|
}, []), le(() => {
|
|
1520
1527
|
!ge && !$ && (Y(null), J(!1));
|
|
1521
1528
|
}, [ge, $]), le(() => {
|
|
1522
|
-
let
|
|
1529
|
+
let u = window.location.href;
|
|
1523
1530
|
const O = () => {
|
|
1524
1531
|
const D = window.location.href;
|
|
1525
|
-
D !==
|
|
1532
|
+
D !== u && (u = D, oe(), Y(null));
|
|
1526
1533
|
}, k = setInterval(O, 100);
|
|
1527
1534
|
return window.addEventListener("popstate", O), () => {
|
|
1528
1535
|
window.removeEventListener("popstate", O), clearInterval(k);
|
|
@@ -1533,39 +1540,39 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1533
1540
|
}, Oe = /* @__PURE__ */ t.jsx(
|
|
1534
1541
|
t.Fragment,
|
|
1535
1542
|
{ children: l == null ? void 0 : l.map(
|
|
1536
|
-
(
|
|
1543
|
+
(u, O) => /* @__PURE__ */ t.jsx(
|
|
1537
1544
|
Te,
|
|
1538
1545
|
{
|
|
1539
1546
|
onMouseEnter: () => {
|
|
1540
|
-
|
|
1547
|
+
je(u), c == null || c(u.label);
|
|
1541
1548
|
},
|
|
1542
1549
|
onMouseLeave: ye,
|
|
1543
|
-
isSelected: (
|
|
1544
|
-
...
|
|
1545
|
-
children:
|
|
1550
|
+
isSelected: (R == null ? void 0 : R.label) === u.label,
|
|
1551
|
+
...u.buttonProps,
|
|
1552
|
+
children: u.label
|
|
1546
1553
|
},
|
|
1547
|
-
`${
|
|
1554
|
+
`${u.label}-${O}`
|
|
1548
1555
|
)
|
|
1549
1556
|
) }
|
|
1550
|
-
), se = (Ee = l.filter((
|
|
1551
|
-
(
|
|
1557
|
+
), se = (Ee = l.filter((u) => u.isMobileTopLink !== !1)) == null ? void 0 : Ee.map(
|
|
1558
|
+
(u) => /* @__PURE__ */ t.jsx(
|
|
1552
1559
|
y,
|
|
1553
1560
|
{
|
|
1554
1561
|
onClick: () => {
|
|
1555
|
-
|
|
1562
|
+
we(u), c == null || c(u.label);
|
|
1556
1563
|
},
|
|
1557
1564
|
children: /* @__PURE__ */ t.jsx(
|
|
1558
1565
|
Me,
|
|
1559
1566
|
{
|
|
1560
|
-
label:
|
|
1567
|
+
label: u.label,
|
|
1561
1568
|
role: "link",
|
|
1562
|
-
additionalContent:
|
|
1569
|
+
additionalContent: u.additionalContent,
|
|
1563
1570
|
mainTextFontSize: "3xl",
|
|
1564
|
-
linkComponent:
|
|
1571
|
+
linkComponent: s
|
|
1565
1572
|
}
|
|
1566
1573
|
)
|
|
1567
1574
|
},
|
|
1568
|
-
|
|
1575
|
+
u.label
|
|
1569
1576
|
)
|
|
1570
1577
|
);
|
|
1571
1578
|
ft(l);
|
|
@@ -1576,7 +1583,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1576
1583
|
Te,
|
|
1577
1584
|
{
|
|
1578
1585
|
as: X,
|
|
1579
|
-
href:
|
|
1586
|
+
href: E,
|
|
1580
1587
|
width: "100%",
|
|
1581
1588
|
backgroundColor: "tints.cream",
|
|
1582
1589
|
onClick: H,
|
|
@@ -1612,15 +1619,15 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1612
1619
|
), Q = /* @__PURE__ */ t.jsxs(
|
|
1613
1620
|
L,
|
|
1614
1621
|
{ gap: "2", flexDirection: "column", children: [
|
|
1615
|
-
|
|
1622
|
+
o,
|
|
1616
1623
|
ue
|
|
1617
1624
|
] }
|
|
1618
|
-
), ce =
|
|
1625
|
+
), ce = R ? /* @__PURE__ */ t.jsx(
|
|
1619
1626
|
L,
|
|
1620
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (de =
|
|
1627
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (de = R == null ? void 0 : R.sections) == null ? void 0 : de.map((u, O) => {
|
|
1621
1628
|
const k = [];
|
|
1622
|
-
for (let D = 0; D <
|
|
1623
|
-
k.push(
|
|
1629
|
+
for (let D = 0; D < u.links.length; D += 3)
|
|
1630
|
+
k.push(u.links.slice(D, D + 3));
|
|
1624
1631
|
return /* @__PURE__ */ t.jsxs(
|
|
1625
1632
|
y,
|
|
1626
1633
|
{ children: [
|
|
@@ -1630,7 +1637,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1630
1637
|
fontSize: "md",
|
|
1631
1638
|
color: "tints.uiGrey",
|
|
1632
1639
|
marginBottom: [0, null, null, 6],
|
|
1633
|
-
children:
|
|
1640
|
+
children: u.title
|
|
1634
1641
|
}
|
|
1635
1642
|
),
|
|
1636
1643
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1652,8 +1659,8 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1652
1659
|
label: B.label,
|
|
1653
1660
|
href: B.href,
|
|
1654
1661
|
additionalContent: B.additionalContent,
|
|
1655
|
-
linkComponent:
|
|
1656
|
-
onClick: () =>
|
|
1662
|
+
linkComponent: s,
|
|
1663
|
+
onClick: () => j == null ? void 0 : j(B.label)
|
|
1657
1664
|
},
|
|
1658
1665
|
B.label
|
|
1659
1666
|
)
|
|
@@ -1665,11 +1672,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1665
1672
|
}
|
|
1666
1673
|
)
|
|
1667
1674
|
] },
|
|
1668
|
-
`${
|
|
1675
|
+
`${u.title}-${O}`
|
|
1669
1676
|
);
|
|
1670
1677
|
}) }
|
|
1671
|
-
) : null, ee =
|
|
1672
|
-
(
|
|
1678
|
+
) : null, ee = R != null && R.spotlightCards ? (Re = R.spotlightCards) == null ? void 0 : Re.map(
|
|
1679
|
+
(u) => /* @__PURE__ */ t.jsx(cn, { ...u }, u.title)
|
|
1673
1680
|
) : /* @__PURE__ */ t.jsx(y, {});
|
|
1674
1681
|
return /* @__PURE__ */ t.jsxs(
|
|
1675
1682
|
t.Fragment,
|
|
@@ -1690,26 +1697,26 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1690
1697
|
),
|
|
1691
1698
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1692
1699
|
X,
|
|
1693
|
-
{ href:
|
|
1700
|
+
{ href: E, "aria-label": "login", onClick: H, children: /* @__PURE__ */ t.jsx(ie, { icon: /* @__PURE__ */ t.jsx(re, { as: at }), "aria-label": "Profile" }) }
|
|
1694
1701
|
),
|
|
1695
1702
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1696
1703
|
pn,
|
|
1697
1704
|
{
|
|
1698
1705
|
"aria-label": "Cart",
|
|
1699
|
-
count:
|
|
1706
|
+
count: b,
|
|
1700
1707
|
onClick: a
|
|
1701
1708
|
}
|
|
1702
1709
|
),
|
|
1703
1710
|
onSearchClick: () => {
|
|
1704
|
-
J(!0),
|
|
1711
|
+
J(!0), x == null || x();
|
|
1705
1712
|
},
|
|
1706
1713
|
onMenuClick: () => {
|
|
1707
1714
|
ve(!0), P == null || P();
|
|
1708
1715
|
},
|
|
1709
|
-
hasSearch:
|
|
1716
|
+
hasSearch: w,
|
|
1710
1717
|
logoLink: d,
|
|
1711
1718
|
onHeightChange: Ce,
|
|
1712
|
-
linkComponent:
|
|
1719
|
+
linkComponent: s,
|
|
1713
1720
|
onLogoClick: S
|
|
1714
1721
|
}
|
|
1715
1722
|
),
|
|
@@ -1728,15 +1735,15 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1728
1735
|
/* @__PURE__ */ t.jsx(
|
|
1729
1736
|
Be,
|
|
1730
1737
|
{
|
|
1731
|
-
isOpen: !!
|
|
1738
|
+
isOpen: !!R,
|
|
1732
1739
|
onClose: () => Y(null),
|
|
1733
|
-
title: (
|
|
1740
|
+
title: (R == null ? void 0 : R.label) || "",
|
|
1734
1741
|
navDrawerLinks: ce,
|
|
1735
1742
|
onBackClick: Le,
|
|
1736
1743
|
spotlightCards: ee,
|
|
1737
|
-
hasOnlySpotlightCards:
|
|
1744
|
+
hasOnlySpotlightCards: R == null ? void 0 : R.hasOnlySpotlightCards,
|
|
1738
1745
|
navHeight: q,
|
|
1739
|
-
bottomButton:
|
|
1746
|
+
bottomButton: R == null ? void 0 : R.bottomButton
|
|
1740
1747
|
}
|
|
1741
1748
|
),
|
|
1742
1749
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1764,7 +1771,7 @@ export {
|
|
|
1764
1771
|
Me as NavbarDrawerLink,
|
|
1765
1772
|
Rn as NavigationBar,
|
|
1766
1773
|
cn as SpotlightCard,
|
|
1767
|
-
|
|
1774
|
+
jn as Stepper,
|
|
1768
1775
|
ie as TopNavIconButton,
|
|
1769
1776
|
fn as TopNavigation
|
|
1770
1777
|
};
|