(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8742],{22785:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var a=n(85893),i=n(41664),c=n.n(i),o=n(23560),r=n.n(o),l=n(70850),s=n(97507),u=n.n(s);function d(t){let{green:e=!1,isShort:n=!1,link:i="",linkText:o,onClick:s=null,target:d="_self",className:f="",dataName:p={}}=t,g=e?"green":"yellow",m="_blank"===d?"_blank":"_self",_="";function h(t){_&&l.Z.scrollToElement(document.body.querySelector(_)),r()(s)&&s(t)}n&&(p["data-is-short"]=""),"#"===i.charAt(0)&&(_=i,i="");let x=null,v=()=>(0,a.jsxs)("div",{className:u()["text-wrapper"],children:[(0,a.jsx)("span",{className:"text-button",children:o}),(0,a.jsx)("span",{className:"text-button","data-hover":!0,children:o})]});return x=i?"_self"===m?()=>(0,a.jsx)(c(),{href:i,legacyBehavior:!0,children:(0,a.jsx)("a",{className:"".concat(u()["pill-button"]," ").concat(u()["pill-button--".concat(g)]," ").concat(f),onClick:h,...p,children:(0,a.jsx)(v,{})})}):()=>(0,a.jsx)("a",{className:"".concat(u()["pill-button"]," ").concat(u()["pill-button--".concat(g)]," ").concat(f),href:i,target:d,onClick:h,...p,children:(0,a.jsx)(v,{})}):()=>(0,a.jsx)("button",{className:"".concat(u()["pill-button"]," ").concat(u()["pill-button--".concat(g)]," ").concat(f),onClick:h,...p,children:(0,a.jsx)(v,{})}),(0,a.jsx)(x,{})}},48478:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var a=n(85893),i=n(67294);n(38226);var c=n(27307),o=n(55477),r=n.n(o);let l={autoFormat:!0,autoRounding:100,format:"",lazyLoading:!0,quality:100,responsive:!0,retina:1.6},s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.retina,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.autoRounding,a=null,i=t.offsetWidth,c=t.offsetHeight;return t&&(a={width:Math.ceil(i*e/n)*n,height:"",offsetWidth:i,offsetHeight:c}),a},u=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,{width:a,height:i,offsetWidth:c,offsetHeight:o}=s(t,(n={...l,...n}).retina,n.autoRounding),r="&q=".concat(n.quality);n.format&&(r+="&fm=".concat(n.format)),n.autoFormat&&(r+="&auto=format");let u="?".concat("".concat("landscape"==(!a&&i||i&&a/i<1?"portrait":"landscape")?"&w=".concat(a):"&h=".concat(i)).concat(r).substring(1)),d="";try{d=e.split("image-").join("").replace("-webp",".webp").replace("-png",".png").replace("-jpg",".jpg").replace("-gif",".gif").replace("-svg",".svg")}catch(t){console.warn("Invalid Image ".concat(e,", Error: ").concat(t))}let f="https://cdn.sanity.io/images/".concat("mk8cr4sd","/").concat("production","/").concat(d);return{srcAbsolute:-1===d.indexOf(".svg")?"".concat(f).concat(u):f,width:a,height:i,offsetWidth:c,offsetHeight:o}};function d(t){var e,n;let{alt:o="Image",src:s="",className:d="",dataName:f="",options:p}=t,[g,m]=(0,i.useState)(null),_=(0,i.useRef)(null),h=(0,i.useRef)(null),x=(0,i.useRef)(null),v=(0,i.useRef)(s);p={...l,...p};let y=()=>{var t;if(null!==(t=_.current)&&void 0!==t&&t){let t=u(_.current,s,p);t.srcAbsolute&&t.srcAbsolute!==h.current&&(v.current=s,m(t))}},b=()=>!g&&_.current||g.offsetWidth!==_.current.offsetWidth||g.offsetHeight!==_.current.offsetHeight,j=()=>{b&&y()},w=()=>{F(),x.current=c.Z.set({update:()=>b(),render:()=>y()})},F=()=>{x.current&&(c.Z.clear(x.current),x.current=null)};return(0,i.useEffect)(()=>(j(),()=>{F()}),[]),(0,i.useEffect)(()=>(h.current=null==g?void 0:g.srcAbsolute,p.responsive&&(w(),j()),()=>{F()}),[g]),s!==v.current&&y(),(0,a.jsx)("img",{className:"".concat(r().image," ").concat(d),src:null==g?void 0:g.srcAbsolute,alt:o,width:null!==(e=null==g?void 0:g.width)&&void 0!==e?e:"auto",height:null!==(n=null==g?void 0:g.height)&&void 0!==n?n:"auto",loading:p.lazyLoading?"lazy":"eager",ref:_,...f})}},66387:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var a=n(85893),i=n(48478),c=n(11078),o=n.n(c);function r(t){let{alt:e="Image",aspectRatio:n=1,autoRounding:c=100,className:r="",dataName:l={},format:s="webp",lazyLoading:u=!0,quality:d=100,responsive:f=!0,retina:p=1.6,src:g=""}=t;return(0,a.jsxs)("figure",{className:"".concat(o()["image-aspect-ratio"]," ").concat(r),...l,children:[(0,a.jsx)("div",{style:{paddingTop:"".concat(1/n*100,"%")}}),(0,a.jsx)(i.Z,{src:g,alt:e,autoRounding:c,format:s,lazyLoading:u,quality:d,responsive:f,retina:p})]})}},34691:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var a=n(85893),i=n(67294),c=n(8840),o=n.n(c);function r(t){let{className:e="",dataName:n={},autoPlay:c=!0,loop:r=!0,muted:l=!0,playsInline:s=!0,url:u}=t,d=(0,i.useRef)(null),f={};function p(t,e,n){t.style.paddingTop="".concat(n/e*100,"%")}return!1!==c&&(f.autoPlay=!0),!1!==r&&(f.loop=!0),!1!==l&&(f.muted=!0),!1!==s&&(f.playsInline=!0),(0,i.useEffect)(()=>{let t=d.current,e=t.querySelector("video");return e&&(e.videoWidth&&e.videoHeight?p(t,e.videoWidth,e.videoHeight):e.addEventListener("loadedmetadata",function(e){p(t,this.videoWidth,this.videoHeight)})),()=>{}},[]),(0,a.jsx)("figure",{className:"".concat(o()["video-responsive"]," ").concat(e),...n,ref:d,children:(0,a.jsx)("video",{src:u,width:"100%",height:"100%","data-video":!0,...f})})}},38742:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var a=n(85893);n(41664);var i=n(67294),c=n(20302),o=n(66387),r=n(22209),l=n.n(r),s=n(22785),u=n(34691);function d(t){let{data:e}=t,n=(0,i.useRef)(null),r={};return!0===e.flip&&(r["data-flip"]=!0),!0===e.dark?r["data-dark"]=!0:r["data-light"]=!0,(0,i.useEffect)(()=>{let t=n.current;return c.Z.gather(n.current),()=>{c.Z.purge(t)}},[]),(0,a.jsx)("section",{className:"".concat(l()["fifty-fifty-text-image"]),ref:n,...r,children:(0,a.jsx)("div",{className:"container ".concat(l().container),children:(0,a.jsxs)("div",{className:l()["content-container"],children:[(0,a.jsx)("div",{className:l()["content-wrapper"],children:(0,a.jsxs)("div",{className:l()["text-wrapper"],children:[(0,a.jsx)("h3",{className:"h3 ".concat(l().heading),"data-st":"split-text",children:e.title}),(0,a.jsx)("p",{className:"h5 ".concat(l().copy),"data-st":!0,children:e.description}),e.button.heading&&(0,a.jsx)(s.Z,{className:l().cta,dataName:{"data-st":!0},link:e.button.url,linkText:e.button.heading,target:e.button.target?"_blank":"_self"})]})}),(0,a.jsxs)("div",{className:l()["image-wrapper"],"data-st":!0,children:[e.image&&!e.video&&(0,a.jsx)(o.Z,{src:e.image.asset._ref,aspectRatio:1.5,alt:e.title,className:l().image}),!e.image&&e.video&&(0,a.jsx)(u.Z,{url:e.video.asset.refData.url})]})]})})})}},97507:function(t){t.exports={"pill-button":"PillButton_pill-button__wC1pX","text-wrapper":"PillButton_text-wrapper__Hc_8T","pill-button--green":"PillButton_pill-button--green__s3zml","pill-button--yellow":"PillButton_pill-button--yellow__3WW_b"}},55477:function(t){t.exports={image:"Image_image__K80Wq"}},11078:function(t){t.exports={"image-aspect-ratio":"ImageAspectRatio_image-aspect-ratio__Rh0KK"}},8840:function(t){t.exports={"video-responsive":"VideoResponsive_video-responsive__oYbp6"}},22209:function(t){t.exports={"fifty-fifty-text-image":"FiftyFiftyTextImage_fifty-fifty-text-image__22glX","content-wrapper":"FiftyFiftyTextImage_content-wrapper__yNifm","image-wrapper":"FiftyFiftyTextImage_image-wrapper__Ilpud",title:"FiftyFiftyTextImage_title__izWs0",container:"FiftyFiftyTextImage_container__pd9Wm","content-container":"FiftyFiftyTextImage_content-container__xmBND",date:"FiftyFiftyTextImage_date__aajhJ",heading:"FiftyFiftyTextImage_heading__ny1tg",cta:"FiftyFiftyTextImage_cta__vK2T5",copy:"FiftyFiftyTextImage_copy__tUltz","text-wrapper":"FiftyFiftyTextImage_text-wrapper__T3Q28",image:"FiftyFiftyTextImage_image__HlpyL","video-wrapper":"FiftyFiftyTextImage_video-wrapper__QVipQ"}}}]);