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