quirk-ui 0.0.336 → 0.0.337
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/dist/next/blocks/HeroBlock/index.js +263 -265
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c, Fragment as v } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useHeroContext as
|
|
2
|
+
import { useState as U, useRef as z, useEffect as R } from "react";
|
|
3
|
+
import { useHeroContext as S } from "./HeroContext.js";
|
|
4
4
|
import { RichText as n } from "../../ui/PortableTextRenderer/index.js";
|
|
5
5
|
import { CallToActions as _ } from "../../ui/CallToActions/index.js";
|
|
6
6
|
import N from "next/image";
|
|
@@ -13,303 +13,301 @@ import '../../../assets/index46.css';/**
|
|
|
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:
|
|
22
|
-
eyebrow:
|
|
23
|
-
disclaimer:
|
|
24
|
-
text:
|
|
25
|
-
articleDetails:
|
|
26
|
-
articleType:
|
|
27
|
-
articleCategories:
|
|
28
|
-
category:
|
|
29
|
-
number:
|
|
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", se = "_iframe_c7i2h_375", l = {
|
|
20
|
+
hero: V,
|
|
21
|
+
container: E,
|
|
22
|
+
eyebrow: Y,
|
|
23
|
+
disclaimer: M,
|
|
24
|
+
text: q,
|
|
25
|
+
articleDetails: G,
|
|
26
|
+
articleType: J,
|
|
27
|
+
articleCategories: K,
|
|
28
|
+
category: Q,
|
|
29
|
+
number: X,
|
|
30
30
|
default: "_default_c7i2h_113",
|
|
31
|
-
blog:
|
|
32
|
-
overlay:
|
|
33
|
-
fullBleed:
|
|
34
|
-
split:
|
|
35
|
-
image:
|
|
36
|
-
videoControl:
|
|
31
|
+
blog: Z,
|
|
32
|
+
overlay: O,
|
|
33
|
+
fullBleed: A,
|
|
34
|
+
split: D,
|
|
35
|
+
image: g,
|
|
36
|
+
videoControl: ee,
|
|
37
37
|
videoWrapper: le,
|
|
38
|
-
videoBackground:
|
|
38
|
+
videoBackground: re,
|
|
39
39
|
iframe: se
|
|
40
40
|
};
|
|
41
|
-
function
|
|
42
|
-
heading:
|
|
43
|
-
image:
|
|
44
|
-
video:
|
|
41
|
+
function ye({
|
|
42
|
+
heading: t,
|
|
43
|
+
image: r,
|
|
44
|
+
video: s,
|
|
45
45
|
callToAction: u,
|
|
46
46
|
pageData: o,
|
|
47
47
|
styleOptions: b
|
|
48
48
|
}) {
|
|
49
|
-
var
|
|
50
|
-
const d = T(), [k, x] =
|
|
51
|
-
default:
|
|
52
|
-
split:
|
|
53
|
-
"full-bleed":
|
|
54
|
-
blog:
|
|
55
|
-
}[y], $ = (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
49
|
+
var I, F;
|
|
50
|
+
const d = T(), [k, x] = U(!d), { setIsFullbleedHeroAtTop: C } = S(), a = z(null), y = (b == null ? void 0 : b.layout) ?? "default", f = {
|
|
51
|
+
default: l.default,
|
|
52
|
+
split: l.split,
|
|
53
|
+
"full-bleed": l.fullBleed,
|
|
54
|
+
blog: l.blog
|
|
55
|
+
}[y], $ = (I = o == null ? void 0 : o.categories) != null && I.length ? o == null ? void 0 : o.categories[0] : null, p = (F = o == null ? void 0 : o.categories) != null && F.length ? o == null ? void 0 : o.categories[1] : null;
|
|
56
|
+
R(() => {
|
|
57
|
+
const i = () => {
|
|
58
|
+
C(window.scrollY === 0);
|
|
59
|
+
};
|
|
60
|
+
if (y === "full-bleed" && typeof window < "u")
|
|
61
|
+
return C(!0), window.addEventListener("scroll", i), () => window.removeEventListener("scroll", i);
|
|
62
|
+
}, [y]), R(() => {
|
|
63
|
+
const i = a.current;
|
|
64
|
+
i && (d ? i.pause() : i.play());
|
|
65
|
+
}, [d]);
|
|
66
|
+
const h = () => /* @__PURE__ */ e(
|
|
67
|
+
"button",
|
|
68
|
+
{
|
|
69
|
+
title: `${k ? "Pause the video" : "Play the video"}`,
|
|
70
|
+
className: l.videoControl,
|
|
71
|
+
onClick: () => {
|
|
72
|
+
const i = a.current;
|
|
73
|
+
i && (i.paused ? (i.play().catch(() => {
|
|
74
|
+
}), x(!0)) : (i.pause(), x(!1)));
|
|
75
|
+
},
|
|
76
|
+
children: k ? /* @__PURE__ */ e(L, { size: 18 }) : /* @__PURE__ */ e(j, { size: 18 })
|
|
77
|
+
}
|
|
78
|
+
), B = () => {
|
|
79
|
+
if (!s) return null;
|
|
80
|
+
const i = s.includes("vimeo.com"), m = s.includes("youtube.com") || s.includes("youtu.be");
|
|
81
|
+
return i || m ? /* @__PURE__ */ e("div", { className: l.videoWrapper, children: /* @__PURE__ */ e(
|
|
82
|
+
"iframe",
|
|
69
83
|
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}), x(!0)) : (i.pause(), x(!1)));
|
|
76
|
-
},
|
|
77
|
-
children: k ? /* @__PURE__ */ e(V, { size: 18 }) : /* @__PURE__ */ e(j, { size: 18 })
|
|
84
|
+
src: i ? `${s}?autoplay=1&muted=1&loop=1&background=1` : `${s}?autoplay=1&mute=1&loop=1&playlist=${w(
|
|
85
|
+
s
|
|
86
|
+
)}`,
|
|
87
|
+
allow: "autoplay; fullscreen",
|
|
88
|
+
allowFullScreen: !0
|
|
78
89
|
}
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"iframe",
|
|
90
|
+
) }) : /* @__PURE__ */ c("div", { className: l.videoWrapper, children: [
|
|
91
|
+
/* @__PURE__ */ e(h, {}),
|
|
92
|
+
/* @__PURE__ */ e(
|
|
93
|
+
"video",
|
|
84
94
|
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
95
|
+
ref: a,
|
|
96
|
+
src: s,
|
|
97
|
+
autoPlay: !d,
|
|
98
|
+
loop: !0,
|
|
99
|
+
muted: !0,
|
|
100
|
+
playsInline: !0,
|
|
101
|
+
poster: (r == null ? void 0 : r.imageUrl) || void 0
|
|
90
102
|
}
|
|
91
|
-
)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
};
|
|
107
|
-
function w(i) {
|
|
108
|
-
const m = i.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);
|
|
109
|
-
return (m == null ? void 0 : m[1]) || "";
|
|
103
|
+
)
|
|
104
|
+
] });
|
|
105
|
+
};
|
|
106
|
+
function w(i) {
|
|
107
|
+
const m = i.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);
|
|
108
|
+
return (m == null ? void 0 : m[1]) || "";
|
|
109
|
+
}
|
|
110
|
+
const P = () => r && r.imageUrl ? /* @__PURE__ */ e("div", { className: l.image, children: /* @__PURE__ */ e(
|
|
111
|
+
N,
|
|
112
|
+
{
|
|
113
|
+
src: r.imageUrl,
|
|
114
|
+
alt: r.asset.altText || r.asset.description || "Hero image",
|
|
115
|
+
width: 600,
|
|
116
|
+
height: 658,
|
|
117
|
+
priority: !0
|
|
110
118
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
) }) : null;
|
|
121
|
-
switch (y) {
|
|
122
|
-
case "split":
|
|
123
|
-
return /* @__PURE__ */ e("section", { className: `${r.hero} ${r.split}`, children: /* @__PURE__ */ c("article", { className: r.container, children: [
|
|
124
|
-
/* @__PURE__ */ c("div", { className: r.text, children: [
|
|
125
|
-
/* @__PURE__ */ c("div", { children: [
|
|
126
|
-
s.eyebrow && /* @__PURE__ */ e(
|
|
127
|
-
n,
|
|
128
|
-
{
|
|
129
|
-
className: r.eyebrow,
|
|
130
|
-
blocks: s.eyebrow
|
|
131
|
-
}
|
|
132
|
-
),
|
|
133
|
-
/* @__PURE__ */ e(n, { blocks: s.title })
|
|
134
|
-
] }),
|
|
135
|
-
s.description && /* @__PURE__ */ e(n, { blocks: s.description }),
|
|
136
|
-
u && /* @__PURE__ */ e(
|
|
137
|
-
_,
|
|
119
|
+
) }) : null;
|
|
120
|
+
switch (y) {
|
|
121
|
+
case "split":
|
|
122
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${l.split}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
123
|
+
/* @__PURE__ */ c("div", { className: l.text, children: [
|
|
124
|
+
/* @__PURE__ */ c("div", { children: [
|
|
125
|
+
t.eyebrow && /* @__PURE__ */ e(
|
|
126
|
+
n,
|
|
138
127
|
{
|
|
139
|
-
|
|
140
|
-
|
|
128
|
+
className: l.eyebrow,
|
|
129
|
+
blocks: t.eyebrow
|
|
141
130
|
}
|
|
142
131
|
),
|
|
143
|
-
|
|
132
|
+
/* @__PURE__ */ e(n, { blocks: t.title })
|
|
133
|
+
] }),
|
|
134
|
+
t.description && /* @__PURE__ */ e(n, { blocks: t.description }),
|
|
135
|
+
u && /* @__PURE__ */ e(
|
|
136
|
+
_,
|
|
137
|
+
{
|
|
138
|
+
items: u.items,
|
|
139
|
+
alignment: u.alignment
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
t.disclaimer && /* @__PURE__ */ e(
|
|
143
|
+
n,
|
|
144
|
+
{
|
|
145
|
+
className: l.disclaimer,
|
|
146
|
+
blocks: t.disclaimer
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] }),
|
|
150
|
+
s ? /* @__PURE__ */ e(B, {}) : /* @__PURE__ */ e(P, {})
|
|
151
|
+
] }) });
|
|
152
|
+
case "default":
|
|
153
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${f}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
154
|
+
s ? /* @__PURE__ */ e(B, {}) : /* @__PURE__ */ e(P, {}),
|
|
155
|
+
/* @__PURE__ */ c("div", { className: l.text, children: [
|
|
156
|
+
/* @__PURE__ */ c("div", { children: [
|
|
157
|
+
t.eyebrow && /* @__PURE__ */ e(
|
|
144
158
|
n,
|
|
145
159
|
{
|
|
146
|
-
className:
|
|
147
|
-
blocks:
|
|
160
|
+
className: l.eyebrow,
|
|
161
|
+
blocks: t.eyebrow
|
|
148
162
|
}
|
|
149
|
-
)
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ e(n, { blocks: t.title })
|
|
150
165
|
] }),
|
|
151
|
-
t
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return /* @__PURE__ */ e("section", { className: `${r.hero} ${f}`, children: /* @__PURE__ */ c("article", { className: r.container, children: [
|
|
155
|
-
t ? /* @__PURE__ */ e(I, {}) : /* @__PURE__ */ e(F, {}),
|
|
156
|
-
/* @__PURE__ */ c("div", { className: r.text, children: [
|
|
157
|
-
/* @__PURE__ */ c("div", { children: [
|
|
158
|
-
s.eyebrow && /* @__PURE__ */ e(
|
|
159
|
-
n,
|
|
160
|
-
{
|
|
161
|
-
className: r.eyebrow,
|
|
162
|
-
blocks: s.eyebrow
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
/* @__PURE__ */ e(n, { blocks: s.title })
|
|
166
|
-
] }),
|
|
167
|
-
s.description && /* @__PURE__ */ e(n, { blocks: s.description }),
|
|
168
|
-
u && /* @__PURE__ */ e(
|
|
169
|
-
_,
|
|
170
|
-
{
|
|
171
|
-
items: u.items,
|
|
172
|
-
alignment: u.alignment
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
] })
|
|
176
|
-
] }) });
|
|
177
|
-
case "full-bleed":
|
|
178
|
-
return /* @__PURE__ */ e("section", { className: `${r.hero} ${f}`, children: /* @__PURE__ */ c("article", { className: r.container, children: [
|
|
179
|
-
t ? t.includes("vimeo.com") || t.includes("youtube.com") || t.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: r.videoBackground, children: /* @__PURE__ */ e(
|
|
180
|
-
"iframe",
|
|
166
|
+
t.description && /* @__PURE__ */ e(n, { blocks: t.description }),
|
|
167
|
+
u && /* @__PURE__ */ e(
|
|
168
|
+
_,
|
|
181
169
|
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
)}`,
|
|
185
|
-
className: r.iframe,
|
|
186
|
-
allow: "autoplay; fullscreen",
|
|
187
|
-
allowFullScreen: !0
|
|
170
|
+
items: u.items,
|
|
171
|
+
alignment: u.alignment
|
|
188
172
|
}
|
|
189
|
-
)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
173
|
+
)
|
|
174
|
+
] })
|
|
175
|
+
] }) });
|
|
176
|
+
case "full-bleed":
|
|
177
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${f}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
178
|
+
s ? s.includes("vimeo.com") || s.includes("youtube.com") || s.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: l.videoBackground, children: /* @__PURE__ */ e(
|
|
179
|
+
"iframe",
|
|
180
|
+
{
|
|
181
|
+
src: s.includes("vimeo.com") ? `${s}?autoplay=1&muted=1&loop=1&background=1` : `${s}?autoplay=1&mute=1&loop=1&playlist=${w(
|
|
182
|
+
s
|
|
183
|
+
)}`,
|
|
184
|
+
className: l.iframe,
|
|
185
|
+
allow: "autoplay; fullscreen",
|
|
186
|
+
allowFullScreen: !0
|
|
187
|
+
}
|
|
188
|
+
) }) : /* @__PURE__ */ c(v, { children: [
|
|
189
|
+
/* @__PURE__ */ e(h, {}),
|
|
190
|
+
/* @__PURE__ */ e(
|
|
191
|
+
"video",
|
|
206
192
|
{
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
193
|
+
ref: a,
|
|
194
|
+
className: l.videoBackground,
|
|
195
|
+
src: s,
|
|
196
|
+
autoPlay: !d,
|
|
197
|
+
loop: !0,
|
|
198
|
+
muted: !0,
|
|
199
|
+
playsInline: !0,
|
|
200
|
+
poster: (r == null ? void 0 : r.imageUrl) || void 0
|
|
214
201
|
}
|
|
215
|
-
)
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
202
|
+
)
|
|
203
|
+
] }) : /* @__PURE__ */ e(
|
|
204
|
+
N,
|
|
205
|
+
{
|
|
206
|
+
src: (r == null ? void 0 : r.imageUrl) ?? "",
|
|
207
|
+
alt: (r == null ? void 0 : r.asset.altText) || (r == null ? void 0 : r.asset.description) || "Card image",
|
|
208
|
+
fill: !0,
|
|
209
|
+
priority: !0,
|
|
210
|
+
style: { objectFit: "cover" },
|
|
211
|
+
draggable: !1,
|
|
212
|
+
sizes: "(min-width: 500px) 500px, 100vw"
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */ c("div", { className: l.text, children: [
|
|
216
|
+
/* @__PURE__ */ c("div", { children: [
|
|
217
|
+
t.eyebrow && /* @__PURE__ */ e(
|
|
218
|
+
n,
|
|
230
219
|
{
|
|
231
|
-
|
|
232
|
-
|
|
220
|
+
className: l.eyebrow,
|
|
221
|
+
blocks: t.eyebrow
|
|
233
222
|
}
|
|
234
|
-
)
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
"iframe",
|
|
223
|
+
),
|
|
224
|
+
/* @__PURE__ */ e(n, { blocks: t.title })
|
|
225
|
+
] }),
|
|
226
|
+
t.description && /* @__PURE__ */ e(n, { blocks: t.description }),
|
|
227
|
+
u && /* @__PURE__ */ e(
|
|
228
|
+
_,
|
|
241
229
|
{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
)}`,
|
|
245
|
-
className: r.iframe,
|
|
246
|
-
allow: "autoplay; fullscreen",
|
|
247
|
-
allowFullScreen: !0
|
|
230
|
+
items: u.items,
|
|
231
|
+
alignment: u.alignment
|
|
248
232
|
}
|
|
249
|
-
)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
233
|
+
)
|
|
234
|
+
] }) })
|
|
235
|
+
] }) });
|
|
236
|
+
case "blog":
|
|
237
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${f}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
238
|
+
s ? s.includes("vimeo.com") || s.includes("youtube.com") || s.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: l.videoBackground, children: /* @__PURE__ */ e(
|
|
239
|
+
"iframe",
|
|
240
|
+
{
|
|
241
|
+
src: s.includes("vimeo.com") ? `${s}?autoplay=1&muted=1&loop=1&background=1` : `${s}?autoplay=1&mute=1&loop=1&playlist=${w(
|
|
242
|
+
s
|
|
243
|
+
)}`,
|
|
244
|
+
className: l.iframe,
|
|
245
|
+
allow: "autoplay; fullscreen",
|
|
246
|
+
allowFullScreen: !0
|
|
247
|
+
}
|
|
248
|
+
) }) : /* @__PURE__ */ c(v, { children: [
|
|
249
|
+
/* @__PURE__ */ e(h, {}),
|
|
250
|
+
/* @__PURE__ */ e(
|
|
251
|
+
"video",
|
|
266
252
|
{
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
253
|
+
ref: a,
|
|
254
|
+
className: l.videoBackground,
|
|
255
|
+
src: s,
|
|
256
|
+
autoPlay: !d,
|
|
257
|
+
loop: !0,
|
|
258
|
+
muted: !0,
|
|
259
|
+
playsInline: !0,
|
|
260
|
+
poster: (r == null ? void 0 : r.imageUrl) || void 0
|
|
274
261
|
}
|
|
275
|
-
)
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
] }),
|
|
293
|
-
o.timeToRead && /* @__PURE__ */ e(v, { children: /* @__PURE__ */ c("span", { children: [
|
|
294
|
-
/* @__PURE__ */ e("span", { className: r.number, children: o.timeToRead }),
|
|
295
|
-
"min read"
|
|
296
|
-
] }) })
|
|
297
|
-
] }),
|
|
298
|
-
/* @__PURE__ */ e(n, { blocks: s.title })
|
|
299
|
-
] }),
|
|
300
|
-
s.description && /* @__PURE__ */ e(n, { blocks: s.description }),
|
|
301
|
-
u && /* @__PURE__ */ e(
|
|
302
|
-
_,
|
|
262
|
+
)
|
|
263
|
+
] }) : /* @__PURE__ */ e(
|
|
264
|
+
N,
|
|
265
|
+
{
|
|
266
|
+
src: (r == null ? void 0 : r.imageUrl) ?? "",
|
|
267
|
+
alt: (r == null ? void 0 : r.asset.altText) || (r == null ? void 0 : r.asset.description) || "Card image",
|
|
268
|
+
fill: !0,
|
|
269
|
+
priority: !0,
|
|
270
|
+
style: { objectFit: "cover" },
|
|
271
|
+
draggable: !1,
|
|
272
|
+
sizes: "(min-width: 500px) 500px, 100vw"
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
/* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */ c("div", { className: l.text, children: [
|
|
276
|
+
/* @__PURE__ */ c("div", { children: [
|
|
277
|
+
t.eyebrow && /* @__PURE__ */ e(
|
|
278
|
+
n,
|
|
303
279
|
{
|
|
304
|
-
|
|
305
|
-
|
|
280
|
+
className: l.eyebrow,
|
|
281
|
+
blocks: t.eyebrow
|
|
306
282
|
}
|
|
307
|
-
)
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
283
|
+
),
|
|
284
|
+
o && /* @__PURE__ */ c("div", { className: l.articleDetails, children: [
|
|
285
|
+
o.articleType && /* @__PURE__ */ e("div", { className: l.articleType, children: o.articleType }),
|
|
286
|
+
/* @__PURE__ */ c("div", { className: l.articleCategories, children: [
|
|
287
|
+
$ && /* @__PURE__ */ e("span", { className: l.category, children: $.title }),
|
|
288
|
+
p && p.title.toLowerCase() !== "library" && !p.slug.current.includes(
|
|
289
|
+
"keywords"
|
|
290
|
+
) && /* @__PURE__ */ e("span", { className: l.category, children: p.title })
|
|
291
|
+
] }),
|
|
292
|
+
o.timeToRead && /* @__PURE__ */ e(v, { children: /* @__PURE__ */ c("span", { children: [
|
|
293
|
+
/* @__PURE__ */ e("span", { className: l.number, children: o.timeToRead }),
|
|
294
|
+
"min read"
|
|
295
|
+
] }) })
|
|
296
|
+
] }),
|
|
297
|
+
/* @__PURE__ */ e(n, { blocks: t.title })
|
|
298
|
+
] }),
|
|
299
|
+
t.description && /* @__PURE__ */ e(n, { blocks: t.description }),
|
|
300
|
+
u && /* @__PURE__ */ e(
|
|
301
|
+
_,
|
|
302
|
+
{
|
|
303
|
+
items: u.items,
|
|
304
|
+
alignment: u.alignment
|
|
305
|
+
}
|
|
306
|
+
)
|
|
307
|
+
] }) })
|
|
308
|
+
] }) });
|
|
309
|
+
}
|
|
312
310
|
}
|
|
313
311
|
export {
|
|
314
|
-
|
|
312
|
+
ye as HeroBlock
|
|
315
313
|
};
|