quirk-ui 0.1.63 → 0.1.65
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/HeroSubComponents-DeLtujvq.cjs +6 -0
- package/dist/{HeroSubComponents-TMn2dfmU.js → HeroSubComponents-DgaUarpC.js} +50 -50
- package/dist/HeroSubComponents.css +1 -1
- package/dist/index13.css +1 -1
- package/dist/next/blocks/HeroBlock/HeroSubComponents.cjs +1 -1
- package/dist/next/blocks/HeroBlock/HeroSubComponents.mjs +1 -1
- package/dist/next/blocks/HeroBlock/index.cjs +1 -1
- package/dist/next/blocks/HeroBlock/index.mjs +2 -1
- package/dist/next/blocks/TabsBlock/index.cjs +1 -1
- package/dist/next/blocks/TabsBlock/index.mjs +36 -35
- package/package.json +1 -1
- package/dist/HeroSubComponents-DwgNZsms.cjs +0 -6
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./HeroSubComponents.css');const t=require("react/jsx-runtime"),l=require("react"),y=require("./next/utils/mediaUtils.cjs"),v=require("./createLucideIcon-DpotSgUx.cjs"),w=require("./play-CQBnZgNa.cjs");/**
|
|
2
|
+
* @license lucide-react v0.488.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const p=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],x=v.createLucideIcon("pause",p),b="_hero_1yw6g_1",j="_container_1yw6g_7",C="_heading_1yw6g_15",N="_text_1yw6g_22",k="_eyebrow_1yw6g_37",B="_disclaimer_1yw6g_41",V="_articleDetails_1yw6g_53",I="_articleType_1yw6g_66",E="_articleCategories_1yw6g_80",q="_category_1yw6g_86",z="_number_1yw6g_102",T="_blog_1yw6g_129",H="_overlay_1yw6g_155",R="_tile_1yw6g_225",D="_fullBleed_1yw6g_326",F="_media_1yw6g_353",P="_splitAlt_1yw6g_442",A="_split_1yw6g_442",L="_videoControl_1yw6g_516",S="_videoBackground_1yw6g_559",U="_iframe_1yw6g_560",n={hero:b,container:j,heading:C,text:N,eyebrow:k,disclaimer:B,articleDetails:V,articleType:I,articleCategories:E,category:q,number:z,default:"_default_1yw6g_125",blog:T,overlay:H,tile:R,fullBleed:D,media:F,splitAlt:P,split:A,videoControl:L,videoBackground:S,iframe:U},f=l.memo(function({isPlaying:e,onToggle:i}){return t.jsx("button",{type:"button",title:e?"Pause the video":"Play the video","aria-label":e?"Pause video":"Play video",className:n.videoControl,onClick:i,children:e?t.jsx(x,{size:18,"aria-hidden":!0}):t.jsx(w.Play,{size:18,"aria-hidden":!0})})}),g=l.memo(function({url:e,provider:i,wrapperClassName:a,iframeClassName:s}){const r=y.buildEmbedSrc(e,i);return t.jsx("div",{className:a,children:t.jsx("iframe",{src:r,className:s,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),h=l.memo(l.forwardRef(function({src:e,autoPlay:i,posterUrl:a,wrapperClassName:s,videoClassName:r,isPlaying:c,onToggle:u},m){const d=l.useRef(null);return l.useImperativeHandle(m,()=>({play(){var o;(o=d.current)==null||o.play().catch(()=>{})},pause(){var o;(o=d.current)==null||o.pause()}})),l.useEffect(()=>{const o=d.current;o&&(c?o.play().catch(()=>{}):o.pause())},[c]),t.jsxs("div",{className:s,style:{position:"relative"},children:[t.jsx(f,{isPlaying:c,onToggle:u}),t.jsx("video",{ref:d,src:e,autoPlay:i,loop:!0,muted:!0,playsInline:!0,poster:a,preload:"metadata",className:r,"aria-label":"Background video"})]})})),$=l.memo(function({url:e,autoPlay:i,posterUrl:a,isPlaying:s,onToggle:r,variant:c}){const u=e.includes("vimeo.com"),m=e.includes("youtube.com")||e.includes("youtu.be"),d=u||m,o=u?"vimeo":"youtube";return c==="inline"?d?t.jsx(g,{url:e,provider:o,wrapperClassName:n.media}):t.jsx(h,{src:e,autoPlay:i,posterUrl:a,wrapperClassName:n.media,isPlaying:s,onToggle:r}):d?t.jsx(g,{url:e,provider:o,wrapperClassName:n.videoBackground,iframeClassName:n.iframe}):t.jsx(h,{src:e,autoPlay:i,posterUrl:a,videoClassName:n.videoBackground,isPlaying:s,onToggle:r})}),Y=l.memo(function({image:e,mode:i,variant:a,imageAdapter:s}){const r=y.resolveImageUrl(e,i,"medium");if(!r)return null;const c=y.resolveAltText(e,i),u=t.jsx("img",{fetchPriority:"high",src:r,alt:c,draggable:!1,style:a==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return s?t.jsx("div",{className:n.media,children:a==="fill"?s.render({src:r,alt:c,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):s.render({src:r,alt:c,width:650,height:750,priority:!0,fetchPriority:"high"})}):t.jsx("div",{className:n.media,children:u})});exports.HeroImage=Y;exports.NativeVideo=h;exports.VideoBlock=$;exports.VideoControl=f;exports.VideoEmbed=g;exports.styles=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { buildEmbedSrc as
|
|
1
|
+
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { memo as u, forwardRef as h, useRef as p, useImperativeHandle as v, useEffect as w } from "react";
|
|
3
|
+
import { buildEmbedSrc as b, resolveImageUrl as x, resolveAltText as N } from "./next/utils/mediaUtils.mjs";
|
|
4
4
|
import { c as C } from "./createLucideIcon-C8GTh_Qx.js";
|
|
5
5
|
import { P as k } from "./play-DYgKiSaf.js";
|
|
6
6
|
import './HeroSubComponents.css';/**
|
|
@@ -12,7 +12,7 @@ import './HeroSubComponents.css';/**
|
|
|
12
12
|
const B = [
|
|
13
13
|
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
14
14
|
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
15
|
-
], V = C("pause", B), I = "
|
|
15
|
+
], V = C("pause", B), I = "_hero_1yw6g_1", E = "_container_1yw6g_7", z = "_heading_1yw6g_15", T = "_text_1yw6g_22", j = "_eyebrow_1yw6g_37", H = "_disclaimer_1yw6g_41", P = "_articleDetails_1yw6g_53", D = "_articleType_1yw6g_66", F = "_articleCategories_1yw6g_80", R = "_category_1yw6g_86", A = "_number_1yw6g_102", S = "_blog_1yw6g_129", L = "_overlay_1yw6g_155", U = "_tile_1yw6g_225", Y = "_fullBleed_1yw6g_326", q = "_media_1yw6g_353", G = "_splitAlt_1yw6g_442", J = "_split_1yw6g_442", K = "_videoControl_1yw6g_516", M = "_videoBackground_1yw6g_559", O = "_iframe_1yw6g_560", l = {
|
|
16
16
|
hero: I,
|
|
17
17
|
container: E,
|
|
18
18
|
heading: z,
|
|
@@ -24,7 +24,7 @@ const B = [
|
|
|
24
24
|
articleCategories: F,
|
|
25
25
|
category: R,
|
|
26
26
|
number: A,
|
|
27
|
-
default: "
|
|
27
|
+
default: "_default_1yw6g_125",
|
|
28
28
|
blog: S,
|
|
29
29
|
overlay: L,
|
|
30
30
|
tile: U,
|
|
@@ -35,11 +35,11 @@ const B = [
|
|
|
35
35
|
videoControl: K,
|
|
36
36
|
videoBackground: M,
|
|
37
37
|
iframe: O
|
|
38
|
-
}, Q =
|
|
38
|
+
}, Q = u(function({
|
|
39
39
|
isPlaying: e,
|
|
40
40
|
onToggle: i
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ t(
|
|
43
43
|
"button",
|
|
44
44
|
{
|
|
45
45
|
type: "button",
|
|
@@ -47,17 +47,17 @@ const B = [
|
|
|
47
47
|
"aria-label": e ? "Pause video" : "Play video",
|
|
48
48
|
className: l.videoControl,
|
|
49
49
|
onClick: i,
|
|
50
|
-
children: e ? /* @__PURE__ */
|
|
50
|
+
children: e ? /* @__PURE__ */ t(V, { size: 18, "aria-hidden": !0 }) : /* @__PURE__ */ t(k, { size: 18, "aria-hidden": !0 })
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
}),
|
|
53
|
+
}), y = u(function({
|
|
54
54
|
url: e,
|
|
55
55
|
provider: i,
|
|
56
56
|
wrapperClassName: s,
|
|
57
57
|
iframeClassName: a
|
|
58
58
|
}) {
|
|
59
|
-
const r =
|
|
60
|
-
return /* @__PURE__ */
|
|
59
|
+
const r = b(e, i);
|
|
60
|
+
return /* @__PURE__ */ t("div", { className: s, children: /* @__PURE__ */ t(
|
|
61
61
|
"iframe",
|
|
62
62
|
{
|
|
63
63
|
src: r,
|
|
@@ -68,37 +68,37 @@ const B = [
|
|
|
68
68
|
"aria-label": "Background video"
|
|
69
69
|
}
|
|
70
70
|
) });
|
|
71
|
-
}),
|
|
72
|
-
|
|
71
|
+
}), g = u(
|
|
72
|
+
h(function({
|
|
73
73
|
src: e,
|
|
74
74
|
autoPlay: i,
|
|
75
75
|
posterUrl: s,
|
|
76
76
|
wrapperClassName: a,
|
|
77
77
|
videoClassName: r,
|
|
78
78
|
isPlaying: c,
|
|
79
|
-
onToggle:
|
|
80
|
-
},
|
|
81
|
-
const
|
|
82
|
-
return
|
|
79
|
+
onToggle: d
|
|
80
|
+
}, m) {
|
|
81
|
+
const n = p(null);
|
|
82
|
+
return v(m, () => ({
|
|
83
83
|
play() {
|
|
84
|
-
var
|
|
85
|
-
(
|
|
84
|
+
var o;
|
|
85
|
+
(o = n.current) == null || o.play().catch(() => {
|
|
86
86
|
});
|
|
87
87
|
},
|
|
88
88
|
pause() {
|
|
89
|
-
var
|
|
90
|
-
(
|
|
89
|
+
var o;
|
|
90
|
+
(o = n.current) == null || o.pause();
|
|
91
91
|
}
|
|
92
|
-
})),
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
}) :
|
|
96
|
-
}, [c]), /* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
92
|
+
})), w(() => {
|
|
93
|
+
const o = n.current;
|
|
94
|
+
o && (c ? o.play().catch(() => {
|
|
95
|
+
}) : o.pause());
|
|
96
|
+
}, [c]), /* @__PURE__ */ f("div", { className: a, style: { position: "relative" }, children: [
|
|
97
|
+
/* @__PURE__ */ t(Q, { isPlaying: c, onToggle: d }),
|
|
98
|
+
/* @__PURE__ */ t(
|
|
99
99
|
"video",
|
|
100
100
|
{
|
|
101
|
-
ref:
|
|
101
|
+
ref: n,
|
|
102
102
|
src: e,
|
|
103
103
|
autoPlay: i,
|
|
104
104
|
loop: !0,
|
|
@@ -112,7 +112,7 @@ const B = [
|
|
|
112
112
|
)
|
|
113
113
|
] });
|
|
114
114
|
})
|
|
115
|
-
),
|
|
115
|
+
), te = u(function({
|
|
116
116
|
url: e,
|
|
117
117
|
autoPlay: i,
|
|
118
118
|
posterUrl: s,
|
|
@@ -120,16 +120,16 @@ const B = [
|
|
|
120
120
|
onToggle: r,
|
|
121
121
|
variant: c
|
|
122
122
|
}) {
|
|
123
|
-
const
|
|
124
|
-
return c === "inline" ?
|
|
125
|
-
|
|
123
|
+
const d = e.includes("vimeo.com"), m = e.includes("youtube.com") || e.includes("youtu.be"), n = d || m, o = d ? "vimeo" : "youtube";
|
|
124
|
+
return c === "inline" ? n ? /* @__PURE__ */ t(
|
|
125
|
+
y,
|
|
126
126
|
{
|
|
127
127
|
url: e,
|
|
128
|
-
provider:
|
|
128
|
+
provider: o,
|
|
129
129
|
wrapperClassName: l.media
|
|
130
130
|
}
|
|
131
|
-
) : /* @__PURE__ */
|
|
132
|
-
|
|
131
|
+
) : /* @__PURE__ */ t(
|
|
132
|
+
g,
|
|
133
133
|
{
|
|
134
134
|
src: e,
|
|
135
135
|
autoPlay: i,
|
|
@@ -138,16 +138,16 @@ const B = [
|
|
|
138
138
|
isPlaying: a,
|
|
139
139
|
onToggle: r
|
|
140
140
|
}
|
|
141
|
-
) :
|
|
142
|
-
|
|
141
|
+
) : n ? /* @__PURE__ */ t(
|
|
142
|
+
y,
|
|
143
143
|
{
|
|
144
144
|
url: e,
|
|
145
|
-
provider:
|
|
145
|
+
provider: o,
|
|
146
146
|
wrapperClassName: l.videoBackground,
|
|
147
147
|
iframeClassName: l.iframe
|
|
148
148
|
}
|
|
149
|
-
) : /* @__PURE__ */
|
|
150
|
-
|
|
149
|
+
) : /* @__PURE__ */ t(
|
|
150
|
+
g,
|
|
151
151
|
{
|
|
152
152
|
src: e,
|
|
153
153
|
autoPlay: i,
|
|
@@ -157,15 +157,15 @@ const B = [
|
|
|
157
157
|
onToggle: r
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
|
-
}),
|
|
160
|
+
}), oe = u(function({
|
|
161
161
|
image: e,
|
|
162
162
|
mode: i,
|
|
163
163
|
variant: s,
|
|
164
164
|
imageAdapter: a
|
|
165
165
|
}) {
|
|
166
|
-
const r =
|
|
166
|
+
const r = x(e, i, "medium");
|
|
167
167
|
if (!r) return null;
|
|
168
|
-
const c = N(e, i),
|
|
168
|
+
const c = N(e, i), d = /* @__PURE__ */ t(
|
|
169
169
|
"img",
|
|
170
170
|
{
|
|
171
171
|
fetchPriority: "high",
|
|
@@ -175,7 +175,7 @@ const B = [
|
|
|
175
175
|
style: s === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
|
-
return a ? /* @__PURE__ */
|
|
178
|
+
return a ? /* @__PURE__ */ t("div", { className: l.media, children: s === "fill" ? a.render({
|
|
179
179
|
src: r,
|
|
180
180
|
alt: c,
|
|
181
181
|
fill: !0,
|
|
@@ -191,13 +191,13 @@ const B = [
|
|
|
191
191
|
height: 750,
|
|
192
192
|
priority: !0,
|
|
193
193
|
fetchPriority: "high"
|
|
194
|
-
}) }) : /* @__PURE__ */
|
|
194
|
+
}) }) : /* @__PURE__ */ t("div", { className: l.media, children: d });
|
|
195
195
|
});
|
|
196
196
|
export {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
oe as H,
|
|
198
|
+
g as N,
|
|
199
|
+
te as V,
|
|
200
200
|
Q as a,
|
|
201
|
-
b,
|
|
201
|
+
y as b,
|
|
202
202
|
l as s
|
|
203
203
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._hero_1yw6g_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_1yw6g_7{width:100%;max-width:var(--layout-width, 1300px);margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._heading_1yw6g_15{display:flex;flex-direction:column;width:100%;flex:1;gap:var(--spacing-md)}._heading_1yw6g_15:not(:has(._text_1yw6g_22 .portableTextContainer)){gap:var(--spacing-lg)}._heading_1yw6g_15 h1,._heading_1yw6g_15 h2,._heading_1yw6g_15 h3,._heading_1yw6g_15 h4,._heading_1yw6g_15 h5,._heading_1yw6g_15 h6{width:100%;margin-block:0}._eyebrow_1yw6g_37{font-weight:var(--font-weight-bold)}._disclaimer_1yw6g_41{color:var(--color-text-primary);font-size:var(--font-size-sm)}._text_1yw6g_22{flex:1;display:flex;flex-direction:column;gap:var(--spacing-lg)}._articleDetails_1yw6g_53{color:var(--color-secondary-75);display:flex;align-items:center;margin-bottom:var(--spacing-md);gap:var(--spacing-md)}@media (max-width: 767px){._articleDetails_1yw6g_53{flex-wrap:wrap;gap:var(--spacing-md)}}._articleType_1yw6g_66{display:flex;align-items:center;justify-content:center;background-color:var(--color-secondary-75);padding:0 var(--spacing-md);color:#fff;width:auto;height:36px;border-radius:var(--radius-full);text-transform:capitalize;text-decoration:none}._articleCategories_1yw6g_80{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}._category_1yw6g_86{border:1px solid var(--color-secondary-75);display:flex;align-items:center;justify-content:center;background-color:transparent;padding:0 var(--spacing-md);color:var(--color-secondary-75);width:auto;height:36px;border-radius:var(--radius-full);text-transform:capitalize;text-decoration:none}._number_1yw6g_102{display:inline-flex;align-items:center;justify-content:center;background-color:var(--color-secondary-75);color:#fff;width:25px;height:25px;border-radius:var(--radius-full);text-transform:capitalize;margin-right:var(--spacing-xs)}._pipe_1yw6g_115{margin:0 var(--spacing-sm)}@media (max-width: 767px){._pipe_1yw6g_115._hide_1yw6g_118{display:none}}._default_1yw6g_125{position:relative}._blog_1yw6g_129{position:relative;padding:0 var(--spacing-md)}._blog_1yw6g_129 ._container_1yw6g_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:450px;height:100%;overflow:hidden;flex-grow:1;padding:var(--nav-height) 0 0;border-radius:var(--radius-md)}._blog_1yw6g_129 ._container_1yw6g_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._blog_1yw6g_129 ._overlay_1yw6g_155{width:100%;padding:4rem var(--spacing-md) var(--spacing-xl)}}._blog_1yw6g_129 ._text_1yw6g_22{z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);border-radius:var(--radius-md)}@media (min-width: 768px){._blog_1yw6g_129 ._text_1yw6g_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._blog_1yw6g_129 ._text_1yw6g_22:before{content:"";position:absolute;top:-25px;left:0;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}._blog_1yw6g_129 ._text_1yw6g_22:after{content:"";position:absolute;bottom:0;right:-20px;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:0 10px 0 0 var(--color-background)}}._tile_1yw6g_225{position:relative;padding:var(--spacing-md)}._tile_1yw6g_225 ._container_1yw6g_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:650px;height:100%;overflow:hidden;flex-grow:1;padding:var(--nav-height) 0 0;border-radius:var(--radius-md)}._tile_1yw6g_225 ._container_1yw6g_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._tile_1yw6g_225 ._overlay_1yw6g_155{width:100%;padding:4rem var(--spacing-md)}}._tile_1yw6g_225 ._text_1yw6g_22{z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);border-radius:var(--radius-md)}@media (min-width: 768px){._tile_1yw6g_225 ._text_1yw6g_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._tile_1yw6g_225 ._text_1yw6g_22:before{content:"";position:absolute;top:-25px;left:0;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}._tile_1yw6g_225 ._text_1yw6g_22:after{content:"";position:absolute;bottom:0;right:-20px;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:0 10px 0 0 var(--color-background)}}._fullBleed_1yw6g_326{position:relative;padding-top:0;padding-bottom:0}._fullBleed_1yw6g_326 ._container_1yw6g_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:650px;height:100%;overflow:hidden;flex-grow:1;border-radius:0}._fullBleed_1yw6g_326 ._container_1yw6g_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._fullBleed_1yw6g_326 ._media_1yw6g_353{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1;border-radius:0}._fullBleed_1yw6g_326 ._media_1yw6g_353 img,._fullBleed_1yw6g_326 ._media_1yw6g_353 video,._fullBleed_1yw6g_326 ._media_1yw6g_353 iframe{width:100%;height:100%;object-fit:cover;display:block}._fullBleed_1yw6g_326 ._overlay_1yw6g_155{position:relative;z-index:1;min-height:80vh;display:flex;align-items:flex-end;padding-bottom:var(--spacing-xl);padding-top:var(--nav-height, 0px);background:linear-gradient(to top,#000000a6,#0000004d,#0000)}@media (max-width: 767px){._fullBleed_1yw6g_326 ._overlay_1yw6g_155{min-height:60vh;padding-bottom:var(--spacing-lg)}}._fullBleed_1yw6g_326 ._text_1yw6g_22{max-width:700px;color:#fff;background-color:transparent;padding:0;border-radius:0;z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);margin-left:var(--spacing-md);margin-right:var(--spacing-md);margin-bottom:var(--spacing-md);border-radius:var(--radius-md)}@media (max-width: 767px){._fullBleed_1yw6g_326 ._text_1yw6g_22{margin-bottom:var(--spacing-xl);bottom:2rem}}._fullBleed_1yw6g_326 ._text_1yw6g_22:before,._fullBleed_1yw6g_326 ._text_1yw6g_22:after{display:none}._default_1yw6g_125 ._media_1yw6g_353{position:relative;width:100%;height:480px;margin-bottom:var(--spacing-md);border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._default_1yw6g_125 ._media_1yw6g_353{height:280px}}._default_1yw6g_125 ._media_1yw6g_353 img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}._splitAlt_1yw6g_442 ._media_1yw6g_353,._split_1yw6g_442 ._media_1yw6g_353{height:100%;padding-bottom:0;margin-bottom:0}._splitAlt_1yw6g_442 ._media_1yw6g_353 video,._splitAlt_1yw6g_442 ._media_1yw6g_353 iframe,._split_1yw6g_442 ._media_1yw6g_353 video,._split_1yw6g_442 ._media_1yw6g_353 iframe{position:relative;border-radius:var(--radius-md)}._splitAlt_1yw6g_442 ._media_1yw6g_353 img,._split_1yw6g_442 ._media_1yw6g_353 img{border-radius:var(--radius-md);width:100%;height:auto;max-height:500px;object-fit:contain}._splitAlt_1yw6g_442 ._container_1yw6g_7{display:flex;align-items:center;gap:3rem}@media (max-width: 767px){._splitAlt_1yw6g_442 ._container_1yw6g_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._splitAlt_1yw6g_442 ._container_1yw6g_7 ._media_1yw6g_353{width:100%;max-width:500px}}._splitAlt_1yw6g_442 ._container_1yw6g_7 ._media_1yw6g_353{flex:.65}._splitAlt_1yw6g_442 ._container_1yw6g_7 ._heading_1yw6g_15{flex:.35}._split_1yw6g_442 ._container_1yw6g_7{display:flex;align-items:center;gap:3rem}._split_1yw6g_442 ._container_1yw6g_7 ._media_1yw6g_353{flex:1}._split_1yw6g_442 ._container_1yw6g_7 ._media_1yw6g_353 img{width:100%;height:auto;max-height:500px;object-fit:contain}@media (max-width: 767px){._split_1yw6g_442 ._container_1yw6g_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._split_1yw6g_442 ._container_1yw6g_7 ._media_1yw6g_353{width:100%;max-width:500px}}._videoControl_1yw6g_516{position:absolute;bottom:1rem;right:1rem;z-index:5;background:#00000080;border:none;border-radius:50%;padding:var(--spacing-sm);cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;transition:color .3s ease-in-out}._videoControl_1yw6g_516:hover{color:var(--color-primary-25)}._media_1yw6g_353{position:relative;width:100%;height:0;overflow:hidden;border-radius:var(--radius-md);flex:1;margin-bottom:var(--spacing-md);line-height:0}._media_1yw6g_353 iframe,._media_1yw6g_353 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._videoBackground_1yw6g_559,._iframe_1yw6g_560{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}._iframe_1yw6g_560{border:none}.splitAlt ._text_1yw6g_22{flex:.65}
|
package/dist/index13.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tabs_3x761_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_3x761_7{width:100%;max-width:var(--layout-width);margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._container_3x761_7 h1,._container_3x761_7 h2,._container_3x761_7 h3,._container_3x761_7 h4,._container_3x761_7 h5,._container_3x761_7 h6{width:100%;margin-block:0}._heading_3x761_25{position:relative;display:flex;flex-direction:column;gap:var(--spacing-md)}._text_3x761_32{flex:1;display:flex;justify-content:center;flex-direction:column;gap:var(--spacing-lg)}@media (max-width: 767px){._text_3x761_32{flex:1;width:100%;align-items:flex-start}}._headingHorizontal_3x761_46{flex-direction:row;justify-content:space-between}._headingHorizontal_3x761_46 ._container_3x761_7{flex:1}._headingHorizontal_3x761_46 ._title_3x761_54{margin-bottom:0;text-wrap:pretty}@media (max-width: 768px){._headingHorizontal_3x761_46{flex-direction:column}}._headingVertical_3x761_64{flex-direction:column;justify-content:flex-start}._tabContent_3x761_74{display:flex;align-items:center;justify-content:space-between;gap:4rem;max-width:800px;margin:0 auto}._tabContent_3x761_74 ul{columns:1}._tabContent_3x761_74 .textPrimary{font-weight:var(--font-weight-semibold);font-size:var(--font-size-lg)}@media (max-width: 767px){._tabContent_3x761_74{flex-direction:column;gap:var(--spacing-lg);align-items:flex-start}}._tabContent_3x761_74._vertical_3x761_97{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:var(--spacing-lg)}@media (max-width: 767px){._tabContent_3x761_74._vertical_3x761_97{flex-direction:column}}._tabContent_3x761_74._vertical_3x761_97 ._tabsContainer_3x761_69{padding-top:var(--spacing-lg);padding-bottom:var(--spacing-lg)}._tabContent_3x761_74._vertical_3x761_97 ._tabImage_3x761_112 img{width:auto}._tabText_3x761_120{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-md);flex:1}._tabImage_3x761_112{width:100%;height:auto;max-width:175px;align-items:center}._tabImage_3x761_112 img{position:relative;width:100%;height:auto}._gridItems_3x761_141{display:grid;width:100%;grid-template-columns:1fr;gap:var(--spacing-md)}@media (min-width: 480px){._gridItems_3x761_141{grid-template-columns:repeat(2,1fr)}}@media (min-width: 768px){._gridItems_3x761_141{grid-template-columns:repeat(4,1fr)}}._gridItem_3x761_141 img{width:100%;height:auto;aspect-ratio:15/9;object-fit:cover;border-radius:var(--radius-md)}._default_3x761_166 ._container_3x761_7{display:flex;flex-direction:column;gap:var(--spacing-md)}.orientationVertical ._tabsContainer_3x761_69{padding-top:var(--spacing-lg);padding-bottom:var(--spacing-lg)}._fullBleed_3x761_181{position:relative;padding-top:var(--spacing-md);padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._fullBleed_3x761_181 ._container_3x761_7{max-width:var(--layout-width);position:relative;display:flex;align-items:flex-end;width:100%;min-height:650px;height:100%;overflow:hidden;flex-grow:1;border-radius:var(--radius-md)}._fullBleed_3x761_181 ._container_3x761_7 img{transition:width .3s ease-in-out,height .3s ease-in-out}._fullBleed_3x761_181 ._overlay_3x761_208{width:100%;max-width:var(--layout-width);margin:0 auto;z-index:3;position:relative;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._fullBleed_3x761_181 ._heading_3x761_25{z-index:3;position:relative;max-width:665px;display:flex;flex-direction:column;gap:var(--spacing-md);background-color:#fff;padding:var(--spacing-xl);border-radius:var(--radius-md);margin-bottom:var(--spacing-md)}._fullBleed_3x761_181 ._heading_3x761_25:has(._title_3x761_54+._cta_3x761_232):not(:has(._text_3x761_32)){gap:var(--spacing-lg)}._fullBleed_3x761_181 ._text_3x761_32{flex:1;display:flex;justify-content:center;flex-direction:column;gap:var(--spacing-lg)}@media (max-width: 767px){._fullBleed_3x761_181 ._text_3x761_32{flex:1;width:100%;align-items:flex-start}}._fullBleed_3x761_181.paddingTopBanner,._fullBleed_3x761_181.paddingTop4,._fullBleed_3x761_181.paddingTop2,._fullBleed_3x761_181.paddingTop1{padding-top:0}._fullBleed_3x761_181.paddingBottomBanner,._fullBleed_3x761_181.paddingBottom4,._fullBleed_3x761_181.paddingBottom2,._fullBleed_3x761_181.paddingBottom1{padding-bottom:0}._fullBleed_3x761_181.paddingTopBanner ._overlay_3x761_208{padding-top:8rem}._fullBleed_3x761_181.paddingBottomBanner ._overlay_3x761_208{padding-bottom:8rem}._fullBleed_3x761_181.paddingTop4 ._overlay_3x761_208{padding-top:4rem}._fullBleed_3x761_181.paddingBottom4 ._overlay_3x761_208{padding-bottom:4rem}._fullBleed_3x761_181.paddingTop2 ._overlay_3x761_208{padding-top:2rem}._fullBleed_3x761_181.paddingBottom2 ._overlay_3x761_208{padding-bottom:2rem}._fullBleed_3x761_181.paddingTop1 ._overlay_3x761_208{padding-top:1rem}._fullBleed_3x761_181.paddingBottom1 ._overlay_3x761_208{padding-bottom:1rem}._eyebrow_3x761_314{font-weight:var(--font-weight-bold)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");require("../../utils/mediaUtils.cjs");const e=require("../../../HeroSubComponents-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");require("../../utils/mediaUtils.cjs");const e=require("../../../HeroSubComponents-DeLtujvq.cjs");require("../../../play-CQBnZgNa.cjs");exports.HeroImage=e.HeroImage;exports.NativeVideo=e.NativeVideo;exports.VideoBlock=e.VideoBlock;exports.VideoControl=e.VideoControl;exports.VideoEmbed=e.VideoEmbed;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../utils/mediaUtils.mjs";
|
|
4
|
-
import { H as t, N as d, V as p, a as s, b as V } from "../../../HeroSubComponents-
|
|
4
|
+
import { H as t, N as d, V as p, a as s, b as V } from "../../../HeroSubComponents-DgaUarpC.js";
|
|
5
5
|
import "../../../play-DYgKiSaf.js";
|
|
6
6
|
export {
|
|
7
7
|
t as HeroImage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),k=require("react"),V=require("./HeroContext.cjs"),s=require("../../../HeroSubComponents-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),k=require("react"),V=require("./HeroContext.cjs"),s=require("../../../HeroSubComponents-DeLtujvq.cjs"),w=require("../../utils/mediaUtils.cjs"),W=require("../../hooks/usePrefersReducedMotion.cjs"),Y={default:s.styles.default,split:s.styles.split,"split-35-65":s.styles.splitAlt,tile:s.styles.tile,fullBleed:s.styles.fullBleed,blog:s.styles.blog};function $({heading:l,callToAction:a,renderRichText:t,renderCallToAction:r,extraChildren:n}){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.styles.eyebrow})),t==null?void 0:t({blocks:l.title})]}),n,l.description&&(t==null?void 0:t({blocks:l.description})),a&&(r==null?void 0:r(a))]})}function C({id:l,paddingClasses:a,layoutClass:t,extraSectionClass:r,mediaNode:n,overlayContent:c}){return e.jsx("section",{id:l,className:`${s.styles.hero} ${a} ${t} ${r??""}`,children:e.jsxs("article",{className:s.styles.container,children:[n,e.jsx("div",{className:s.styles.overlay,children:e.jsx("div",{className:s.styles.text,children:c})})]})})}const z={render:({href:l,className:a,children:t})=>e.jsx("a",{href:l,className:a,children:t})};function G({heading:l,image:a,video:t,callToAction:r,pageData:n,styleOptions:c,id:y,imageAdapter:m,linkAdapter:v,renderRichText:o,renderCallToAction:i}){var M;const u=W.usePrefersReducedMotion(),[B,H]=k.useState(!u),d=(()=>{try{return V.useHeroContext()}catch{return null}})(),F=v??z,b=(c==null?void 0:c.layout)??"default",j=((M=c==null?void 0:c.padding)==null?void 0:M.join(" "))??"",g=Y[b]??s.styles.default,N=(c==null?void 0:c.mode)??"light",p=w.resolveImageUrl(a,N,"medium"),f=w.resolveImageUrl(a,N,"large"),I=w.resolveAltText(a,N),U=t?w.detectVideoProvider(t):null,x=!u,L=k.useCallback(()=>{H(P=>!P)},[]);k.useEffect(()=>{if(!(b==="tile"||b==="fullBleed")||typeof window>"u")return;d==null||d.setIsFullbleedHeroAtTop(!0);const q=()=>{d==null||d.setIsFullbleedHeroAtTop(window.scrollY===0)};return window.addEventListener("scroll",q,{passive:!0}),()=>window.removeEventListener("scroll",q)},[b,d]),k.useEffect(()=>{H(!u)},[u]);const S=t&&U?e.jsx(s.VideoBlock,{url:t,autoPlay:x,posterUrl:f,isPlaying:B,onToggle:L,variant:"inline"}):a?e.jsx(s.HeroImage,{image:a,mode:N,variant:"intrinsic",imageAdapter:m}):null,_=t&&U?e.jsx(s.VideoBlock,{url:t,autoPlay:x,posterUrl:f,isPlaying:B,onToggle:L,variant:"background"}):p||f?m?m.render({src:f??p??"",alt:I,fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}):e.jsx("img",{src:f??p,alt:I,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},draggable:!1}):null,E=n?J(n,F):null;switch(b){case"split":case"split-35-65":return e.jsx("section",{id:y,className:`${s.styles.hero} ${g} ${j}`,children:e.jsxs("article",{className:s.styles.container,children:[e.jsxs("div",{className:s.styles.heading,children:[e.jsxs("div",{children:[l.eyebrow&&(o==null?void 0:o({blocks:l.eyebrow,className:s.styles.eyebrow})),o==null?void 0:o({blocks:l.title})]}),e.jsxs("div",{className:s.styles.text,children:[l.description&&(o==null?void 0:o({blocks:l.description})),r&&(i==null?void 0:i(r))]}),l.disclaimer&&(o==null?void 0:o({blocks:l.disclaimer,className:s.styles.disclaimer}))]}),S]})});case"default":return e.jsx("section",{id:y,className:`${s.styles.hero} ${j} ${g}`,children:e.jsxs("article",{className:s.styles.container,children:[S,e.jsx("div",{className:s.styles.text,children:e.jsx($,{heading:l,callToAction:r,renderRichText:o,renderCallToAction:i})})]})});case"tile":return e.jsx(C,{id:y,paddingClasses:j,layoutClass:g,extraSectionClass:"heroTile",mediaNode:_,overlayContent:e.jsx($,{heading:l,callToAction:r,renderRichText:o,renderCallToAction:i})});case"fullBleed":return e.jsxs("section",{"data-overlay":"true",id:y,className:`${s.styles.hero} ${s.styles.fullBleed} ${j}`,children:[e.jsx("div",{className:s.styles.media,children:_}),e.jsx("div",{className:s.styles.container,children:e.jsx("div",{className:s.styles.text,children:e.jsx($,{heading:l,callToAction:r,renderRichText:o,renderCallToAction:i})})})]});case"blog":return e.jsx(C,{id:y,paddingClasses:j,layoutClass:g,mediaNode:_,overlayContent:e.jsx($,{heading:l,callToAction:r,renderRichText:o,renderCallToAction:i,extraChildren:E})})}}function J(l,a){var m,v;const t=((m=l.categories)==null?void 0:m.filter(o=>{var i,u;return!((u=(i=o.slug)==null?void 0:i.current)!=null&&u.startsWith("library/type"))}))??[],r=t[0]??null,n=t[1]??null,c=((v=l.categories)==null?void 0:v.find(o=>{var i,u;return(u=(i=o.slug)==null?void 0:i.current)==null?void 0:u.startsWith("library/type")}))??null,y=n&&n.title.toLowerCase()!=="library"&&!n.slug.current.includes("keywords");return e.jsxs("div",{className:s.styles.articleDetails,children:[c&&a.render({href:`/blog/search?categories=${encodeURIComponent(c._id)}`,className:s.styles.articleType,children:c.title}),e.jsxs("div",{className:s.styles.articleCategories,children:[r&&a.render({href:`/blog/search?categories=${encodeURIComponent(r._id)}`,className:s.styles.category,children:r.title}),y&&a.render({href:`/blog/search?categories=${encodeURIComponent(n._id)}`,className:s.styles.category,children:n.title})]}),l.timeToRead>0&&e.jsxs("span",{children:[e.jsx("span",{className:s.styles.number,children:l.timeToRead}),"min read"]})]})}exports.HeroBlock=G;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as u, Fragment as q } from "react/jsx-runtime";
|
|
2
2
|
import { useState as G, useCallback as J, useEffect as V } from "react";
|
|
3
3
|
import { useHeroContext as K } from "./HeroContext.mjs";
|
|
4
|
-
import { V as _, s, H as Q } from "../../../HeroSubComponents-
|
|
4
|
+
import { V as _, s, H as Q } from "../../../HeroSubComponents-DgaUarpC.js";
|
|
5
5
|
import { resolveImageUrl as E, resolveAltText as X, detectVideoProvider as Z } from "../../utils/mediaUtils.mjs";
|
|
6
6
|
import { usePrefersReducedMotion as D } from "../../hooks/usePrefersReducedMotion.mjs";
|
|
7
7
|
const h = {
|
|
@@ -213,6 +213,7 @@ function as({
|
|
|
213
213
|
return /* @__PURE__ */ u(
|
|
214
214
|
"section",
|
|
215
215
|
{
|
|
216
|
+
"data-overlay": "true",
|
|
216
217
|
id: d,
|
|
217
218
|
className: `${s.hero} ${s.fullBleed} ${y}`,
|
|
218
219
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index13.css');const a=require("react/jsx-runtime"),D=require("../../hooks/useStyleClasses.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index13.css');const a=require("react/jsx-runtime"),D=require("../../hooks/useStyleClasses.cjs"),g=require("../../../core/components/Tabs/index.cjs"),G=require("../../../index-D0ylyll7.cjs"),M=require("../../utils/resolveLinkUrl.cjs"),P=require("../../../core/context/ThemeContext.cjs"),r=require("../../utils/mediaUtils.cjs"),A="_tabs_3x761_1",F="_container_3x761_7",Y="_heading_3x761_25",J="_text_3x761_32",K="_headingHorizontal_3x761_46",Q="_title_3x761_54",W="_headingVertical_3x761_64",X="_tabContent_3x761_74",Z="_vertical_3x761_97",O="_tabsContainer_3x761_69",T="_tabImage_3x761_112",R="_tabText_3x761_120",tt="_gridItems_3x761_141",at="_gridItem_3x761_141",st="_fullBleed_3x761_181",lt="_overlay_3x761_208",ot="_eyebrow_3x761_314",s={tabs:A,container:F,heading:Y,text:J,headingHorizontal:K,title:Q,headingVertical:W,tabContent:X,vertical:Z,tabsContainer:O,tabImage:T,tabText:R,gridItems:tt,gridItem:at,default:"_default_3x761_166",fullBleed:st,overlay:lt,eyebrow:ot},et={orientationHorizontal:"horizontal",orientationVertical:"vertical"},it={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"},nt={horizontal:s.headingHorizontal,vertical:s.headingVertical},ct={horizontal:"",vertical:s.vertical};function bt({src:l,alt:c,renderImage:_}){return _?_({src:l,alt:c,width:600,height:658,priority:!0}):a.jsx("img",{src:l,alt:c,width:600,height:658})}function _t({items:l,mode:c,renderImage:_,renderRichText:n}){return a.jsx("div",{className:s.gridItems,children:l.map((o,t)=>{const i=r.resolveImageUrl(o.itemImage,c,"medium"),b=r.resolveAltText(o.itemImage,c,"Grid image");return a.jsxs("div",{className:s.gridItem,children:[i&&_?_({src:i,alt:b,width:200,height:200}):i?a.jsx("img",{src:i,alt:b,width:200,height:200}):null,o.itemText&&(n==null?void 0:n({blocks:o.itemText}))]},t)})})}function mt({heading:l,image:c,items:_,callToAction:n,styleOptions:o,renderRichText:t,renderCallToAction:i,renderImage:b}){const{mode:u}=P.useTheme(),I=D.useStyleClasses(o),x=(o==null?void 0:o.layout)??"default",d=nt[l.headingLayout??"vertical"],w=et[(o==null?void 0:o.orientation)??"orientationHorizontal"],V=it[(o==null?void 0:o.theme)??"themeDefault"],y=r.resolveImageUrl(c,u,"medium"),v=r.resolveImageUrl(c,u,"large"),j=r.resolveAltText(c,u,"Block image"),L=a.jsxs(g.Tabs,{defaultIndex:0,orientation:w,theme:V,children:[a.jsx(g.Tabs.List,{children:_.map((e,k)=>a.jsx(g.Tabs.Trigger,{index:k,children:e.title},e.title))}),_.map((e,k)=>{var B,z,p,h,q,H,S,C,E;const N=r.resolveImageUrl((B=e.content)==null?void 0:B.tabImage,u,"medium"),$=r.resolveAltText((z=e.content)==null?void 0:z.tabImage,u,"Tab image"),f=(p=e.content)!=null&&p.tabLink?M.resolveLinkURL(e.content.tabLink):void 0,m=(h=e.content)==null?void 0:h.tabLink,U=Array.isArray((q=e.content)==null?void 0:q.tabGridItem)?e.content.tabGridItem:null;return a.jsx(g.Tabs.Panel,{index:k,children:a.jsxs("div",{className:`${s.tabContent} ${ct[w]}`,children:[N&&a.jsx("div",{className:s.tabImage,children:b?b({src:N,alt:$,width:250,height:250}):a.jsx("img",{src:N,alt:$,width:250,height:250})}),a.jsxs("div",{className:s.tabText,children:[((H=e.content)==null?void 0:H.tabText)&&(t==null?void 0:t({blocks:e.content.tabText})),U&&a.jsx(_t,{items:U,mode:u,renderImage:b,renderRichText:t}),f&&f!=="#"&&m&&a.jsx(G.Button,{as:"a",variant:m.variant??"primary",href:f,target:((S=m.linkOptions)==null?void 0:S.linkType)==="external"?"_blank":"_self",rel:((C=m.linkOptions)==null?void 0:C.linkType)==="external"?"noopener noreferrer":"","aria-label":m.ariaLabel||m.label,children:m.label}),((E=e.content)==null?void 0:E.tabDisclaimer)&&(t==null?void 0:t({blocks:e.content.tabDisclaimer}))]})]})},e.title)})]});return x==="default"?a.jsx("section",{className:`${s.tabs} ${s.default} ${I}`,children:a.jsxs("article",{className:s.container,children:[y&&a.jsx(bt,{src:y,alt:j,renderImage:b}),a.jsxs("div",{className:`${s.heading} ${d}`,children:[a.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.eyebrow})),t==null?void 0:t({blocks:l.title,className:s.title})]}),l.description&&a.jsx("div",{className:s.text,children:t==null?void 0:t({blocks:l.description})})]}),a.jsx("div",{className:s.tabsContainer,children:L}),n&&(i==null?void 0:i({items:n.items,alignment:n.alignment})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})}):x==="full-bleed"?a.jsx("section",{"data-overlay":"true",className:`${s.tabs} ${s.fullBleed} ${I} tabsFullBleed`,children:a.jsxs("article",{className:s.container,children:[v&&(b?b({src:v,alt:j,fill:!0,priority:!0,sizes:"(max-width: 767px) 600px, 1200px",style:{objectFit:"cover"},draggable:!1}):a.jsx("img",{src:v,alt:j,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}})),a.jsx("div",{className:s.overlay,children:a.jsxs("div",{className:`${s.heading} ${d}`,children:[a.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.eyebrow})),t==null?void 0:t({blocks:l.title,className:s.title})]}),l.description&&(t==null?void 0:t({blocks:l.description})),a.jsx("div",{className:s.tabsContainer,children:L}),n&&(i==null?void 0:i({items:n.items,alignment:n.alignment})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})})]})}):null}exports.TabsBlock=mt;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useStyleClasses as P } from "../../hooks/useStyleClasses.mjs";
|
|
3
|
-
import { Tabs as
|
|
3
|
+
import { Tabs as g } from "../../../core/components/Tabs/index.mjs";
|
|
4
4
|
import { B as A } from "../../../index-CnlJ2RgH.js";
|
|
5
5
|
import { resolveLinkURL as Y } from "../../utils/resolveLinkUrl.mjs";
|
|
6
6
|
import { useTheme as q } from "../../../core/context/ThemeContext.mjs";
|
|
7
|
-
import { resolveImageUrl as v, resolveAltText as
|
|
8
|
-
import '../../../index13.css';const J = "
|
|
7
|
+
import { resolveImageUrl as v, resolveAltText as d } from "../../utils/mediaUtils.mjs";
|
|
8
|
+
import '../../../index13.css';const J = "_tabs_3x761_1", K = "_container_3x761_7", Q = "_heading_3x761_25", W = "_text_3x761_32", X = "_headingHorizontal_3x761_46", Z = "_title_3x761_54", O = "_headingVertical_3x761_64", x = "_tabContent_3x761_74", T = "_vertical_3x761_97", R = "_tabsContainer_3x761_69", tt = "_tabImage_3x761_112", at = "_tabText_3x761_120", lt = "_gridItems_3x761_141", st = "_gridItem_3x761_141", ot = "_fullBleed_3x761_181", it = "_overlay_3x761_208", nt = "_eyebrow_3x761_314", a = {
|
|
9
9
|
tabs: J,
|
|
10
10
|
container: K,
|
|
11
11
|
heading: Q,
|
|
@@ -20,7 +20,7 @@ import '../../../index13.css';const J = "_tabs_1rrg8_1", K = "_container_1rrg8_7
|
|
|
20
20
|
tabText: at,
|
|
21
21
|
gridItems: lt,
|
|
22
22
|
gridItem: st,
|
|
23
|
-
default: "
|
|
23
|
+
default: "_default_3x761_166",
|
|
24
24
|
fullBleed: ot,
|
|
25
25
|
overlay: it,
|
|
26
26
|
eyebrow: nt
|
|
@@ -32,34 +32,34 @@ import '../../../index13.css';const J = "_tabs_1rrg8_1", K = "_container_1rrg8_7
|
|
|
32
32
|
themeLight: "light",
|
|
33
33
|
themeDark: "dark",
|
|
34
34
|
themeTransparent: "transparent"
|
|
35
|
-
},
|
|
35
|
+
}, et = {
|
|
36
36
|
horizontal: a.headingHorizontal,
|
|
37
37
|
vertical: a.headingVertical
|
|
38
38
|
}, bt = {
|
|
39
39
|
horizontal: "",
|
|
40
40
|
vertical: a.vertical
|
|
41
41
|
};
|
|
42
|
-
function
|
|
43
|
-
return
|
|
42
|
+
function _t({ src: l, alt: e, renderImage: _ }) {
|
|
43
|
+
return _ ? _({ src: l, alt: e, width: 600, height: 658, priority: !0 }) : /* @__PURE__ */ s("img", { src: l, alt: e, width: 600, height: 658 });
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ut({
|
|
46
46
|
items: l,
|
|
47
|
-
mode:
|
|
48
|
-
renderImage:
|
|
47
|
+
mode: e,
|
|
48
|
+
renderImage: _,
|
|
49
49
|
renderRichText: m
|
|
50
50
|
}) {
|
|
51
51
|
return /* @__PURE__ */ s("div", { className: a.gridItems, children: l.map((o, t) => {
|
|
52
52
|
const n = v(
|
|
53
53
|
o.itemImage,
|
|
54
|
-
|
|
54
|
+
e,
|
|
55
55
|
"medium"
|
|
56
|
-
), b =
|
|
56
|
+
), b = d(
|
|
57
57
|
o.itemImage,
|
|
58
|
-
|
|
58
|
+
e,
|
|
59
59
|
"Grid image"
|
|
60
60
|
);
|
|
61
61
|
return /* @__PURE__ */ c("div", { className: a.gridItem, children: [
|
|
62
|
-
n &&
|
|
62
|
+
n && _ ? _({
|
|
63
63
|
src: n,
|
|
64
64
|
alt: b,
|
|
65
65
|
width: 200,
|
|
@@ -79,28 +79,28 @@ function _t({
|
|
|
79
79
|
}
|
|
80
80
|
function wt({
|
|
81
81
|
heading: l,
|
|
82
|
-
image:
|
|
83
|
-
items:
|
|
82
|
+
image: e,
|
|
83
|
+
items: _,
|
|
84
84
|
callToAction: m,
|
|
85
85
|
styleOptions: o,
|
|
86
86
|
renderRichText: t,
|
|
87
87
|
renderCallToAction: n,
|
|
88
88
|
renderImage: b
|
|
89
89
|
}) {
|
|
90
|
-
const { mode:
|
|
91
|
-
/* @__PURE__ */ s(
|
|
92
|
-
|
|
90
|
+
const { mode: r } = q(), L = P(o), p = (o == null ? void 0 : o.layout) ?? "default", y = et[l.headingLayout ?? "vertical"], $ = mt[(o == null ? void 0 : o.orientation) ?? "orientationHorizontal"], M = ct[(o == null ? void 0 : o.theme) ?? "themeDefault"], B = v(e, r, "medium"), f = v(e, r, "large"), k = d(e, r, "Block image"), z = /* @__PURE__ */ c(g, { defaultIndex: 0, orientation: $, theme: M, children: [
|
|
91
|
+
/* @__PURE__ */ s(g.List, { children: _.map((i, N) => /* @__PURE__ */ s(g.Trigger, { index: N, children: i.title }, i.title)) }),
|
|
92
|
+
_.map((i, N) => {
|
|
93
93
|
var E, V, h, D, G, C, S, j, F;
|
|
94
94
|
const I = v(
|
|
95
95
|
(E = i.content) == null ? void 0 : E.tabImage,
|
|
96
|
-
|
|
96
|
+
r,
|
|
97
97
|
"medium"
|
|
98
|
-
), H =
|
|
98
|
+
), H = d(
|
|
99
99
|
(V = i.content) == null ? void 0 : V.tabImage,
|
|
100
|
-
|
|
100
|
+
r,
|
|
101
101
|
"Tab image"
|
|
102
|
-
), w = (h = i.content) != null && h.tabLink ? Y(i.content.tabLink) : void 0,
|
|
103
|
-
return /* @__PURE__ */ s(
|
|
102
|
+
), w = (h = i.content) != null && h.tabLink ? Y(i.content.tabLink) : void 0, u = (D = i.content) == null ? void 0 : D.tabLink, U = Array.isArray((G = i.content) == null ? void 0 : G.tabGridItem) ? i.content.tabGridItem : null;
|
|
103
|
+
return /* @__PURE__ */ s(g.Panel, { index: N, children: /* @__PURE__ */ c(
|
|
104
104
|
"div",
|
|
105
105
|
{
|
|
106
106
|
className: `${a.tabContent} ${bt[$]}`,
|
|
@@ -122,24 +122,24 @@ function wt({
|
|
|
122
122
|
/* @__PURE__ */ c("div", { className: a.tabText, children: [
|
|
123
123
|
((C = i.content) == null ? void 0 : C.tabText) && (t == null ? void 0 : t({ blocks: i.content.tabText })),
|
|
124
124
|
U && /* @__PURE__ */ s(
|
|
125
|
-
|
|
125
|
+
ut,
|
|
126
126
|
{
|
|
127
127
|
items: U,
|
|
128
|
-
mode:
|
|
128
|
+
mode: r,
|
|
129
129
|
renderImage: b,
|
|
130
130
|
renderRichText: t
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
|
-
w && w !== "#" &&
|
|
133
|
+
w && w !== "#" && u && /* @__PURE__ */ s(
|
|
134
134
|
A,
|
|
135
135
|
{
|
|
136
136
|
as: "a",
|
|
137
|
-
variant:
|
|
137
|
+
variant: u.variant ?? "primary",
|
|
138
138
|
href: w,
|
|
139
|
-
target: ((S =
|
|
140
|
-
rel: ((j =
|
|
141
|
-
"aria-label":
|
|
142
|
-
children:
|
|
139
|
+
target: ((S = u.linkOptions) == null ? void 0 : S.linkType) === "external" ? "_blank" : "_self",
|
|
140
|
+
rel: ((j = u.linkOptions) == null ? void 0 : j.linkType) === "external" ? "noopener noreferrer" : "",
|
|
141
|
+
"aria-label": u.ariaLabel || u.label,
|
|
142
|
+
children: u.label
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
145
|
((F = i.content) == null ? void 0 : F.tabDisclaimer) && (t == null ? void 0 : t({ blocks: i.content.tabDisclaimer }))
|
|
@@ -149,9 +149,9 @@ function wt({
|
|
|
149
149
|
) }, i.title);
|
|
150
150
|
})
|
|
151
151
|
] });
|
|
152
|
-
return p === "default" ? /* @__PURE__ */ s("section", { className: `${a.tabs} ${a.default} ${
|
|
152
|
+
return p === "default" ? /* @__PURE__ */ s("section", { className: `${a.tabs} ${a.default} ${L}`, children: /* @__PURE__ */ c("article", { className: a.container, children: [
|
|
153
153
|
B && /* @__PURE__ */ s(
|
|
154
|
-
|
|
154
|
+
_t,
|
|
155
155
|
{
|
|
156
156
|
src: B,
|
|
157
157
|
alt: k,
|
|
@@ -180,7 +180,8 @@ function wt({
|
|
|
180
180
|
] }) }) : p === "full-bleed" ? /* @__PURE__ */ s(
|
|
181
181
|
"section",
|
|
182
182
|
{
|
|
183
|
-
|
|
183
|
+
"data-overlay": "true",
|
|
184
|
+
className: `${a.tabs} ${a.fullBleed} ${L} tabsFullBleed`,
|
|
184
185
|
children: /* @__PURE__ */ c("article", { className: a.container, children: [
|
|
185
186
|
f && (b ? b({
|
|
186
187
|
src: f,
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";require('./HeroSubComponents.css');const o=require("react/jsx-runtime"),l=require("react"),b=require("./next/utils/mediaUtils.cjs"),p=require("./createLucideIcon-DpotSgUx.cjs"),y=require("./play-CQBnZgNa.cjs");/**
|
|
2
|
-
* @license lucide-react v0.488.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const x=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],g=p.createLucideIcon("pause",x),j="_hero_1dobm_1",w="_container_1dobm_7",C="_heading_1dobm_15",N="_text_1dobm_22",k="_eyebrow_1dobm_37",B="_disclaimer_1dobm_41",V="_articleDetails_1dobm_53",I="_articleType_1dobm_66",E="_articleCategories_1dobm_80",q="_category_1dobm_86",z="_number_1dobm_102",T="_blog_1dobm_129",H="_overlay_1dobm_155",R="_tile_1dobm_225",D="_fullBleed_1dobm_326",F="_media_1dobm_353",P="_splitAlt_1dobm_442",A="_split_1dobm_442",L="_videoControl_1dobm_516",S="_videoBackground_1dobm_559",U="_iframe_1dobm_560",d={hero:j,container:w,heading:C,text:N,eyebrow:k,disclaimer:B,articleDetails:V,articleType:I,articleCategories:E,category:q,number:z,default:"_default_1dobm_125",blog:T,overlay:H,tile:R,fullBleed:D,media:F,splitAlt:P,split:A,videoControl:L,videoBackground:S,iframe:U},v=l.memo(function({isPlaying:e,onToggle:i}){return o.jsx("button",{type:"button",title:e?"Pause the video":"Play the video","aria-label":e?"Pause video":"Play video",className:d.videoControl,onClick:i,children:e?o.jsx(g,{size:18,"aria-hidden":!0}):o.jsx(y.Play,{size:18,"aria-hidden":!0})})}),h=l.memo(function({url:e,provider:i,wrapperClassName:a,iframeClassName:s}){const r=b.buildEmbedSrc(e,i);return o.jsx("div",{className:a,children:o.jsx("iframe",{src:r,className:s,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),f=l.memo(l.forwardRef(function({src:e,autoPlay:i,posterUrl:a,wrapperClassName:s,videoClassName:r,isPlaying:c,onToggle:m},_){const n=l.useRef(null);return l.useImperativeHandle(_,()=>({play(){var t;(t=n.current)==null||t.play().catch(()=>{})},pause(){var t;(t=n.current)==null||t.pause()}})),l.useEffect(()=>{const t=n.current;t&&(c?t.play().catch(()=>{}):t.pause())},[c]),o.jsxs("div",{className:s,style:{position:"relative"},children:[o.jsx(v,{isPlaying:c,onToggle:m}),o.jsx("video",{ref:n,src:e,autoPlay:i,loop:!0,muted:!0,playsInline:!0,poster:a,preload:"metadata",className:r,"aria-label":"Background video"})]})})),$=l.memo(function({url:e,autoPlay:i,posterUrl:a,isPlaying:s,onToggle:r,variant:c}){const m=e.includes("vimeo.com"),_=e.includes("youtube.com")||e.includes("youtu.be"),n=m||_,t=m?"vimeo":"youtube";return c==="inline"?n?o.jsx(h,{url:e,provider:t,wrapperClassName:d.media}):o.jsx(f,{src:e,autoPlay:i,posterUrl:a,wrapperClassName:d.media,isPlaying:s,onToggle:r}):n?o.jsx(h,{url:e,provider:t,wrapperClassName:d.videoBackground,iframeClassName:d.iframe}):o.jsx(f,{src:e,autoPlay:i,posterUrl:a,videoClassName:d.videoBackground,isPlaying:s,onToggle:r})}),Y=l.memo(function({image:e,mode:i,variant:a,imageAdapter:s}){const r=b.resolveImageUrl(e,i,"medium");if(!r)return null;const c=b.resolveAltText(e,i),m=o.jsx("img",{fetchPriority:"high",src:r,alt:c,draggable:!1,style:a==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return s?o.jsx("div",{className:d.media,children:a==="fill"?s.render({src:r,alt:c,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):s.render({src:r,alt:c,width:650,height:750,priority:!0,fetchPriority:"high"})}):o.jsx("div",{className:d.media,children:m})});exports.HeroImage=Y;exports.NativeVideo=f;exports.VideoBlock=$;exports.VideoControl=v;exports.VideoEmbed=h;exports.styles=d;
|