1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5333],{25333:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return p}});var t=i(6204),r=i(26299),o=i(50267),l=i(3943),n=i(65080),a=i(67294),u=i(11435),c=i(83974),m=i.n(c),d=i(85893);var p=e=>{var s,i;let{data:o}=e;const c=(0,u.T_)(),{title:p,subtext:v,promises:x}=o,_=(0,a.useRef)(),g=(0,n.Z)(),{0:b,1:f}=(0,a.useState)({atLeftSide:!0,atRightSide:!1}),w=(0,a.useMemo)((()=>{var e,s;return null===(e=_.current)||void 0===e||null===(s=e.children[0].children[1])||void 0===s?void 0:s.clientWidth}),[_.current]);let j;return(0,d.jsxs)("section",{id:"sectionPromises",className:m().promisesSection,children:[(0,d.jsxs)("div",{className:m().titleAndSubtextWrapper,children:[(0,d.jsx)("h2",{className:m().promisesTitle,children:p}),(0,d.jsx)(l.Z,{className:m().promisesSubtext,text:null===v||void 0===v?void 0:v.json})]}),(0,d.jsx)("div",{className:m().promisesCarouselWrapper,ref:_,onScroll:()=>{clearTimeout(j),j=setTimeout((()=>(()=>{var e,s,i,t;f({atLeftSide:0===(null===(e=_.current)||void 0===e?void 0:e.scrollLeft),atRightSide:(null===(s=_.current)||void 0===s?void 0:s.scrollLeft)+(null===(i=window)||void 0===i?void 0:i.innerWidth)>=(null===(t=_.current)||void 0===t?void 0:t.scrollWidth)})})()),200)},children:(0,d.jsxs)("div",{className:m().promisesCarousel,children:[!g&&(0,d.jsxs)(d.Fragment,{children:[!b.atLeftSide&&(0,d.jsx)("button",{type:"button",className:m().carouselLeftButton,onClick:()=>(()=>{var e;null===(e=_.current)||void 0===e||e.scrollBy({left:-w,behavior:"smooth"})})(),"aria-label":(null===c||void 0===c||null===(s=c.accessibility)||void 0===s?void 0:s.previous)||"Previous",children:(0,d.jsx)(t.Z,{})}),!b.atRightSide&&(0,d.jsx)("button",{type:"button",className:m().carouselRightButton,onClick:()=>(()=>{var e;null===(e=_.current)||void 0===e||e.scrollBy({left:w,behavior:"smooth"})})(),"aria-label":(null===c||void 0===c||null===(i=c.accessibility)||void 0===i?void 0:i.next)||"Next",children:(0,d.jsx)(r.Z,{})})]}),x.map((e=>(0,d.jsx)(h,{title:e.title,subText:e.subtext,image:e.image},e)))]})})]})};const h=e=>{let{title:s,subText:i,image:t}=e;return(0,d.jsxs)("div",{className:m().singlePromiseWrapper,children:[(0,d.jsx)(o.Z,{className:m().singlePromiseImage,src:t.image,layout:"fill",loading:"lazy",sizes:"(max-width: 899px) 100vw, 35vw"}),(0,d.jsx)("h3",{className:m().singlePromiseTitle,children:s}),(0,d.jsx)("p",{className:m().singlePromiseSubtext,children:i})]})}},6204:function(e,s,i){"use strict";var t=i(85893);s.Z=e=>{let{width:s=24,height:i=24}=e;return(0,t.jsx)("svg",{width:s,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M14 18L8 12L14 6",stroke:"#3C3C3B",strokeWidth:"1.2",strokeLinecap:"square"})})}},26299:function(e,s,i){"use strict";var t=i(85893);s.Z=e=>{let{width:s=24,height:i=24}=e;return(0,t.jsx)("svg",{width:s,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M10.001 18L16.001 12L10.001 6",stroke:"#3C3C3B",strokeWidth:"1.2",strokeLinecap:"square"})})}},83974:function(e){e.exports={promisesSection:"promises_promisesSection__DTWNA",promisesTitle:"promises_promisesTitle__QqCni",titleAndSubtextWrapper:"promises_titleAndSubtextWrapper__w1QwU",promisesSubtext:"promises_promisesSubtext__PX0nv",promisesCarouselWrapper:"promises_promisesCarouselWrapper__dQBhg",promisesCarousel:"promises_promisesCarousel__syovU",carouselRightButton:"promises_carouselRightButton__Tex8h",carouselLeftButton:"promises_carouselLeftButton__4_I6x",singlePromiseWrapper:"promises_singlePromiseWrapper__LqIHt",singlePromiseImage:"promises_singlePromiseImage__Rn4_o",singlePromiseTitle:"promises_singlePromiseTitle__1Jh2a",singlePromiseSubtext:"promises_singlePromiseSubtext__o0duP"}}}]); 2//# sourceMappingURL=5333.f20e2007ab82bd1c.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.