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.
@@ -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"),j=require("../../ui/CallToActions/index.cjs"),I=require("next/image"),V=require("../../hooks/useStyleClasses.cjs"),W="_content_ivubr_1",y="_container_ivubr_7",N="_metrics_ivubr_34",g="_metric_ivubr_34",H="_metricValue_ivubr_50",$="_disclaimer_ivubr_71",B="_layoutHImageRight_ivubr_76",C="_heading_ivubr_80",k="_image_ivubr_85",w="_noImage_ivubr_95",R="_layoutHImageLeft_ivubr_99",z="_layoutVImageTop_ivubr_118",T="_layoutVImageBottom_ivubr_131",q="_title_ivubr_151",L="_text_ivubr_156",S="_cta_ivubr_170",D="_headingHorizontal_ivubr_178",U="_titleWrapper_ivubr_187",P="_headingVertical_ivubr_208",F="_videoWrapper_ivubr_229",M="_maxWidth_ivubr_257",Y="_fullBleed_ivubr_267",e={content:W,container:y,metrics:N,metric:g,metricValue:H,disclaimer:$,layoutHImageRight:B,heading:C,image:k,noImage:w,layoutHImageLeft:R,layoutVImageTop:z,layoutVImageBottom:T,title:q,text:L,cta:S,headingHorizontal:D,titleWrapper:U,headingVertical:P,videoWrapper:F,default:"_default_ivubr_249",maxWidth:M,fullBleed:Y};function E({layout:i,heading:r,image:t,video:o,metrics:u,callToAction:c,disclaimer:_,styleOptions:a}){const m=V.useStyleClasses(a),d={"--container-max-width":(a==null?void 0:a.maxWidth)??"unset","--gap":i==null?void 0:i.gap},x={"--max-width":(t==null?void 0:t.display)==="max-width"?t==null?void 0:t.maxWidth:"unset"},h={"no-image":e.noImage,"horizontal-image-right":e.layoutHImageRight,"horizontal-image-left":e.layoutHImageLeft,"vertical-image-top":e.layoutVImageTop,"vertical-image-bottom":e.layoutVImageBottom}[(i==null?void 0:i.orientation)??"horizontal-image-right"],v={horizontal:e.headingHorizontal,vertical:e.headingVertical}[r.headingLayout??"horizontal"],b={default:e.default,"max-width":e.maxWidth,"full-bleed":e.fullBleed}[(t==null?void 0:t.display)??"default"],p=()=>{if(!o)return null;const n=o.includes("vimeo.com"),f=o.includes("youtube.com")||o.includes("youtu.be");return n||f?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:`${m} ${e.content}`,children:s.jsxs("article",{className:`${e.container} ${h}`,style:d||{},children:[s.jsxs("div",{className:`${e.heading} ${v}`,children:[s.jsxs("div",{className:e.titleWrapper,children:[r.eyebrow&&s.jsx(l.RichText,{blocks:r.eyebrow}),r.title&&s.jsx(l.RichText,{className:e.title,blocks:r.title})]}),((r==null?void 0:r.description)||(c==null?void 0:c.items))&&s.jsxs("div",{className:e.text,children:[r.description&&s.jsx(l.RichText,{blocks:r.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(j.CallToActions,{className:e.cta,items:c.items,alignment:c.alignment}),_&&s.jsx(l.RichText,{className:e.disclaimer,blocks:_})]})]}),(i==null?void 0:i.orientation)!=="no-image"&&o?p():(i==null?void 0:i.orientation)!=="no-image"&&t&&t.imageUrl&&s.jsx("div",{className:`${e.image} ${b}`,style:x,children:s.jsx(I,{src:t.imageUrl,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=E;
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 V } from "../../ui/CallToActions/index.mjs";
4
- import W from "next/image";
5
- import { useStyleClasses as N } from "../../hooks/useStyleClasses.mjs";
6
- import '../../../assets/index14.css';const y = "_content_ivubr_1", H = "_container_ivubr_7", g = "_metrics_ivubr_34", w = "_metric_ivubr_34", B = "_metricValue_ivubr_50", $ = "_disclaimer_ivubr_71", z = "_layoutHImageRight_ivubr_76", k = "_heading_ivubr_80", C = "_image_ivubr_85", L = "_noImage_ivubr_95", R = "_layoutHImageLeft_ivubr_99", D = "_layoutVImageTop_ivubr_118", U = "_layoutVImageBottom_ivubr_131", j = "_title_ivubr_151", S = "_text_ivubr_156", F = "_cta_ivubr_170", T = "_headingHorizontal_ivubr_178", Y = "_titleWrapper_ivubr_187", q = "_headingVertical_ivubr_208", E = "_videoWrapper_ivubr_229", G = "_maxWidth_ivubr_257", J = "_fullBleed_ivubr_267", e = {
7
- content: y,
8
- container: H,
9
- metrics: g,
10
- metric: w,
11
- metricValue: B,
12
- disclaimer: $,
13
- layoutHImageRight: z,
14
- heading: k,
15
- image: C,
16
- noImage: L,
17
- layoutHImageLeft: R,
18
- layoutVImageTop: D,
19
- layoutVImageBottom: U,
20
- title: j,
21
- text: S,
22
- cta: F,
23
- headingHorizontal: T,
24
- titleWrapper: Y,
25
- headingVertical: q,
26
- videoWrapper: E,
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: G,
29
- fullBleed: J
28
+ maxWidth: J,
29
+ fullBleed: K
30
30
  };
31
- function Z({
31
+ function O({
32
32
  layout: i,
33
33
  heading: o,
34
34
  image: t,
35
35
  video: s,
36
- metrics: m,
37
- callToAction: l,
38
- disclaimer: u,
36
+ metrics: u,
37
+ callToAction: a,
38
+ disclaimer: d,
39
39
  styleOptions: _
40
40
  }) {
41
- const h = N(_), d = {
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"], b = {
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"], f = {
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"], x = () => {
60
+ }[(t == null ? void 0 : t.display) ?? "default"], I = () => {
60
61
  if (!s) return null;
61
- const a = s.includes("vimeo.com"), I = s.includes("youtube.com") || s.includes("youtu.be");
62
- return a || I ? /* @__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(
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: a ? `${s}?autoplay=0&muted=0&loop=0` : `${s}?autoplay=0&mute=0&loop=0}`,
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: `${h} ${e.content}`, children: /* @__PURE__ */ n(
82
+ return /* @__PURE__ */ r("section", { className: `${p} ${e.content}`, children: /* @__PURE__ */ n(
82
83
  "article",
83
84
  {
84
- className: `${e.container} ${v}`,
85
- style: d || {},
85
+ className: `${e.container} ${b}`,
86
+ style: m || {},
86
87
  children: [
87
- /* @__PURE__ */ n("div", { className: `${e.heading} ${b}`, children: [
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) || (l == null ? void 0 : l.items)) && /* @__PURE__ */ n("div", { className: e.text, children: [
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
- m && /* @__PURE__ */ r("div", { className: e.metrics, children: m.map((a) => /* @__PURE__ */ n("div", { className: e.metric, children: [
95
- /* @__PURE__ */ r("div", { className: e.metricValue, children: a.metricValue }),
96
- a.metricDescription && /* @__PURE__ */ r(c, { blocks: a.metricDescription })
97
- ] }, a._key)) }),
98
- l && /* @__PURE__ */ r(
99
- V,
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: l.items,
103
- alignment: l.alignment
103
+ items: a.items,
104
+ alignment: a.alignment
104
105
  }
105
106
  ),
106
- u && /* @__PURE__ */ r(c, { className: e.disclaimer, blocks: u })
107
+ d && /* @__PURE__ */ r(c, { className: e.disclaimer, blocks: d })
107
108
  ] })
108
109
  ] }),
109
- (i == null ? void 0 : i.orientation) !== "no-image" && s ? x() : (i == null ? void 0 : i.orientation) !== "no-image" && t && t.imageUrl && /* @__PURE__ */ r(
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} ${f}`,
113
- style: p,
113
+ className: `${e.image} ${x}`,
114
+ style: v,
114
115
  children: /* @__PURE__ */ r(
115
- W,
116
+ N,
116
117
  {
117
- src: t.imageUrl,
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
- Z as ContentBlock
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"),b=require("react"),U=require("./HeroContext.cjs"),c=require("../../ui/PortableTextRenderer/index.cjs"),p=require("../../ui/CallToActions/index.cjs"),k=require("next/image"),N=require("../../ui/LocaleLink/index.cjs"),H=require("../../hooks/usePrefersReducedMotion.cjs"),S=require("../../../createLucideIcon-DpotSgUx.cjs"),W=require("../../../play-CQBnZgNa.cjs");/**
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 z=[["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"}]],E=S.createLucideIcon("pause",z),M="_hero_vho5i_1",V="_container_vho5i_7",Y="_eyebrow_vho5i_24",g="_disclaimer_vho5i_28",G="_text_vho5i_33",J="_articleDetails_vho5i_40",K="_articleType_vho5i_53",Q="_articleCategories_vho5i_67",X="_category_vho5i_73",Z="_number_vho5i_89",A="_blog_vho5i_116",D="_overlay_vho5i_140",O="_fullBleed_vho5i_210",ee="_split_vho5i_304",se="_image_vho5i_309",te="_videoControl_vho5i_332",re="_videoWrapper_vho5i_353",le="_videoBackground_vho5i_373",oe="_iframe_vho5i_374",s={hero:M,container:V,eyebrow:Y,disclaimer:g,text:G,articleDetails:J,articleType:K,articleCategories:Q,category:X,number:Z,default:"_default_vho5i_112",blog:A,overlay:D,fullBleed:O,split:ee,image:se,videoControl:te,videoWrapper:re,videoBackground:le,iframe:oe};function ce({heading:l,image:t,video:r,callToAction:i,pageData:a,styleOptions:u}){var L,P,q;const d=H.usePrefersReducedMotion(),[C,R]=b.useState(!d),{setIsFullbleedHeroAtTop:$}=U.useHeroContext(),_=b.useRef(null),h=(u==null?void 0:u.layout)??"default",F=((L=u==null?void 0:u.padding)==null?void 0:L.join(" "))??"",f={default:s.default,split:s.split,"full-bleed":s.fullBleed,blog:s.blog}[h],T=((P=a==null?void 0:a.categories)==null?void 0:P.filter(o=>{var n,y;return!((y=(n=o.slug)==null?void 0:n.current)!=null&&y.startsWith("library/type"))}))??[],m=T[0]??null,x=T[1]??null,j=((q=a==null?void 0:a.categories)==null?void 0:q.find(o=>{var n,y;return(y=(n=o.slug)==null?void 0:n.current)==null?void 0:y.startsWith("library/type")}))??null;b.useEffect(()=>{const o=()=>{$(window.scrollY===0)};if(h==="full-bleed"&&typeof window<"u")return $(!0),window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[h]),b.useEffect(()=>{const o=_.current;o&&(d?o.pause():o.play())},[d]);const v=()=>e.jsx("button",{title:`${C?"Pause the video":"Play the video"}`,className:s.videoControl,onClick:()=>{const o=_.current;o&&(o.paused?(o.play().catch(()=>{}),R(!0)):(o.pause(),R(!1)))},children:C?e.jsx(E,{size:18}):e.jsx(W.Play,{size:18})}),B=()=>{if(!r)return null;const o=r.includes("vimeo.com"),n=r.includes("youtube.com")||r.includes("youtu.be");return o||n?e.jsx("div",{className:s.videoWrapper,children:e.jsx("iframe",{src:o?`${r}?autoplay=1&muted=1&loop=1&background=1`:`${r}?autoplay=1&mute=1&loop=1&playlist=${w(r)}`,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs("div",{className:s.videoWrapper,children:[e.jsx(v,{}),e.jsx("video",{ref:_,src:r,autoPlay:!d,loop:!0,muted:!0,playsInline:!0,poster:(t==null?void 0:t.imageUrl)||void 0,preload:"metadata"})]})};function w(o){const n=o.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);return(n==null?void 0:n[1])||""}const I=()=>t&&t.imageUrl?e.jsx("div",{className:s.image,children:e.jsx(k,{src:t.imageUrl,alt:t.asset.altText||t.asset.description||"Hero image",width:600,height:658,priority:!0})}):null;switch(h){case"split":return e.jsx("section",{className:`${s.hero} ${s.split}`,children:e.jsxs("article",{className:`${F} ${s.container}`,children:[e.jsxs("div",{className:s.text,children:[e.jsxs("div",{children:[l.eyebrow&&e.jsx(c.RichText,{className:s.eyebrow,blocks:l.eyebrow}),e.jsx(c.RichText,{blocks:l.title})]}),l.description&&e.jsx(c.RichText,{blocks:l.description}),i&&e.jsx(p.CallToActions,{items:i.items,alignment:i.alignment}),l.disclaimer&&e.jsx(c.RichText,{className:s.disclaimer,blocks:l.disclaimer})]}),r?e.jsx(B,{}):e.jsx(I,{})]})});case"default":return e.jsx("section",{className:`${s.hero} ${f}`,children:e.jsxs("article",{className:s.container,children:[r?e.jsx(B,{}):e.jsx(I,{}),e.jsxs("div",{className:s.text,children:[e.jsxs("div",{children:[l.eyebrow&&e.jsx(c.RichText,{className:s.eyebrow,blocks:l.eyebrow}),e.jsx(c.RichText,{blocks:l.title})]}),l.description&&e.jsx(c.RichText,{blocks:l.description}),i&&e.jsx(p.CallToActions,{items:i.items,alignment:i.alignment})]})]})});case"full-bleed":return e.jsx("section",{className:`${s.hero} ${f} heroFullBleed`,children:e.jsxs("article",{className:s.container,children:[r?r.includes("vimeo.com")||r.includes("youtube.com")||r.includes("youtu.be")?e.jsx("div",{className:s.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=${w(r)}`,className:s.iframe,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(v,{}),e.jsx("video",{ref:_,className:s.videoBackground,src:r,autoPlay:!d,loop:!0,muted:!0,playsInline:!0,poster:(t==null?void 0:t.imageUrl)||void 0})]}):e.jsx(k,{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:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:s.overlay,children:e.jsxs("div",{className:s.text,children:[e.jsxs("div",{children:[l.eyebrow&&e.jsx(c.RichText,{className:s.eyebrow,blocks:l.eyebrow}),e.jsx(c.RichText,{blocks:l.title})]}),l.description&&e.jsx(c.RichText,{blocks:l.description}),i&&e.jsx(p.CallToActions,{items:i.items,alignment:i.alignment})]})})]})});case"blog":return e.jsx("section",{className:`${s.hero} ${f}`,children:e.jsxs("article",{className:s.container,children:[r?r.includes("vimeo.com")||r.includes("youtube.com")||r.includes("youtu.be")?e.jsx("div",{className:s.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=${w(r)}`,className:s.iframe,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(v,{}),e.jsx("video",{ref:_,className:s.videoBackground,src:r,autoPlay:!d,loop:!0,muted:!0,playsInline:!0,poster:(t==null?void 0:t.imageUrl)||void 0})]}):e.jsx(k,{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:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:s.overlay,children:e.jsxs("div",{className:s.text,children:[e.jsxs("div",{children:[l.eyebrow&&e.jsx(c.RichText,{className:s.eyebrow,blocks:l.eyebrow}),a&&e.jsxs("div",{className:s.articleDetails,children:[j&&e.jsx(N.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(j._id)}`,className:s.articleType,children:j.title},j._id),e.jsxs("div",{className:s.articleCategories,children:[m&&e.jsx(N.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(m._id)}`,className:s.category,children:m.title},m._id),x&&x.title.toLowerCase()!=="library"&&!x.slug.current.includes("keywords")&&e.jsx(N.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(x._id)}`,className:s.category,children:x.title},x._id)]}),a.timeToRead&&e.jsx(e.Fragment,{children:e.jsxs("span",{children:[e.jsx("span",{className:s.number,children:a.timeToRead}),"min read"]})})]}),e.jsx(c.RichText,{blocks:l.title})]}),l.description&&e.jsx(c.RichText,{blocks:l.description}),i&&e.jsx(p.CallToActions,{items:i.items,alignment:i.alignment})]})})]})})}}exports.HeroBlock=ce;
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 x } from "react/jsx-runtime";
2
- import { useState as H, useRef as T, useEffect as j } from "react";
3
- import { useHeroContext as V } from "./HeroContext.mjs";
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 C from "next/image";
6
+ import w from "next/image";
7
7
  import { LocaleLink as $ } from "../../ui/LocaleLink/index.mjs";
8
- import { usePrefersReducedMotion as E } from "../../hooks/usePrefersReducedMotion.mjs";
9
- import { c as Y } from "../../../createLucideIcon-C8GTh_Qx.js";
10
- import { P as M } from "../../../play-DYgKiSaf.js";
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 q = [
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
- ], G = Y("pause", q), J = "_hero_vho5i_1", K = "_container_vho5i_7", Q = "_eyebrow_vho5i_24", X = "_disclaimer_vho5i_28", Z = "_text_vho5i_33", g = "_articleDetails_vho5i_40", D = "_articleType_vho5i_53", A = "_articleCategories_vho5i_67", O = "_category_vho5i_73", ee = "_number_vho5i_89", re = "_blog_vho5i_116", le = "_overlay_vho5i_140", oe = "_fullBleed_vho5i_210", te = "_split_vho5i_304", se = "_image_vho5i_309", ce = "_videoControl_vho5i_332", ie = "_videoWrapper_vho5i_353", ne = "_videoBackground_vho5i_373", ae = "_iframe_vho5i_374", r = {
21
- hero: J,
22
- container: K,
23
- eyebrow: Q,
24
- disclaimer: X,
25
- text: Z,
26
- articleDetails: g,
27
- articleType: D,
28
- articleCategories: A,
29
- category: O,
30
- number: ee,
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: re,
33
- overlay: le,
34
- fullBleed: oe,
35
- split: te,
36
- image: se,
37
- videoControl: ce,
38
- videoWrapper: ie,
39
- videoBackground: ne,
40
- iframe: ae
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 we({
43
- heading: t,
44
- image: l,
45
- video: o,
42
+ function Ce({
43
+ heading: s,
44
+ image: r,
45
+ video: t,
46
46
  callToAction: n,
47
47
  pageData: u,
48
- styleOptions: d
48
+ styleOptions: m
49
49
  }) {
50
- var W, z, L;
51
- const m = E(), [B, I] = H(!m), { setIsFullbleedHeroAtTop: P } = V(), p = T(null), b = (d == null ? void 0 : d.layout) ?? "default", S = ((W = d == null ? void 0 : d.padding) == null ? void 0 : W.join(" ")) ?? "", w = {
52
- default: r.default,
53
- split: r.split,
54
- "full-bleed": r.fullBleed,
55
- blog: r.blog
56
- }[b], R = ((z = u == null ? void 0 : u.categories) == null ? void 0 : z.filter(
57
- (s) => {
58
- var a, _;
59
- return !((_ = (a = s.slug) == null ? void 0 : a.current) != null && _.startsWith("library/type"));
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
- )) ?? [], f = R[0] ?? null, y = R[1] ?? null, h = ((L = u == null ? void 0 : u.categories) == null ? void 0 : L.find(
62
- (s) => {
63
- var a, _;
64
- return (_ = (a = s.slug) == null ? void 0 : a.current) == null ? void 0 : _.startsWith("library/type");
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
- j(() => {
68
- const s = () => {
67
+ V(() => {
68
+ const o = () => {
69
69
  P(window.scrollY === 0);
70
70
  };
71
- if (b === "full-bleed" && typeof window < "u")
72
- return P(!0), window.addEventListener("scroll", s), () => window.removeEventListener("scroll", s);
73
- }, [b]), j(() => {
74
- const s = p.current;
75
- s && (m ? s.pause() : s.play());
76
- }, [m]);
77
- const N = () => /* @__PURE__ */ e(
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: r.videoControl,
81
+ className: l.videoControl,
82
82
  onClick: () => {
83
- const s = p.current;
84
- s && (s.paused ? (s.play().catch(() => {
85
- }), I(!0)) : (s.pause(), I(!1)));
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(G, { size: 18 }) : /* @__PURE__ */ e(M, { size: 18 })
87
+ children: B ? /* @__PURE__ */ e(X, { size: 18 }) : /* @__PURE__ */ e(K, { size: 18 })
88
88
  }
89
- ), U = () => {
90
- if (!o) return null;
91
- const s = o.includes("vimeo.com"), a = o.includes("youtube.com") || o.includes("youtu.be");
92
- return s || a ? /* @__PURE__ */ e("div", { className: r.videoWrapper, children: /* @__PURE__ */ e(
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: s ? `${o}?autoplay=1&muted=1&loop=1&background=1` : `${o}?autoplay=1&mute=1&loop=1&playlist=${k(
96
- o
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: r.videoWrapper, children: [
102
- /* @__PURE__ */ e(N, {}),
102
+ ) }) : /* @__PURE__ */ c("div", { className: l.videoWrapper, children: [
103
+ /* @__PURE__ */ e(k, {}),
103
104
  /* @__PURE__ */ e(
104
105
  "video",
105
106
  {
106
- ref: p,
107
- src: o,
108
- autoPlay: !m,
107
+ ref: f,
108
+ src: t,
109
+ autoPlay: !p,
109
110
  loop: !0,
110
111
  muted: !0,
111
112
  playsInline: !0,
112
- poster: (l == null ? void 0 : l.imageUrl) || void 0,
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 k(s) {
119
- const a = s.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);
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 = () => l && l.imageUrl ? /* @__PURE__ */ e("div", { className: r.image, children: /* @__PURE__ */ e(
123
- C,
124
- {
125
- src: l.imageUrl,
126
- alt: l.asset.altText || l.asset.description || "Hero image",
127
- width: 600,
128
- height: 658,
129
- priority: !0
130
- }
131
- ) }) : null;
132
- switch (b) {
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: `${r.hero} ${r.split}`, children: /* @__PURE__ */ c("article", { className: `${S} ${r.container}`, children: [
135
- /* @__PURE__ */ c("div", { className: r.text, children: [
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
- t.eyebrow && /* @__PURE__ */ e(
152
+ s.eyebrow && /* @__PURE__ */ e(
138
153
  i,
139
154
  {
140
- className: r.eyebrow,
141
- blocks: t.eyebrow
155
+ className: l.eyebrow,
156
+ blocks: s.eyebrow
142
157
  }
143
158
  ),
144
- /* @__PURE__ */ e(i, { blocks: t.title })
159
+ /* @__PURE__ */ e(i, { blocks: s.title })
145
160
  ] }),
146
- t.description && /* @__PURE__ */ e(i, { blocks: t.description }),
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
- t.disclaimer && /* @__PURE__ */ e(
169
+ s.disclaimer && /* @__PURE__ */ e(
155
170
  i,
156
171
  {
157
- className: r.disclaimer,
158
- blocks: t.disclaimer
172
+ className: l.disclaimer,
173
+ blocks: s.disclaimer
159
174
  }
160
175
  )
161
176
  ] }),
162
- o ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ e(F, {})
177
+ t ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(F, {})
163
178
  ] }) });
164
179
  case "default":
165
- return /* @__PURE__ */ e("section", { className: `${r.hero} ${w}`, children: /* @__PURE__ */ c("article", { className: r.container, children: [
166
- o ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ e(F, {}),
167
- /* @__PURE__ */ c("div", { className: r.text, children: [
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
- t.eyebrow && /* @__PURE__ */ e(
184
+ s.eyebrow && /* @__PURE__ */ e(
170
185
  i,
171
186
  {
172
- className: r.eyebrow,
173
- blocks: t.eyebrow
187
+ className: l.eyebrow,
188
+ blocks: s.eyebrow
174
189
  }
175
190
  ),
176
- /* @__PURE__ */ e(i, { blocks: t.title })
191
+ /* @__PURE__ */ e(i, { blocks: s.title })
177
192
  ] }),
178
- t.description && /* @__PURE__ */ e(i, { blocks: t.description }),
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: `${r.hero} ${w} heroFullBleed`, children: /* @__PURE__ */ c("article", { className: r.container, children: [
190
- o ? o.includes("vimeo.com") || o.includes("youtube.com") || o.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: r.videoBackground, children: /* @__PURE__ */ e(
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: o.includes("vimeo.com") ? `${o}?autoplay=1&muted=1&loop=1&background=1` : `${o}?autoplay=1&mute=1&loop=1&playlist=${k(
194
- o
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: r.iframe,
211
+ className: l.iframe,
197
212
  allow: "autoplay; fullscreen",
198
213
  allowFullScreen: !0
199
214
  }
200
- ) }) : /* @__PURE__ */ c(x, { children: [
201
- /* @__PURE__ */ e(N, {}),
215
+ ) }) : /* @__PURE__ */ c(C, { children: [
216
+ /* @__PURE__ */ e(k, {}),
202
217
  /* @__PURE__ */ e(
203
218
  "video",
204
219
  {
205
- ref: p,
206
- className: r.videoBackground,
207
- src: o,
208
- autoPlay: !m,
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: (l == null ? void 0 : l.imageUrl) || void 0
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
- C,
231
+ w,
217
232
  {
218
- src: (l == null ? void 0 : l.imageUrl) ?? "",
219
- alt: (l == null ? void 0 : l.asset.altText) || (l == null ? void 0 : l.asset.description) || "Card image",
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: r.overlay, children: /* @__PURE__ */ c("div", { className: r.text, children: [
242
+ /* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */ c("div", { className: l.text, children: [
228
243
  /* @__PURE__ */ c("div", { children: [
229
- t.eyebrow && /* @__PURE__ */ e(
244
+ s.eyebrow && /* @__PURE__ */ e(
230
245
  i,
231
246
  {
232
- className: r.eyebrow,
233
- blocks: t.eyebrow
247
+ className: l.eyebrow,
248
+ blocks: s.eyebrow
234
249
  }
235
250
  ),
236
- /* @__PURE__ */ e(i, { blocks: t.title })
251
+ /* @__PURE__ */ e(i, { blocks: s.title })
237
252
  ] }),
238
- t.description && /* @__PURE__ */ e(i, { blocks: t.description }),
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: `${r.hero} ${w}`, children: /* @__PURE__ */ c("article", { className: r.container, children: [
250
- o ? o.includes("vimeo.com") || o.includes("youtube.com") || o.includes("youtu.be") ? /* @__PURE__ */ e("div", { className: r.videoBackground, children: /* @__PURE__ */ e(
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: o.includes("vimeo.com") ? `${o}?autoplay=1&muted=1&loop=1&background=1` : `${o}?autoplay=1&mute=1&loop=1&playlist=${k(
254
- o
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: r.iframe,
271
+ className: l.iframe,
257
272
  allow: "autoplay; fullscreen",
258
273
  allowFullScreen: !0
259
274
  }
260
- ) }) : /* @__PURE__ */ c(x, { children: [
261
- /* @__PURE__ */ e(N, {}),
275
+ ) }) : /* @__PURE__ */ c(C, { children: [
276
+ /* @__PURE__ */ e(k, {}),
262
277
  /* @__PURE__ */ e(
263
278
  "video",
264
279
  {
265
- ref: p,
266
- className: r.videoBackground,
267
- src: o,
268
- autoPlay: !m,
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: (l == null ? void 0 : l.imageUrl) || void 0
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
- C,
291
+ w,
277
292
  {
278
- src: (l == null ? void 0 : l.imageUrl) ?? "",
279
- alt: (l == null ? void 0 : l.asset.altText) || (l == null ? void 0 : l.asset.description) || "Card image",
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: r.overlay, children: /* @__PURE__ */ c("div", { className: r.text, children: [
302
+ /* @__PURE__ */ e("div", { className: l.overlay, children: /* @__PURE__ */ c("div", { className: l.text, children: [
288
303
  /* @__PURE__ */ c("div", { children: [
289
- t.eyebrow && /* @__PURE__ */ e(
304
+ s.eyebrow && /* @__PURE__ */ e(
290
305
  i,
291
306
  {
292
- className: r.eyebrow,
293
- blocks: t.eyebrow
307
+ className: l.eyebrow,
308
+ blocks: s.eyebrow
294
309
  }
295
310
  ),
296
- u && /* @__PURE__ */ c("div", { className: r.articleDetails, children: [
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: r.articleType,
318
+ className: l.articleType,
304
319
  children: h.title
305
320
  },
306
321
  h._id
307
322
  ),
308
- /* @__PURE__ */ c("div", { className: r.articleCategories, children: [
309
- f && /* @__PURE__ */ e(
323
+ /* @__PURE__ */ c("div", { className: l.articleCategories, children: [
324
+ _ && /* @__PURE__ */ e(
310
325
  $,
311
326
  {
312
327
  href: `/blog/search?categories=${encodeURIComponent(
313
- f._id
328
+ _._id
314
329
  )}`,
315
- className: r.category,
316
- children: f.title
330
+ className: l.category,
331
+ children: _.title
317
332
  },
318
- f._id
333
+ _._id
319
334
  ),
320
- y && y.title.toLowerCase() !== "library" && !y.slug.current.includes(
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
- y._id
341
+ b._id
327
342
  )}`,
328
- className: r.category,
329
- children: y.title
343
+ className: l.category,
344
+ children: b.title
330
345
  },
331
- y._id
346
+ b._id
332
347
  )
333
348
  ] }),
334
- u.timeToRead && /* @__PURE__ */ e(x, { children: /* @__PURE__ */ c("span", { children: [
335
- /* @__PURE__ */ e("span", { className: r.number, children: u.timeToRead }),
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: t.title })
354
+ /* @__PURE__ */ e(i, { blocks: s.title })
340
355
  ] }),
341
- t.description && /* @__PURE__ */ e(i, { blocks: t.description }),
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
- we as HeroBlock
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.imageUrl)??"",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:(t==null?void 0:t.imageUrl)??"",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
+ "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 a } from "../../ui/PortableTextRenderer/index.mjs";
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 ae({
31
+ function te({
32
32
  eyebrow: n,
33
33
  title: d,
34
34
  description: l,
35
35
  person: i,
36
- image: t,
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 c() {
46
+ async function m() {
47
47
  if ((s == null ? void 0 : s.type) === "link" || (s == null ? void 0 : s.type) === "download") {
48
- const m = await I(s);
49
- N(m);
48
+ const c = await I(s);
49
+ N(c);
50
50
  }
51
51
  }
52
- c();
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(a, { blocks: n }),
63
- d && /* @__PURE__ */ e(a, { className: r.title, blocks: d }),
64
- l && /* @__PURE__ */ e(a, { className: r.description, blocks: l }),
65
- i && /* @__PURE__ */ e(a, { blocks: i })
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(a, { blocks: n }),
68
- d && /* @__PURE__ */ e(a, { className: r.title, blocks: d }),
69
- l && /* @__PURE__ */ e(a, { className: r.description, blocks: l }),
70
- i && /* @__PURE__ */ e(a, { blocks: i })
71
- ] }) }), C = /* @__PURE__ */ e(_, { children: t && t.imageUrl ? /* @__PURE__ */ o("div", { className: r.image, 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: t.imageUrl,
77
- alt: (t == null ? void 0 : t.asset.altText) || (t == null ? void 0 : t.asset.description) || "Card image",
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: (t == null ? void 0 : t.imageUrl) ?? "",
93
- alt: (t == null ? void 0 : t.asset.altText) || (t == null ? void 0 : t.asset.description) || "Card image",
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(a, { blocks: n }),
109
- d && /* @__PURE__ */ e(a, { className: r.title, blocks: d }),
110
- l && /* @__PURE__ */ e(a, { className: r.description, blocks: l }),
111
- i && /* @__PURE__ */ e(a, { blocks: i })
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(a, { blocks: n }),
117
- d && /* @__PURE__ */ e(a, { className: r.title, blocks: d }),
118
- l && /* @__PURE__ */ e(a, { className: r.description, blocks: l }),
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: (t == null ? void 0 : t.imageUrl) ?? "", size: "lg" }),
121
- i && /* @__PURE__ */ e(a, { blocks: i })
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: (t == null ? void 0 : t.imageUrl) ?? "", size: "xl" }),
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(a, { blocks: n }),
129
- d && /* @__PURE__ */ e(a, { className: r.title, blocks: d }),
130
- l && /* @__PURE__ */ e(a, { className: r.description, blocks: l }),
131
- i && /* @__PURE__ */ e(a, { blocks: i })
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: c }) => {
136
- var m, k;
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: ((m = s.linkOptions) == null ? void 0 : m.linkType) === "external" ? "_blank" : "_self",
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: c
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: c,
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: c,
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: c
177
+ children: m
177
178
  }
178
179
  );
179
180
  }
@@ -187,5 +188,5 @@ function ae({
187
188
  );
188
189
  }
189
190
  export {
190
- ae as TestimonialCard
191
+ te as TestimonialCard
191
192
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.518",
4
+ "version": "0.0.520",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {