"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[69],{264:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});const a={container:"Kn4vs7Ha",image:"IPzctVm4",textOverlay:"HmT1XEXl",textOverlayCentered:"jdWQ6IIZ",subheading:"WdCDHc2A",title:"JA9uClCB",button:"dGkxzcuC"}},263:(e,t,s)=>{const a=s(120);(0,s(2).createEntrypoint)("full_with_image_section",a.FullWithImageSection)},120: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.FullWithImageSection=function({desktop_image:e,title:t,subheading:s,destination_link:a,call_to_action:u,mobile_image:d,device:r,height:o,centered_design:m}){return"image"===(null==e?void 0:e.type)&&e.url&&"image"===(null==d?void 0:d.type)&&d.url?(0,i.jsxs)("div",{className:n.default.container,children:["desktop"===r?(0,i.jsx)(c.LazyImage,{src:e.url,initialWidth:1400,cssClass:n.default.image,style:o?{height:`${o}px`}:{},alt:`${t}`}):(0,i.jsx)(c.LazyImage,{src:d.url,initialWidth:600,cssClass:n.default.image,alt:`${t}`}),(0,i.jsxs)("div",{className:m?n.default.textOverlayCentered:n.default.textOverlay,children:[s?(0,i.jsx)("p",{className:n.default.subheading,children:s}):(0,i.jsx)(l.Fragment,{}),t?(0,i.jsx)("h1",{className:n.default.title,children:t}):(0,i.jsx)(l.Fragment,{}),a&&u?(0,i.jsx)("a",{href:a,children:(0,i.jsx)("button",{className:n.default.button,children:u})}):(0,i.jsx)(l.Fragment,{})]})]}):(0,i.jsx)(l.Fragment,{})};const i=s(0),l=s(1),n=a(s(264)),c=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:c,height:u,style:d}){const r=n(e,t,s);return c&&u?(0,a.jsx)("img",{src:r,class:i,alt:l,width:c,height:u,style:d}):(0,a.jsx)("img",{src:r,class:i,alt:l,style:d})},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),[c,u]=(0,l.useState)({});(0,l.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=n,e.onload=()=>u(Object.assign(Object.assign({},c),{[n]:!0}))}}),[n]);const d=(0,l.useMemo)((()=>c[n]?n:a),[e,t,s,c]);return(0,l.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=n,e.onload=()=>u(Object.assign(Object.assign({},c),{[n]:!0}))}}),[n]),d}}},e=>{e.O(0,[1,2,3],(()=>e(e.s=263))),e.O()}]);