"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[43],{307:(e,t,o)=>{var n=o(0),r=o(2),a=o(337);const{wrapper:s,wrapperTopRight:i,wrapperTopLeft:l,wrapperTopCenter:p,wrapperCenter:c,wrapperTitle:w,wrapperDescription:u,wrapperButton:b,wrapperInfo:d,alignTextToCenter:C}={wrapper:"wHl5YK_f",wrapperTopRight:"ZYHC9w71",wrapperTopLeft:"v4OcY4sH",wrapperTopCenter:"vLMxPiAs",wrapperCenter:"MaUu6kGv",wrapperInfo:"ip6L3uI0",wrapperTitle:"RWlR8U7u",wrapperDescription:"FEv669y9",wrapperButton:"DqgaY4Ry",alignTextToCenter:"HToI7Evj",wrapperBottomLeft:"b7G1xO4C"},x=({heroTitle:e,heroSubtitle:t,textColor:o,contentPosition:x,buttonText:h,buttonLink:T,buttonColor:g,buttonTextColor:m,newContentPositionMobile:j,newContentPositionDesktop:k,isClickableHero:v})=>{const f=x||"",I=(0,r.useMemo)((()=>{let e=l,t="";return"top-right"===f&&(e=i),"top-center"===f&&(e=p),"center-center"===f&&(e=c,t=C),"top-left"===f&&(e=l),{containerPosition:e,alignText:t}}),[f]),{containerPosition:y,alignText:L}=I;return(0,n.jsx)("div",Object.assign({className:(0,a.a)(s,y)},{children:(0,n.jsxs)("div",Object.assign({className:d},{children:[(0,n.jsx)("h1",{className:(0,a.a)(w,L),style:{color:o},dangerouslySetInnerHTML:{__html:e}}),(0,n.jsx)("p",{className:(0,a.a)(u,L),style:{color:o},dangerouslySetInnerHTML:{__html:t}}),v?(0,n.jsx)("div",{className:(0,a.a)(b,L),style:{backgroundColor:g,color:m},dangerouslySetInnerHTML:{__html:h}}):(0,n.jsx)("a",{className:(0,a.a)(b,L),style:{backgroundColor:g,color:m},href:T,dangerouslySetInnerHTML:{__html:h}})]}))}))},{wrapper:h}={wrapper:"Sih7sxsU"},T=({navItemLink:e,navItemText:t})=>(0,n.jsx)("a",Object.assign({href:e,className:h},{children:t})),{wrapper:g}={wrapper:"wHYlSyuX"},m=({navItems:e})=>{const t=e&&e.length>0;return(0,n.jsx)("div",Object.assign({className:g},{children:t&&e.map(((e,t)=>(0,n.jsx)(T,Object.assign({},e),t)))}))},{wrapper:j,wrapperImage:k}={wrapper:"Lv56Dbkj",wrapperImage:"CnN0WdZ8"};(0,o(3).createEntrypoint)("new-hero-feature",(({backgroundImage:e,heroSubtitle:t,heroTitle:o,textColor:a,contentPosition:s,buttonText:i,buttonLink:l,buttonColor:p,buttonTextColor:c,navItems:w,newContentPositionMobile:u,newContentPositionDesktop:b,isClickableHero:d})=>{(0,r.useEffect)((()=>{var e;"undefined"!=typeof window&&(null===(e=null===window||void 0===window?void 0:window.loyaltylion)||void 0===e||e.init({token:"1c7cdc57823bc119aade27c5e375b239"}))}),[]);const C=d?"a":"div",h=d?{href:l}:{};return(0,n.jsxs)("section",Object.assign({className:j},{children:[(0,n.jsx)(C,Object.assign({},h,{className:k,style:{backgroundImage:`url(${e})`}},{children:(0,n.jsx)(x,{heroTitle:o,heroSubtitle:t,textColor:a,contentPosition:s,buttonText:i,buttonLink:l,buttonColor:p,buttonTextColor:c,newContentPositionMobile:u,newContentPositionDesktop:b,isClickableHero:d})})),(0,n.jsx)(m,{navItems:w})]}))}))}},e=>{e.O(0,[1,2,3],(()=>(307,e(e.s=307)))),e.O()}]);