"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[51],{236:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});const a={wrapper:"a4Icp7Dt",background:"LNBSrx91",contentWrapper:"EQGsDeOE",title:"rDd5NCVE",html:"DYS6ip6v",logos:"Nbv5Qg3b",logo:"SMjVTtse",button:"d2B1N7Rs"}},235:(e,t,s)=>{const a=s(110);(0,s(2).createEntrypoint)("image_centered_text",a.ImageCenteredText)},110:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageCenteredText=function(e){var t;return"image"===e.desktop_image.type&&"image"===e.mobile_image.type&&e.desktop_image.url&&e.mobile_image.url?(0,i.jsxs)("section",{className:n.default.wrapper,style:e.full_bleed?"margin-inline: 0;":"",children:["desktop"===e.device?(0,i.jsx)(o.LazyImage,{src:e.desktop_image.url,initialWidth:800,width:e.desktop_image.width,height:e.desktop_image.height,cssClass:n.default.background,alt:e.desktop_image.altText,fullSizeWidth:2600}):(0,i.jsx)(o.LazyImage,{src:e.mobile_image.url,initialWidth:400,cssClass:n.default.background,alt:e.mobile_image.altText,fullSizeWidth:800,width:e.mobile_image.width,height:e.mobile_image.height}),e.overlay&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,backgroundColor:`rgba(0, 0, 0, ${e.overlay})`,zIndex:1}}),(0,i.jsxs)("div",{className:n.default.contentWrapper,children:[(0,i.jsx)("div",{className:n.default.titleWrapper,children:(0,i.jsx)("h2",{className:n.default.title,children:e.headline})}),e.text&&(0,i.jsx)("div",{className:["rich-text",n.default.html].join(" "),dangerouslySetInnerHTML:{__html:e.text}}),e.button_text&&e.button_link&&(0,i.jsx)("a",{href:e.button_link,className:n.default.button,children:e.button_text}),(0,i.jsx)("div",{className:n.default.logos,children:null===(t=e.logos)||void 0===t?void 0:t.map(((e,t)=>"image"!==e.type?(0,i.jsx)(l.Fragment,{}):(0,i.jsx)("img",{src:e.url,alt:e.altText,className:n.default.logo},e.url)))})]})]}):(0,i.jsx)(l.Fragment,{})};const i=s(0),l=s(1),n=a(s(236)),o=s(4)},4:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LazyImage=function({src:e,initialWidth:t,fullSizeWidth:s,cssClass:i,alt:l="",width:o,height:r,style:c}){const d=n(e,t,s);return o&&r?(0,a.jsx)("img",{src:d,class:i,alt:l,width:o,height:r,style:c}):(0,a.jsx)("img",{src:d,class:i,alt:l,style:c})},t.useBestImage=n;const a=s(0),i=(s(1),s(7)),l=s(3);function n(e,t,s){const a=(0,i.getFastImage)(e,t),n=(0,i.getFastImage)(e,s),[o,r]=(0,l.useState)({});(0,l.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=n,e.onload=()=>r(Object.assign(Object.assign({},o),{[n]:!0}))}}),[n]);const c=(0,l.useMemo)((()=>o[n]?n:a),[e,t,s,o]);return(0,l.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=n,e.onload=()=>r(Object.assign(Object.assign({},o),{[n]:!0}))}}),[n]),c}}},e=>{e.O(0,[1,2,3],(()=>e(e.s=235))),e.O()}]);