1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[814,857],{21286:function(t,e,n){"use strict";n.r(e);var o=n(85893);n(65131),n(67294);var r=n(66279),i=n(90857);jest.mock("@components/primitives",()=>({Hyperlink:t=>{let{children:e}=t;return(0,o.jsx)("a",{children:e})},CustomImage:()=>null})),jest.mock("../../../icons",()=>({HeroArrow:()=>null}));let l={configData:{sizing:"80vh"},componentData:{textPosition:"left",textStyle:"DARK"},buttonType:"INTERNAL",idTemplate:1,arrow:!1};describe("HeroComponentT1",()=>{test("Should not render h2 when secondaryText is whitespace-only",()=>{(0,r.sY)((0,o.jsx)(i.default,{...l,componentData:{...l.componentData,secondaryText:"\n"}})),expect(r.sp.queryByRole("heading",{level:2})).not.toBeInTheDocument()}),test("Should render h2 with content when secondaryText has real text",()=>{(0,r.sY)((0,o.jsx)(i.default,{...l,componentData:{...l.componentData,secondaryText:"Real text"}})),expect(r.sp.getByRole("heading",{level:2})).toHaveTextContent("Real text")})})},90857:function(t,e,n){"use strict";n.r(e);var o=n(82729),r=n(85893),i=n(67294),l=n(14141),a=n(55005),c=n(50976),s=n(44153),d=n(39066);function _templateObject(){let t=(0,o._)(["\n position: relative;\n width: 100%;\n height: ",";\n font-size: 18px;\n\n /* Center slide text vertically */\n display: -webkit-box;\n display: -ms-flexbox;\n display: -webkit-flex;\n display: flex;\n background-color: white;\n justify-content: ",";\n\n img {\n position: absolute;\n top: 0;\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .spinner-logo {\n position: relative;\n width: 300px;\n }\n @media only screen and (max-width: 768px) {\n min-height: ",";\n }\n"]);return _templateObject=function(){return t},t}function _templateObject1(){let t=(0,o._)(["\n 0%{\n -webkit-transform:translateY(0%);\n }\n 40%{\n -webkit-transform:translateY(-80%);\n }\n 45%{\n -webkit-transform:translateY(20%);\n }\n 50%{\n -webkit-transform:translateY(-15%);\n }\n 55%{\n -webkit-transform:translateY(10%);\n }\n 60%{\n -webkit-transform:translateY(0%);\n }\n 100%{\n -webkit-transform:translateY(0%);\n }\n"]);return _templateObject1=function(){return t},t}function _templateObject2(){let t=(0,o._)(["\n position: absolute;\n width: 50px;\n height: 80px;\n bottom: 0px;\n right: 0px;\n z-index: 10;\n\n svg {\n animation-name: ",";\n animation-duration: 4s;\n animation-iteration-count: infinite;\n }\n"]);return _templateObject2=function(){return t},t}function _templateObject3(){let t=(0,o._)(["\n background-color: transparent;\n border: none;\n outline: none;\n cursor: pointer;\n"]);return _templateObject3=function(){return t},t}function _templateObject4(){let t=(0,o._)(["\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n z-index: 1;\n background: ",";\n"]);return _templateObject4=function(){return t},t}function _templateObject5(){let t=(0,o._)(["\n width: 670px;\n z-index: 2;\n margin: 0px var(--desktop-padding) 40px var(--desktop-padding);\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n @media only screen and (max-width: 768px) {\n width: 100%;\n margin: 50px 20px;\n text-align: center;\n justify-content: center;\n }\n"]);return _templateObject5=function(){return t},t}function _templateObject6(){let t=(0,o._)(["\n font-family: var(--secondary-family);\n font-size: 62px;\n font-weight: 600;\n white-space: pre-line;\n word-break: break-word;\n color: ",";\n text-align: ",";\n\n @media only screen and (max-width: 768px) {\n font-size: 42px;\n text-align: center;\n line-height: 50px;\n }\n"]);return _templateObject6=function(){return t},t}function _templateObject7(){let t=(0,o._)(["\n font-size: 22px;\n margin: 22px 0px;\n font-weight: 400;\n white-space: pre-line;\n word-break: break-word;\n text-align: ",";\n color: ",";\n\n @media only screen and (max-width: 768px) {\n text-align: center;\n }\n"]);return _templateObject7=function(){return t},t}let u={1:"80vh",2:"100vh",3:"90vh",4:"90vh"},heightMobile=t=>"100vh"===t||"90vh"===t?t:"80vh",p=l.ZP.div.withConfig({componentId:"sc-655dc96d-0"}
1)(_templateObject(),t=>{let{template:e=1,sizing:n}=t;return n||u[e]},t=>{let{textAlignment:e="left"}=t;return"left"===e?"flex-start":"center"===e?"center":"flex-end"},t=>{let{sizing:e}=t;return heightMobile(e)}),m=(0,l.F4)(_templateObject1()),h=l.ZP.div.withConfig({componentId:"sc-655dc96d-1"})(_templateObject2(),m),x=l.ZP.button.withConfig({componentId:"sc-655dc96d-2"})(_templateObject3()),f=l.ZP.div.withConfig({componentId:"sc-655dc96d-3"})(_templateObject4(),t=>{let{safeMode:e=50}=t,n=e/50;return"number"!=typeof n||n<0||n>2?"rgba(0,0,0,0)":n<1?"rgba(255,255,255,".concat(1-n,")"):"rgba(0,0,0,".concat(n-1,")")}),b=l.ZP.div.withConfig({componentId:"sc-655dc96d-4"})(_templateObject5()),_=l.ZP.h1.withConfig({componentId:"sc-655dc96d-5"})(_templateObject6(),t=>{let{textColor:e="DARK"}=t;return"DARK"!==e?"white":c.A8?"var(--grayscale100Color)":"var(--primary150Color)"},t=>{let{textAlignment:e="left"}=t;return"left"===e?"left":"center"===e?"center":"right"}),g=l.ZP.h2.withConfig({componentId:"sc-655dc96d-6"})(_templateObject7(),t=>{let{textAlignment:e="left"}=t;return"left"===e?"left":"center"===e?"center":"right"},t=>{let{textColor:e="DARK"}=t;return"DARK"!==e?"white":c.A8?"var(--grayscale100Color)":"var(--primary150Color)"}),heroButton=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"left",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"\n word-break: break-word;\n background: var(--primaryColor);\n border-color: var(--primaryColor);\n color: var(--grayscale0Color);\n padding: 14px 30px;\n margin: ".concat("left"===t?"28px auto 0 0":"right"===t?"28px 0 0 auto":"28px auto 0 auto","\n }\n border-radius: ").concat(e===c.A8?"10px":"0px",";\n \n @media only screen and (max-width: 768px) {\n margin-left: auto;\n margin-right: auto;\n }\n\n &:hover {\n color: var(--grayscale100Color);\n background-color: transparent;\n border-color: var(--grayscale100Color);\n }\n\n @media only screen and (max-width: 375px) {\n margin-top: 10px;\n margin-bottom: 30px;\n }\n")};e.default=function(t){var e,n;let{configData:o,componentData:l,buttonType:c,idTemplate:u,arrow:m}=t,v=(0,i.useRef)(null),[w,y]=(0,i.useState)(0);return(0,i.useEffect)(()=>{var t;let e=(null==v?void 0:null===(t=v.current)||void 0===t?void 0:t.clientHeight)||0;y(e)},[v]),(0,r.jsxs)(p,{className:"hero_left__container ".concat((null==l?void 0:null===(e=l.textStyle)||void 0===e?void 0:e.toLowerCase())||"dark"),ref:v,textAlignment:l.textPosition,template:u,sizing:o.sizing,children:[m&&(0,r.jsx)(h,{className:"hero_left__arrow_container",children:(0,r.jsx)(x,{className:"hero_left__arrow_button",onClick:()=>{(null==v?void 0:v.current)&&window&&window.scrollTo({top:w/2,behavior:"smooth"})},"aria-label":"down-arrow-hero",children:(0,r.jsx)(s.HeroArrow,{className:"hero_left__arrow_container_image",fill:"DARK"===(null==l?void 0:l.textStyle)?"black":"white",width:"25",height:"30"})})}),(0,r.jsxs)(b,{className:"hero_left__text_container",children:[(0,d.b)(null==l?void 0:l.mainText)&&(0,r.jsx)("div",{style:{marginBottom:"-24px"},children:(0,r.jsx)(_,{className:"hero_left__main_text",textAlignment:l.textPosition,template:u,textColor:l.textStyle,children:l.mainText})}),(0,d.b)(null==l?void 0:l.secondaryText)&&(0,r.jsx)(g,{className:"hero_left__secondary_text",textAlignment:l.textPosition,textColor:l.textStyle,children:null==l?void 0:l.secondaryText}),(null==l?void 0:l.buttonEnabled)!==!1&&(null==l?void 0:l.buttonTitle)&&(0,r.jsx)(a.nW,{type:c,className:"hero_left__button button_default_style",customStyle:heroButton(l.textPosition,u),href:null!==(n=null==l?void 0:l.buttonLink)&&void 0!==n?n:"",children:null==l?void 0:l.buttonTitle})]}),(0,r.jsx)(f,{safeMode:null==l?void 0:l.safe,className:"hero_left__safe_mode"}),(null==l?void 0:l.desktop)&&(0,r.jsx)(a.dK,{type:"nextImage",className:"hero_left__slider_image",loaderPosition:"absolute",loaderWidth:"100vw",isLoader:!1,src:{desktop:null==l?void 0:l.desktop,mobile:null==l?void 0:l.mobile,alt:l.alt},layout:"fill",tablet:!0})]})}},39066:function(t,e,n){"use strict";n.d(e,{b:function(){return hasText}});let hasText=t=>!!(null==t?void 0:t.trim())},24654:function(){}}]);
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.