"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[46],{322:(e,t,o)=>{var n=o(0),r=o(2),s=o(352);const{wrapper:a,wrapperTopRight:i,wrapperTopLeft:l,wrapperTopCenter:p,wrapperCenter:c,wrapperTitle:u,wrapperDescription:w,wrapperButton:b,wrapperInfo:d,alignTextToCenter:x}={wrapper:"wHl5YK_f",wrapperTopRight:"ZYHC9w71",wrapperTopLeft:"v4OcY4sH",wrapperTopCenter:"vLMxPiAs",wrapperCenter:"MaUu6kGv",wrapperCustom:"byV95J1O",wrapperInfo:"ip6L3uI0",wrapperTitle:"RWlR8U7u",wrapperDescription:"FEv669y9",wrapperButton:"DqgaY4Ry",alignTextToCenter:"HToI7Evj",wrapperBottomLeft:"b7G1xO4C"},C=({heroTitle:e,heroSubtitle:t,textColor:o,contentPosition:C,buttonText:h,buttonLink:m,buttonColor:v,buttonTextColor:g,newContentPositionMobile:T,newContentPositionDesktop:j,isClickableHero:k})=>{const y=C||"",I=(0,r.useMemo)((()=>{let e=l,t="";return"top-right"===y&&(e=i),"top-center"===y&&(e=p),"center-center"===y&&(e=c,t=x),"top-left"===y&&(e=l),{containerPosition:e,alignText:t}}),[y]),{containerPosition:f,alignText:L}=I;return(0,n.jsx)("div",Object.assign({className:(0,s.a)(a,f)},{children:(0,n.jsxs)("div",Object.assign({className:d},{children:[(0,n.jsx)("h1",{className:(0,s.a)(u,L),style:{color:o},dangerouslySetInnerHTML:{__html:e}}),(0,n.jsx)("p",{className:(0,s.a)(w,L),style:{color:o},dangerouslySetInnerHTML:{__html:t}}),k?(0,n.jsx)("div",{className:(0,s.a)(b,L),style:{backgroundColor:v,color:g},dangerouslySetInnerHTML:{__html:h}}):(0,n.jsx)("a",{className:(0,s.a)(b,L),style:{backgroundColor:v,color:g},href:m,dangerouslySetInnerHTML:{__html:h}})]}))}))},{wrapper:h}={wrapper:"Sih7sxsU"},m=({navItemLink:e,navItemText:t})=>(0,n.jsx)("a",Object.assign({href:e,className:h},{children:t})),{wrapper:v}={wrapper:"wHYlSyuX"},g=({navItems:e})=>{const t=e&&e.length>0;return(0,n.jsx)("div",Object.assign({className:v},{children:t&&e.map(((e,t)=>(0,n.jsx)(m,Object.assign({},e),t)))}))},{wrapper:T,wrapperImage:j,videoMobile:k,videoDesktop:y}={wrapper:"Lv56Dbkj",videoMobile:"qiv8lpVc",videoDesktop:"ZNwqjjug",wrapperImage:"CnN0WdZ8"};(0,o(3).createEntrypoint)("new-hero-feature",(({backgroundImage:e,heroSubtitle:t,heroTitle:o,textColor:s,contentPosition:a,buttonText:i,buttonLink:l,buttonColor:p,buttonTextColor:c,navItems:u,newContentPositionMobile:w,newContentPositionDesktop:b,isClickableHero:d,isVideoHero:x,videoDesktop:h,videoMobile:m})=>{(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 v=!!m&&x,I=!!h&&x,f=d?"a":"div",L=d?{href:l}:{};return(0,n.jsxs)("section",Object.assign({className:T},{children:[v&&(0,n.jsx)("video",{className:k,src:m,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"none"}),I&&(0,n.jsx)("video",{className:y,src:h,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto"}),(0,n.jsx)(f,Object.assign({},L,{className:j,style:{"--hero-bg-mobile":v?"none":`url(${e})`,"--hero-bg-desktop":I?"none":`url(${e})`}},{children:(0,n.jsx)(C,{heroTitle:o,heroSubtitle:t,textColor:s,contentPosition:a,buttonText:i,buttonLink:l,buttonColor:p,buttonTextColor:c,newContentPositionMobile:w,newContentPositionDesktop:b,isClickableHero:d})})),(0,n.jsx)(g,{navItems:u})]}))}))}},e=>{e.O(0,[1,2,3],(()=>(322,e(e.s=322)))),e.O()}]);