quirk-ui 0.1.84 → 0.1.85
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-CCXWB6Xp.js +203 -0
- package/dist/HeroSubComponents-Ds9hKLW7.cjs +6 -0
- package/dist/HeroSubComponents.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 +1 -1
- package/package.json +1 -1
- package/dist/HeroSubComponents-7q2bz35p.cjs +0 -6
- package/dist/HeroSubComponents-CUq0u0zn.js +0 -203
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { memo as y, forwardRef as h, useRef as p, useImperativeHandle as v, useEffect as g } from "react";
|
|
3
|
+
import { buildEmbedSrc as x, resolveImageUrl as w, resolveAltText as N } from "./next/utils/mediaUtils.mjs";
|
|
4
|
+
import { c as C } from "./createLucideIcon-C8GTh_Qx.js";
|
|
5
|
+
import { P as k } from "./play-DYgKiSaf.js";
|
|
6
|
+
import './HeroSubComponents.css';/**
|
|
7
|
+
* @license lucide-react v0.488.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const B = [
|
|
13
|
+
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
14
|
+
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
15
|
+
], V = C("pause", B), I = "_hero_r4yby_1", E = "_container_r4yby_7", z = "_heading_r4yby_15", T = "_text_r4yby_22", j = "_eyebrow_r4yby_37", H = "_disclaimer_r4yby_41", P = "_articleDetails_r4yby_53", D = "_articleType_r4yby_66", F = "_articleCategories_r4yby_80", R = "_category_r4yby_86", A = "_number_r4yby_102", S = "_blog_r4yby_129", L = "_overlay_r4yby_155", U = "_tile_r4yby_225", Y = "_fullBleed_r4yby_326", q = "_media_r4yby_353", G = "_splitAlt_r4yby_435", J = "_split_r4yby_435", K = "_videoControl_r4yby_509", M = "_videoBackground_r4yby_557", O = "_iframe_r4yby_558", l = {
|
|
16
|
+
hero: I,
|
|
17
|
+
container: E,
|
|
18
|
+
heading: z,
|
|
19
|
+
text: T,
|
|
20
|
+
eyebrow: j,
|
|
21
|
+
disclaimer: H,
|
|
22
|
+
articleDetails: P,
|
|
23
|
+
articleType: D,
|
|
24
|
+
articleCategories: F,
|
|
25
|
+
category: R,
|
|
26
|
+
number: A,
|
|
27
|
+
default: "_default_r4yby_125",
|
|
28
|
+
blog: S,
|
|
29
|
+
overlay: L,
|
|
30
|
+
tile: U,
|
|
31
|
+
fullBleed: Y,
|
|
32
|
+
media: q,
|
|
33
|
+
splitAlt: G,
|
|
34
|
+
split: J,
|
|
35
|
+
videoControl: K,
|
|
36
|
+
videoBackground: M,
|
|
37
|
+
iframe: O
|
|
38
|
+
}, Q = y(function({
|
|
39
|
+
isPlaying: e,
|
|
40
|
+
onToggle: o
|
|
41
|
+
}) {
|
|
42
|
+
return /* @__PURE__ */ t(
|
|
43
|
+
"button",
|
|
44
|
+
{
|
|
45
|
+
type: "button",
|
|
46
|
+
title: e ? "Pause the video" : "Play the video",
|
|
47
|
+
"aria-label": e ? "Pause video" : "Play video",
|
|
48
|
+
className: l.videoControl,
|
|
49
|
+
onClick: o,
|
|
50
|
+
children: e ? /* @__PURE__ */ t(V, { size: 18, "aria-hidden": !0 }) : /* @__PURE__ */ t(k, { size: 18, "aria-hidden": !0 })
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}), m = y(function({
|
|
54
|
+
url: e,
|
|
55
|
+
provider: o,
|
|
56
|
+
wrapperClassName: s,
|
|
57
|
+
iframeClassName: a
|
|
58
|
+
}) {
|
|
59
|
+
const i = x(e, o);
|
|
60
|
+
return /* @__PURE__ */ t("div", { className: s, children: /* @__PURE__ */ t(
|
|
61
|
+
"iframe",
|
|
62
|
+
{
|
|
63
|
+
src: i,
|
|
64
|
+
className: a,
|
|
65
|
+
allow: "autoplay; fullscreen",
|
|
66
|
+
allowFullScreen: !0,
|
|
67
|
+
title: "Embedded video",
|
|
68
|
+
"aria-label": "Background video"
|
|
69
|
+
}
|
|
70
|
+
) });
|
|
71
|
+
}), b = y(
|
|
72
|
+
h(function({
|
|
73
|
+
src: e,
|
|
74
|
+
autoPlay: o,
|
|
75
|
+
posterUrl: s,
|
|
76
|
+
wrapperClassName: a,
|
|
77
|
+
videoClassName: i,
|
|
78
|
+
isPlaying: c,
|
|
79
|
+
onToggle: d
|
|
80
|
+
}, _) {
|
|
81
|
+
const n = p(null);
|
|
82
|
+
return v(_, () => ({
|
|
83
|
+
play() {
|
|
84
|
+
var r;
|
|
85
|
+
(r = n.current) == null || r.play().catch(() => {
|
|
86
|
+
});
|
|
87
|
+
},
|
|
88
|
+
pause() {
|
|
89
|
+
var r;
|
|
90
|
+
(r = n.current) == null || r.pause();
|
|
91
|
+
}
|
|
92
|
+
})), g(() => {
|
|
93
|
+
const r = n.current;
|
|
94
|
+
r && (c ? r.play().catch(() => {
|
|
95
|
+
}) : r.pause());
|
|
96
|
+
}, [c]), /* @__PURE__ */ f("div", { className: a, children: [
|
|
97
|
+
/* @__PURE__ */ t(Q, { isPlaying: c, onToggle: d }),
|
|
98
|
+
/* @__PURE__ */ t(
|
|
99
|
+
"video",
|
|
100
|
+
{
|
|
101
|
+
ref: n,
|
|
102
|
+
src: e,
|
|
103
|
+
autoPlay: o,
|
|
104
|
+
loop: !0,
|
|
105
|
+
muted: !0,
|
|
106
|
+
playsInline: !0,
|
|
107
|
+
poster: s,
|
|
108
|
+
preload: "metadata",
|
|
109
|
+
className: i,
|
|
110
|
+
"aria-label": "Background video"
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] });
|
|
114
|
+
})
|
|
115
|
+
), te = y(function({
|
|
116
|
+
url: e,
|
|
117
|
+
autoPlay: o,
|
|
118
|
+
posterUrl: s,
|
|
119
|
+
isPlaying: a,
|
|
120
|
+
onToggle: i,
|
|
121
|
+
variant: c
|
|
122
|
+
}) {
|
|
123
|
+
const d = e.includes("vimeo.com"), _ = e.includes("youtube.com") || e.includes("youtu.be"), n = d || _, r = d ? "vimeo" : "youtube";
|
|
124
|
+
return c === "inline" ? n ? /* @__PURE__ */ t(
|
|
125
|
+
m,
|
|
126
|
+
{
|
|
127
|
+
url: e,
|
|
128
|
+
provider: r,
|
|
129
|
+
wrapperClassName: l.media
|
|
130
|
+
}
|
|
131
|
+
) : /* @__PURE__ */ t(
|
|
132
|
+
b,
|
|
133
|
+
{
|
|
134
|
+
src: e,
|
|
135
|
+
autoPlay: o,
|
|
136
|
+
posterUrl: s,
|
|
137
|
+
wrapperClassName: l.media,
|
|
138
|
+
isPlaying: a,
|
|
139
|
+
onToggle: i
|
|
140
|
+
}
|
|
141
|
+
) : n ? /* @__PURE__ */ t(
|
|
142
|
+
m,
|
|
143
|
+
{
|
|
144
|
+
url: e,
|
|
145
|
+
provider: r,
|
|
146
|
+
wrapperClassName: l.videoBackground,
|
|
147
|
+
iframeClassName: l.iframe
|
|
148
|
+
}
|
|
149
|
+
) : /* @__PURE__ */ t(
|
|
150
|
+
b,
|
|
151
|
+
{
|
|
152
|
+
src: e,
|
|
153
|
+
autoPlay: o,
|
|
154
|
+
posterUrl: s,
|
|
155
|
+
videoClassName: l.videoBackground,
|
|
156
|
+
isPlaying: a,
|
|
157
|
+
onToggle: i
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}), re = y(function({
|
|
161
|
+
image: e,
|
|
162
|
+
mode: o,
|
|
163
|
+
variant: s,
|
|
164
|
+
imageAdapter: a
|
|
165
|
+
}) {
|
|
166
|
+
const i = w(e, o, "medium");
|
|
167
|
+
if (!i) return null;
|
|
168
|
+
const c = N(e, o), d = /* @__PURE__ */ t(
|
|
169
|
+
"img",
|
|
170
|
+
{
|
|
171
|
+
fetchPriority: "high",
|
|
172
|
+
src: i,
|
|
173
|
+
alt: c,
|
|
174
|
+
draggable: !1,
|
|
175
|
+
style: s === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
return a ? /* @__PURE__ */ t("div", { className: l.media, children: s === "fill" ? a.render({
|
|
179
|
+
src: i,
|
|
180
|
+
alt: c,
|
|
181
|
+
fill: !0,
|
|
182
|
+
priority: !0,
|
|
183
|
+
fetchPriority: "high",
|
|
184
|
+
style: { objectFit: "cover" },
|
|
185
|
+
draggable: !1,
|
|
186
|
+
sizes: "(max-width: 767px) 600px, 1200px"
|
|
187
|
+
}) : a.render({
|
|
188
|
+
src: i,
|
|
189
|
+
alt: c,
|
|
190
|
+
width: 650,
|
|
191
|
+
height: 750,
|
|
192
|
+
priority: !0,
|
|
193
|
+
fetchPriority: "high"
|
|
194
|
+
}) }) : /* @__PURE__ */ t("div", { className: l.media, children: d });
|
|
195
|
+
});
|
|
196
|
+
export {
|
|
197
|
+
re as H,
|
|
198
|
+
b as N,
|
|
199
|
+
te as V,
|
|
200
|
+
Q as a,
|
|
201
|
+
m as b,
|
|
202
|
+
l as s
|
|
203
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./HeroSubComponents.css');const t=require("react/jsx-runtime"),l=require("react"),m=require("./next/utils/mediaUtils.cjs"),v=require("./createLucideIcon-DpotSgUx.cjs"),p=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=v.createLucideIcon("pause",x),j="_hero_r4yby_1",w="_container_r4yby_7",C="_heading_r4yby_15",N="_text_r4yby_22",k="_eyebrow_r4yby_37",B="_disclaimer_r4yby_41",V="_articleDetails_r4yby_53",I="_articleType_r4yby_66",E="_articleCategories_r4yby_80",q="_category_r4yby_86",z="_number_r4yby_102",T="_blog_r4yby_129",H="_overlay_r4yby_155",R="_tile_r4yby_225",D="_fullBleed_r4yby_326",F="_media_r4yby_353",P="_splitAlt_r4yby_435",A="_split_r4yby_435",L="_videoControl_r4yby_509",S="_videoBackground_r4yby_557",U="_iframe_r4yby_558",n={hero:j,container:w,heading:C,text:N,eyebrow:k,disclaimer:B,articleDetails:V,articleType:I,articleCategories:E,category:q,number:z,default:"_default_r4yby_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:o}){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:o,children:e?t.jsx(g,{size:18,"aria-hidden":!0}):t.jsx(p.Play,{size:18,"aria-hidden":!0})})}),b=l.memo(function({url:e,provider:o,wrapperClassName:c,iframeClassName:s}){const i=m.buildEmbedSrc(e,o);return t.jsx("div",{className:c,children:t.jsx("iframe",{src:i,className:s,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),h=l.memo(l.forwardRef(function({src:e,autoPlay:o,posterUrl:c,wrapperClassName:s,videoClassName:i,isPlaying:a,onToggle:u},_){const d=l.useRef(null);return l.useImperativeHandle(_,()=>({play(){var r;(r=d.current)==null||r.play().catch(()=>{})},pause(){var r;(r=d.current)==null||r.pause()}})),l.useEffect(()=>{const r=d.current;r&&(a?r.play().catch(()=>{}):r.pause())},[a]),t.jsxs("div",{className:s,children:[t.jsx(f,{isPlaying:a,onToggle:u}),t.jsx("video",{ref:d,src:e,autoPlay:o,loop:!0,muted:!0,playsInline:!0,poster:c,preload:"metadata",className:i,"aria-label":"Background video"})]})})),$=l.memo(function({url:e,autoPlay:o,posterUrl:c,isPlaying:s,onToggle:i,variant:a}){const u=e.includes("vimeo.com"),_=e.includes("youtube.com")||e.includes("youtu.be"),d=u||_,r=u?"vimeo":"youtube";return a==="inline"?d?t.jsx(b,{url:e,provider:r,wrapperClassName:n.media}):t.jsx(h,{src:e,autoPlay:o,posterUrl:c,wrapperClassName:n.media,isPlaying:s,onToggle:i}):d?t.jsx(b,{url:e,provider:r,wrapperClassName:n.videoBackground,iframeClassName:n.iframe}):t.jsx(h,{src:e,autoPlay:o,posterUrl:c,videoClassName:n.videoBackground,isPlaying:s,onToggle:i})}),Y=l.memo(function({image:e,mode:o,variant:c,imageAdapter:s}){const i=m.resolveImageUrl(e,o,"medium");if(!i)return null;const a=m.resolveAltText(e,o),u=t.jsx("img",{fetchPriority:"high",src:i,alt:a,draggable:!1,style:c==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return s?t.jsx("div",{className:n.media,children:c==="fill"?s.render({src:i,alt:a,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):s.render({src:i,alt:a,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=b;exports.styles=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._hero_r4yby_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_r4yby_7{width:100%;max-width:var(--layout-width, 1300px);margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._heading_r4yby_15{display:flex;flex-direction:column;width:100%;flex:1;gap:var(--spacing-md)}._heading_r4yby_15:not(:has(._text_r4yby_22 .portableTextContainer)){gap:var(--spacing-lg)}._heading_r4yby_15 h1,._heading_r4yby_15 h2,._heading_r4yby_15 h3,._heading_r4yby_15 h4,._heading_r4yby_15 h5,._heading_r4yby_15 h6{width:100%;margin-block:0}._eyebrow_r4yby_37{font-weight:var(--font-weight-bold)}._disclaimer_r4yby_41{color:var(--color-text-primary);font-size:var(--font-size-sm)}._text_r4yby_22{flex:1;display:flex;flex-direction:column;gap:var(--spacing-lg)}._articleDetails_r4yby_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_r4yby_53{flex-wrap:wrap;gap:var(--spacing-md)}}._articleType_r4yby_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_r4yby_80{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}._category_r4yby_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_r4yby_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_r4yby_115{margin:0 var(--spacing-sm)}@media (max-width: 767px){._pipe_r4yby_115._hide_r4yby_118{display:none}}._default_r4yby_125{position:relative}._blog_r4yby_129{position:relative;padding:0 var(--spacing-md)}._blog_r4yby_129 ._container_r4yby_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_r4yby_129 ._container_r4yby_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._blog_r4yby_129 ._overlay_r4yby_155{width:100%;padding:4rem var(--spacing-md) var(--spacing-xl)}}._blog_r4yby_129 ._text_r4yby_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_r4yby_129 ._text_r4yby_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._blog_r4yby_129 ._text_r4yby_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_r4yby_129 ._text_r4yby_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_r4yby_225{position:relative;padding:var(--spacing-md)}._tile_r4yby_225 ._container_r4yby_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:550px;height:100%;overflow:hidden;flex-grow:1;padding:var(--nav-height) 0 0;border-radius:var(--radius-md)}._tile_r4yby_225 ._container_r4yby_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._tile_r4yby_225 ._overlay_r4yby_155{width:100%;padding:var(--spacing-md)}}._tile_r4yby_225 ._text_r4yby_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_r4yby_225 ._text_r4yby_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._tile_r4yby_225 ._text_r4yby_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_r4yby_225 ._text_r4yby_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_r4yby_326{position:relative;padding-top:0;padding-bottom:0}._fullBleed_r4yby_326 ._container_r4yby_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:550px;height:100%;overflow:hidden;flex-grow:1;border-radius:0}._fullBleed_r4yby_326 ._container_r4yby_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._fullBleed_r4yby_326 ._media_r4yby_353{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1;border-radius:0}._fullBleed_r4yby_326 ._media_r4yby_353 img,._fullBleed_r4yby_326 ._media_r4yby_353 video,._fullBleed_r4yby_326 ._media_r4yby_353 iframe{width:100%;height:100%;object-fit:cover;display:block}._fullBleed_r4yby_326 ._overlay_r4yby_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_r4yby_326 ._overlay_r4yby_155{min-height:60vh;padding-bottom:var(--spacing-lg)}}._fullBleed_r4yby_326 ._text_r4yby_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-bottom:var(--spacing-md);border-radius:var(--radius-md)}._fullBleed_r4yby_326 ._text_r4yby_22:before,._fullBleed_r4yby_326 ._text_r4yby_22:after{display:none}._default_r4yby_125 ._media_r4yby_353{position:relative;width:100%;height:480px;margin-bottom:var(--spacing-md);border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._default_r4yby_125 ._media_r4yby_353{height:280px}}._default_r4yby_125 ._media_r4yby_353 img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}._splitAlt_r4yby_435 ._media_r4yby_353,._split_r4yby_435 ._media_r4yby_353{height:100%;padding-bottom:0;margin-bottom:0}._splitAlt_r4yby_435 ._media_r4yby_353 video,._splitAlt_r4yby_435 ._media_r4yby_353 iframe,._split_r4yby_435 ._media_r4yby_353 video,._split_r4yby_435 ._media_r4yby_353 iframe{position:relative;border-radius:var(--radius-md)}._splitAlt_r4yby_435 ._media_r4yby_353 img,._split_r4yby_435 ._media_r4yby_353 img{border-radius:var(--radius-md);width:100%;height:auto;max-height:500px;object-fit:contain}._splitAlt_r4yby_435 ._container_r4yby_7{display:flex;align-items:center;gap:3rem}@media (max-width: 767px){._splitAlt_r4yby_435 ._container_r4yby_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._splitAlt_r4yby_435 ._container_r4yby_7 ._media_r4yby_353{width:100%;max-width:500px}}._splitAlt_r4yby_435 ._container_r4yby_7 ._media_r4yby_353{flex:.65}._splitAlt_r4yby_435 ._container_r4yby_7 ._heading_r4yby_15{flex:.35}._split_r4yby_435 ._container_r4yby_7{display:flex;align-items:center;gap:3rem}._split_r4yby_435 ._container_r4yby_7 ._media_r4yby_353{flex:1}._split_r4yby_435 ._container_r4yby_7 ._media_r4yby_353 img{width:100%;height:auto;max-height:500px;object-fit:contain}@media (max-width: 767px){._split_r4yby_435 ._container_r4yby_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._split_r4yby_435 ._container_r4yby_7 ._media_r4yby_353{width:100%;max-width:500px}}._videoControl_r4yby_509{position:absolute;bottom:calc(var(--spacing-lg) - .25rem);right:calc(var(--spacing-lg) - .25rem);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}@media (min-width: 768px){._videoControl_r4yby_509{top:unset;bottom:1rem}}._videoControl_r4yby_509:hover{color:var(--color-primary-25)}._media_r4yby_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_r4yby_353 iframe,._media_r4yby_353 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._videoBackground_r4yby_557,._iframe_r4yby_558{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}._iframe_r4yby_558{border:none}.splitAlt ._text_r4yby_22{flex:.65}
|
|
@@ -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-Ds9hKLW7.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-CCXWB6Xp.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-Ds9hKLW7.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-CCXWB6Xp.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 = {
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";require('./HeroSubComponents.css');const t=require("react/jsx-runtime"),a=require("react"),b=require("./next/utils/mediaUtils.cjs"),v=require("./createLucideIcon-DpotSgUx.cjs"),p=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 y=[["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",y),j="_hero_gn8b3_1",w="_container_gn8b3_7",C="_heading_gn8b3_15",N="_text_gn8b3_22",k="_eyebrow_gn8b3_37",B="_disclaimer_gn8b3_41",V="_articleDetails_gn8b3_53",I="_articleType_gn8b3_66",E="_articleCategories_gn8b3_80",q="_category_gn8b3_86",z="_number_gn8b3_102",T="_blog_gn8b3_129",H="_overlay_gn8b3_155",R="_tile_gn8b3_225",D="_fullBleed_gn8b3_326",F="_media_gn8b3_353",P="_splitAlt_gn8b3_435",A="_split_gn8b3_435",L="_videoControl_gn8b3_509",S="_videoBackground_gn8b3_558",U="_iframe_gn8b3_559",l={hero:j,container:w,heading:C,text:N,eyebrow:k,disclaimer:B,articleDetails:V,articleType:I,articleCategories:E,category:q,number:z,default:"_default_gn8b3_125",blog:T,overlay:H,tile:R,fullBleed:D,media:F,splitAlt:P,split:A,videoControl:L,videoBackground:S,iframe:U},f=a.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:l.videoControl,onClick:i,children:e?t.jsx(x,{size:18,"aria-hidden":!0}):t.jsx(p.Play,{size:18,"aria-hidden":!0})})}),g=a.memo(function({url:e,provider:i,wrapperClassName:n,iframeClassName:s}){const r=b.buildEmbedSrc(e,i);return t.jsx("div",{className:n,children:t.jsx("iframe",{src:r,className:s,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),h=a.memo(a.forwardRef(function({src:e,autoPlay:i,posterUrl:n,wrapperClassName:s,videoClassName:r,isPlaying:c,onToggle:u},m){const d=a.useRef(null);return a.useImperativeHandle(m,()=>({play(){var o;(o=d.current)==null||o.play().catch(()=>{})},pause(){var o;(o=d.current)==null||o.pause()}})),a.useEffect(()=>{const o=d.current;o&&(c?o.play().catch(()=>{}):o.pause())},[c]),t.jsxs("div",{className:s,children:[t.jsx(f,{isPlaying:c,onToggle:u}),t.jsx("video",{ref:d,src:e,autoPlay:i,loop:!0,muted:!0,playsInline:!0,poster:n,preload:"metadata",className:r,"aria-label":"Background video"})]})})),$=a.memo(function({url:e,autoPlay:i,posterUrl:n,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:l.media}):t.jsx(h,{src:e,autoPlay:i,posterUrl:n,wrapperClassName:l.media,isPlaying:s,onToggle:r}):d?t.jsx(g,{url:e,provider:o,wrapperClassName:l.videoBackground,iframeClassName:l.iframe}):t.jsx(h,{src:e,autoPlay:i,posterUrl:n,videoClassName:l.videoBackground,isPlaying:s,onToggle:r})}),Y=a.memo(function({image:e,mode:i,variant:n,imageAdapter:s}){const r=b.resolveImageUrl(e,i,"medium");if(!r)return null;const c=b.resolveAltText(e,i),u=t.jsx("img",{fetchPriority:"high",src:r,alt:c,draggable:!1,style:n==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return s?t.jsx("div",{className:l.media,children:n==="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:l.media,children:u})});exports.HeroImage=Y;exports.NativeVideo=h;exports.VideoBlock=$;exports.VideoControl=f;exports.VideoEmbed=g;exports.styles=l;
|
|
@@ -1,203 +0,0 @@
|
|
|
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 y } from "react";
|
|
3
|
-
import { buildEmbedSrc as x, resolveImageUrl as w, resolveAltText as N } from "./next/utils/mediaUtils.mjs";
|
|
4
|
-
import { c as C } from "./createLucideIcon-C8GTh_Qx.js";
|
|
5
|
-
import { P as k } from "./play-DYgKiSaf.js";
|
|
6
|
-
import './HeroSubComponents.css';/**
|
|
7
|
-
* @license lucide-react v0.488.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const B = [
|
|
13
|
-
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
14
|
-
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
15
|
-
], V = C("pause", B), I = "_hero_gn8b3_1", E = "_container_gn8b3_7", z = "_heading_gn8b3_15", T = "_text_gn8b3_22", j = "_eyebrow_gn8b3_37", H = "_disclaimer_gn8b3_41", P = "_articleDetails_gn8b3_53", D = "_articleType_gn8b3_66", F = "_articleCategories_gn8b3_80", R = "_category_gn8b3_86", A = "_number_gn8b3_102", S = "_blog_gn8b3_129", L = "_overlay_gn8b3_155", U = "_tile_gn8b3_225", Y = "_fullBleed_gn8b3_326", q = "_media_gn8b3_353", G = "_splitAlt_gn8b3_435", J = "_split_gn8b3_435", K = "_videoControl_gn8b3_509", M = "_videoBackground_gn8b3_558", O = "_iframe_gn8b3_559", c = {
|
|
16
|
-
hero: I,
|
|
17
|
-
container: E,
|
|
18
|
-
heading: z,
|
|
19
|
-
text: T,
|
|
20
|
-
eyebrow: j,
|
|
21
|
-
disclaimer: H,
|
|
22
|
-
articleDetails: P,
|
|
23
|
-
articleType: D,
|
|
24
|
-
articleCategories: F,
|
|
25
|
-
category: R,
|
|
26
|
-
number: A,
|
|
27
|
-
default: "_default_gn8b3_125",
|
|
28
|
-
blog: S,
|
|
29
|
-
overlay: L,
|
|
30
|
-
tile: U,
|
|
31
|
-
fullBleed: Y,
|
|
32
|
-
media: q,
|
|
33
|
-
splitAlt: G,
|
|
34
|
-
split: J,
|
|
35
|
-
videoControl: K,
|
|
36
|
-
videoBackground: M,
|
|
37
|
-
iframe: O
|
|
38
|
-
}, Q = u(function({
|
|
39
|
-
isPlaying: e,
|
|
40
|
-
onToggle: i
|
|
41
|
-
}) {
|
|
42
|
-
return /* @__PURE__ */ t(
|
|
43
|
-
"button",
|
|
44
|
-
{
|
|
45
|
-
type: "button",
|
|
46
|
-
title: e ? "Pause the video" : "Play the video",
|
|
47
|
-
"aria-label": e ? "Pause video" : "Play video",
|
|
48
|
-
className: c.videoControl,
|
|
49
|
-
onClick: i,
|
|
50
|
-
children: e ? /* @__PURE__ */ t(V, { size: 18, "aria-hidden": !0 }) : /* @__PURE__ */ t(k, { size: 18, "aria-hidden": !0 })
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}), b = u(function({
|
|
54
|
-
url: e,
|
|
55
|
-
provider: i,
|
|
56
|
-
wrapperClassName: n,
|
|
57
|
-
iframeClassName: a
|
|
58
|
-
}) {
|
|
59
|
-
const r = x(e, i);
|
|
60
|
-
return /* @__PURE__ */ t("div", { className: n, children: /* @__PURE__ */ t(
|
|
61
|
-
"iframe",
|
|
62
|
-
{
|
|
63
|
-
src: r,
|
|
64
|
-
className: a,
|
|
65
|
-
allow: "autoplay; fullscreen",
|
|
66
|
-
allowFullScreen: !0,
|
|
67
|
-
title: "Embedded video",
|
|
68
|
-
"aria-label": "Background video"
|
|
69
|
-
}
|
|
70
|
-
) });
|
|
71
|
-
}), g = u(
|
|
72
|
-
h(function({
|
|
73
|
-
src: e,
|
|
74
|
-
autoPlay: i,
|
|
75
|
-
posterUrl: n,
|
|
76
|
-
wrapperClassName: a,
|
|
77
|
-
videoClassName: r,
|
|
78
|
-
isPlaying: s,
|
|
79
|
-
onToggle: d
|
|
80
|
-
}, m) {
|
|
81
|
-
const l = p(null);
|
|
82
|
-
return v(m, () => ({
|
|
83
|
-
play() {
|
|
84
|
-
var o;
|
|
85
|
-
(o = l.current) == null || o.play().catch(() => {
|
|
86
|
-
});
|
|
87
|
-
},
|
|
88
|
-
pause() {
|
|
89
|
-
var o;
|
|
90
|
-
(o = l.current) == null || o.pause();
|
|
91
|
-
}
|
|
92
|
-
})), y(() => {
|
|
93
|
-
const o = l.current;
|
|
94
|
-
o && (s ? o.play().catch(() => {
|
|
95
|
-
}) : o.pause());
|
|
96
|
-
}, [s]), /* @__PURE__ */ f("div", { className: a, children: [
|
|
97
|
-
/* @__PURE__ */ t(Q, { isPlaying: s, onToggle: d }),
|
|
98
|
-
/* @__PURE__ */ t(
|
|
99
|
-
"video",
|
|
100
|
-
{
|
|
101
|
-
ref: l,
|
|
102
|
-
src: e,
|
|
103
|
-
autoPlay: i,
|
|
104
|
-
loop: !0,
|
|
105
|
-
muted: !0,
|
|
106
|
-
playsInline: !0,
|
|
107
|
-
poster: n,
|
|
108
|
-
preload: "metadata",
|
|
109
|
-
className: r,
|
|
110
|
-
"aria-label": "Background video"
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
] });
|
|
114
|
-
})
|
|
115
|
-
), te = u(function({
|
|
116
|
-
url: e,
|
|
117
|
-
autoPlay: i,
|
|
118
|
-
posterUrl: n,
|
|
119
|
-
isPlaying: a,
|
|
120
|
-
onToggle: r,
|
|
121
|
-
variant: s
|
|
122
|
-
}) {
|
|
123
|
-
const d = e.includes("vimeo.com"), m = e.includes("youtube.com") || e.includes("youtu.be"), l = d || m, o = d ? "vimeo" : "youtube";
|
|
124
|
-
return s === "inline" ? l ? /* @__PURE__ */ t(
|
|
125
|
-
b,
|
|
126
|
-
{
|
|
127
|
-
url: e,
|
|
128
|
-
provider: o,
|
|
129
|
-
wrapperClassName: c.media
|
|
130
|
-
}
|
|
131
|
-
) : /* @__PURE__ */ t(
|
|
132
|
-
g,
|
|
133
|
-
{
|
|
134
|
-
src: e,
|
|
135
|
-
autoPlay: i,
|
|
136
|
-
posterUrl: n,
|
|
137
|
-
wrapperClassName: c.media,
|
|
138
|
-
isPlaying: a,
|
|
139
|
-
onToggle: r
|
|
140
|
-
}
|
|
141
|
-
) : l ? /* @__PURE__ */ t(
|
|
142
|
-
b,
|
|
143
|
-
{
|
|
144
|
-
url: e,
|
|
145
|
-
provider: o,
|
|
146
|
-
wrapperClassName: c.videoBackground,
|
|
147
|
-
iframeClassName: c.iframe
|
|
148
|
-
}
|
|
149
|
-
) : /* @__PURE__ */ t(
|
|
150
|
-
g,
|
|
151
|
-
{
|
|
152
|
-
src: e,
|
|
153
|
-
autoPlay: i,
|
|
154
|
-
posterUrl: n,
|
|
155
|
-
videoClassName: c.videoBackground,
|
|
156
|
-
isPlaying: a,
|
|
157
|
-
onToggle: r
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
}), oe = u(function({
|
|
161
|
-
image: e,
|
|
162
|
-
mode: i,
|
|
163
|
-
variant: n,
|
|
164
|
-
imageAdapter: a
|
|
165
|
-
}) {
|
|
166
|
-
const r = w(e, i, "medium");
|
|
167
|
-
if (!r) return null;
|
|
168
|
-
const s = N(e, i), d = /* @__PURE__ */ t(
|
|
169
|
-
"img",
|
|
170
|
-
{
|
|
171
|
-
fetchPriority: "high",
|
|
172
|
-
src: r,
|
|
173
|
-
alt: s,
|
|
174
|
-
draggable: !1,
|
|
175
|
-
style: n === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
|
|
176
|
-
}
|
|
177
|
-
);
|
|
178
|
-
return a ? /* @__PURE__ */ t("div", { className: c.media, children: n === "fill" ? a.render({
|
|
179
|
-
src: r,
|
|
180
|
-
alt: s,
|
|
181
|
-
fill: !0,
|
|
182
|
-
priority: !0,
|
|
183
|
-
fetchPriority: "high",
|
|
184
|
-
style: { objectFit: "cover" },
|
|
185
|
-
draggable: !1,
|
|
186
|
-
sizes: "(max-width: 767px) 600px, 1200px"
|
|
187
|
-
}) : a.render({
|
|
188
|
-
src: r,
|
|
189
|
-
alt: s,
|
|
190
|
-
width: 650,
|
|
191
|
-
height: 750,
|
|
192
|
-
priority: !0,
|
|
193
|
-
fetchPriority: "high"
|
|
194
|
-
}) }) : /* @__PURE__ */ t("div", { className: c.media, children: d });
|
|
195
|
-
});
|
|
196
|
-
export {
|
|
197
|
-
oe as H,
|
|
198
|
-
g as N,
|
|
199
|
-
te as V,
|
|
200
|
-
Q as a,
|
|
201
|
-
b,
|
|
202
|
-
c as s
|
|
203
|
-
};
|