quirk-ui 0.0.518 → 0.0.520
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/ContentBlock/index.cjs +1 -1
- package/dist/next/blocks/ContentBlock/index.mjs +60 -59
- package/dist/next/blocks/HeroBlock/index.cjs +2 -2
- package/dist/next/blocks/HeroBlock/index.mjs +178 -163
- package/dist/next/cards/TestimonialCard/index.cjs +1 -1
- package/dist/next/cards/TestimonialCard/index.mjs +43 -42
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index14.css');const s=require("react/jsx-runtime"),l=require("../../ui/PortableTextRenderer/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index14.css');const s=require("react/jsx-runtime"),l=require("../../ui/PortableTextRenderer/index.cjs"),I=require("../../ui/CallToActions/index.cjs"),V=require("next/image"),W=require("../../hooks/useStyleClasses.cjs"),y="_content_ivubr_1",N="_container_ivubr_7",H="_metrics_ivubr_34",$="_metric_ivubr_34",B="_metricValue_ivubr_50",C="_disclaimer_ivubr_71",k="_layoutHImageRight_ivubr_76",w="_heading_ivubr_80",R="_image_ivubr_85",z="_noImage_ivubr_95",g="_layoutHImageLeft_ivubr_99",T="_layoutVImageTop_ivubr_118",q="_layoutVImageBottom_ivubr_131",L="_title_ivubr_151",S="_text_ivubr_156",D="_cta_ivubr_170",U="_headingHorizontal_ivubr_178",P="_titleWrapper_ivubr_187",F="_headingVertical_ivubr_208",M="_videoWrapper_ivubr_229",Y="_maxWidth_ivubr_257",E="_fullBleed_ivubr_267",e={content:y,container:N,metrics:H,metric:$,metricValue:B,disclaimer:C,layoutHImageRight:k,heading:w,image:R,noImage:z,layoutHImageLeft:g,layoutVImageTop:T,layoutVImageBottom:q,title:L,text:S,cta:D,headingHorizontal:U,titleWrapper:P,headingVertical:F,videoWrapper:M,default:"_default_ivubr_249",maxWidth:Y,fullBleed:E};function G({layout:r,heading:i,image:t,video:o,metrics:u,callToAction:c,disclaimer:_,styleOptions:a}){var m;const x=W.useStyleClasses(a),d={"--container-max-width":(a==null?void 0:a.maxWidth)??"unset","--gap":r==null?void 0:r.gap},h={"--max-width":(t==null?void 0:t.display)==="max-width"?t==null?void 0:t.maxWidth:"unset"},v={"no-image":e.noImage,"horizontal-image-right":e.layoutHImageRight,"horizontal-image-left":e.layoutHImageLeft,"vertical-image-top":e.layoutVImageTop,"vertical-image-bottom":e.layoutVImageBottom}[(r==null?void 0:r.orientation)??"horizontal-image-right"],b={horizontal:e.headingHorizontal,vertical:e.headingVertical}[i.headingLayout??"horizontal"],p={default:e.default,"max-width":e.maxWidth,"full-bleed":e.fullBleed}[(t==null?void 0:t.display)??"default"],f=()=>{if(!o)return null;const n=o.includes("vimeo.com"),j=o.includes("youtube.com")||o.includes("youtu.be");return n||j?s.jsx("div",{style:{maxWidth:(t==null?void 0:t.maxWidth)??"unset",flex:.65},children:s.jsx("div",{className:e.videoWrapper,children:s.jsx("iframe",{src:n?`${o}?autoplay=0&muted=0&loop=0`:`${o}?autoplay=0&mute=0&loop=0}`,allow:"autoplay; fullscreen",allowFullScreen:!0})})}):s.jsx("div",{style:{maxWidth:(t==null?void 0:t.maxWidth)??"unset",width:"100%",flex:.65},children:s.jsx("div",{className:e.videoWrapper,children:s.jsx("video",{src:o,controls:!0,poster:(t==null?void 0:t.imageUrl)||void 0})})})};return s.jsx("section",{className:`${x} ${e.content}`,children:s.jsxs("article",{className:`${e.container} ${v}`,style:d||{},children:[s.jsxs("div",{className:`${e.heading} ${b}`,children:[s.jsxs("div",{className:e.titleWrapper,children:[i.eyebrow&&s.jsx(l.RichText,{blocks:i.eyebrow}),i.title&&s.jsx(l.RichText,{className:e.title,blocks:i.title})]}),((i==null?void 0:i.description)||(c==null?void 0:c.items))&&s.jsxs("div",{className:e.text,children:[i.description&&s.jsx(l.RichText,{blocks:i.description}),u&&s.jsx("div",{className:e.metrics,children:u.map(n=>s.jsxs("div",{className:e.metric,children:[s.jsx("div",{className:e.metricValue,children:n.metricValue}),n.metricDescription&&s.jsx(l.RichText,{blocks:n.metricDescription})]},n._key))}),c&&s.jsx(I.CallToActions,{className:e.cta,items:c.items,alignment:c.alignment}),_&&s.jsx(l.RichText,{className:e.disclaimer,blocks:_})]})]}),(r==null?void 0:r.orientation)!=="no-image"&&o?f():(r==null?void 0:r.orientation)!=="no-image"&&t&&t.imageUrls&&s.jsx("div",{className:`${e.image} ${p}`,style:h,children:s.jsx(V,{src:(m=t==null?void 0:t.imageUrls)==null?void 0:m.small,alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Content image",width:600,height:400,priority:!0})})]})})}exports.ContentBlock=G;
|
|
@@ -1,68 +1,69 @@
|
|
|
1
1
|
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { RichText as c } from "../../ui/PortableTextRenderer/index.mjs";
|
|
3
|
-
import { CallToActions as
|
|
4
|
-
import
|
|
5
|
-
import { useStyleClasses as
|
|
6
|
-
import '../../../assets/index14.css';const
|
|
7
|
-
content:
|
|
8
|
-
container:
|
|
9
|
-
metrics:
|
|
10
|
-
metric:
|
|
11
|
-
metricValue:
|
|
12
|
-
disclaimer:
|
|
13
|
-
layoutHImageRight:
|
|
14
|
-
heading:
|
|
15
|
-
image:
|
|
16
|
-
noImage:
|
|
17
|
-
layoutHImageLeft:
|
|
18
|
-
layoutVImageTop:
|
|
19
|
-
layoutVImageBottom:
|
|
20
|
-
title:
|
|
21
|
-
text:
|
|
22
|
-
cta:
|
|
23
|
-
headingHorizontal:
|
|
24
|
-
titleWrapper:
|
|
25
|
-
headingVertical:
|
|
26
|
-
videoWrapper:
|
|
3
|
+
import { CallToActions as W } from "../../ui/CallToActions/index.mjs";
|
|
4
|
+
import N from "next/image";
|
|
5
|
+
import { useStyleClasses as y } from "../../hooks/useStyleClasses.mjs";
|
|
6
|
+
import '../../../assets/index14.css';const H = "_content_ivubr_1", w = "_container_ivubr_7", B = "_metrics_ivubr_34", $ = "_metric_ivubr_34", z = "_metricValue_ivubr_50", k = "_disclaimer_ivubr_71", C = "_layoutHImageRight_ivubr_76", g = "_heading_ivubr_80", L = "_image_ivubr_85", R = "_noImage_ivubr_95", D = "_layoutHImageLeft_ivubr_99", U = "_layoutVImageTop_ivubr_118", j = "_layoutVImageBottom_ivubr_131", S = "_title_ivubr_151", F = "_text_ivubr_156", T = "_cta_ivubr_170", Y = "_headingHorizontal_ivubr_178", q = "_titleWrapper_ivubr_187", E = "_headingVertical_ivubr_208", G = "_videoWrapper_ivubr_229", J = "_maxWidth_ivubr_257", K = "_fullBleed_ivubr_267", e = {
|
|
7
|
+
content: H,
|
|
8
|
+
container: w,
|
|
9
|
+
metrics: B,
|
|
10
|
+
metric: $,
|
|
11
|
+
metricValue: z,
|
|
12
|
+
disclaimer: k,
|
|
13
|
+
layoutHImageRight: C,
|
|
14
|
+
heading: g,
|
|
15
|
+
image: L,
|
|
16
|
+
noImage: R,
|
|
17
|
+
layoutHImageLeft: D,
|
|
18
|
+
layoutVImageTop: U,
|
|
19
|
+
layoutVImageBottom: j,
|
|
20
|
+
title: S,
|
|
21
|
+
text: F,
|
|
22
|
+
cta: T,
|
|
23
|
+
headingHorizontal: Y,
|
|
24
|
+
titleWrapper: q,
|
|
25
|
+
headingVertical: E,
|
|
26
|
+
videoWrapper: G,
|
|
27
27
|
default: "_default_ivubr_249",
|
|
28
|
-
maxWidth:
|
|
29
|
-
fullBleed:
|
|
28
|
+
maxWidth: J,
|
|
29
|
+
fullBleed: K
|
|
30
30
|
};
|
|
31
|
-
function
|
|
31
|
+
function O({
|
|
32
32
|
layout: i,
|
|
33
33
|
heading: o,
|
|
34
34
|
image: t,
|
|
35
35
|
video: s,
|
|
36
|
-
metrics:
|
|
37
|
-
callToAction:
|
|
38
|
-
disclaimer:
|
|
36
|
+
metrics: u,
|
|
37
|
+
callToAction: a,
|
|
38
|
+
disclaimer: d,
|
|
39
39
|
styleOptions: _
|
|
40
40
|
}) {
|
|
41
|
-
|
|
41
|
+
var h;
|
|
42
|
+
const p = y(_), m = {
|
|
42
43
|
"--container-max-width": (_ == null ? void 0 : _.maxWidth) ?? "unset",
|
|
43
44
|
"--gap": i == null ? void 0 : i.gap
|
|
44
|
-
}, p = {
|
|
45
|
-
"--max-width": (t == null ? void 0 : t.display) === "max-width" ? t == null ? void 0 : t.maxWidth : "unset"
|
|
46
45
|
}, v = {
|
|
46
|
+
"--max-width": (t == null ? void 0 : t.display) === "max-width" ? t == null ? void 0 : t.maxWidth : "unset"
|
|
47
|
+
}, b = {
|
|
47
48
|
"no-image": e.noImage,
|
|
48
49
|
"horizontal-image-right": e.layoutHImageRight,
|
|
49
50
|
"horizontal-image-left": e.layoutHImageLeft,
|
|
50
51
|
"vertical-image-top": e.layoutVImageTop,
|
|
51
52
|
"vertical-image-bottom": e.layoutVImageBottom
|
|
52
|
-
}[(i == null ? void 0 : i.orientation) ?? "horizontal-image-right"],
|
|
53
|
+
}[(i == null ? void 0 : i.orientation) ?? "horizontal-image-right"], f = {
|
|
53
54
|
horizontal: e.headingHorizontal,
|
|
54
55
|
vertical: e.headingVertical
|
|
55
|
-
}[o.headingLayout ?? "horizontal"],
|
|
56
|
+
}[o.headingLayout ?? "horizontal"], x = {
|
|
56
57
|
default: e.default,
|
|
57
58
|
"max-width": e.maxWidth,
|
|
58
59
|
"full-bleed": e.fullBleed
|
|
59
|
-
}[(t == null ? void 0 : t.display) ?? "default"],
|
|
60
|
+
}[(t == null ? void 0 : t.display) ?? "default"], I = () => {
|
|
60
61
|
if (!s) return null;
|
|
61
|
-
const
|
|
62
|
-
return
|
|
62
|
+
const l = s.includes("vimeo.com"), V = s.includes("youtube.com") || s.includes("youtu.be");
|
|
63
|
+
return l || V ? /* @__PURE__ */ r("div", { style: { maxWidth: (t == null ? void 0 : t.maxWidth) ?? "unset", flex: 0.65 }, children: /* @__PURE__ */ r("div", { className: e.videoWrapper, children: /* @__PURE__ */ r(
|
|
63
64
|
"iframe",
|
|
64
65
|
{
|
|
65
|
-
src:
|
|
66
|
+
src: l ? `${s}?autoplay=0&muted=0&loop=0` : `${s}?autoplay=0&mute=0&loop=0}`,
|
|
66
67
|
allow: "autoplay; fullscreen",
|
|
67
68
|
allowFullScreen: !0
|
|
68
69
|
}
|
|
@@ -78,43 +79,43 @@ function Z({
|
|
|
78
79
|
}
|
|
79
80
|
);
|
|
80
81
|
};
|
|
81
|
-
return /* @__PURE__ */ r("section", { className: `${
|
|
82
|
+
return /* @__PURE__ */ r("section", { className: `${p} ${e.content}`, children: /* @__PURE__ */ n(
|
|
82
83
|
"article",
|
|
83
84
|
{
|
|
84
|
-
className: `${e.container} ${
|
|
85
|
-
style:
|
|
85
|
+
className: `${e.container} ${b}`,
|
|
86
|
+
style: m || {},
|
|
86
87
|
children: [
|
|
87
|
-
/* @__PURE__ */ n("div", { className: `${e.heading} ${
|
|
88
|
+
/* @__PURE__ */ n("div", { className: `${e.heading} ${f}`, children: [
|
|
88
89
|
/* @__PURE__ */ n("div", { className: e.titleWrapper, children: [
|
|
89
90
|
o.eyebrow && /* @__PURE__ */ r(c, { blocks: o.eyebrow }),
|
|
90
91
|
o.title && /* @__PURE__ */ r(c, { className: e.title, blocks: o.title })
|
|
91
92
|
] }),
|
|
92
|
-
((o == null ? void 0 : o.description) || (
|
|
93
|
+
((o == null ? void 0 : o.description) || (a == null ? void 0 : a.items)) && /* @__PURE__ */ n("div", { className: e.text, children: [
|
|
93
94
|
o.description && /* @__PURE__ */ r(c, { blocks: o.description }),
|
|
94
|
-
|
|
95
|
-
/* @__PURE__ */ r("div", { className: e.metricValue, children:
|
|
96
|
-
|
|
97
|
-
] },
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
u && /* @__PURE__ */ r("div", { className: e.metrics, children: u.map((l) => /* @__PURE__ */ n("div", { className: e.metric, children: [
|
|
96
|
+
/* @__PURE__ */ r("div", { className: e.metricValue, children: l.metricValue }),
|
|
97
|
+
l.metricDescription && /* @__PURE__ */ r(c, { blocks: l.metricDescription })
|
|
98
|
+
] }, l._key)) }),
|
|
99
|
+
a && /* @__PURE__ */ r(
|
|
100
|
+
W,
|
|
100
101
|
{
|
|
101
102
|
className: e.cta,
|
|
102
|
-
items:
|
|
103
|
-
alignment:
|
|
103
|
+
items: a.items,
|
|
104
|
+
alignment: a.alignment
|
|
104
105
|
}
|
|
105
106
|
),
|
|
106
|
-
|
|
107
|
+
d && /* @__PURE__ */ r(c, { className: e.disclaimer, blocks: d })
|
|
107
108
|
] })
|
|
108
109
|
] }),
|
|
109
|
-
(i == null ? void 0 : i.orientation) !== "no-image" && s ?
|
|
110
|
+
(i == null ? void 0 : i.orientation) !== "no-image" && s ? I() : (i == null ? void 0 : i.orientation) !== "no-image" && t && t.imageUrls && /* @__PURE__ */ r(
|
|
110
111
|
"div",
|
|
111
112
|
{
|
|
112
|
-
className: `${e.image} ${
|
|
113
|
-
style:
|
|
113
|
+
className: `${e.image} ${x}`,
|
|
114
|
+
style: v,
|
|
114
115
|
children: /* @__PURE__ */ r(
|
|
115
|
-
|
|
116
|
+
N,
|
|
116
117
|
{
|
|
117
|
-
src: t.
|
|
118
|
+
src: (h = t == null ? void 0 : t.imageUrls) == null ? void 0 : h.small,
|
|
118
119
|
alt: (t == null ? void 0 : t.asset.altText) || (t == null ? void 0 : t.asset.description) || "Content image",
|
|
119
120
|
width: 600,
|
|
120
121
|
height: 400,
|
|
@@ -128,5 +129,5 @@ function Z({
|
|
|
128
129
|
) });
|
|
129
130
|
}
|
|
130
131
|
export {
|
|
131
|
-
|
|
132
|
+
O as ContentBlock
|
|
132
133
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index67.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index67.css');const e=require("react/jsx-runtime"),p=require("react"),W=require("./HeroContext.cjs"),c=require("../../ui/PortableTextRenderer/index.cjs"),m=require("../../ui/CallToActions/index.cjs"),f=require("next/image"),N=require("../../ui/LocaleLink/index.cjs"),E=require("../../hooks/usePrefersReducedMotion.cjs"),M=require("../../../createLucideIcon-DpotSgUx.cjs"),V=require("../../../play-CQBnZgNa.cjs");/**
|
|
2
2
|
* @license lucide-react v0.488.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
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"}]],G=M.createLucideIcon("pause",Y),J="_hero_vho5i_1",K="_container_vho5i_7",Q="_eyebrow_vho5i_24",X="_disclaimer_vho5i_28",Z="_text_vho5i_33",g="_articleDetails_vho5i_40",A="_articleType_vho5i_53",D="_articleCategories_vho5i_67",O="_category_vho5i_73",ee="_number_vho5i_89",se="_blog_vho5i_116",te="_overlay_vho5i_140",re="_fullBleed_vho5i_210",le="_split_vho5i_304",oe="_image_vho5i_309",ce="_videoControl_vho5i_332",ie="_videoWrapper_vho5i_353",ne="_videoBackground_vho5i_373",ae="_iframe_vho5i_374",t={hero:J,container:K,eyebrow:Q,disclaimer:X,text:Z,articleDetails:g,articleType:A,articleCategories:D,category:O,number:ee,default:"_default_vho5i_112",blog:se,overlay:te,fullBleed:re,split:le,image:oe,videoControl:ce,videoWrapper:ie,videoBackground:ne,iframe:ae};function ue({heading:o,image:s,video:r,callToAction:i,pageData:a,styleOptions:d}){var L,P,q,F,U,H,z;const x=E.usePrefersReducedMotion(),[C,R]=p.useState(!x),{setIsFullbleedHeroAtTop:$}=W.useHeroContext(),h=p.useRef(null),y=(d==null?void 0:d.layout)??"default",S=((L=d==null?void 0:d.padding)==null?void 0:L.join(" "))??"",v={default:t.default,split:t.split,"full-bleed":t.fullBleed,blog:t.blog}[y],T=((P=a==null?void 0:a.categories)==null?void 0:P.filter(l=>{var n,u;return!((u=(n=l.slug)==null?void 0:n.current)!=null&&u.startsWith("library/type"))}))??[],j=T[0]??null,_=T[1]??null,b=((q=a==null?void 0:a.categories)==null?void 0:q.find(l=>{var n,u;return(u=(n=l.slug)==null?void 0:n.current)==null?void 0:u.startsWith("library/type")}))??null;p.useEffect(()=>{const l=()=>{$(window.scrollY===0)};if(y==="full-bleed"&&typeof window<"u")return $(!0),window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[y]),p.useEffect(()=>{const l=h.current;l&&(x?l.pause():l.play())},[x]);const w=()=>e.jsx("button",{title:`${C?"Pause the video":"Play the video"}`,className:t.videoControl,onClick:()=>{const l=h.current;l&&(l.paused?(l.play().catch(()=>{}),R(!0)):(l.pause(),R(!1)))},children:C?e.jsx(G,{size:18}):e.jsx(V.Play,{size:18})}),B=()=>{var u;if(!r)return null;const l=r.includes("vimeo.com"),n=r.includes("youtube.com")||r.includes("youtu.be");return l||n?e.jsx("div",{className:t.videoWrapper,children:e.jsx("iframe",{src:l?`${r}?autoplay=1&muted=1&loop=1&background=1`:`${r}?autoplay=1&mute=1&loop=1&playlist=${k(r)}`,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs("div",{className:t.videoWrapper,children:[e.jsx(w,{}),e.jsx("video",{ref:h,src:r,autoPlay:!x,loop:!0,muted:!0,playsInline:!0,poster:((u=s==null?void 0:s.imageUrls)==null?void 0:u.large)||void 0,preload:"metadata"})]})};function k(l){const n=l.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);return(n==null?void 0:n[1])||""}const I=()=>{var l;return s&&s.imageUrls?e.jsx("div",{className:t.image,children:y==="blog"||y==="full-bleed"?e.jsx(f,{src:(l=s==null?void 0:s.imageUrls)==null?void 0:l.large,alt:(s==null?void 0:s.asset.altText)||(s==null?void 0:s.asset.description)||"Hero image",fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):e.jsx(f,{src:s.imageUrls.small,alt:s.asset.altText||s.asset.description||"Hero image",width:650,height:750,priority:!0})}):null};switch(y){case"split":return e.jsx("section",{className:`${t.hero} ${t.split}`,children:e.jsxs("article",{className:`${S} ${t.container}`,children:[e.jsxs("div",{className:t.text,children:[e.jsxs("div",{children:[o.eyebrow&&e.jsx(c.RichText,{className:t.eyebrow,blocks:o.eyebrow}),e.jsx(c.RichText,{blocks:o.title})]}),o.description&&e.jsx(c.RichText,{blocks:o.description}),i&&e.jsx(m.CallToActions,{items:i.items,alignment:i.alignment}),o.disclaimer&&e.jsx(c.RichText,{className:t.disclaimer,blocks:o.disclaimer})]}),r?e.jsx(B,{}):e.jsx(I,{})]})});case"default":return e.jsx("section",{className:`${t.hero} ${v}`,children:e.jsxs("article",{className:t.container,children:[r?e.jsx(B,{}):e.jsx(I,{}),e.jsxs("div",{className:t.text,children:[e.jsxs("div",{children:[o.eyebrow&&e.jsx(c.RichText,{className:t.eyebrow,blocks:o.eyebrow}),e.jsx(c.RichText,{blocks:o.title})]}),o.description&&e.jsx(c.RichText,{blocks:o.description}),i&&e.jsx(m.CallToActions,{items:i.items,alignment:i.alignment})]})]})});case"full-bleed":return e.jsx("section",{className:`${t.hero} ${v} heroFullBleed`,children:e.jsxs("article",{className:t.container,children:[r?r.includes("vimeo.com")||r.includes("youtube.com")||r.includes("youtu.be")?e.jsx("div",{className:t.videoBackground,children:e.jsx("iframe",{src:r.includes("vimeo.com")?`${r}?autoplay=1&muted=1&loop=1&background=1`:`${r}?autoplay=1&mute=1&loop=1&playlist=${k(r)}`,className:t.iframe,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(w,{}),e.jsx("video",{ref:h,className:t.videoBackground,src:r,autoPlay:!x,loop:!0,muted:!0,playsInline:!0,poster:((F=s==null?void 0:s.imageUrls)==null?void 0:F.large)||void 0})]}):e.jsx(f,{src:((U=s==null?void 0:s.imageUrls)==null?void 0:U.small)??"",alt:(s==null?void 0:s.asset.altText)||(s==null?void 0:s.asset.description)||"Card image",fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:t.overlay,children:e.jsxs("div",{className:t.text,children:[e.jsxs("div",{children:[o.eyebrow&&e.jsx(c.RichText,{className:t.eyebrow,blocks:o.eyebrow}),e.jsx(c.RichText,{blocks:o.title})]}),o.description&&e.jsx(c.RichText,{blocks:o.description}),i&&e.jsx(m.CallToActions,{items:i.items,alignment:i.alignment})]})})]})});case"blog":return e.jsx("section",{className:`${t.hero} ${v}`,children:e.jsxs("article",{className:t.container,children:[r?r.includes("vimeo.com")||r.includes("youtube.com")||r.includes("youtu.be")?e.jsx("div",{className:t.videoBackground,children:e.jsx("iframe",{src:r.includes("vimeo.com")?`${r}?autoplay=1&muted=1&loop=1&background=1`:`${r}?autoplay=1&mute=1&loop=1&playlist=${k(r)}`,className:t.iframe,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(w,{}),e.jsx("video",{ref:h,className:t.videoBackground,src:r,autoPlay:!x,loop:!0,muted:!0,playsInline:!0,poster:((H=s==null?void 0:s.imageUrls)==null?void 0:H.large)||void 0})]}):e.jsx(f,{src:((z=s==null?void 0:s.imageUrls)==null?void 0:z.large)??"",alt:(s==null?void 0:s.asset.altText)||(s==null?void 0:s.asset.description)||"Card image",fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:t.overlay,children:e.jsxs("div",{className:t.text,children:[e.jsxs("div",{children:[o.eyebrow&&e.jsx(c.RichText,{className:t.eyebrow,blocks:o.eyebrow}),a&&e.jsxs("div",{className:t.articleDetails,children:[b&&e.jsx(N.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(b._id)}`,className:t.articleType,children:b.title},b._id),e.jsxs("div",{className:t.articleCategories,children:[j&&e.jsx(N.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(j._id)}`,className:t.category,children:j.title},j._id),_&&_.title.toLowerCase()!=="library"&&!_.slug.current.includes("keywords")&&e.jsx(N.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(_._id)}`,className:t.category,children:_.title},_._id)]}),a.timeToRead&&e.jsx(e.Fragment,{children:e.jsxs("span",{children:[e.jsx("span",{className:t.number,children:a.timeToRead}),"min read"]})})]}),e.jsx(c.RichText,{blocks:o.title})]}),o.description&&e.jsx(c.RichText,{blocks:o.description}),i&&e.jsx(m.CallToActions,{items:i.items,alignment:i.alignment})]})})]})})}}exports.HeroBlock=ue;
|
|
@@ -1,149 +1,164 @@
|
|
|
1
|
-
import { jsx as e, jsxs as c, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useHeroContext as
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { useState as Y, useRef as M, useEffect as V } from "react";
|
|
3
|
+
import { useHeroContext as q } from "./HeroContext.mjs";
|
|
4
4
|
import { RichText as i } from "../../ui/PortableTextRenderer/index.mjs";
|
|
5
5
|
import { CallToActions as v } from "../../ui/CallToActions/index.mjs";
|
|
6
|
-
import
|
|
6
|
+
import w from "next/image";
|
|
7
7
|
import { LocaleLink as $ } from "../../ui/LocaleLink/index.mjs";
|
|
8
|
-
import { usePrefersReducedMotion as
|
|
9
|
-
import { c as
|
|
10
|
-
import { P as
|
|
8
|
+
import { usePrefersReducedMotion as G } from "../../hooks/usePrefersReducedMotion.mjs";
|
|
9
|
+
import { c as J } from "../../../createLucideIcon-C8GTh_Qx.js";
|
|
10
|
+
import { P as K } from "../../../play-DYgKiSaf.js";
|
|
11
11
|
import '../../../assets/index67.css';/**
|
|
12
12
|
* @license lucide-react v0.488.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
const
|
|
17
|
+
const Q = [
|
|
18
18
|
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
19
19
|
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
20
|
-
],
|
|
21
|
-
hero:
|
|
22
|
-
container:
|
|
23
|
-
eyebrow:
|
|
24
|
-
disclaimer:
|
|
25
|
-
text:
|
|
26
|
-
articleDetails:
|
|
27
|
-
articleType:
|
|
28
|
-
articleCategories:
|
|
29
|
-
category:
|
|
30
|
-
number:
|
|
20
|
+
], X = J("pause", Q), Z = "_hero_vho5i_1", D = "_container_vho5i_7", g = "_eyebrow_vho5i_24", A = "_disclaimer_vho5i_28", O = "_text_vho5i_33", ee = "_articleDetails_vho5i_40", re = "_articleType_vho5i_53", le = "_articleCategories_vho5i_67", te = "_category_vho5i_73", oe = "_number_vho5i_89", se = "_blog_vho5i_116", ce = "_overlay_vho5i_140", ie = "_fullBleed_vho5i_210", ne = "_split_vho5i_304", ae = "_image_vho5i_309", ue = "_videoControl_vho5i_332", de = "_videoWrapper_vho5i_353", me = "_videoBackground_vho5i_373", pe = "_iframe_vho5i_374", l = {
|
|
21
|
+
hero: Z,
|
|
22
|
+
container: D,
|
|
23
|
+
eyebrow: g,
|
|
24
|
+
disclaimer: A,
|
|
25
|
+
text: O,
|
|
26
|
+
articleDetails: ee,
|
|
27
|
+
articleType: re,
|
|
28
|
+
articleCategories: le,
|
|
29
|
+
category: te,
|
|
30
|
+
number: oe,
|
|
31
31
|
default: "_default_vho5i_112",
|
|
32
|
-
blog:
|
|
33
|
-
overlay:
|
|
34
|
-
fullBleed:
|
|
35
|
-
split:
|
|
36
|
-
image:
|
|
37
|
-
videoControl:
|
|
38
|
-
videoWrapper:
|
|
39
|
-
videoBackground:
|
|
40
|
-
iframe:
|
|
32
|
+
blog: se,
|
|
33
|
+
overlay: ce,
|
|
34
|
+
fullBleed: ie,
|
|
35
|
+
split: ne,
|
|
36
|
+
image: ae,
|
|
37
|
+
videoControl: ue,
|
|
38
|
+
videoWrapper: de,
|
|
39
|
+
videoBackground: me,
|
|
40
|
+
iframe: pe
|
|
41
41
|
};
|
|
42
|
-
function
|
|
43
|
-
heading:
|
|
44
|
-
image:
|
|
45
|
-
video:
|
|
42
|
+
function Ce({
|
|
43
|
+
heading: s,
|
|
44
|
+
image: r,
|
|
45
|
+
video: t,
|
|
46
46
|
callToAction: n,
|
|
47
47
|
pageData: u,
|
|
48
|
-
styleOptions:
|
|
48
|
+
styleOptions: m
|
|
49
49
|
}) {
|
|
50
|
-
var W,
|
|
51
|
-
const
|
|
52
|
-
default:
|
|
53
|
-
split:
|
|
54
|
-
"full-bleed":
|
|
55
|
-
blog:
|
|
56
|
-
}[
|
|
57
|
-
(
|
|
58
|
-
var a,
|
|
59
|
-
return !((
|
|
50
|
+
var z, W, j, L, H, S, T;
|
|
51
|
+
const p = G(), [B, I] = Y(!p), { setIsFullbleedHeroAtTop: P } = q(), f = M(null), y = (m == null ? void 0 : m.layout) ?? "default", E = ((z = m == null ? void 0 : m.padding) == null ? void 0 : z.join(" ")) ?? "", N = {
|
|
52
|
+
default: l.default,
|
|
53
|
+
split: l.split,
|
|
54
|
+
"full-bleed": l.fullBleed,
|
|
55
|
+
blog: l.blog
|
|
56
|
+
}[y], U = ((W = u == null ? void 0 : u.categories) == null ? void 0 : W.filter(
|
|
57
|
+
(o) => {
|
|
58
|
+
var a, d;
|
|
59
|
+
return !((d = (a = o.slug) == null ? void 0 : a.current) != null && d.startsWith("library/type"));
|
|
60
60
|
}
|
|
61
|
-
)) ?? [],
|
|
62
|
-
(
|
|
63
|
-
var a,
|
|
64
|
-
return (
|
|
61
|
+
)) ?? [], _ = U[0] ?? null, b = U[1] ?? null, h = ((j = u == null ? void 0 : u.categories) == null ? void 0 : j.find(
|
|
62
|
+
(o) => {
|
|
63
|
+
var a, d;
|
|
64
|
+
return (d = (a = o.slug) == null ? void 0 : a.current) == null ? void 0 : d.startsWith("library/type");
|
|
65
65
|
}
|
|
66
66
|
)) ?? null;
|
|
67
|
-
|
|
68
|
-
const
|
|
67
|
+
V(() => {
|
|
68
|
+
const o = () => {
|
|
69
69
|
P(window.scrollY === 0);
|
|
70
70
|
};
|
|
71
|
-
if (
|
|
72
|
-
return P(!0), window.addEventListener("scroll",
|
|
73
|
-
}, [
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
}, [
|
|
77
|
-
const
|
|
71
|
+
if (y === "full-bleed" && typeof window < "u")
|
|
72
|
+
return P(!0), window.addEventListener("scroll", o), () => window.removeEventListener("scroll", o);
|
|
73
|
+
}, [y]), V(() => {
|
|
74
|
+
const o = f.current;
|
|
75
|
+
o && (p ? o.pause() : o.play());
|
|
76
|
+
}, [p]);
|
|
77
|
+
const k = () => /* @__PURE__ */ e(
|
|
78
78
|
"button",
|
|
79
79
|
{
|
|
80
80
|
title: `${B ? "Pause the video" : "Play the video"}`,
|
|
81
|
-
className:
|
|
81
|
+
className: l.videoControl,
|
|
82
82
|
onClick: () => {
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
}), I(!0)) : (
|
|
83
|
+
const o = f.current;
|
|
84
|
+
o && (o.paused ? (o.play().catch(() => {
|
|
85
|
+
}), I(!0)) : (o.pause(), I(!1)));
|
|
86
86
|
},
|
|
87
|
-
children: B ? /* @__PURE__ */ e(
|
|
87
|
+
children: B ? /* @__PURE__ */ e(X, { size: 18 }) : /* @__PURE__ */ e(K, { size: 18 })
|
|
88
88
|
}
|
|
89
|
-
),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
), R = () => {
|
|
90
|
+
var d;
|
|
91
|
+
if (!t) return null;
|
|
92
|
+
const o = t.includes("vimeo.com"), a = t.includes("youtube.com") || t.includes("youtu.be");
|
|
93
|
+
return o || a ? /* @__PURE__ */ e("div", { className: l.videoWrapper, children: /* @__PURE__ */ e(
|
|
93
94
|
"iframe",
|
|
94
95
|
{
|
|
95
|
-
src:
|
|
96
|
-
|
|
96
|
+
src: o ? `${t}?autoplay=1&muted=1&loop=1&background=1` : `${t}?autoplay=1&mute=1&loop=1&playlist=${x(
|
|
97
|
+
t
|
|
97
98
|
)}`,
|
|
98
99
|
allow: "autoplay; fullscreen",
|
|
99
100
|
allowFullScreen: !0
|
|
100
101
|
}
|
|
101
|
-
) }) : /* @__PURE__ */ c("div", { className:
|
|
102
|
-
/* @__PURE__ */ e(
|
|
102
|
+
) }) : /* @__PURE__ */ c("div", { className: l.videoWrapper, children: [
|
|
103
|
+
/* @__PURE__ */ e(k, {}),
|
|
103
104
|
/* @__PURE__ */ e(
|
|
104
105
|
"video",
|
|
105
106
|
{
|
|
106
|
-
ref:
|
|
107
|
-
src:
|
|
108
|
-
autoPlay: !
|
|
107
|
+
ref: f,
|
|
108
|
+
src: t,
|
|
109
|
+
autoPlay: !p,
|
|
109
110
|
loop: !0,
|
|
110
111
|
muted: !0,
|
|
111
112
|
playsInline: !0,
|
|
112
|
-
poster: (
|
|
113
|
+
poster: ((d = r == null ? void 0 : r.imageUrls) == null ? void 0 : d.large) || void 0,
|
|
113
114
|
preload: "metadata"
|
|
114
115
|
}
|
|
115
116
|
)
|
|
116
117
|
] });
|
|
117
118
|
};
|
|
118
|
-
function
|
|
119
|
-
const a =
|
|
119
|
+
function x(o) {
|
|
120
|
+
const a = o.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);
|
|
120
121
|
return (a == null ? void 0 : a[1]) || "";
|
|
121
122
|
}
|
|
122
|
-
const F = () =>
|
|
123
|
-
|
|
124
|
-
{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
123
|
+
const F = () => {
|
|
124
|
+
var o;
|
|
125
|
+
return r && r.imageUrls ? /* @__PURE__ */ e("div", { className: l.image, children: y === "blog" || y === "full-bleed" ? /* @__PURE__ */ e(
|
|
126
|
+
w,
|
|
127
|
+
{
|
|
128
|
+
src: (o = r == null ? void 0 : r.imageUrls) == null ? void 0 : o.large,
|
|
129
|
+
alt: (r == null ? void 0 : r.asset.altText) || (r == null ? void 0 : r.asset.description) || "Hero image",
|
|
130
|
+
fill: !0,
|
|
131
|
+
priority: !0,
|
|
132
|
+
style: { objectFit: "cover" },
|
|
133
|
+
draggable: !1,
|
|
134
|
+
sizes: "(max-width: 767px) 600px, 1200px"
|
|
135
|
+
}
|
|
136
|
+
) : /* @__PURE__ */ e(
|
|
137
|
+
w,
|
|
138
|
+
{
|
|
139
|
+
src: r.imageUrls.small,
|
|
140
|
+
alt: r.asset.altText || r.asset.description || "Hero image",
|
|
141
|
+
width: 650,
|
|
142
|
+
height: 750,
|
|
143
|
+
priority: !0
|
|
144
|
+
}
|
|
145
|
+
) }) : null;
|
|
146
|
+
};
|
|
147
|
+
switch (y) {
|
|
133
148
|
case "split":
|
|
134
|
-
return /* @__PURE__ */ e("section", { className: `${
|
|
135
|
-
/* @__PURE__ */ c("div", { className:
|
|
149
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${l.split}`, children: /* @__PURE__ */ c("article", { className: `${E} ${l.container}`, children: [
|
|
150
|
+
/* @__PURE__ */ c("div", { className: l.text, children: [
|
|
136
151
|
/* @__PURE__ */ c("div", { children: [
|
|
137
|
-
|
|
152
|
+
s.eyebrow && /* @__PURE__ */ e(
|
|
138
153
|
i,
|
|
139
154
|
{
|
|
140
|
-
className:
|
|
141
|
-
blocks:
|
|
155
|
+
className: l.eyebrow,
|
|
156
|
+
blocks: s.eyebrow
|
|
142
157
|
}
|
|
143
158
|
),
|
|
144
|
-
/* @__PURE__ */ e(i, { blocks:
|
|
159
|
+
/* @__PURE__ */ e(i, { blocks: s.title })
|
|
145
160
|
] }),
|
|
146
|
-
|
|
161
|
+
s.description && /* @__PURE__ */ e(i, { blocks: s.description }),
|
|
147
162
|
n && /* @__PURE__ */ e(
|
|
148
163
|
v,
|
|
149
164
|
{
|
|
@@ -151,31 +166,31 @@ function we({
|
|
|
151
166
|
alignment: n.alignment
|
|
152
167
|
}
|
|
153
168
|
),
|
|
154
|
-
|
|
169
|
+
s.disclaimer && /* @__PURE__ */ e(
|
|
155
170
|
i,
|
|
156
171
|
{
|
|
157
|
-
className:
|
|
158
|
-
blocks:
|
|
172
|
+
className: l.disclaimer,
|
|
173
|
+
blocks: s.disclaimer
|
|
159
174
|
}
|
|
160
175
|
)
|
|
161
176
|
] }),
|
|
162
|
-
|
|
177
|
+
t ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(F, {})
|
|
163
178
|
] }) });
|
|
164
179
|
case "default":
|
|
165
|
-
return /* @__PURE__ */ e("section", { className: `${
|
|
166
|
-
|
|
167
|
-
/* @__PURE__ */ c("div", { className:
|
|
180
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${N}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
181
|
+
t ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(F, {}),
|
|
182
|
+
/* @__PURE__ */ c("div", { className: l.text, children: [
|
|
168
183
|
/* @__PURE__ */ c("div", { children: [
|
|
169
|
-
|
|
184
|
+
s.eyebrow && /* @__PURE__ */ e(
|
|
170
185
|
i,
|
|
171
186
|
{
|
|
172
|
-
className:
|
|
173
|
-
blocks:
|
|
187
|
+
className: l.eyebrow,
|
|
188
|
+
blocks: s.eyebrow
|
|
174
189
|
}
|
|
175
190
|
),
|
|
176
|
-
/* @__PURE__ */ e(i, { blocks:
|
|
191
|
+
/* @__PURE__ */ e(i, { blocks: s.title })
|
|
177
192
|
] }),
|
|
178
|
-
|
|
193
|
+
s.description && /* @__PURE__ */ e(i, { blocks: s.description }),
|
|
179
194
|
n && /* @__PURE__ */ e(
|
|
180
195
|
v,
|
|
181
196
|
{
|
|
@@ -186,37 +201,37 @@ function we({
|
|
|
186
201
|
] })
|
|
187
202
|
] }) });
|
|
188
203
|
case "full-bleed":
|
|
189
|
-
return /* @__PURE__ */ e("section", { className: `${
|
|
190
|
-
|
|
204
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${N} heroFullBleed`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
205
|
+
t ? t.includes("vimeo.com") || t.includes("youtube.com") || t.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: l.videoBackground, children: /* @__PURE__ */ e(
|
|
191
206
|
"iframe",
|
|
192
207
|
{
|
|
193
|
-
src:
|
|
194
|
-
|
|
208
|
+
src: t.includes("vimeo.com") ? `${t}?autoplay=1&muted=1&loop=1&background=1` : `${t}?autoplay=1&mute=1&loop=1&playlist=${x(
|
|
209
|
+
t
|
|
195
210
|
)}`,
|
|
196
|
-
className:
|
|
211
|
+
className: l.iframe,
|
|
197
212
|
allow: "autoplay; fullscreen",
|
|
198
213
|
allowFullScreen: !0
|
|
199
214
|
}
|
|
200
|
-
) }) : /* @__PURE__ */ c(
|
|
201
|
-
/* @__PURE__ */ e(
|
|
215
|
+
) }) : /* @__PURE__ */ c(C, { children: [
|
|
216
|
+
/* @__PURE__ */ e(k, {}),
|
|
202
217
|
/* @__PURE__ */ e(
|
|
203
218
|
"video",
|
|
204
219
|
{
|
|
205
|
-
ref:
|
|
206
|
-
className:
|
|
207
|
-
src:
|
|
208
|
-
autoPlay: !
|
|
220
|
+
ref: f,
|
|
221
|
+
className: l.videoBackground,
|
|
222
|
+
src: t,
|
|
223
|
+
autoPlay: !p,
|
|
209
224
|
loop: !0,
|
|
210
225
|
muted: !0,
|
|
211
226
|
playsInline: !0,
|
|
212
|
-
poster: (
|
|
227
|
+
poster: ((L = r == null ? void 0 : r.imageUrls) == null ? void 0 : L.large) || void 0
|
|
213
228
|
}
|
|
214
229
|
)
|
|
215
230
|
] }) : /* @__PURE__ */ e(
|
|
216
|
-
|
|
231
|
+
w,
|
|
217
232
|
{
|
|
218
|
-
src: (
|
|
219
|
-
alt: (
|
|
233
|
+
src: ((H = r == null ? void 0 : r.imageUrls) == null ? void 0 : H.small) ?? "",
|
|
234
|
+
alt: (r == null ? void 0 : r.asset.altText) || (r == null ? void 0 : r.asset.description) || "Card image",
|
|
220
235
|
fill: !0,
|
|
221
236
|
priority: !0,
|
|
222
237
|
style: { objectFit: "cover" },
|
|
@@ -224,18 +239,18 @@ function we({
|
|
|
224
239
|
sizes: "(min-width: 500px) 500px, 100vw"
|
|
225
240
|
}
|
|
226
241
|
),
|
|
227
|
-
/* @__PURE__ */ e("div", { className:
|
|
242
|
+
/* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */ c("div", { className: l.text, children: [
|
|
228
243
|
/* @__PURE__ */ c("div", { children: [
|
|
229
|
-
|
|
244
|
+
s.eyebrow && /* @__PURE__ */ e(
|
|
230
245
|
i,
|
|
231
246
|
{
|
|
232
|
-
className:
|
|
233
|
-
blocks:
|
|
247
|
+
className: l.eyebrow,
|
|
248
|
+
blocks: s.eyebrow
|
|
234
249
|
}
|
|
235
250
|
),
|
|
236
|
-
/* @__PURE__ */ e(i, { blocks:
|
|
251
|
+
/* @__PURE__ */ e(i, { blocks: s.title })
|
|
237
252
|
] }),
|
|
238
|
-
|
|
253
|
+
s.description && /* @__PURE__ */ e(i, { blocks: s.description }),
|
|
239
254
|
n && /* @__PURE__ */ e(
|
|
240
255
|
v,
|
|
241
256
|
{
|
|
@@ -246,37 +261,37 @@ function we({
|
|
|
246
261
|
] }) })
|
|
247
262
|
] }) });
|
|
248
263
|
case "blog":
|
|
249
|
-
return /* @__PURE__ */ e("section", { className: `${
|
|
250
|
-
|
|
264
|
+
return /* @__PURE__ */ e("section", { className: `${l.hero} ${N}`, children: /* @__PURE__ */ c("article", { className: l.container, children: [
|
|
265
|
+
t ? t.includes("vimeo.com") || t.includes("youtube.com") || t.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: l.videoBackground, children: /* @__PURE__ */ e(
|
|
251
266
|
"iframe",
|
|
252
267
|
{
|
|
253
|
-
src:
|
|
254
|
-
|
|
268
|
+
src: t.includes("vimeo.com") ? `${t}?autoplay=1&muted=1&loop=1&background=1` : `${t}?autoplay=1&mute=1&loop=1&playlist=${x(
|
|
269
|
+
t
|
|
255
270
|
)}`,
|
|
256
|
-
className:
|
|
271
|
+
className: l.iframe,
|
|
257
272
|
allow: "autoplay; fullscreen",
|
|
258
273
|
allowFullScreen: !0
|
|
259
274
|
}
|
|
260
|
-
) }) : /* @__PURE__ */ c(
|
|
261
|
-
/* @__PURE__ */ e(
|
|
275
|
+
) }) : /* @__PURE__ */ c(C, { children: [
|
|
276
|
+
/* @__PURE__ */ e(k, {}),
|
|
262
277
|
/* @__PURE__ */ e(
|
|
263
278
|
"video",
|
|
264
279
|
{
|
|
265
|
-
ref:
|
|
266
|
-
className:
|
|
267
|
-
src:
|
|
268
|
-
autoPlay: !
|
|
280
|
+
ref: f,
|
|
281
|
+
className: l.videoBackground,
|
|
282
|
+
src: t,
|
|
283
|
+
autoPlay: !p,
|
|
269
284
|
loop: !0,
|
|
270
285
|
muted: !0,
|
|
271
286
|
playsInline: !0,
|
|
272
|
-
poster: (
|
|
287
|
+
poster: ((S = r == null ? void 0 : r.imageUrls) == null ? void 0 : S.large) || void 0
|
|
273
288
|
}
|
|
274
289
|
)
|
|
275
290
|
] }) : /* @__PURE__ */ e(
|
|
276
|
-
|
|
291
|
+
w,
|
|
277
292
|
{
|
|
278
|
-
src: (
|
|
279
|
-
alt: (
|
|
293
|
+
src: ((T = r == null ? void 0 : r.imageUrls) == null ? void 0 : T.large) ?? "",
|
|
294
|
+
alt: (r == null ? void 0 : r.asset.altText) || (r == null ? void 0 : r.asset.description) || "Card image",
|
|
280
295
|
fill: !0,
|
|
281
296
|
priority: !0,
|
|
282
297
|
style: { objectFit: "cover" },
|
|
@@ -284,61 +299,61 @@ function we({
|
|
|
284
299
|
sizes: "(min-width: 500px) 500px, 100vw"
|
|
285
300
|
}
|
|
286
301
|
),
|
|
287
|
-
/* @__PURE__ */ e("div", { className:
|
|
302
|
+
/* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */ c("div", { className: l.text, children: [
|
|
288
303
|
/* @__PURE__ */ c("div", { children: [
|
|
289
|
-
|
|
304
|
+
s.eyebrow && /* @__PURE__ */ e(
|
|
290
305
|
i,
|
|
291
306
|
{
|
|
292
|
-
className:
|
|
293
|
-
blocks:
|
|
307
|
+
className: l.eyebrow,
|
|
308
|
+
blocks: s.eyebrow
|
|
294
309
|
}
|
|
295
310
|
),
|
|
296
|
-
u && /* @__PURE__ */ c("div", { className:
|
|
311
|
+
u && /* @__PURE__ */ c("div", { className: l.articleDetails, children: [
|
|
297
312
|
h && /* @__PURE__ */ e(
|
|
298
313
|
$,
|
|
299
314
|
{
|
|
300
315
|
href: `/blog/search?categories=${encodeURIComponent(
|
|
301
316
|
h._id
|
|
302
317
|
)}`,
|
|
303
|
-
className:
|
|
318
|
+
className: l.articleType,
|
|
304
319
|
children: h.title
|
|
305
320
|
},
|
|
306
321
|
h._id
|
|
307
322
|
),
|
|
308
|
-
/* @__PURE__ */ c("div", { className:
|
|
309
|
-
|
|
323
|
+
/* @__PURE__ */ c("div", { className: l.articleCategories, children: [
|
|
324
|
+
_ && /* @__PURE__ */ e(
|
|
310
325
|
$,
|
|
311
326
|
{
|
|
312
327
|
href: `/blog/search?categories=${encodeURIComponent(
|
|
313
|
-
|
|
328
|
+
_._id
|
|
314
329
|
)}`,
|
|
315
|
-
className:
|
|
316
|
-
children:
|
|
330
|
+
className: l.category,
|
|
331
|
+
children: _.title
|
|
317
332
|
},
|
|
318
|
-
|
|
333
|
+
_._id
|
|
319
334
|
),
|
|
320
|
-
|
|
335
|
+
b && b.title.toLowerCase() !== "library" && !b.slug.current.includes(
|
|
321
336
|
"keywords"
|
|
322
337
|
) && /* @__PURE__ */ e(
|
|
323
338
|
$,
|
|
324
339
|
{
|
|
325
340
|
href: `/blog/search?categories=${encodeURIComponent(
|
|
326
|
-
|
|
341
|
+
b._id
|
|
327
342
|
)}`,
|
|
328
|
-
className:
|
|
329
|
-
children:
|
|
343
|
+
className: l.category,
|
|
344
|
+
children: b.title
|
|
330
345
|
},
|
|
331
|
-
|
|
346
|
+
b._id
|
|
332
347
|
)
|
|
333
348
|
] }),
|
|
334
|
-
u.timeToRead && /* @__PURE__ */ e(
|
|
335
|
-
/* @__PURE__ */ e("span", { className:
|
|
349
|
+
u.timeToRead && /* @__PURE__ */ e(C, { children: /* @__PURE__ */ c("span", { children: [
|
|
350
|
+
/* @__PURE__ */ e("span", { className: l.number, children: u.timeToRead }),
|
|
336
351
|
"min read"
|
|
337
352
|
] }) })
|
|
338
353
|
] }),
|
|
339
|
-
/* @__PURE__ */ e(i, { blocks:
|
|
354
|
+
/* @__PURE__ */ e(i, { blocks: s.title })
|
|
340
355
|
] }),
|
|
341
|
-
|
|
356
|
+
s.description && /* @__PURE__ */ e(i, { blocks: s.description }),
|
|
342
357
|
n && /* @__PURE__ */ e(
|
|
343
358
|
v,
|
|
344
359
|
{
|
|
@@ -351,5 +366,5 @@ function we({
|
|
|
351
366
|
}
|
|
352
367
|
}
|
|
353
368
|
export {
|
|
354
|
-
|
|
369
|
+
Ce as HeroBlock
|
|
355
370
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index21.css');const e=require("react/jsx-runtime"),h=require("react"),a=require("../../ui/PortableTextRenderer/index.cjs"),u=require("next/image"),g=require("../../../core/components/Avatar/index.cjs"),v=require("../../../core/components/Modal/index.cjs"),y=require("../../utils/resolveLinkUrl.cjs"),k=require("../../../play-CQBnZgNa.cjs"),B="_card_rxzrj_1",U="_imageBackgroundContainer_rxzrj_15",q="_modalTrigger_rxzrj_20",L="_callToAction_rxzrj_24",I="_cardIcon_rxzrj_33",$="_label_rxzrj_49",F="_video_rxzrj_58",P="_image_rxzrj_15",M="_fullBleed_rxzrj_76",O="_content_rxzrj_80",S="_overlay_rxzrj_86",E="_description_rxzrj_104",w="_title_rxzrj_137",D="_imageLeft_rxzrj_213",G="_container_rxzrj_224",H="_imageRight_rxzrj_273",J="_imageBottom_rxzrj_327",K="_personContainer_rxzrj_342",Q="_imageTop_rxzrj_350",s={card:B,imageBackgroundContainer:U,modalTrigger:q,callToAction:L,cardIcon:I,label:$,video:F,image:P,fullBleed:M,content:O,overlay:S,description:E,title:w,default:"_default_rxzrj_145",imageLeft:D,container:G,imageRight:H,imageBottom:J,personContainer:K,imageTop:Q};function V({eyebrow:n,title:i,description:x,person:d,image:t,callToAction:r,style:o,variant:b}){const[_,f]=h.useState(void 0);h.useEffect(()=>{async function c(){if((r==null?void 0:r.type)==="link"||(r==null?void 0:r.type)==="download"){const l=await y.resolveLinkURL(r);f(l)}}c()},[r]);const R={"full-bleed":s.fullBleed,"image-left":s.imageLeft,"image-right":s.imageRight,"image-top":s.imageTop,"image-bottom":s.imageBottom}[o||"text"],N=e.jsx("div",{className:s.content,children:(r==null?void 0:r.type)==="video"?e.jsxs(e.Fragment,{children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]}):e.jsxs(e.Fragment,{children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]})}),z=e.jsx(e.Fragment,{children:t&&t.imageUrl?e.jsxs("div",{className:s.image,children:[(r==null?void 0:r.videoUrl)&&e.jsx("div",{className:s.callToAction,children:e.jsx("div",{className:s.cardIcon,children:e.jsx(k.Play,{size:45})})}),e.jsx(u,{src:t.imageUrl,alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Card image",width:600,height:658,priority:!0,draggable:!1})]}):null}),j=()=>{switch(o){case"full-bleed":return e.jsxs("div",{className:s.imageBackgroundContainer,children:[(r==null?void 0:r.type)==="video"&&e.jsx("div",{className:s.cardIcon,children:e.jsx(k.Play,{size:45})}),e.jsx(u,{src:(t==null?void 0:t.imageUrl)??"",alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Card image",fill:!0,priority:!1,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:s.overlay,children:N})]});case"image-right":case"image-left":return e.jsxs("div",{className:s.container,children:[z,e.jsxs("div",{className:s.content,children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]})]});case"image-bottom":return e.jsx("div",{className:s.container,children:e.jsxs("div",{className:s.content,children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),e.jsxs("div",{className:s.personContainer,children:[e.jsx(g.Avatar,{src:(t==null?void 0:t.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index21.css');const e=require("react/jsx-runtime"),h=require("react"),a=require("../../ui/PortableTextRenderer/index.cjs"),u=require("next/image"),g=require("../../../core/components/Avatar/index.cjs"),v=require("../../../core/components/Modal/index.cjs"),y=require("../../utils/resolveLinkUrl.cjs"),k=require("../../../play-CQBnZgNa.cjs"),B="_card_rxzrj_1",U="_imageBackgroundContainer_rxzrj_15",q="_modalTrigger_rxzrj_20",L="_callToAction_rxzrj_24",I="_cardIcon_rxzrj_33",$="_label_rxzrj_49",F="_video_rxzrj_58",P="_image_rxzrj_15",M="_fullBleed_rxzrj_76",O="_content_rxzrj_80",S="_overlay_rxzrj_86",E="_description_rxzrj_104",w="_title_rxzrj_137",D="_imageLeft_rxzrj_213",G="_container_rxzrj_224",H="_imageRight_rxzrj_273",J="_imageBottom_rxzrj_327",K="_personContainer_rxzrj_342",Q="_imageTop_rxzrj_350",s={card:B,imageBackgroundContainer:U,modalTrigger:q,callToAction:L,cardIcon:I,label:$,video:F,image:P,fullBleed:M,content:O,overlay:S,description:E,title:w,default:"_default_rxzrj_145",imageLeft:D,container:G,imageRight:H,imageBottom:J,personContainer:K,imageTop:Q};function V({eyebrow:n,title:i,description:x,person:d,image:t,callToAction:r,style:o,variant:b}){const[_,f]=h.useState(void 0);h.useEffect(()=>{async function c(){if((r==null?void 0:r.type)==="link"||(r==null?void 0:r.type)==="download"){const l=await y.resolveLinkURL(r);f(l)}}c()},[r]);const R={"full-bleed":s.fullBleed,"image-left":s.imageLeft,"image-right":s.imageRight,"image-top":s.imageTop,"image-bottom":s.imageBottom}[o||"text"],N=e.jsx("div",{className:s.content,children:(r==null?void 0:r.type)==="video"?e.jsxs(e.Fragment,{children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]}):e.jsxs(e.Fragment,{children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]})}),z=e.jsx(e.Fragment,{children:t&&t.imageUrl?e.jsxs("div",{className:s.image,children:[(r==null?void 0:r.videoUrl)&&e.jsx("div",{className:s.callToAction,children:e.jsx("div",{className:s.cardIcon,children:e.jsx(k.Play,{size:45})})}),e.jsx(u,{src:t.imageUrl,alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Card image",width:600,height:658,priority:!0,draggable:!1})]}):null}),j=()=>{var c,l;switch(o){case"full-bleed":return e.jsxs("div",{className:s.imageBackgroundContainer,children:[(r==null?void 0:r.type)==="video"&&e.jsx("div",{className:s.cardIcon,children:e.jsx(k.Play,{size:45})}),e.jsx(u,{src:(t==null?void 0:t.imageUrl)??"",alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Card image",fill:!0,priority:!1,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:s.overlay,children:N})]});case"image-right":case"image-left":return e.jsxs("div",{className:s.container,children:[z,e.jsxs("div",{className:s.content,children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]})]});case"image-bottom":return e.jsx("div",{className:s.container,children:e.jsxs("div",{className:s.content,children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),e.jsxs("div",{className:s.personContainer,children:[e.jsx(g.Avatar,{src:((c=t==null?void 0:t.imageUrls)==null?void 0:c.small)??"",size:"lg"}),d&&e.jsx(a.RichText,{blocks:d})]})]})});case"image-top":return e.jsxs("div",{className:s.container,children:[e.jsx(g.Avatar,{src:((l=t==null?void 0:t.imageUrls)==null?void 0:l.small)??"",size:"xl"}),e.jsxs("div",{className:s.content,children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]})]})}},p=(r==null?void 0:r.type)==="video"?s.video:s.default,C=({children:c})=>{var l,m;switch(r==null?void 0:r.type){case"link":return e.jsx("a",{"aria-label":r.ariaLabel||r.label,href:_,target:((l=r.linkOptions)==null?void 0:l.linkType)==="external"?"_blank":"_self",rel:((m=r.linkOptions)==null?void 0:m.linkType)==="external"?"noopener noreferrer":"",children:c});case"modal":return e.jsx(v.Modal,{className:s.modalTrigger,trigger:c,content:r.modalContent});case"video":return e.jsx(v.Modal,{className:s.modalTrigger,trigger:c,content:e.jsx("video",{src:r.videoUrl,controls:!0,autoPlay:!0})});case"download":return e.jsx("a",{"aria-label":r.ariaLabel||r.label,href:_,download:!0,target:"_blank",rel:"noopener noreferrer",children:c})}};return e.jsx("article",{className:`${s.card} ${R??""} ${s[b]} ${p}`,children:(r==null?void 0:r.type)!=="none"?e.jsx(C,{children:j()}):e.jsx(e.Fragment,{children:j()})})}exports.TestimonialCard=V;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useState as U, useEffect as L } from "react";
|
|
3
|
-
import { RichText as
|
|
3
|
+
import { RichText as t } from "../../ui/PortableTextRenderer/index.mjs";
|
|
4
4
|
import u from "next/image";
|
|
5
5
|
import { Avatar as x } from "../../../core/components/Avatar/index.mjs";
|
|
6
6
|
import { Modal as h } from "../../../core/components/Modal/index.mjs";
|
|
@@ -28,12 +28,12 @@ import '../../../assets/index21.css';const R = "_card_rxzrj_1", $ = "_imageBackg
|
|
|
28
28
|
personContainer: W,
|
|
29
29
|
imageTop: X
|
|
30
30
|
};
|
|
31
|
-
function
|
|
31
|
+
function te({
|
|
32
32
|
eyebrow: n,
|
|
33
33
|
title: d,
|
|
34
34
|
description: l,
|
|
35
35
|
person: i,
|
|
36
|
-
image:
|
|
36
|
+
image: a,
|
|
37
37
|
//icon,
|
|
38
38
|
callToAction: s,
|
|
39
39
|
// onHover,
|
|
@@ -43,13 +43,13 @@ function ae({
|
|
|
43
43
|
}) {
|
|
44
44
|
const [g, N] = U(void 0);
|
|
45
45
|
L(() => {
|
|
46
|
-
async function
|
|
46
|
+
async function m() {
|
|
47
47
|
if ((s == null ? void 0 : s.type) === "link" || (s == null ? void 0 : s.type) === "download") {
|
|
48
|
-
const
|
|
49
|
-
N(
|
|
48
|
+
const c = await I(s);
|
|
49
|
+
N(c);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
m();
|
|
53
53
|
}, [s]);
|
|
54
54
|
const z = {
|
|
55
55
|
"full-bleed": r.fullBleed,
|
|
@@ -59,22 +59,22 @@ function ae({
|
|
|
59
59
|
"image-top": r.imageTop,
|
|
60
60
|
"image-bottom": r.imageBottom
|
|
61
61
|
}[f || "text"], j = /* @__PURE__ */ e("div", { className: r.content, children: (s == null ? void 0 : s.type) === "video" ? /* @__PURE__ */ o(_, { children: [
|
|
62
|
-
n && /* @__PURE__ */ e(
|
|
63
|
-
d && /* @__PURE__ */ e(
|
|
64
|
-
l && /* @__PURE__ */ e(
|
|
65
|
-
i && /* @__PURE__ */ e(
|
|
62
|
+
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
63
|
+
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
64
|
+
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
65
|
+
i && /* @__PURE__ */ e(t, { blocks: i })
|
|
66
66
|
] }) : /* @__PURE__ */ o(_, { children: [
|
|
67
|
-
n && /* @__PURE__ */ e(
|
|
68
|
-
d && /* @__PURE__ */ e(
|
|
69
|
-
l && /* @__PURE__ */ e(
|
|
70
|
-
i && /* @__PURE__ */ e(
|
|
71
|
-
] }) }), C = /* @__PURE__ */ e(_, { children:
|
|
67
|
+
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
68
|
+
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
69
|
+
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
70
|
+
i && /* @__PURE__ */ e(t, { blocks: i })
|
|
71
|
+
] }) }), C = /* @__PURE__ */ e(_, { children: a && a.imageUrl ? /* @__PURE__ */ o("div", { className: r.image, children: [
|
|
72
72
|
(s == null ? void 0 : s.videoUrl) && /* @__PURE__ */ e("div", { className: r.callToAction, children: /* @__PURE__ */ e("div", { className: r.cardIcon, children: /* @__PURE__ */ e(b, { size: 45 }) }) }),
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
74
|
u,
|
|
75
75
|
{
|
|
76
|
-
src:
|
|
77
|
-
alt: (
|
|
76
|
+
src: a.imageUrl,
|
|
77
|
+
alt: (a == null ? void 0 : a.asset.altText) || (a == null ? void 0 : a.asset.description) || "Card image",
|
|
78
78
|
width: 600,
|
|
79
79
|
height: 658,
|
|
80
80
|
priority: !0,
|
|
@@ -82,6 +82,7 @@ function ae({
|
|
|
82
82
|
}
|
|
83
83
|
)
|
|
84
84
|
] }) : null }), v = () => {
|
|
85
|
+
var m, c;
|
|
85
86
|
switch (f) {
|
|
86
87
|
case "full-bleed":
|
|
87
88
|
return /* @__PURE__ */ o("div", { className: r.imageBackgroundContainer, children: [
|
|
@@ -89,8 +90,8 @@ function ae({
|
|
|
89
90
|
/* @__PURE__ */ e(
|
|
90
91
|
u,
|
|
91
92
|
{
|
|
92
|
-
src: (
|
|
93
|
-
alt: (
|
|
93
|
+
src: (a == null ? void 0 : a.imageUrl) ?? "",
|
|
94
|
+
alt: (a == null ? void 0 : a.asset.altText) || (a == null ? void 0 : a.asset.description) || "Card image",
|
|
94
95
|
fill: !0,
|
|
95
96
|
priority: !1,
|
|
96
97
|
style: { objectFit: "cover" },
|
|
@@ -105,35 +106,35 @@ function ae({
|
|
|
105
106
|
return /* @__PURE__ */ o("div", { className: r.container, children: [
|
|
106
107
|
C,
|
|
107
108
|
/* @__PURE__ */ o("div", { className: r.content, children: [
|
|
108
|
-
n && /* @__PURE__ */ e(
|
|
109
|
-
d && /* @__PURE__ */ e(
|
|
110
|
-
l && /* @__PURE__ */ e(
|
|
111
|
-
i && /* @__PURE__ */ e(
|
|
109
|
+
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
110
|
+
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
111
|
+
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
112
|
+
i && /* @__PURE__ */ e(t, { blocks: i })
|
|
112
113
|
] })
|
|
113
114
|
] });
|
|
114
115
|
case "image-bottom":
|
|
115
116
|
return /* @__PURE__ */ e("div", { className: r.container, children: /* @__PURE__ */ o("div", { className: r.content, children: [
|
|
116
|
-
n && /* @__PURE__ */ e(
|
|
117
|
-
d && /* @__PURE__ */ e(
|
|
118
|
-
l && /* @__PURE__ */ e(
|
|
117
|
+
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
118
|
+
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
119
|
+
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
119
120
|
/* @__PURE__ */ o("div", { className: r.personContainer, children: [
|
|
120
|
-
/* @__PURE__ */ e(x, { src: (
|
|
121
|
-
i && /* @__PURE__ */ e(
|
|
121
|
+
/* @__PURE__ */ e(x, { src: ((m = a == null ? void 0 : a.imageUrls) == null ? void 0 : m.small) ?? "", size: "lg" }),
|
|
122
|
+
i && /* @__PURE__ */ e(t, { blocks: i })
|
|
122
123
|
] })
|
|
123
124
|
] }) });
|
|
124
125
|
case "image-top":
|
|
125
126
|
return /* @__PURE__ */ o("div", { className: r.container, children: [
|
|
126
|
-
/* @__PURE__ */ e(x, { src: (
|
|
127
|
+
/* @__PURE__ */ e(x, { src: ((c = a == null ? void 0 : a.imageUrls) == null ? void 0 : c.small) ?? "", size: "xl" }),
|
|
127
128
|
/* @__PURE__ */ o("div", { className: r.content, children: [
|
|
128
|
-
n && /* @__PURE__ */ e(
|
|
129
|
-
d && /* @__PURE__ */ e(
|
|
130
|
-
l && /* @__PURE__ */ e(
|
|
131
|
-
i && /* @__PURE__ */ e(
|
|
129
|
+
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
130
|
+
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
131
|
+
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
132
|
+
i && /* @__PURE__ */ e(t, { blocks: i })
|
|
132
133
|
] })
|
|
133
134
|
] });
|
|
134
135
|
}
|
|
135
|
-
}, B = (s == null ? void 0 : s.type) === "video" ? r.video : r.default, y = ({ children:
|
|
136
|
-
var
|
|
136
|
+
}, B = (s == null ? void 0 : s.type) === "video" ? r.video : r.default, y = ({ children: m }) => {
|
|
137
|
+
var c, k;
|
|
137
138
|
switch (s == null ? void 0 : s.type) {
|
|
138
139
|
case "link":
|
|
139
140
|
return /* @__PURE__ */ e(
|
|
@@ -141,9 +142,9 @@ function ae({
|
|
|
141
142
|
{
|
|
142
143
|
"aria-label": s.ariaLabel || s.label,
|
|
143
144
|
href: g,
|
|
144
|
-
target: ((
|
|
145
|
+
target: ((c = s.linkOptions) == null ? void 0 : c.linkType) === "external" ? "_blank" : "_self",
|
|
145
146
|
rel: ((k = s.linkOptions) == null ? void 0 : k.linkType) === "external" ? "noopener noreferrer" : "",
|
|
146
|
-
children:
|
|
147
|
+
children: m
|
|
147
148
|
}
|
|
148
149
|
);
|
|
149
150
|
case "modal":
|
|
@@ -151,7 +152,7 @@ function ae({
|
|
|
151
152
|
h,
|
|
152
153
|
{
|
|
153
154
|
className: r.modalTrigger,
|
|
154
|
-
trigger:
|
|
155
|
+
trigger: m,
|
|
155
156
|
content: s.modalContent
|
|
156
157
|
}
|
|
157
158
|
);
|
|
@@ -160,7 +161,7 @@ function ae({
|
|
|
160
161
|
h,
|
|
161
162
|
{
|
|
162
163
|
className: r.modalTrigger,
|
|
163
|
-
trigger:
|
|
164
|
+
trigger: m,
|
|
164
165
|
content: /* @__PURE__ */ e("video", { src: s.videoUrl, controls: !0, autoPlay: !0 })
|
|
165
166
|
}
|
|
166
167
|
);
|
|
@@ -173,7 +174,7 @@ function ae({
|
|
|
173
174
|
download: !0,
|
|
174
175
|
target: "_blank",
|
|
175
176
|
rel: "noopener noreferrer",
|
|
176
|
-
children:
|
|
177
|
+
children: m
|
|
177
178
|
}
|
|
178
179
|
);
|
|
179
180
|
}
|
|
@@ -187,5 +188,5 @@ function ae({
|
|
|
187
188
|
);
|
|
188
189
|
}
|
|
189
190
|
export {
|
|
190
|
-
|
|
191
|
+
te as TestimonialCard
|
|
191
192
|
};
|