quirk-ui 0.0.331 → 0.0.333
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as a, jsxs as r, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
-
import { useState as h, useEffect as
|
|
2
|
+
import { useState as h, useEffect as T, useRef as R, useCallback as A } from "react";
|
|
3
3
|
import { s as e, N as Ce } from "../../../NavLink-BE_Z3sd3.js";
|
|
4
4
|
import { Modal as ne } from "../Modal/index.js";
|
|
5
5
|
import { e as xe, C as ae } from "../../../index-C4o-N_--.js";
|
|
6
6
|
import { ButtonGroup as le } from "../ButtonGroup/index.js";
|
|
7
|
-
import { E as
|
|
7
|
+
import { E as F } from "../../../external-link-BOPobeQJ.js";
|
|
8
8
|
import { X as Me } from "../../../x-CnsEH4Ox.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as W } from "../../../createLucideIcon-C8GTh_Qx.js";
|
|
10
10
|
import { C as Le } from "../../../chevron-down-DSUzBz9F.js";
|
|
11
11
|
/**
|
|
12
12
|
* @license lucide-react v0.488.0 - ISC
|
|
@@ -25,7 +25,7 @@ const Ee = [
|
|
|
25
25
|
],
|
|
26
26
|
["path", { d: "M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05", key: "14pb5j" }],
|
|
27
27
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
28
|
-
], _e =
|
|
28
|
+
], _e = W("earth", Ee);
|
|
29
29
|
/**
|
|
30
30
|
* @license lucide-react v0.488.0 - ISC
|
|
31
31
|
*
|
|
@@ -36,7 +36,7 @@ const Se = [
|
|
|
36
36
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
37
37
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
38
38
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
39
|
-
], ze =
|
|
39
|
+
], ze = W("menu", Se);
|
|
40
40
|
/**
|
|
41
41
|
* @license lucide-react v0.488.0 - ISC
|
|
42
42
|
*
|
|
@@ -46,7 +46,7 @@ const Se = [
|
|
|
46
46
|
const Te = [
|
|
47
47
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
48
48
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
49
|
-
], Re =
|
|
49
|
+
], Re = W("search", Te), Ae = {
|
|
50
50
|
standard: e.standard,
|
|
51
51
|
transparent: e.transparent
|
|
52
52
|
}, Fe = {
|
|
@@ -54,25 +54,27 @@ const Te = [
|
|
|
54
54
|
center: e.center,
|
|
55
55
|
right: e.right
|
|
56
56
|
};
|
|
57
|
-
function
|
|
57
|
+
function Ue({
|
|
58
58
|
title: se,
|
|
59
|
-
logo:
|
|
60
|
-
items:
|
|
59
|
+
logo: B,
|
|
60
|
+
items: C,
|
|
61
61
|
groups: f,
|
|
62
62
|
utilityItems: s,
|
|
63
63
|
isSticky: ie = !1,
|
|
64
|
-
showSearch:
|
|
64
|
+
showSearch: x = !0,
|
|
65
65
|
showLocaleSelect: j = !0,
|
|
66
|
-
alignment:
|
|
66
|
+
alignment: M = "right",
|
|
67
67
|
variant: re = "standard",
|
|
68
68
|
navigationType: k = "default",
|
|
69
69
|
searchComponent: te,
|
|
70
70
|
localeSelectComponent: ce,
|
|
71
71
|
className: oe
|
|
72
72
|
}) {
|
|
73
|
-
const [b, D] = h(!1), [O, m] = h(null), [de, he] = h(0), [be, fe] = h(!1), [me, ue] = h(null), [c, N] = h([]), [g,
|
|
73
|
+
const [b, D] = h(!1), [O, m] = h(null), [de, he] = h(0), [be, fe] = h(!1), [me, ue] = h(null), [c, N] = h([]), [g, L] = h(
|
|
74
74
|
0
|
|
75
|
-
), [pe, G] = h(null), [p, ve] = h(!1), [$,
|
|
75
|
+
), [pe, G] = h(null), [p, ve] = h(!1), [$, E] = h("forward");
|
|
76
|
+
console.log("QUI", f);
|
|
77
|
+
const _ = () => /* @__PURE__ */ a(
|
|
76
78
|
"div",
|
|
77
79
|
{
|
|
78
80
|
className: `${e.linkWrapper} ${e.parent} ${e.searchWrapper}`,
|
|
@@ -94,7 +96,7 @@ function Ie({
|
|
|
94
96
|
}
|
|
95
97
|
) })
|
|
96
98
|
}
|
|
97
|
-
),
|
|
99
|
+
), I = () => /* @__PURE__ */ a("div", { className: `${e.linkWrapper} ${e.parent} `, children: /* @__PURE__ */ a("div", { className: e.linkItem, children: /* @__PURE__ */ a(
|
|
98
100
|
ne,
|
|
99
101
|
{
|
|
100
102
|
className: e.localeModal,
|
|
@@ -111,7 +113,7 @@ function Ie({
|
|
|
111
113
|
content: ce
|
|
112
114
|
}
|
|
113
115
|
) }) });
|
|
114
|
-
|
|
116
|
+
T(() => {
|
|
115
117
|
if (typeof window < "u") {
|
|
116
118
|
const n = () => {
|
|
117
119
|
const l = window.innerWidth < 768;
|
|
@@ -123,7 +125,7 @@ function Ie({
|
|
|
123
125
|
const ke = () => {
|
|
124
126
|
N([]);
|
|
125
127
|
}, Ne = (n) => {
|
|
126
|
-
|
|
128
|
+
E("forward"), N([
|
|
127
129
|
{
|
|
128
130
|
title: n.title,
|
|
129
131
|
primary: n.primaryItems ?? [],
|
|
@@ -131,8 +133,8 @@ function Ie({
|
|
|
131
133
|
description: ""
|
|
132
134
|
}
|
|
133
135
|
]);
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
+
}, V = (n) => {
|
|
137
|
+
E("forward"), N((l) => [
|
|
136
138
|
...l,
|
|
137
139
|
{
|
|
138
140
|
title: n.label,
|
|
@@ -142,57 +144,57 @@ function Ie({
|
|
|
142
144
|
}
|
|
143
145
|
]);
|
|
144
146
|
}, ge = () => {
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
+
E("backward"), N((n) => n.slice(0, -1));
|
|
148
|
+
}, S = R(null), v = R(null), z = R(/* @__PURE__ */ new Map()), $e = () => {
|
|
147
149
|
D((n) => !n);
|
|
148
|
-
},
|
|
149
|
-
const l =
|
|
150
|
+
}, X = (n) => {
|
|
151
|
+
const l = z.current.get(n);
|
|
150
152
|
if (l && v.current) {
|
|
151
153
|
const o = l.getBoundingClientRect(), d = v.current.getBoundingClientRect(), i = o.left - d.left + o.width / 2;
|
|
152
154
|
ue(i);
|
|
153
155
|
}
|
|
154
156
|
}, we = (n) => {
|
|
155
157
|
m((l) => l === n ? null : n);
|
|
156
|
-
},
|
|
157
|
-
|
|
158
|
-
}, []),
|
|
159
|
-
|
|
160
|
-
}, []),
|
|
158
|
+
}, H = A((n) => {
|
|
159
|
+
S.current && !S.current.contains(n.target) && m(null);
|
|
160
|
+
}, []), U = A(() => {
|
|
161
|
+
q(), typeof window < "u" && window.innerWidth > 768 && (D(!1), m(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
162
|
+
}, []), q = A(() => {
|
|
161
163
|
if (v.current) {
|
|
162
164
|
const n = v.current.getBoundingClientRect().width;
|
|
163
165
|
he(n), fe(!0);
|
|
164
166
|
}
|
|
165
167
|
}, []);
|
|
166
|
-
|
|
168
|
+
T(() => {
|
|
167
169
|
const n = typeof window < "u", l = typeof document < "u";
|
|
168
|
-
return n && window.addEventListener("resize",
|
|
169
|
-
n && window.removeEventListener("resize",
|
|
170
|
+
return n && window.addEventListener("resize", U), l && document.addEventListener("click", H), q(), () => {
|
|
171
|
+
n && window.removeEventListener("resize", U), l && document.removeEventListener("click", H);
|
|
170
172
|
};
|
|
171
|
-
}, []),
|
|
173
|
+
}, []), T(() => {
|
|
172
174
|
if (typeof document < "u")
|
|
173
175
|
return document.body.style.overflow = b ? "hidden" : "", () => {
|
|
174
176
|
document.body.style.overflow = "";
|
|
175
177
|
};
|
|
176
178
|
}, [b]);
|
|
177
179
|
const ye = (n) => n.map((l, o) => {
|
|
178
|
-
var J, K,
|
|
179
|
-
const d = `group-${o}`, y = pe === o, i = (
|
|
180
|
+
var Q, J, K, Y, Z;
|
|
181
|
+
const d = `group-${o}`, y = pe === o, i = (Q = l.primaryItems) == null ? void 0 : Q[g ?? 0];
|
|
180
182
|
return /* @__PURE__ */ r(
|
|
181
183
|
"div",
|
|
182
184
|
{
|
|
183
185
|
className: `${e.linkWrapper} ${e.parent}`,
|
|
184
186
|
onMouseEnter: () => {
|
|
185
|
-
G(o), m(d),
|
|
187
|
+
G(o), m(d), X(d);
|
|
186
188
|
},
|
|
187
189
|
onMouseLeave: () => {
|
|
188
|
-
G(null),
|
|
190
|
+
G(null), L(0), m(null);
|
|
189
191
|
},
|
|
190
192
|
children: [
|
|
191
193
|
/* @__PURE__ */ a("div", { className: e.linkItem, children: /* @__PURE__ */ r(
|
|
192
194
|
"button",
|
|
193
195
|
{
|
|
194
196
|
ref: (t) => {
|
|
195
|
-
|
|
197
|
+
z.current.set(d, t);
|
|
196
198
|
},
|
|
197
199
|
role: "menuitem",
|
|
198
200
|
"aria-haspopup": "true",
|
|
@@ -223,7 +225,7 @@ function Ie({
|
|
|
223
225
|
className: `${e.sublinksColumn} ${e.primaryColumn}`,
|
|
224
226
|
children: [
|
|
225
227
|
/* @__PURE__ */ a("div", { className: e.linkItem }),
|
|
226
|
-
(
|
|
228
|
+
(J = l.primaryItems) == null ? void 0 : J.map(
|
|
227
229
|
(t, u) => t.href ? /* @__PURE__ */ r(
|
|
228
230
|
"a",
|
|
229
231
|
{
|
|
@@ -235,7 +237,7 @@ function Ie({
|
|
|
235
237
|
var P;
|
|
236
238
|
m(null), (P = t.onClick) == null || P.call(t);
|
|
237
239
|
},
|
|
238
|
-
onMouseEnter: () => t.sublinks ?
|
|
240
|
+
onMouseEnter: () => t.sublinks ? L(u) : null,
|
|
239
241
|
role: "menuitem",
|
|
240
242
|
children: [
|
|
241
243
|
/* @__PURE__ */ r("span", { className: e.linkContent, children: [
|
|
@@ -243,7 +245,7 @@ function Ie({
|
|
|
243
245
|
t.subtitle && /* @__PURE__ */ a("span", { className: e.subtitle, children: t.subtitle })
|
|
244
246
|
] }),
|
|
245
247
|
t.isExternal && /* @__PURE__ */ a(
|
|
246
|
-
|
|
248
|
+
F,
|
|
247
249
|
{
|
|
248
250
|
className: e.newTabIcon,
|
|
249
251
|
size: 16
|
|
@@ -256,7 +258,7 @@ function Ie({
|
|
|
256
258
|
"button",
|
|
257
259
|
{
|
|
258
260
|
className: `${e.sublinkToggle} ${g === u ? e.open : ""}`,
|
|
259
|
-
onMouseEnter: () =>
|
|
261
|
+
onMouseEnter: () => L(u),
|
|
260
262
|
children: /* @__PURE__ */ r("span", { className: e.linkContent, children: [
|
|
261
263
|
t.label,
|
|
262
264
|
t.subtitle && /* @__PURE__ */ a("span", { className: e.subtitle, children: t.subtitle })
|
|
@@ -268,7 +270,7 @@ function Ie({
|
|
|
268
270
|
]
|
|
269
271
|
}
|
|
270
272
|
),
|
|
271
|
-
(i == null ? void 0 : i.sublinks) && ((
|
|
273
|
+
(i == null ? void 0 : i.sublinks) && ((K = i == null ? void 0 : i.sublinks) == null ? void 0 : K.length) > 0 && /* @__PURE__ */ r(
|
|
272
274
|
"div",
|
|
273
275
|
{
|
|
274
276
|
className: `${e.sublinksColumn} ${e.fadeInFromLeft}`,
|
|
@@ -286,7 +288,7 @@ function Ie({
|
|
|
286
288
|
"div",
|
|
287
289
|
{
|
|
288
290
|
className: `${e.sublinksColumn} ${e.secondaryColumn}`,
|
|
289
|
-
children: w(l.secondaryItems, `${d}-secondary`)
|
|
291
|
+
children: l.secondaryItems.length && w(l.secondaryItems, `${d}-secondary`)
|
|
290
292
|
}
|
|
291
293
|
),
|
|
292
294
|
l.spotlight && /* @__PURE__ */ a(
|
|
@@ -315,10 +317,10 @@ function Ie({
|
|
|
315
317
|
parentPath: l,
|
|
316
318
|
openPath: O,
|
|
317
319
|
togglePath: we,
|
|
318
|
-
updateTriangleIndicator:
|
|
320
|
+
updateTriangleIndicator: X,
|
|
319
321
|
setOpenPath: m,
|
|
320
322
|
renderLinks: w,
|
|
321
|
-
buttonRefs:
|
|
323
|
+
buttonRefs: z
|
|
322
324
|
},
|
|
323
325
|
o._key ?? d
|
|
324
326
|
);
|
|
@@ -326,22 +328,22 @@ function Ie({
|
|
|
326
328
|
return /* @__PURE__ */ a(
|
|
327
329
|
"header",
|
|
328
330
|
{
|
|
329
|
-
ref:
|
|
330
|
-
className: `${oe ?? ""} ${Fe[
|
|
331
|
+
ref: S,
|
|
332
|
+
className: `${oe ?? ""} ${Fe[M]} ${Ae[re]} ${e.navbar} ${ie ? e.sticky : ""} ${f && f.length ? e.advanced : e.default}`,
|
|
331
333
|
role: "navigation",
|
|
332
334
|
"aria-label": "Main navigation",
|
|
333
335
|
children: /* @__PURE__ */ r(
|
|
334
336
|
"div",
|
|
335
337
|
{
|
|
336
|
-
className: `${e.container} ${(!s || s.length === 0) &&
|
|
338
|
+
className: `${e.container} ${(!s || s.length === 0) && M !== "center" ? e.twoColumn : ""}`,
|
|
337
339
|
children: [
|
|
338
|
-
|
|
340
|
+
B ? /* @__PURE__ */ a("div", { className: e.logo, children: B }) : /* @__PURE__ */ a("div", { className: e.title, children: se }),
|
|
339
341
|
/* @__PURE__ */ a(
|
|
340
342
|
"nav",
|
|
341
343
|
{
|
|
342
344
|
ref: v,
|
|
343
345
|
style: {
|
|
344
|
-
left:
|
|
346
|
+
left: M === "center" ? `calc(50% - ${de / 2}px)` : "0"
|
|
345
347
|
},
|
|
346
348
|
className: `${e.nav} ${b ? e.open : ""} ${be ? e.visible : e.hidden}`,
|
|
347
349
|
id: "main-menu",
|
|
@@ -368,21 +370,21 @@ function Ie({
|
|
|
368
370
|
)
|
|
369
371
|
}
|
|
370
372
|
),
|
|
371
|
-
k === "default" &&
|
|
372
|
-
w(
|
|
373
|
-
|
|
373
|
+
k === "default" && C && /* @__PURE__ */ r("div", { className: e.grid, children: [
|
|
374
|
+
C.length && w(C),
|
|
375
|
+
x && !p && /* @__PURE__ */ r(ee, { children: [
|
|
374
376
|
/* @__PURE__ */ a("span", { className: e.separator }),
|
|
375
|
-
/* @__PURE__ */ a(
|
|
377
|
+
/* @__PURE__ */ a(_, {})
|
|
376
378
|
] }),
|
|
377
|
-
j && /* @__PURE__ */ a(
|
|
379
|
+
j && /* @__PURE__ */ a(I, {})
|
|
378
380
|
] }),
|
|
379
381
|
!p && k === "advanced" && f && /* @__PURE__ */ r("div", { className: e.grid, children: [
|
|
380
382
|
f.length && ye(f),
|
|
381
|
-
|
|
383
|
+
x && /* @__PURE__ */ r(ee, { children: [
|
|
382
384
|
/* @__PURE__ */ a("span", { className: e.separator }),
|
|
383
|
-
/* @__PURE__ */ a(
|
|
385
|
+
/* @__PURE__ */ a(_, {})
|
|
384
386
|
] }),
|
|
385
|
-
j && /* @__PURE__ */ a(
|
|
387
|
+
j && /* @__PURE__ */ a(I, {})
|
|
386
388
|
] }),
|
|
387
389
|
p && k === "advanced" && b && c.length === 0 && f && /* @__PURE__ */ a("div", { className: `${e.mobileMenu}`, children: f.map((n, l) => /* @__PURE__ */ a(
|
|
388
390
|
"div",
|
|
@@ -434,7 +436,7 @@ function Ie({
|
|
|
434
436
|
"button",
|
|
435
437
|
{
|
|
436
438
|
className: e.sublinkToggle,
|
|
437
|
-
onClick: () =>
|
|
439
|
+
onClick: () => V(n),
|
|
438
440
|
children: /* @__PURE__ */ r("span", { className: e.linkContent, children: [
|
|
439
441
|
n.label,
|
|
440
442
|
n.subtitle && /* @__PURE__ */ a("span", { className: e.subtitle, children: n.subtitle })
|
|
@@ -454,7 +456,7 @@ function Ie({
|
|
|
454
456
|
n.subtitle && /* @__PURE__ */ a("span", { className: e.subtitle, children: n.subtitle })
|
|
455
457
|
] }),
|
|
456
458
|
n.isExternal && /* @__PURE__ */ a(
|
|
457
|
-
|
|
459
|
+
F,
|
|
458
460
|
{
|
|
459
461
|
className: e.newTabIcon,
|
|
460
462
|
size: 16
|
|
@@ -476,7 +478,7 @@ function Ie({
|
|
|
476
478
|
"button",
|
|
477
479
|
{
|
|
478
480
|
className: e.sublinkToggle,
|
|
479
|
-
onClick: () =>
|
|
481
|
+
onClick: () => V(n),
|
|
480
482
|
children: n.label
|
|
481
483
|
}
|
|
482
484
|
) : /* @__PURE__ */ r(
|
|
@@ -490,7 +492,7 @@ function Ie({
|
|
|
490
492
|
children: [
|
|
491
493
|
n.label,
|
|
492
494
|
n.isExternal && /* @__PURE__ */ a(
|
|
493
|
-
|
|
495
|
+
F,
|
|
494
496
|
{
|
|
495
497
|
className: e.newTabIcon,
|
|
496
498
|
size: 16
|
|
@@ -561,7 +563,7 @@ function Ie({
|
|
|
561
563
|
}
|
|
562
564
|
),
|
|
563
565
|
/* @__PURE__ */ r("div", { className: e.mobileButtons, children: [
|
|
564
|
-
p &&
|
|
566
|
+
p && x && /* @__PURE__ */ a(_, {}),
|
|
565
567
|
/* @__PURE__ */ a(
|
|
566
568
|
"button",
|
|
567
569
|
{
|
|
@@ -581,5 +583,5 @@ function Ie({
|
|
|
581
583
|
);
|
|
582
584
|
}
|
|
583
585
|
export {
|
|
584
|
-
|
|
586
|
+
Ue as Navbar
|
|
585
587
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useState as U, useRef as z, useEffect as
|
|
3
|
-
import { useHeroContext as
|
|
4
|
-
import { RichText as
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { useState as U, useRef as z, useEffect as R } from "react";
|
|
3
|
+
import { useHeroContext as S } from "./HeroContext.js";
|
|
4
|
+
import { RichText as n } from "../../ui/PortableTextRenderer/index.js";
|
|
5
5
|
import { CallToActions as p } from "../../ui/CallToActions/index.js";
|
|
6
6
|
import N from "next/image";
|
|
7
|
-
import { usePrefersReducedMotion as
|
|
8
|
-
import { c as
|
|
9
|
-
import { P as
|
|
7
|
+
import { usePrefersReducedMotion as T } from "../../hooks/usePrefersReducedMotion.js";
|
|
8
|
+
import { c as W } from "../../../createLucideIcon-C8GTh_Qx.js";
|
|
9
|
+
import { P as j } from "../../../index-C4o-N_--.js";
|
|
10
10
|
import '../../../assets/index46.css';/**
|
|
11
11
|
* @license lucide-react v0.488.0 - ISC
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the ISC license.
|
|
14
14
|
* See the LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
const
|
|
16
|
+
const H = [
|
|
17
17
|
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
18
18
|
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
19
|
-
],
|
|
20
|
-
hero:
|
|
21
|
-
container:
|
|
19
|
+
], L = W("pause", H), V = "_hero_c7i2h_1", E = "_container_c7i2h_7", Y = "_eyebrow_c7i2h_27", M = "_disclaimer_c7i2h_31", q = "_text_c7i2h_36", G = "_articleDetails_c7i2h_43", J = "_articleType_c7i2h_56", K = "_articleCategories_c7i2h_69", Q = "_category_c7i2h_75", X = "_number_c7i2h_90", Z = "_blog_c7i2h_117", O = "_overlay_c7i2h_141", A = "_fullBleed_c7i2h_211", D = "_split_c7i2h_305", g = "_image_c7i2h_310", ee = "_videoControl_c7i2h_333", le = "_videoWrapper_c7i2h_354", re = "_videoBackground_c7i2h_374", te = "_iframe_c7i2h_375", l = {
|
|
20
|
+
hero: V,
|
|
21
|
+
container: E,
|
|
22
22
|
eyebrow: Y,
|
|
23
23
|
disclaimer: M,
|
|
24
24
|
text: q,
|
|
@@ -36,31 +36,30 @@ const j = [
|
|
|
36
36
|
videoControl: ee,
|
|
37
37
|
videoWrapper: le,
|
|
38
38
|
videoBackground: re,
|
|
39
|
-
iframe:
|
|
39
|
+
iframe: te
|
|
40
40
|
};
|
|
41
41
|
function ye({
|
|
42
|
-
heading:
|
|
42
|
+
heading: s,
|
|
43
43
|
image: r,
|
|
44
|
-
video:
|
|
45
|
-
callToAction:
|
|
46
|
-
pageData:
|
|
44
|
+
video: t,
|
|
45
|
+
callToAction: u,
|
|
46
|
+
pageData: o,
|
|
47
47
|
styleOptions: _
|
|
48
48
|
}) {
|
|
49
|
-
var I,
|
|
50
|
-
|
|
51
|
-
const a = S(), [k, x] = U(!a), { setIsFullbleedHeroAtTop: C } = H(), m = z(null), d = (_ == null ? void 0 : _.layout) ?? "default", b = {
|
|
49
|
+
var I, F;
|
|
50
|
+
const a = T(), [k, x] = U(!a), { setIsFullbleedHeroAtTop: C } = S(), m = z(null), d = (_ == null ? void 0 : _.layout) ?? "default", b = {
|
|
52
51
|
default: l.default,
|
|
53
52
|
split: l.split,
|
|
54
53
|
"full-bleed": l.fullBleed,
|
|
55
54
|
blog: l.blog
|
|
56
|
-
}[d], $ = (I =
|
|
57
|
-
|
|
55
|
+
}[d], $ = (I = o == null ? void 0 : o.categories) != null && I.length ? o == null ? void 0 : o.categories[0] : null, f = (F = o == null ? void 0 : o.categories) != null && F.length ? o == null ? void 0 : o.categories[1] : null;
|
|
56
|
+
R(() => {
|
|
58
57
|
const i = () => {
|
|
59
58
|
C(window.scrollY === 0);
|
|
60
59
|
};
|
|
61
60
|
if (d === "full-bleed" && typeof window < "u")
|
|
62
61
|
return C(!0), window.addEventListener("scroll", i), () => window.removeEventListener("scroll", i);
|
|
63
|
-
}, [d]),
|
|
62
|
+
}, [d]), R(() => {
|
|
64
63
|
const i = m.current;
|
|
65
64
|
i && (a ? i.pause() : i.play());
|
|
66
65
|
}, [a]);
|
|
@@ -74,27 +73,27 @@ function ye({
|
|
|
74
73
|
i && (i.paused ? (i.play().catch(() => {
|
|
75
74
|
}), x(!0)) : (i.pause(), x(!1)));
|
|
76
75
|
},
|
|
77
|
-
children: k ? /* @__PURE__ */ e(
|
|
76
|
+
children: k ? /* @__PURE__ */ e(L, { size: 18 }) : /* @__PURE__ */ e(j, { size: 18 })
|
|
78
77
|
}
|
|
79
78
|
), B = () => {
|
|
80
|
-
if (!
|
|
81
|
-
const i =
|
|
79
|
+
if (!t) return null;
|
|
80
|
+
const i = t.includes("vimeo.com"), y = t.includes("youtube.com") || t.includes("youtu.be");
|
|
82
81
|
return i || y ? /* @__PURE__ */ e("div", { className: l.videoWrapper, children: /* @__PURE__ */ e(
|
|
83
82
|
"iframe",
|
|
84
83
|
{
|
|
85
|
-
src: i ? `${
|
|
86
|
-
|
|
84
|
+
src: i ? `${t}?autoplay=1&muted=1&loop=1&background=1` : `${t}?autoplay=1&mute=1&loop=1&playlist=${w(
|
|
85
|
+
t
|
|
87
86
|
)}`,
|
|
88
87
|
allow: "autoplay; fullscreen",
|
|
89
88
|
allowFullScreen: !0
|
|
90
89
|
}
|
|
91
|
-
) }) : /* @__PURE__ */
|
|
90
|
+
) }) : /* @__PURE__ */ c("div", { className: l.videoWrapper, children: [
|
|
92
91
|
/* @__PURE__ */ e(h, {}),
|
|
93
92
|
/* @__PURE__ */ e(
|
|
94
93
|
"video",
|
|
95
94
|
{
|
|
96
95
|
ref: m,
|
|
97
|
-
src:
|
|
96
|
+
src: t,
|
|
98
97
|
autoPlay: !a,
|
|
99
98
|
loop: !0,
|
|
100
99
|
muted: !0,
|
|
@@ -119,68 +118,68 @@ function ye({
|
|
|
119
118
|
}
|
|
120
119
|
) }) : null;
|
|
121
120
|
if (d === "split")
|
|
122
|
-
return /* @__PURE__ */ e("section", { className: `${l.hero} ${l.split}`, children: /* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
|
|
126
|
-
/* @__PURE__ */ e(
|
|
121
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${l.split}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
122
|
+
/* @__PURE__ */ c("div", { className: l.text, children: [
|
|
123
|
+
/* @__PURE__ */ c("div", { children: [
|
|
124
|
+
s.eyebrow && /* @__PURE__ */ e(n, { className: l.eyebrow, blocks: s.eyebrow }),
|
|
125
|
+
/* @__PURE__ */ e(n, { blocks: s.title })
|
|
127
126
|
] }),
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
s.description && /* @__PURE__ */ e(n, { blocks: s.description }),
|
|
128
|
+
u && /* @__PURE__ */ e(
|
|
130
129
|
p,
|
|
131
130
|
{
|
|
132
|
-
items:
|
|
133
|
-
alignment:
|
|
131
|
+
items: u.items,
|
|
132
|
+
alignment: u.alignment
|
|
134
133
|
}
|
|
135
134
|
),
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
s.disclaimer && /* @__PURE__ */ e(
|
|
136
|
+
n,
|
|
138
137
|
{
|
|
139
138
|
className: l.disclaimer,
|
|
140
|
-
blocks:
|
|
139
|
+
blocks: s.disclaimer
|
|
141
140
|
}
|
|
142
141
|
)
|
|
143
142
|
] }),
|
|
144
|
-
|
|
143
|
+
t ? /* @__PURE__ */ e(B, {}) : /* @__PURE__ */ e(P, {})
|
|
145
144
|
] }) });
|
|
146
145
|
if (d === "default")
|
|
147
|
-
return /* @__PURE__ */ e("section", { className: `${l.hero} ${b}`, children: /* @__PURE__ */
|
|
148
|
-
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
|
|
152
|
-
/* @__PURE__ */ e(
|
|
146
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${b}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
147
|
+
t ? /* @__PURE__ */ e(B, {}) : /* @__PURE__ */ e(P, {}),
|
|
148
|
+
/* @__PURE__ */ c("div", { className: l.text, children: [
|
|
149
|
+
/* @__PURE__ */ c("div", { children: [
|
|
150
|
+
s.eyebrow && /* @__PURE__ */ e(n, { className: l.eyebrow, blocks: s.eyebrow }),
|
|
151
|
+
/* @__PURE__ */ e(n, { blocks: s.title })
|
|
153
152
|
] }),
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
s.description && /* @__PURE__ */ e(n, { blocks: s.description }),
|
|
154
|
+
u && /* @__PURE__ */ e(
|
|
156
155
|
p,
|
|
157
156
|
{
|
|
158
|
-
items:
|
|
159
|
-
alignment:
|
|
157
|
+
items: u.items,
|
|
158
|
+
alignment: u.alignment
|
|
160
159
|
}
|
|
161
160
|
)
|
|
162
161
|
] })
|
|
163
162
|
] }) });
|
|
164
163
|
if (d === "full-bleed")
|
|
165
|
-
return /* @__PURE__ */ e("section", { className: `${l.hero} ${b}`, children: /* @__PURE__ */
|
|
166
|
-
|
|
164
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${b}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
165
|
+
t ? t.includes("vimeo.com") || t.includes("youtube.com") || t.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: l.videoBackground, children: /* @__PURE__ */ e(
|
|
167
166
|
"iframe",
|
|
168
167
|
{
|
|
169
|
-
src:
|
|
170
|
-
|
|
168
|
+
src: t.includes("vimeo.com") ? `${t}?autoplay=1&muted=1&loop=1&background=1` : `${t}?autoplay=1&mute=1&loop=1&playlist=${w(
|
|
169
|
+
t
|
|
171
170
|
)}`,
|
|
172
171
|
className: l.iframe,
|
|
173
172
|
allow: "autoplay; fullscreen",
|
|
174
173
|
allowFullScreen: !0
|
|
175
174
|
}
|
|
176
|
-
) }) : /* @__PURE__ */
|
|
175
|
+
) }) : /* @__PURE__ */ c(v, { children: [
|
|
177
176
|
/* @__PURE__ */ e(h, {}),
|
|
178
177
|
/* @__PURE__ */ e(
|
|
179
178
|
"video",
|
|
180
179
|
{
|
|
181
180
|
ref: m,
|
|
182
181
|
className: l.videoBackground,
|
|
183
|
-
src:
|
|
182
|
+
src: t,
|
|
184
183
|
autoPlay: !a,
|
|
185
184
|
loop: !0,
|
|
186
185
|
muted: !0,
|
|
@@ -200,47 +199,47 @@ function ye({
|
|
|
200
199
|
sizes: "(min-width: 500px) 500px, 100vw"
|
|
201
200
|
}
|
|
202
201
|
),
|
|
203
|
-
/* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
/* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */ c("div", { className: l.text, children: [
|
|
203
|
+
/* @__PURE__ */ c("div", { children: [
|
|
204
|
+
s.eyebrow && /* @__PURE__ */ e(
|
|
205
|
+
n,
|
|
207
206
|
{
|
|
208
207
|
className: l.eyebrow,
|
|
209
|
-
blocks:
|
|
208
|
+
blocks: s.eyebrow
|
|
210
209
|
}
|
|
211
210
|
),
|
|
212
|
-
/* @__PURE__ */ e(
|
|
211
|
+
/* @__PURE__ */ e(n, { blocks: s.title })
|
|
213
212
|
] }),
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
s.description && /* @__PURE__ */ e(n, { blocks: s.description }),
|
|
214
|
+
u && /* @__PURE__ */ e(
|
|
216
215
|
p,
|
|
217
216
|
{
|
|
218
|
-
items:
|
|
219
|
-
alignment:
|
|
217
|
+
items: u.items,
|
|
218
|
+
alignment: u.alignment
|
|
220
219
|
}
|
|
221
220
|
)
|
|
222
221
|
] }) })
|
|
223
222
|
] }) });
|
|
224
223
|
if (d === "blog")
|
|
225
|
-
return /* @__PURE__ */ e("section", { className: `${l.hero} ${b}`, children: /* @__PURE__ */
|
|
226
|
-
|
|
224
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${b}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
225
|
+
t ? t.includes("vimeo.com") || t.includes("youtube.com") || t.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: l.videoBackground, children: /* @__PURE__ */ e(
|
|
227
226
|
"iframe",
|
|
228
227
|
{
|
|
229
|
-
src:
|
|
230
|
-
|
|
228
|
+
src: t.includes("vimeo.com") ? `${t}?autoplay=1&muted=1&loop=1&background=1` : `${t}?autoplay=1&mute=1&loop=1&playlist=${w(
|
|
229
|
+
t
|
|
231
230
|
)}`,
|
|
232
231
|
className: l.iframe,
|
|
233
232
|
allow: "autoplay; fullscreen",
|
|
234
233
|
allowFullScreen: !0
|
|
235
234
|
}
|
|
236
|
-
) }) : /* @__PURE__ */
|
|
235
|
+
) }) : /* @__PURE__ */ c(v, { children: [
|
|
237
236
|
/* @__PURE__ */ e(h, {}),
|
|
238
237
|
/* @__PURE__ */ e(
|
|
239
238
|
"video",
|
|
240
239
|
{
|
|
241
240
|
ref: m,
|
|
242
241
|
className: l.videoBackground,
|
|
243
|
-
src:
|
|
242
|
+
src: t,
|
|
244
243
|
autoPlay: !a,
|
|
245
244
|
loop: !0,
|
|
246
245
|
muted: !0,
|
|
@@ -260,36 +259,36 @@ function ye({
|
|
|
260
259
|
sizes: "(min-width: 500px) 500px, 100vw"
|
|
261
260
|
}
|
|
262
261
|
),
|
|
263
|
-
/* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
|
|
266
|
-
|
|
262
|
+
/* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */ c("div", { className: l.text, children: [
|
|
263
|
+
/* @__PURE__ */ c("div", { children: [
|
|
264
|
+
s.eyebrow && /* @__PURE__ */ e(
|
|
265
|
+
n,
|
|
267
266
|
{
|
|
268
267
|
className: l.eyebrow,
|
|
269
|
-
blocks:
|
|
268
|
+
blocks: s.eyebrow
|
|
270
269
|
}
|
|
271
270
|
),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
/* @__PURE__ */
|
|
271
|
+
o && /* @__PURE__ */ c("div", { className: l.articleDetails, children: [
|
|
272
|
+
o.articleType && /* @__PURE__ */ e("div", { className: l.articleType, children: o.articleType }),
|
|
273
|
+
/* @__PURE__ */ c("div", { className: l.articleCategories, children: [
|
|
275
274
|
$ && /* @__PURE__ */ e("span", { className: l.category, children: $.title }),
|
|
276
275
|
f && f.title.toLowerCase() !== "library" && !f.slug.current.includes(
|
|
277
276
|
"keywords"
|
|
278
277
|
) && /* @__PURE__ */ e("span", { className: l.category, children: f.title })
|
|
279
278
|
] }),
|
|
280
|
-
|
|
281
|
-
/* @__PURE__ */ e("span", { className: l.number, children:
|
|
279
|
+
o.timeToRead && /* @__PURE__ */ e(v, { children: /* @__PURE__ */ c("span", { children: [
|
|
280
|
+
/* @__PURE__ */ e("span", { className: l.number, children: o.timeToRead }),
|
|
282
281
|
"min read"
|
|
283
282
|
] }) })
|
|
284
283
|
] }),
|
|
285
|
-
/* @__PURE__ */ e(
|
|
284
|
+
/* @__PURE__ */ e(n, { blocks: s.title })
|
|
286
285
|
] }),
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
s.description && /* @__PURE__ */ e(n, { blocks: s.description }),
|
|
287
|
+
u && /* @__PURE__ */ e(
|
|
289
288
|
p,
|
|
290
289
|
{
|
|
291
|
-
items:
|
|
292
|
-
alignment:
|
|
290
|
+
items: u.items,
|
|
291
|
+
alignment: u.alignment
|
|
293
292
|
}
|
|
294
293
|
)
|
|
295
294
|
] }) })
|