(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{75557:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return i(95154)}])},95154:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return tV},default:function(){return tQ}});var a=i(85893),o=i(67294),n=i(14416),s=i(11163);i(64593);var r=i(14890),l=i(45697),d=i.n(l),c=i(32943);let m=c.default.section.withConfig({componentId:"sc-f0578652-0"})([""]);class u extends o.Component{onAccPanelChange(e,t,i){for(var a=arguments.length,o=Array(a>3?a-3:0),n=3;n<a;n++)o[n-3]=arguments[n];if(this.props.controlled)"function"==typeof t&&t(...o);else{let t=[...this.state.isOpened];t=t.indexOf(e)>=0?[]:[e],this.setState(()=>({isOpened:t})),"function"==typeof i&&i(...o)}}getPanels(){let{children:e,sidePadding:t,rightPadding:i}=this.props,{isCompact:a,isOpened:n=[],isSlim:s}=this.state;return o.Children.map(e,(e,r)=>{var l=this;let d=e.key||r,c=n.indexOf(d)>=0;return e&&o.cloneElement(e,{key:d,isCurrentlyOpen:c,expanded:e.props.expanded,isCompact:a,isSlim:s,sidePadding:t,rightPadding:i,onPanelChange:function(){for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];return l.onAccPanelChange(d,e.props.onPanelClick,e.props.onPanelChange,...i)},onExpandedSetForPanel:this.onExpandedSetForPanel(d,e.props.onPanelChange)})})}render(){let{children:e}=this.props,{isCompact:t}=this.state;return null!==e?(0,a.jsx)(m,{isCompact:t,children:this.getPanels()}):(0,a.jsx)(m,{isCompact:t})}constructor(...e){super(...e),this.state={isOpened:[],isCompact:"compact"===this.props.appearance,isSlim:"slim"===this.props.appearance},this.setOpenState=e=>{this.setState({isOpened:e})},this.removeElement=(e,t)=>{if(t<0||t>=e.length)return e;let i=e.slice(0,t),a=e.slice(t+1);return i.concat(a)},this.onExpandedSetForPanel=(e,t)=>i=>{let{open:a}=i,o=[...this.state.isOpened];!a&&o.indexOf(e)>=0?this.setState(t=>({isOpened:this.removeElement(t.isOpened,t.isOpened.indexOf(e))})):a&&-1===o.indexOf(e)&&this.setOpenState([e]),"function"==typeof t&&t({open:a})}}}u.propTypes={appearance:d().oneOf(["normal","compact","slim"]),sidePadding:d().string,rightPadding:d().string,controlled:d().bool},u.defaultProps={appearance:"normal",sidePadding:"2.4rem",rightPadding:"",controlled:!1};var g=i(62256),p=i(6777),h=i(94017);let v=(0,c.css)(["margin:0;"]),x=c.default.h5.withConfig({componentId:"sc-121558fa-0"})(["font-size:",";line-height:",";font-weight:",";color:",";",""],e=>e.fontSize||p.CH.z500,p.Nv.regular,p.vC.regular,e=>e.color||h.Z,v);var f=i(3774),_=i(2070);let C=e=>"";C.p=c.default.p.withConfig({componentId:"sc-8af59ed3-0"})(["font-size:",";line-height:",";margin:"," 0;color:",";"],e=>(0,_.Z)(e,"size","inherit"),e=>(0,_.Z)(p.Nv,"".concat(e.lineHeight),p.Nv.medium),e=>(0,_.Z)(e,"margin",0),e=>(0,_.Z)(e,"color",f.BA.z900)),C.strong=c.default.strong.withConfig({componentId:"sc-8af59ed3-1"})(["line-height:",";font-weight:",";color:",";font-size:inherit;"],p.Nv.medium,p.vC.medium,f.BA.z800),C.underline=c.default.span.withConfig({componentId:"sc-8af59ed3-2"})(["color:",";font-size:inherit;text-decoration:underline;"],f.BA.z800),C.Tag=c.default.a.withConfig({componentId:"sc-8af59ed3-3"})(["display:inline;font-size:24px;line-height:28px;color:",";cursor:pointer;margin:0;text-transform:capitalize;&:hover{color:",";}"],f.Q6.z400,f.Q6.z500),C.LargeP=c.default.p.withConfig({componentId:"sc-8af59ed3-4"})(["font-size:24px;line-height:28px;margin:"," 0;color:",";"],p.CH.z300,f.BA.z900);let y=C.p;C.strong,C.underline,C.Tag;var b=i(3847),j=i(21834),T=i(97296),w=i(90208),A=i(61682);let N=e=>{let{title:t,isCurrentlyOpen:i,children:n,disabled:s,expanded:r,subTitle:l,isCompact:d,sidePadding:c,rightPadding:m,panelPaddingBottom:u,noBorder:g,onPanelChange:p,TitleComponent:h,isSlim:v,fontWeight:x,onExpandedSetForPanel:f,withCrossIcon:_,iconColor:C}=e,y=()=>{s||p({open:i})};return(0,o.useEffect)(()=>{s||f({open:r})},[r]),(0,j.qN)(e,"className"),(0,a.jsxs)(N.Container,{open:i,isCompact:d,disabled:s,isSlim:v,...e,children:[(0,a.jsxs)(N.Header,{open:i,onClick:y,onKeyDown:(0,j.LZ)(y),tabIndex:s?-1:0,role:"button","aria-expanded":i,"aria-disabled":s||null,"aria-label":t,...e,children:[(0,a.jsx)(S,{children:h?(0,a.jsx)(h,{title:t,subTitle:l}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(B,{fontWeight:x,children:t}),l&&(0,a.jsx)(D,{children:l})]})}),_?(0,a.jsx)(N.Icon,{color:C,open:i,tabIndex:-1,"aria-hidden":!0}):(0,a.jsx)(N.IconCompact,{color:C,open:i,tabIndex:-1,"aria-hidden":!0})]}),d||v||!i||g||!n?null:(0,a.jsx)(H,{sidePadding:c,children:(0,a.jsx)(I,{})}),i&&n?(0,a.jsx)(N.Content,{open:i,tabIndex:i&&!s?0:-1,sidePadding:c,rightPadding:m,isSlim:v,panelPaddingBottom:u,children:n}):null]})},H=c.default.section.withConfig({componentId:"sc-ccc40a32-0"})(["width:100%;padding:",";margin:0;display:flex;justify-content:center;"],e=>"0rem ".concat(e.sidePadding)),I=c.default.hr.withConfig({componentId:"sc-ccc40a32-1"})(["margin:0;padding:0;width:100%;box-sizing:border-box;height:0.1rem;color:#f4f4f4;background-color:#f4f4f4;border:none;"]);N.Container=c.default.div.withConfig({componentId:"sc-ccc40a32-2"})(["padding:0;background:#ffffff;border:",";box-sizing:border-box;opacity:",";pointer-events:",";"," "," box-shadow:",";opacity:",";pointer-events:",";"],e=>e.isCompact||e.isSlim||e.noBorder?"none":"1px solid #f4f4f4",e=>e.disabled?.7:1,e=>e.disabled?"none":"auto",e=>e.isCompact||e.isSlim?(0,c.css)(["border:none;border-radius:0;box-shadow:none;border-top:1px solid #f4f4f4;margin-bottom:0;"]):(0,c.css)(["border:",";border-radius:0.6rem;box-shadow:0px 1rem 7rem rgba(228,233,235,0.2);margin-bottom:1.6rem;@media screen and (max-width:768px){margin-bottom:0;border:none;border-top:",";width:100%;border-radius:0;&:last-child{border-bottom:",";box-shadow:none;}}"],e=>e.noBorder?"none":"1px solid #f4f4f4",e=>e.noBorder?"none":"1px solid #f4f4f4",e=>e.noBorder?"none":"1px solid #f4f4f4"),e=>e.isSlim&&(0,c.css)(["border:1px solid ",";border-bottom:none;&:first-child{border-top-left-radius:0.8rem;border-top-right-radius:0.8rem;}&:last-child{border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem;border-bottom:1px solid #e8e8e8;}"],b.Z.z200),e=>e.isCompact?"none":"",e=>e.disabled?.7:1,e=>e.disabled?"none":"auto"),N.IconCompact=(0,c.default)(A.Z).withConfig({componentId:"sc-ccc40a32-3"})(["transform:",";transition:transform "," ",";margin-top:0;margin-left:0;white-space:nowrap;"],e=>e.open?"rotate(-180deg)":"rotate(0)",w.default.animationDuration,w.default.animation.easeIn),N.Icon=(0,c.default)(T.Z).withConfig({componentId:"sc-ccc40a32-4"})(["transform:",";transition:transform "," ",";margin-top:0;margin-left:0;white-space:nowrap;:focus,:active{outline:none;}outline:none;"],e=>e.open?"rotate(0)":"rotate(-135deg)",w.default.animationDuration,w.default.animation.easeInBackCurve),N.HeaderFocus=c.default.div.withConfig({componentId:"sc-ccc40a32-5"})(["display:block;padding:0;"]),N.Header=c.default.div.withConfig({componentId:"sc-ccc40a32-6"})(["margin-top:0;margin-left:0;cursor:",";display:flex;justify-content:space-between;align-items:center;padding:",";:focus{outline:none;box-shadow:none;}"],e=>e.disabled?"not-allowed":"pointer",e=>"".concat(e.topPadding||"2rem"," ").concat(e.rightPadding||e.sidePadding,"\n  ").concat(e.topPadding||"2rem","\n  ").concat(e.sidePadding));let B=(0,c.default)(x).withConfig({componentId:"sc-ccc40a32-7"})(["color:",";font-weight:",";font-size:20px;line-height:26px;margin:0;"],h.Z,e=>"".concat(e.fontWeight)),S=c.default.section.withConfig({componentId:"sc-ccc40a32-8"})(["display:flex;flex-direction:column;flex-grow:1;align-items:flex-start;"]),D=(0,c.default)(y).withConfig({componentId:"sc-ccc40a32-9"})(["font-size:16px;line-height:21px;color:",";margin:0.4rem 0 0 0;"],b.Z.z800);N.Content=c.default.section.withConfig({componentId:"sc-ccc40a32-10"})(["color:",";padding-top:1rem;padding-bottom:",";max-height:",";padding-left:",";padding-right:",";pointer-events:",";opacity:",";&:focus{outline:none;}transition:",";"],b.Z.z700,e=>e.panelPaddingBottom||!e.open?"0":"2rem",e=>e.open?"1000rem":0,e=>e.sidePadding,e=>e.sidePadding,e=>e.disabled?"none":"auto",e=>e.open?1:0,e=>e.open?"max-height .25s ease-in-out, opacity 0.5s .25s linear;":"opacity .25s linear, max-height .5s;"),N.propTypes={title:d().string,subTitle:d().string,TitleComponent:d().node,disabled:d().bool,expanded:d().bool,isCompact:d().bool,isSlim:d().bool,panelPaddingBottom:d().bool,noBorder:d().bool,sidePadding:d().string,rightPadding:d().string,fontWeight:d().string,onPanelChange:d().func,withCrossIcon:d().bool,iconColor:d().string,onExpandedSetForPanel:d().func},N.defaultProps={disabled:!1,expanded:!1,TitleComponent:null,sidePadding:"2.4rem",rightPadding:"",fontWeight:"",isSlim:!1,panelPaddingBottom:!1,noBorder:!1,isCompact:!1,withCrossIcon:!1,iconColor:h.Z,onExpandedSetForPanel:g.Z,onPanelChange:g.Z};var k=o.memo(N),M=i(30999),P=i(80911),O=i(89335),R=i.n(O);class E extends o.Component{componentDidMount(){this.timer.current=setInterval(()=>{this.setState(e=>({...e,selectedStep:4===e.selectedStep?1:e.selectedStep+1}))},5e3)}stepClickHandler(e){this.setState(t=>({selectedStep:e+1})),clearInterval(this.timer.current),this.timer.current=setInterval(()=>{this.setState(e=>({...e,selectedStep:4===e.selectedStep?1:e.selectedStep+1}))},5e3)}componentWillUnmount(){clearInterval(this.timer.current)}render(){let{steps:e}=this.props;return(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-sm-6 ".concat(R().image),style:{backgroundImage:"".concat(this.props.isMobile?"url(".concat(e[this.state.selectedStep-1].mwebImageUrl):"url(".concat(e[this.state.selectedStep-1].imageURL)," )")}}),this.props.isMobile?(0,a.jsx)("div",{className:"d-flex justify-content-between flex-column align-items-center wd-100 mb-5",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between flex-column align-items-center",children:[(0,a.jsx)("div",{className:"d-flex justify-content-between ".concat(R().stepCounter),children:e.map((e,t)=>(0,a.jsx)("div",{onClick:()=>this.stepClickHandler(t),className:"".concat(R().mwebStep," ").concat(this.state.selectedStep===t+1?R().newSelectedCounter:""," d-flex justify-content-between align-items-center fs-16 w-600"),children:t+1}))}),(0,a.jsx)("div",{className:"mt-3 mb-4",children:e.filter((e,t)=>t+1===this.state.selectedStep).map(e=>(0,a.jsx)("div",{className:"text-align-center fs-16 w-600",children:e.heading}))}),(0,a.jsx)("div",{children:(0,a.jsx)(P.Z,{size:"compressed",className:R().btnMweb,children:(0,a.jsx)("a",{href:"https://hyperpure.app.link/4nuSAkPfe7",className:"w-600",children:" Download the app"})})})]})}):(0,a.jsx)("div",{className:"col-sm-6 ".concat(R().stepsContainer),children:e.map((e,t)=>(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("div",{className:R().step,onClick:()=>this.stepClickHandler(t),children:[(0,a.jsx)("div",{className:"mr-3",children:(0,a.jsx)("div",{className:"".concat(R().stepNumber," ").concat(this.state.selectedStep===t+1?R().selectedStep:""),children:(0,a.jsx)("span",{children:t+1})})}),(0,a.jsxs)("div",{className:R().heading,children:[(0,a.jsx)("span",{className:" ".concat(this.state.selectedStep===t+1?"text-red-cta fw-600":""),children:e.heading}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"fs-16",children:e.description})]})]}),(0,a.jsx)("br",{})]},t))})]})}constructor(...e){super(...e),this.state={selectedStep:1},this.timer=o.createRef(null)}}var L=i(63685),Z=i(86529),U=i(38642),F=i.n(U),q=i(7556),W=i(19930),z=i(25675),G=i.n(z);function V(e){let{category:t,index:i,history:o}=e,{action:{ActionData:n,ActionType:s},iconPath:r}=t;return(0,a.jsx)("div",{className:"container ".concat(F().categoriesWrapper," mt-4 mb-2 p-0 m-0"),children:(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("div",{className:" mb-0 mt-2",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)(G(),{src:r,alt:t.name,width:32,height:32,className:F().categoryIcon}),(0,a.jsx)("div",{className:"w-800 text-gray-1000 ".concat(F().categoriesName),children:t.name})]}),(0,a.jsx)("div",{className:"text-red-600 pointer d-flex align-items-center fs-16 w-600 ".concat(F().sellAllIcon),onClick:()=>(0,M.TM)(s,n,o),children:"see all"})]})}),(0,a.jsx)("div",{className:"col-12 p-0 relative",children:(0,a.jsx)(Z.default,{deviceType:"desktop",arrows:!1,customButtonGroup:(0,a.jsx)(q.hE,{dimension:(0,M.tq)(540)?36:48,type:"subCategory"}),responsive:(0,W.bq)(W.KK),renderButtonGroupOutside:!0,ssr:!0,children:t.children.map((e,t)=>{let{image:{path:i=""},name:n,action:{ActionData:s={},ActionType:r=""}={}}=e;return(0,a.jsxs)("div",{className:"pointer image-card ".concat(F().card),onClick:()=>(0,M.TM)(r,s,o),children:[(0,a.jsx)(L.Z,{doPreload:!0,src:i||"/assets/images/placeholder.png",alt:n,className:F().categoryImage,width:"145px",height:"80px"}),(0,a.jsx)("div",{className:"w-600 text-gray-900 fs-18 d-flex align-items-center justify-content-center ".concat(F().heightFix),children:n})]},t)})})})]})},"category-card-".concat(i))}var Q=(0,s.withRouter)((0,n.$j)(e=>({}))(function(e){return(0,a.jsx)("div",{className:"row justify-content-center",children:e.categories.map((t,i)=>(0,a.jsx)(V,{category:t,index:i,history:e.router},t.id))})})),X=i(79869),K=i(39652),Y=i(23151),J=i(92595),$=i.n(J),ee=function(e){return(0,a.jsxs)("div",{className:"".concat($().testimonials),children:[(0,a.jsx)("div",{className:"".concat($().testimonialText," fs-16"),children:e.textLine1}),(0,a.jsxs)("div",{className:"d-flex ".concat($().bottomCard),children:[(0,a.jsx)("div",{className:"".concat($().imgTest),children:(0,a.jsx)(G(),{alt:e.name,src:e.imageURL,height:e.isMobile?36:48,width:e.isMobile?36:48})}),(0,a.jsxs)("div",{className:$().textCardTest,children:[(0,a.jsx)("div",{className:"".concat(e.isMobile?"fs-16":"fs-20"," w-600 "),children:e.name}),(0,a.jsx)("div",{className:"".concat($().subTextGrey," w-400 ").concat(e.isMobile?"truncate2line":""),children:e.designation})]}),(0,a.jsx)("div",{children:(0,a.jsx)(G(),{alt:"quote",height:e.isMobile?60:120,width:e.isMobile?60:120,className:"".concat($().quote," img120"),src:"/assets/images/Quote.png"})})]})]})},et=i(25662),ei=i(99545),ea=e=>{var t;return(0,a.jsx)("div",{className:"container p-0",children:e.getTestimonialstatus.state===X.Z.STATE_FAIL?null:e.testimonials?(0,a.jsxs)("div",{className:"".concat($().testimonialsWrapper,"  container ").concat((0,M.tq)(992)?"mb-g1":"mb-g2"," ").concat((0,M.tq)(540)?"":"p-0"),children:[(0,a.jsx)("div",{className:"w-800 ".concat(e.isMobile?e.isLogout?"mt-5 fs-24 text-align-center":"mt-5 fs-24 ml-2 mb-2":"fs-32 container"," mb24"),children:"Stories from partners"}),e.isLogout?(0,a.jsx)("div",{className:"".concat(e.isMobile?"fs-14":"fs-22"," ").concat($().greytext," mb-4 text-align-center w-600"),children:"Helping restraunts since 2018"}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"container relative wd-100 p-0",children:(0,a.jsx)(ei.Z,{arrows:!1,customButtonGroup:e.isMobile?(0,a.jsx)(a.Fragment,{}):(null===(t=e.testimonials)||void 0===t?void 0:t.length)<=(0,W.bq)(W.tQ).desktop.items?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(q.hE,{type:"testimonials",dimension:(0,M.tq)(540)?36:48,isInfinite:!0}),renderButtonGroupOutside:!0,deviceType:"desktop",containerClass:$().widthOverflowed,responsive:(0,W.bq)(W.tQ),className:$().limitOverflow,autoPlay:!e.isMobile,autoPlaySpeed:3e3,infinite:!e.isMobile,ssr:!0,children:e.testimonials.map((t,i)=>(0,a.jsx)(ee,{...t,...e},i))})})]}):(0,a.jsx)(et.SX,{})})},eo=i(74854),en=i.n(eo),es=i(22255),er=i(45306),el=i(75595),ed=i(77458),ec=i(7951),em=i(10027),eu=i(5152),eg=i.n(eu),ep=function(e){let t=eg()(()=>Promise.resolve().then(i.bind(i,7951)),{loadableGenerated:{webpack:()=>[7951]},ssr:!1});return(0,a.jsx)(t,{...e})},eh=i(79484),ev=i.n(eh),ex=i(24882),ef=i.n(ex),e_=i(29541),eC=i(9008),ey=i.n(eC),eb=i(8128),ej=i.n(eb),eT=function(e){var t,i,o;let{campaignData:n,rail:s,history:r}=e;return(0,a.jsxs)("section",{className:"container relative ".concat((0,M.tq)(992)?"mb-g1":"pl-3 mb-g2"," p-0 "),children:[(0,a.jsx)("div",{className:"d-flex align-items-center mb24 ".concat((0,M.tq)(992)?"fs-20":"fs-30"," w-800 text-gray-1000 ").concat(ej().brandRailHeading),children:null==s?void 0:s.Heading}),(0,a.jsx)("div",{className:"".concat(ej().campaignRail),children:(0,a.jsx)(ei.Z,{arrows:!1,customButtonGroup:(null===(t=n.CampaignItems)||void 0===t?void 0:t.length)>(0,W.bq)(W.Dl).desktop.items&&!(0,M.tq)(992)?(0,a.jsx)(q.hE,{dimension:(0,M.tq)(540)?36:48,type:"brand"}):(0,a.jsx)(a.Fragment,{}),deviceType:"desktop",responsive:(0,W.bq)(W.Dl),renderButtonGroupOutside:!0,shouldResetAutoplay:!1,className:ej().limitOverflow,children:(0,M.tq)(992)?null===(i=n.CampaignItems)||void 0===i?void 0:i.map((e,t,i)=>(0,a.jsxs)("div",{className:"d-flex justify-content-center flex-column",children:[(0,a.jsx)("div",{onClick:()=>{i[t]&&i[t].ActionData&&(i[t].ActionData.Title=i[t].ActionData.Title?i[t].ActionData.Title:"Brand Campaign",(0,M.TM)(i[t].ActionType,i[t].ActionData,r,{sendReference:!0}))},children:(0,a.jsx)("img",{className:ej().brandCampaignImage,src:i[t].Image,alt:i[t].commercialName})},i[t].keyVal),t+1<i.length&&(0,a.jsx)("div",{className:ej().marginTopBrandItem,onClick:()=>{i[t+1]&&i[t+1].ActionData&&(i[t+1].ActionData.Title=i[t+1].ActionData.Title?i[t+1].ActionData.Title:"Brand Campaign",(0,M.TM)(i[t+1].ActionType,i[t+1].ActionData,r,{sendReference:!0}))},children:(0,a.jsx)("img",{className:ej().brandCampaignImage,src:i[t+1].Image,alt:i[t+1].commercialName})},i[t+1].keyVal)]})).filter((e,t)=>t%2==0):null===(o=n.CampaignItems)||void 0===o?void 0:o.map(e=>(0,a.jsx)("div",{onClick:()=>{e&&e.ActionData&&(e.ActionData.Title=e.ActionData.Title?e.ActionData.Title:"Brand Campaign",(0,M.TM)(e.ActionType,e.ActionData,r,{sendReference:!0}))},children:(0,a.jsx)("img",{className:ej().brandCampaignImage,src:e.Image,alt:e.commercialName})},e.keyVal))})})]})},ew=i(59481),eA=(0,s.withRouter)((0,n.$j)(e=>({categoriesAndSubCategoriesStatus:e.status.catalog_getCategoriesAndSubCategories,userData:e.user.data,categoriesWithSubCategories:e.catalog.categoriesWithSubCategories,getTestimonialstatus:e.status.testimonials,testimonials:e.user.testimonials,v2CategoriesStatus:e.status.catalog_v2GetCategoriesAndSubCategories,v2Categories:e.catalog.v2Categories,brandCampaignData:e.brandCampaign.campaignData}),e=>({actions:(0,r.DE)({getTestimonials:Y.BZ,v2_getCategoriesWithSubCategories:K.uB,getUserData:Y.is,toggleSignInModal:Y.Fs},e)}))(e=>{var t;let[n,s]=(0,o.useState)({bannerHeight:0,actionType:er.dGB,isMobile:!1});(0,o.useEffect)(()=>{var e;(null===(e=window)||void 0===e?void 0:e.innerWidth)<=500?s({...n,isMobile:!0}):s({...n,isMobile:!1})},[(0,M.Jj)()&&window]);let r=eg()(()=>Promise.resolve().then(i.bind(i,19274)),{loadableGenerated:{webpack:()=>[19274]},ssr:!1}),l=(e,t)=>{let i=e.map((e,i)=>{let o="top"===t?er.hls[parseInt(i%er.hls.length)]:er.xhC[parseInt(i%er.xhC.length)];return(0,a.jsxs)("div",{style:{backgroundColor:o},className:"d-flex flex-column justify-content-between mr-3 ml-3 align-items-center ".concat(en().borderRadius24px),children:[(0,a.jsx)("div",{style:{width:"100px",color:er.nQn[o]},className:"fs-14 text-align-center mt-3 truncate2line",children:e.name}),(0,a.jsx)(G(),{alt:e.name,width:100,height:100,src:e.iconPath})]})});return[...i,...i,...i]},d=(()=>{var e,t;if(!(null===ew.Z||void 0===ew.Z?void 0:null===(t=ew.Z.urls)||void 0===t?void 0:null===(e=t.hpOrigin)||void 0===e?void 0:e.length))return{};let i=ew.Z.urls.hpOrigin;return{"@context":"https://schema.org","@type":"WebSite",url:i,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:i+"/in/search/{search_term_string}?source=".concat(er.WLS)},"query-input":"required name=search_term_string"}}})(),{testimonials:c,getTestimonialstatus:m}=e;return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(es.Z,{children:(0,a.jsx)(r,{notShowSearch:!0,theme:"blackStatic",heightToScroll:n.bannerHeight})}),e.showLocationModal&&(0,a.jsx)(ed.Z,{locationModalData:e.locationModalData,setActionType:e=>s({...n,actionType:e}),locationModalOpen:e.showLocationModal,onClose:()=>s({...n,actionType:""}),actionType:n.actionType}),(0,a.jsxs)("main",{className:"site-content",children:[(0,a.jsxs)(ey(),{children:[(0,a.jsx)("meta",{charSet:"utf-8"}),(0,a.jsx)("title",{children:e_.rW}),(null==d?void 0:d.potentialAction)?(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(d)}}):(0,a.jsx)(a.Fragment,{})]}),(0,a.jsxs)(es.Z,{message:"Unable to load Carousel",children:[(0,a.jsx)("div",{className:"".concat(en().bannerImageWrapper," relative wd-100"),id:"landingWrapper",children:(0,a.jsx)("div",{className:"wd-100 height-100 ".concat(en().imageContainerShadow),children:e.isMobile?(0,a.jsx)(G(),{src:"/assets/images/HomeBgImageMweb1.jpg",className:"".concat(en().imageContainer," ").concat(en().widthInherit," ").concat(en().heightInherit),fill:!0,priority:!0,alt:"Landing Image"}):(0,a.jsx)(G(),{src:"/assets/images/home-landing-compress.jpg",className:"".concat(en().imageContainer," ").concat(en().widthInherit," ").concat(en().heightInherit),fill:!0,alt:"Landing image",priority:!0})})}),(0,a.jsx)("div",{className:"wd-100 height-100 ".concat(en().imageContainerShadow," ").concat(en().shadowBox," position-absolute")}),(0,a.jsxs)("div",{className:"".concat(en().content," absolute text-white ").concat(en().landingInfo," d-flex flex-column justify-content-center align-items-center"),children:[e.isMobile?(0,a.jsx)("div",{children:(0,a.jsx)(G(),{alt:"Hyperpure",className:en().landingLogo,height:50,width:130,src:"/assets/images/logo_hp_white.png"})}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"".concat(en().landingInfoHeading," ").concat(e.isMobile?"fs-18":"fs-22"," d-flex justify-content-center ").concat(ev().className),children:"20+ categories • 2000+ products"}),(0,a.jsx)("div",{className:"".concat(en().landingInfoSubheading," ").concat(ef().className),children:"All your restaurant needs delivered next day"}),(0,a.jsx)("div",{className:"width-100 landingButton mt-5",children:(0,a.jsx)(ep,{btnColor:"#EF4F5F",onClick:()=>e.actions.toggleSignInModal(!0),size:"medium",className:"".concat(en().shopNowButton," w-400 btnBdr24"),children:"Shop now"})})]})]}),(0,a.jsxs)("section",{className:"container section-margin-top",id:"why",children:[(0,a.jsx)("h1",{className:"text-align-center w-800  ".concat(e.isMobile?"fs-28":"fs-32"," mb-5 mt-5"),children:"Why choose Hyperpure?"}),e.isMobile?(0,a.jsxs)("div",{className:" d-flex jutify-content-between align-items-center",children:[(0,a.jsxs)("div",{className:"".concat(en().bsItem," d-flex flex-column align-items-center jutify-content-center"),children:[(0,a.jsx)(G(),{alt:"quality",height:64,width:64,src:"/assets/images/bsMweb11.jpg"}),(0,a.jsx)("div",{className:"".concat(en().grey700," fs-14 w-400 text-align-center mt-4"),children:"Consistent high quality"})]}),(0,a.jsxs)("div",{className:"".concat(en().bsItem," d-flex flex-column align-items-center jutify-content-center"),children:[(0,a.jsx)(G(),{alt:"single marketplace",height:64,width:64,src:"/assets/images/bsMweb22.jpg"}),(0,a.jsx)("div",{className:"".concat(en().grey700," fs-14 w-400 text-align-center mt-4"),children:"Single vendor marketplace"})]}),(0,a.jsxs)("div",{className:"".concat(en().bsItem," d-flex flex-column align-items-center jutify-content-center"),children:[(0,a.jsx)(G(),{alt:"next day delivery",height:64,width:64,src:"/assets/images/bsMweb33.jpg"}),(0,a.jsx)("div",{className:"".concat(en().grey700," fs-14 w-400 text-align-center mt-4"),children:"Next day delivery"})]})]}):(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-xs-4 col-sm-4 mb-4",children:(0,a.jsxs)("div",{className:"".concat(en().whyHpCard),children:[(0,a.jsx)(G(),{src:"../assets/images/quality.svg",className:"mt-4",alt:"Consistency",height:96,width:96}),(0,a.jsx)("h2",{className:"mb-0",children:"Quality"}),(0,a.jsx)("h2",{className:"mt-0 fw-normal",children:"Consistency"})]})}),(0,a.jsx)("div",{className:"col-xs-4 col-sm-4 mb-4",children:(0,a.jsxs)("div",{className:"".concat(en().whyHpCard),children:[(0,a.jsx)(G(),{src:"../assets/images/singleVendor.svg",className:"mt-4",alt:"Marketplace",height:96,width:96}),(0,a.jsx)("h2",{className:"mb-0",children:"Single Vendor"}),(0,a.jsx)("h2",{className:"mt-0 fw-normal",children:"Marketplace"})]})}),(0,a.jsx)("div",{className:"col-xs-4 col-sm-4 mb-4",children:(0,a.jsxs)("div",{className:"".concat(en().whyHpCard),children:[(0,a.jsx)(G(),{src:"../assets/images/nextDay.svg",className:"mt-4",alt:"Delivery",height:96,width:96}),(0,a.jsx)("h2",{className:"mb-0",children:"Next Day"}),(0,a.jsx)("h2",{className:"mt-0 fw-normal",children:"Delivery"})]})})]})]}),(0,a.jsxs)("section",{className:"container section-margin-top",id:"how-it-works",children:[e.isMobile?(0,a.jsxs)("div",{className:"mt-7",children:[(0,a.jsx)("div",{className:"fs-24 text-align-center w-800 ",children:"Start buying on Hyperpure"}),(0,a.jsx)("div",{className:"".concat(en().greytext," fs-14 mb-4 text-align-center w-600"),children:"in just 4 easy steps"})]}):(0,a.jsx)("h3",{className:"text-align-center fs-32 w-600",children:"How it works?"}),(0,a.jsx)(E,{steps:[{heading:"Create an account and complete restaurant setup",description:"",imageURL:"../assets/images/step-1.jpg",mwebImageUrl:"../assets/images/mwebAppRail11.jpg"},{heading:"Shop from over 2000+ ingredients and kitchen products",description:"",imageURL:"../assets/images/step-2.jpg",mwebImageUrl:"../assets/images/mwebAppRail21.jpg"},{heading:"Choose your preferred slot for next day delivery",description:"",imageURL:"../assets/images/step-4.jpg ",mwebImageUrl:"../assets/images/mwebAppRail31.jpg"},{heading:"Pay using Credit card, Debit card, NetBanking, UPI or Cash on delivery",description:"",imageURL:"../assets/images/step-3.jpg",mwebImageUrl:"../assets/images/mwebAppRail41.jpg"}],isMobile:e.isMobile})]}),(null===(t=e.brandCampaignData)||void 0===t?void 0:t.CampaignItems)?(0,a.jsxs)("section",{className:"".concat(e.isMobile?"":"container"," section-margin-top"),id:"brands",children:[(0,a.jsx)("div",{className:"text-align-center w-800 ".concat(e.isMobile?"fs-24 mt-5":"fs-32"," mb-3"),children:"Choose from popular brands"}),(0,a.jsx)("div",{className:"".concat(e.isMobile?"fs-14":"fs-22"," ").concat(en().greytext," mb-4 text-align-center w-600"),children:"Over 250+ brands available"}),(0,a.jsx)("div",{children:(0,a.jsx)(eT,{campaignData:e.brandCampaignData,history:e.router})})]}):(0,a.jsx)(a.Fragment,{}),e.v2CategoriesStatus.state===X.Z.STATE_BEGIN?(0,a.jsx)(et.Cv,{}):(0,a.jsx)(o.Fragment,{children:e.v2Categories.length?0===e.v2Categories.length?null:(0,a.jsxs)("section",{className:"".concat(e.isMobile?"":"container"," section-margin-top"),id:"products",children:[(0,a.jsx)("div",{className:"text-align-center w-800 ".concat(e.isMobile?"fs-24 mt-5":"fs-32"," mb-3"),children:"Buy just about anything"}),(0,a.jsx)("div",{className:"".concat(e.isMobile?"fs-14":"fs-22"," ").concat(en().greytext," mb-4 text-align-center w-600"),children:"20+ categories • 2000+ products"}),e.isMobile?(0,a.jsx)("div",{className:"tech-slideshow mb-4",children:(0,a.jsx)("div",{className:"mover-1 d-flex ",children:l(e.v2Categories.filter((e,t)=>t%2==0),"top")})}):(0,a.jsx)(a.Fragment,{}),e.isMobile?(0,a.jsx)("div",{className:"tech-slideshow",children:(0,a.jsx)("div",{className:"mover-2 d-flex",children:l(e.v2Categories.filter((e,t)=>t%2!=0),"bottom")})}):(0,a.jsx)(a.Fragment,{}),e.isMobile?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(es.Z,{message:"Error loading Categories",children:(0,a.jsx)(Q,{categories:e.v2Categories})}),(0,a.jsx)("div",{className:"text-align-center relative mt-5 ".concat(en().exploreBtn),children:(0,a.jsx)(ec.default,{btnColor:"#FF3C5A",className:"w-600 ".concat(e.isMobile?"mb-4":"mb-7"),onClick:e=>window.location.replace((0,e_.k6)()),children:"Explore Products"})})]}):null}),(0,a.jsx)(ea,{testimonials:c,getTestimonialstatus:m,isMobile:e.isMobile},"testimonial"),(0,a.jsxs)("section",{className:"".concat(e.isMobile?"mr-2 ml-2":"container"," section-margin-top mb-5 relative"),id:"FAQs",children:[(0,a.jsx)("h3",{className:"".concat(e.isMobile?"text-align-center fs-24 w-800":"text-align-left w-400 fw-normal fs-mweb-32-resp mb-5"),children:"Frequently asked questions"}),(0,a.jsx)(u,{appearance:"compact",children:[{heading:"What is Hyperpure by Zomato?",content:"\n            <p>Hyperpure is Zomato's supplies platform for restaurants. It allows you to purchase:</p>\n            \n            <ul style=\"margin: 0; padding: 0; padding-left: 30px\">\n                <li>The freshest, most high quality ingredients available on the market</li>\n                <li>Antibiotic residue-free chicken, which is better for your customers than regular chicken</li>\n                <li>Eco-friendly packaging (which is recyclable and doesn't harm the environment) for deliveries</li>\n            </ul>\n            \n            <p>Every single item sold on Hyperpure is based on strict industry guidelines, ensuring that you get the best products at competitive prices, and that your customers benefit from these, too.</p>\n          "},{heading:"Why is Hyperpure good for my restaurant operations?",content:'\n            <ul style="margin: 0; padding: 0; padding-left: 30px">\n                <li>We have verified, well-known sellers that are looking to establish long-term partnerships</li>\n                <li>We provide access to a large catalogue of products that you can search / order quickly</li>\n                <li>Our packaging fits the needs of a wide range of common cuisines</li>\n                <li>Our prices are competitive and our deliveries are on time</li>\n            </ul>\n          '},{heading:"How can I sign up for a Hyperpure by Zomato account?",content:' \n            <p>\n            You can sign up by <a class="link-red" href="/">clicking this link</a> or writing to us at <a class="link-red" href="mailto:help@hyperpure.com" >help@hyperpure.com</a>.\n            </p>\n          ',onClick:t=>{t.preventDefault(),e.actions.toggleSignInModal(!0)}},{heading:"What makes Hyperpure products better than the produce I can source elsewhere?",content:"\n            <p>\n            We understand the importance of consistency. Zomato works directly with a large network of professionals that consists of farmers, mills, producers, and processors (in the case of poultry). We put a great deal of effort into maintaining our relationships with the original source of each of our products, in order to ensure we offer you the freshest, most high quality produce, and that we do it consistently.\n            </p>\n          "},{heading:"What is eco-friendly packaging?",content:'\n            <p>\n              Eco-friendly packaging is recyclable.\n            </p>\n            <p>\n              "Recyclable" means that the material can be collected, re-processed into useful products, and used again. Thus, biodegradable and recyclable packaging are better for the environment, and we offer these wherever possible on Hyperpure.\n            </p>\n          '},{heading:"I run a restaurant. Can I purchase from Hyperpure?",content:"\n            <p>\n              Absolutely. Hyperpure is open to anyone that runs a restaurant, regardless of whether you operate a single outlet or a larger chain (or something in between).\n            </p>\n          "},{heading:"Why is Hyperpure good for my restaurant business?",content:'\n            <ul style="margin: 0; padding: 0; padding-left: 30px">\n              <li>By ordering through Hyperpure, your restaurant gets a Hyperpure tag on its Zomato page</li>\n              <li>This tag assures customers that you use the best ingredients at your restaurant</li>\n              <li>As a result, the Hyperpure tag makes customers more likely to order from you</li>\n              <li>The Hyperpure tag is also searchable and filterable, which is great for discovery on Zomato</li>\n            </ul>\n          '},{heading:"What kind of products can I buy through Hyperpure by Zomato?",content:"\n            <p>\n              Through Hyperpure you can purchase: Vegetables & Fruits, Poultry (including antibiotic residue-free chicken), Groceries, Meats, Seafood, Dairy, Beverages, and Eco-friendly Packaging.\n            </p>\n          "},{heading:"What is the difference between regular chicken and antibiotic residue-free chicken?",content:"\n            <p>\n              Like people, chickens sometimes fall sick. In order to prevent this, farmers treat them with antibiotics to make them resistant to various illnesses. While this is a good preventive measure, consuming a lot of chicken that has been treated with antibiotics also makes the human body immune to these antibiotics over time, which is likely to make medicines less effective when you're unwell. Oftentime, it is not even documented what drugs these chickens are being treated with\n            </p>\n            <p>\n              In the case of antibiotic residue-free chicken, the chicken is only treated with prescribed treatments in the required doses, and the process is thoroughly documented. Additionally, time is allowed for the drug to leave the chicken's body, ensuring it does not impact the human immune system when consumed.\n            </p>\n          "},{heading:"What modes of payment are accepted on Hyperpure by Zomato?",content:"\n            <p>\n              We accept online payments through netbanking, credit cards, debit cards, and UPI.\n            </p>\n          "},{heading:"What do I do in the event that there are issues with incorrect billing or delivery?",content:'\n            <p>\n              In the event of faulty delivery or any billing related issues, please get in touch with our support team via <a class="link-red" href="mailto:help@hyperpure.com" >help@hyperpure.com</a> and we\'ll help you resolve the problem at the earliest.\n            </p>\n          '},{heading:"Can I return an item once it has been purchased?",content:"\n            <p>\n              Any items you want to return (due to quality concerns or anything else) need to be returned at the time of delivery. We do not accept returns once the item has been claimed by the restaurant.\n            </p>\n          "}].map((e,t)=>(0,a.jsx)(k,{title:e.heading,className:"panel-style rounded-panel",children:(0,a.jsx)(el.j,{html:e.content,onClick:e.onClick})},t))})]})]}),(0,a.jsx)(em.Z,{isMobile:e.isMobile})]})})),eN=i(61744);let eH=c.default.label.withConfig({componentId:"sc-5a8ee47d-0"})(["font-size:15px;line-height:18px;color:#1c1c1c;height:18px;cursor:pointer;display:flex;align-items:center;justify-content:start;height:100%;line-height:1.2;"]);var eI=i(15869),eB=i(27006),eS=i(87402);let eD=e=>{let t={cursor:"pointer"};return e.disabled?{...eS.Gy.disabled,cursor:"not-allowed"}:e.checked?{...eS.Gy.checked(e),...t}:{...eS.Gy.default(e),...t}},ek=e=>t=>eD(t)[e],eM=e=>(0,a.jsx)(eM.Wrapper,{marginBottom:e.marginBottom,marginRight:e.marginRight,children:(0,a.jsxs)(eH,{children:[(0,a.jsx)(eM.Element,{...e,type:"radio"}),(0,a.jsxs)(eP,{viewBox:"0 0 20 20",children:[(0,a.jsx)(eO,{cx:"10",cy:"10",r:"8",...e}),e.checked&&(0,a.jsx)(eR,{cx:"10",cy:"10",r:"5",...e})]}),(0,a.jsx)(eM.Label,{disabled:e.disabled,textColor:e.textColor,children:e.label})]})});eM.Label=c.default.span.withConfig({componentId:"sc-17078f4d-0"})(["padding-top:0.2rem;cursor:",";color:",";margin:0 0 0.1rem 0.8rem;"],ek("cursor"),ek("textColor")),eM.Wrapper=c.default.section.withConfig({componentId:"sc-17078f4d-1"})(["width:max-content;margin-bottom:",";margin-right:",";"],e=>e.marginBottom||eB.L.z3,e=>e.marginRight||eB.L.z4);let eP=c.default.svg.withConfig({componentId:"sc-17078f4d-2"})(["height:2.2rem;width:2.2rem;"]),eO=c.default.circle.withConfig({componentId:"sc-17078f4d-3"})(["stroke:",";stroke-width:1px;fill:",";",":hover &{stroke:",";}"],ek("borderColor"),eI.Z,eM.Wrapper,ek("hoverBorderColor")),eR=c.default.circle.withConfig({componentId:"sc-17078f4d-4"})(["fill:",";"],ek("selectedBgColor"));eM.Element=c.default.input.withConfig({componentId:"sc-17078f4d-5"})(["display:none;"]),eM.propTypes={class:d().string,label:d().string,value:d().string,color:d().string,checked:d().bool,onClick:d().func,disabled:d().bool},eM.defaultProps={value:"1",disabled:!1,onClick:g.Z,checked:!1};var eE=i(44593);let eL=e=>e.horizontal?{...eE.SC.horizontal,justifyContent:"space-between"}:{...eE.SC.default,justifyContent:"space-around"},eZ=e=>t=>eL(t)[e],eU=e=>{let t=t=>{t.stopPropagation(),e.onChange(t.target.value)};return(0,a.jsx)(eU.Element,{...e,horizontal:e.horizontal,children:e.options.map((i,o)=>{let{label:n,value:s,disabled:r}=i;return(0,a.jsx)(eM,{name:e.name,value:s,label:n,checked:s===e.selected,disabled:!!r,onChange:t,marginBottom:e.marginBottom,selectedColor:e.selectedColor,textColor:e.textColor},"".concat(s,"_").concat(o))})})};eU.Element=c.default.section.withConfig({componentId:"sc-73c22171-0"})(["display:",";justify-content:",";"],eZ("display"),eZ("justifyContent")),eU.propTypes={onChange:d().func,horizontal:d().bool,name:d().string.isRequired,options:d().array.isRequired,selected:d().string,marginBottom:d().string,selectedColor:d().string,textColor:d().string},eU.defaultProps={onChange:g.Z,horizontal:!1};var eF=i(29169);i(95528),i(4236),i(29911);var eq=i(53746),eW=i(2568),ez=i.n(eW),eG=i(90585),eV=i(87625),eQ=function(e){var t;let i=(0,s.useRouter)(),o=e.data||[],n=(null===(t=e.layoutConfig)||void 0===t?void 0:t.LayoutType)==="grid";return(0,a.jsxs)("div",{className:"".concat((0,M.tq)(992)?"mb-4":"mb-g2"," container relative px-sm-0 py-sm-0 "),children:[(0,a.jsx)("div",{className:ez().header,children:(0,a.jsx)("div",{className:" w-800 text-gray-1000 ".concat((0,M.tq)(992)?"fs-20":"fs-30"),children:"Shop by category"})}),n?(0,M.tq)(992)?(0,a.jsx)("div",{className:"d-flex flex-wrap mb-g1 ".concat(ez().catlaogNegativeMargin," ").concat(ez().categoriesContainer),children:o.map((e,t)=>{let{action:{ActionType:o,ActionData:n}}=e;return(0,a.jsxs)("div",{className:ez().categoryBoxMobile,children:[(0,a.jsx)("div",{className:"".concat(ez().categoryItemMobile," d-flex flex-column justify-content-start align-items-center pointer"),onClick:()=>(0,M.TM)(o,n,i),children:(0,a.jsx)("div",{className:ez().categoryImgMobile,children:(0,a.jsx)(eV.Z,{source:"".concat("").concat(e.iconPath),classname:"carousel-icon ".concat(ez().icon),alt:""})})},"nav-cate-".concat(t)),(0,a.jsx)("div",{className:"d-flex justify-content-center ".concat(ez().categoryItemHeading),children:(0,a.jsx)("div",{className:"w-400 fs-16 text-align-center",children:(0,a.jsxs)("p",{className:"".concat(ez().textCategoryItem),children:[" ",e.name]})})})]})})}):(0,a.jsx)("div",{className:"d-flex align-items-center flex-wrap ".concat(ez().catlaogNegativeMargin),children:o.map((e,t)=>{let{action:{ActionType:o,ActionData:n}}=e;return(0,a.jsxs)("div",{className:"".concat(ez().categoryItem," d-flex flex-column justify-content-center align-items-center pointer"),onClick:()=>(0,M.TM)(o,n,i),children:[(0,a.jsx)(eV.Z,{source:"".concat("").concat(e.iconPath),classname:"carousel-icon ".concat(ez().icon),alt:""}),(0,a.jsx)("div",{className:"d-flex justify-content-center ".concat(ez().categoryItemHeading),children:(0,a.jsx)("div",{className:"w-400 fs-16 text-align-center ".concat(ez().textCategoryItem),children:e.name})})]},"nav-cate-".concat(t))})}):(0,a.jsx)("div",{className:"".concat(ez().mwebScrollableCat," d-flex "),children:(e=>{let t=[];for(let o=0;o<e.length;o+=2)t.push((0,a.jsxs)("div",{className:"".concat(ez().mwebCatColumn," d-flex flex-column"),children:[(0,a.jsxs)("div",{className:"".concat(ez().categoryItem," d-flex flex-column justify-content-center align-items-center pointer"),onClick:()=>{var t,a;return(0,M.TM)(null===(t=e[o])||void 0===t?void 0:t.action.ActionType,null===(a=e[o])||void 0===a?void 0:a.action.ActionData,i)},children:[(0,a.jsx)(eV.Z,{source:"".concat("").concat(e[o].iconPath),classname:"carousel-icon ".concat(ez().icon),alt:""}),(0,a.jsx)("div",{className:"d-flex justify-content-center ".concat(ez().categoryItemHeading),children:(0,a.jsx)("div",{className:"w-400 fs-16 text-align-center ".concat(ez().textCategoryItem),children:e[o].name})})]},"nav-cate-".concat(o)),o+1<e.length?(0,a.jsxs)("div",{className:"".concat(ez().categoryItem," d-flex flex-column justify-content-center align-items-center pointer"),onClick:()=>{var t,a;return(0,M.TM)(null===(t=e[o+1])||void 0===t?void 0:t.action.ActionType,null===(a=e[o+1])||void 0===a?void 0:a.action.ActionData,i)},children:[(0,a.jsx)(eV.Z,{source:"".concat("").concat(e[o+1].iconPath),classname:"carousel-icon ".concat(ez().icon),alt:""}),(0,a.jsx)("div",{className:"d-flex justify-content-center ".concat(ez().categoryItemHeading),children:(0,a.jsx)("div",{className:"w-400 fs-16 text-align-center ".concat(ez().textCategoryItem),children:e[o+1].name})})]},"nav-cate-".concat(o+1)):(0,a.jsx)(a.Fragment,{})]}));return t.map(e=>(0,a.jsx)("div",{children:e}))})(o)})]})},eX=i(59010),eK=i(6768),eY=i(43310);let eJ=e=>t=>{t({type:eK.Z.GET_BRAND_CAMPAIGN_BEGIN}),(0,eY.Z)(!0).get(e).then(e=>{let{data:i,headers:a}=e;t({type:eK.Z.GET_BRAND_CAMPAIGN_DONE,data:i.response})}).catch(e=>t({type:eK.Z.GET_BRAND_CAMPAIGN_FAIL,error:(0,_.Z)(e,["response","data","error"],{})}))};var e$=i(1520),e0=i(19274),e1=i(15610),e2=i(47981);function e4(){return e=>{e({type:eK.Z.GET_AEROBAR_BEGIN}),(0,eY.Z)(!0).get(e2.Z.getAerobars).then(t=>{let{data:i}=t;e({type:eK.Z.GET_AEROBAR_DONE,payload:i.response.Aerobars})}).catch(t=>{e({type:eK.Z.GET_AEROBAR_FAIL,error:(0,_.Z)(t,["response","data","error"],{})})})}}var e6=i(20583),e5=i.n(e6);class e8 extends o.Component{render(){return(0,a.jsx)(o.Fragment,{children:this.getCTAComponent()})}constructor(...e){super(...e),this.ctaTrackingHandler=e=>{let{Action:t={}}=e,{trackingCTA:i}=this.props,{TrackingParams:a}=t;a&&a.ActionType&&"function"==typeof i&&this.props.trackingCTA(a)},this.getCTAComponent=()=>{var e;let{cta:t,fontWeight:i,fontSize:o}=this.props;if(!(null==t?void 0:null===(e=t.Action)||void 0===e?void 0:e.ActionType))return;let{Action:{ActionData:n={},ActionType:s=""}}=t;switch(s){case er.Ppi:return(0,a.jsx)("a",{href:"tel:".concat(n.PhoneNumber?n.PhoneNumber:""),onClick:()=>this.ctaTrackingHandler(t),className:"pointer link-red d-flex align-items-center text-red-cta ".concat(o," ").concat(i||"w-800"),children:t.IconImage&&(0,a.jsxs)("div",{className:"".concat(e5().CTAImage," d-flex align-items-center"),children:[(0,a.jsx)("img",{src:t.IconImage,alt:""}),"  ",(0,a.jsx)("div",{className:"".concat(i||"w-800"," ml-3 ").concat(o," "),children:t.Text?t.Text:""})]})});case er.T4G:return(0,a.jsx)(P.Z,{style:{backgroundColor:t.BgColor,color:t.TextColor},className:"".concat(e5().orderPaymentBtn," w-600 solid"),size:"small",onClick:()=>{this.props.ctaHandler(t),this.ctaTrackingHandler(t)},children:t.Text});default:return(0,a.jsxs)("div",{className:"pointer text-red-cta d-flex ".concat(o||"fs-16"," ").concat(i||"w-800"," ").concat(this.props.className),onClick:()=>{this.props.ctaHandler(t),this.ctaTrackingHandler(t)},children:[t.IconImage&&(0,a.jsx)("div",{className:"".concat(e5().CTAImage," mr-2 ").concat(o),children:(0,a.jsx)("img",{src:t.IconImage,alt:""})}),t.Text?t.Text:""]})}}}}var e9=i(35502),e3=i.n(e9),e7=e=>{let{onClick:t,...i}=e,{onMove:o,index:n,active:s}=i;return(0,a.jsx)("div",{className:s?e3().activeSlider:e3().inActiveSlider})};class te extends o.Component{render(){var e,t;let{aerobars:i}=this.props;return(0,M.tq)(540)?(0,a.jsxs)("div",{className:"relative",children:[this.state.completeSetupModalOpen&&(0,a.jsx)(ed.Z,{completeSetupModalOpen:this.state.completeSetupModalOpen,onClose:()=>this.setState({completeSetupModalOpen:!1}),setActionType:e=>this.handleSetActionType(e),actionType:(null===(e=this.state.setUpAction)||void 0===e?void 0:e.length)?this.state.setUpAction:er.Acw,isOpen:this.state.completeSetupModalOpen}),0!==i.length&&(0,a.jsx)(ei.Z,{deviceType:"desktop",arrows:!1,customButtonGroup:i.length>2&&(0,a.jsx)(q.hE,{type:"aerobar",dimension:(0,M.tq)(540)?36:48}),renderButtonGroupOutside:!0,responsive:(0,W.bq)(i.length>2?W.zh:W.Rj),autoPlay:i.length>1,containerClass:ej().widthOverflowed,className:ej().carouselWrapperMobile,infinite:i.length>1,showDots:i.length>1,customDot:(0,a.jsx)(e7,{}),children:i.map((e,t)=>{var o,n,s,r,l,d,c,m;return(null==e?void 0:null===(n=e.RightCTA)||void 0===n?void 0:null===(o=n.Action)||void 0===o?void 0:o.ActionType)!==er.Acw&&(0,a.jsx)("div",{className:"".concat(ej().aerobarCardCover," h-100"),children:(0,a.jsx)("div",{className:"".concat("nudger"===e.Type?ej().creditAerobarCard:ej().aerobarCard," d-flex flex-column justify-content-center h-100"),children:"nudger"!==e.Type?(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"d-flex justify-content-between align-items-center",children:(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("img",{src:e.MediaUrl?e.MediaUrl:"",className:"".concat(ej().statusImage," mr-3 d-inline-block"),alt:""}),(0,a.jsx)("span",{className:"w-800 fs-16",children:e.Heading?e.Heading:""}),e.Tag?(0,a.jsx)("div",{style:{color:e.Tag.TextColor,backgroundColor:e.Tag.BgColor},className:"".concat(ej().delayedTag," fs-12 w-600"),children:e.Tag.Text}):null]})}),(0,a.jsxs)("div",{className:"d-flex align-items-center fs-0 py-2",children:[e.DescriptionImage&&(0,a.jsx)("img",{src:e.DescriptionImage,className:"".concat(ej().descriptionImage," mr-3"),alt:""}),(0,a.jsx)("span",{className:"w-500 fs-14 text-black mr-4",children:e.Description?e.Description:""}),e.LeftCTA?this.renderCTA(e.LeftCTA):null]})]}),(0,a.jsx)("div",{children:e.TopRightCTA&&this.renderCTA(e.TopRightCTA,"outline")})]}):(0,a.jsxs)("div",{className:"d-flex justify-content-between justify-content-center align-items-center",children:[(0,a.jsx)("img",{src:e.MediaUrl?e.MediaUrl:"",className:"".concat(ej().creditNudgesImage," d-inline-block"),alt:""}),(0,a.jsx)("span",{className:"w-500 fs-13 text-black ml-3",children:e.Description?e.Description:""}),e.RightCTA?(0,a.jsx)("div",{style:{color:null===(s=e.RightCTA)||void 0===s?void 0:s.TextColor},children:(0,a.jsx)(ec.default,{className:"".concat(ej().aerobarButtonMobile),onClick:()=>{var t,i,a,o,n,s,r,l,d,c,m,u,g,p,h;(null==e?void 0:null===(i=e.RightCTA)||void 0===i?void 0:null===(t=i.Action)||void 0===t?void 0:t.ActionType)===er.Acw&&(window.location.href="/complete-restaurant-setup?source=webOnboardingPage"),(null==e?void 0:null===(o=e.RightCTA)||void 0===o?void 0:null===(a=o.Action)||void 0===a?void 0:a.ActionType)===er.Mfv&&this.setState({completeSetupModalOpen:!0,setUpAction:null==e?void 0:null===(c=e.RightCTA)||void 0===c?void 0:null===(d=c.Action)||void 0===d?void 0:d.ActionType}),this.props.actions.trackPopUp(null==e?void 0:null===(s=e.RightCTA)||void 0===s?void 0:null===(n=s.Action)||void 0===n?void 0:n.TrackingParams),(null==e?void 0:null===(l=e.RightCTA)||void 0===l?void 0:null===(r=l.Action)||void 0===r?void 0:r.ActionType)!==er.Acw&&(0,M.TM)(null===(u=e.RightCTA)||void 0===u?void 0:null===(m=u.Action)||void 0===m?void 0:m.ActionType,null===(g=e.RightCTA)||void 0===g?void 0:g.ActionData,this.props.router,{toggleCreditModal:()=>this.props.toggleCreditModal(!0)},null===(h=e.RightCTA)||void 0===h?void 0:null===(p=h.Action)||void 0===p?void 0:p.TrackingParams,this.props.trackingCTA)},children:(0,a.jsxs)("div",{className:"fs-13",children:[null===(r=e.RightCTA)||void 0===r?void 0:r.Text,(null===(l=e.RightCTA)||void 0===l?void 0:l.IconImage)&&(0,a.jsx)(eV.Z,{classname:ej().creditAerobarImgCTAIcon,source:null===(d=e.RightCTA)||void 0===d?void 0:d.IconImage})]})})}):(0,a.jsx)(a.Fragment,{}),e.DismissCTA&&(0,a.jsx)("div",{className:"pointer ml-4",onClick:()=>{var a,o,n,s,r;(0,M.TM)(null===(o=e.DismissCTA)||void 0===o?void 0:null===(a=o.Action)||void 0===a?void 0:a.ActionType,null===(n=e.DismissCTA)||void 0===n?void 0:n.ActionData,this.props.router,null,null===(r=e.DismissCTA)||void 0===r?void 0:null===(s=r.Action)||void 0===s?void 0:s.TrackingParams,this.props.trackingCTA),i=i.splice(t,1)},children:(null===(c=e.DismissCTA)||void 0===c?void 0:c.IconImage)&&(0,a.jsx)(eV.Z,{classname:ej().dismissNudgeImgCTAIcon,source:null===(m=e.DismissCTA)||void 0===m?void 0:m.IconImage})})]})},t)})})})]}):(0,a.jsxs)("div",{className:"container relative p-0 mb-g1",children:[this.state.completeSetupModalOpen&&(0,a.jsx)(ed.Z,{completeSetupModalOpen:this.state.completeSetupModalOpen,onClose:()=>this.setState({completeSetupModalOpen:!1}),setActionType:e=>this.handleSetActionType(e),actionType:(null===(t=this.state.setUpAction)||void 0===t?void 0:t.length)?this.state.setUpAction:er.Acw,isOpen:this.state.completeSetupModalOpen}),0!==i.length&&(0,a.jsx)(ei.Z,{deviceType:"desktop",arrows:!1,customButtonGroup:i.length>2&&(0,a.jsx)(q.hE,{type:"aerobar",dimension:(0,M.tq)(540)?36:48}),renderButtonGroupOutside:!0,responsive:(0,W.bq)(i.length>2?W.zh:W.Rj),itemClass:ej().item,containerClass:ej().widthOverflowed,className:ej().limitOverflow,infinite:i.length>2,children:i.map((e,t)=>{var o,n,s,r,l,d,c,m;return(null==e?void 0:null===(n=e.RightCTA)||void 0===n?void 0:null===(o=n.Action)||void 0===o?void 0:o.ActionType)!==er.Acw&&(0,a.jsx)("div",{className:"".concat(ej().aerobarCardCover," h-100"),children:(0,a.jsx)("div",{className:"".concat("nudger"===e.Type?ej().creditAerobarCard:ej().aerobarCard," d-flex flex-column justify-content-center h-100"),children:"nudger"!==e.Type?(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"d-flex justify-content-between align-items-center",children:(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("img",{src:e.MediaUrl?e.MediaUrl:"",className:"".concat(ej().statusImage," mr-3 d-inline-block"),alt:""}),(0,a.jsx)("span",{className:"w-800 fs-16",children:e.Heading?e.Heading:""}),e.Tag?(0,a.jsx)("div",{style:{color:e.Tag.TextColor,backgroundColor:e.Tag.BgColor},className:"".concat(ej().delayedTag," fs-12 w-600"),children:e.Tag.Text}):null]})}),(0,a.jsxs)("div",{className:"d-flex align-items-center fs-0 py-2",children:[e.DescriptionImage&&(0,a.jsx)("img",{src:e.DescriptionImage,className:"".concat(ej().descriptionImage," mr-3"),alt:""}),(0,a.jsx)("span",{className:"w-500 fs-14 text-black mr-4",children:e.Description?e.Description:""}),e.LeftCTA?this.renderCTA(e.LeftCTA):null]})]}),(0,a.jsx)("div",{children:e.TopRightCTA&&this.renderCTA(e.TopRightCTA,"outline")})]}):(0,a.jsxs)("div",{className:"d-flex justify-content-between justify-content-center align-items-center",children:[(0,a.jsx)("img",{src:e.MediaUrl?e.MediaUrl:"",className:"".concat(ej().creditNudgesImage," d-inline-block"),alt:""}),(0,a.jsx)("span",{className:"w-500 fs-16 text-black ml-4",children:e.Description?e.Description:""}),e.RightCTA?(0,a.jsx)("div",{style:{color:null===(s=e.RightCTA)||void 0===s?void 0:s.TextColor},children:(0,a.jsx)(ec.default,{className:"ml-3 mb-3 ".concat(ej().btnBorder8),onClick:()=>{var t,i,a,o,n,s,r,l,d,c,m,u,g,p,h;(null==e?void 0:null===(i=e.RightCTA)||void 0===i?void 0:null===(t=i.Action)||void 0===t?void 0:t.ActionType)===er.Acw&&(window.location.href="/complete-restaurant-setup?source=webOnboardingPage"),(null==e?void 0:null===(o=e.RightCTA)||void 0===o?void 0:null===(a=o.Action)||void 0===a?void 0:a.ActionType)===er.Mfv&&this.setState({completeSetupModalOpen:!0,setUpAction:null==e?void 0:null===(c=e.RightCTA)||void 0===c?void 0:null===(d=c.Action)||void 0===d?void 0:d.ActionType}),this.props.actions.trackPopUp(null==e?void 0:null===(s=e.RightCTA)||void 0===s?void 0:null===(n=s.Action)||void 0===n?void 0:n.TrackingParams),(null==e?void 0:null===(l=e.RightCTA)||void 0===l?void 0:null===(r=l.Action)||void 0===r?void 0:r.ActionType)!==er.Acw&&(0,M.TM)(null===(u=e.RightCTA)||void 0===u?void 0:null===(m=u.Action)||void 0===m?void 0:m.ActionType,null===(g=e.RightCTA)||void 0===g?void 0:g.ActionData,this.props.router,{toggleCreditModal:()=>this.props.toggleCreditModal(!0)},null===(h=e.RightCTA)||void 0===h?void 0:null===(p=h.Action)||void 0===p?void 0:p.TrackingParams,this.props.trackingCTA)},children:(0,a.jsxs)("div",{className:" fs-16",children:[null===(r=e.RightCTA)||void 0===r?void 0:r.Text,(null===(l=e.RightCTA)||void 0===l?void 0:l.IconImage)&&(0,a.jsx)(eV.Z,{classname:ej().creditAerobarImgCTAIcon,source:null===(d=e.RightCTA)||void 0===d?void 0:d.IconImage})]})})}):(0,a.jsx)(a.Fragment,{}),e.DismissCTA&&(0,a.jsx)("div",{className:"pointer mb-2 ml-4",onClick:()=>{var a,o,n,s,r;(0,M.TM)(null===(o=e.DismissCTA)||void 0===o?void 0:null===(a=o.Action)||void 0===a?void 0:a.ActionType,null===(n=e.DismissCTA)||void 0===n?void 0:n.ActionData,this.props.router,null,null===(r=e.DismissCTA)||void 0===r?void 0:null===(s=r.Action)||void 0===s?void 0:s.TrackingParams,this.props.trackingCTA),i=i.splice(t,1)},children:(null===(c=e.DismissCTA)||void 0===c?void 0:c.IconImage)&&(0,a.jsx)(eV.Z,{classname:ej().dismissNudgeImgCTAIcon,source:null===(m=e.DismissCTA)||void 0===m?void 0:m.IconImage})})]})},t)})})})]})}constructor(...e){super(...e),this.state={completeSetupModalOpen:!1,setUpAction:""},this.renderCTA=(e,t)=>(0,a.jsx)(e8,{cta:e,ctaHandler:this.props.aerobarCTAHandler,trackingCTA:this.props.trackingCTA,fontSize:"outline"===t?"fs-16":"fs-14",fontWeight:"w-600",className:"outline"===t?ej().AerobarCTA:""}),this.handleSetActionType=e=>{this.setState({...this.state,setUpAction:e})}}}var tt=(0,s.withRouter)((0,n.$j)(e=>({}),e=>({actions:(0,r.DE)({trackPopUp:Y.fA},e)}))(te));function ti(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=>{t({type:eK.Z.GET_ACQUISITION_RAIL_BEGIN}),(0,eY.Z)(!0).get(e2.Z.getAcquisitionRail(e)).then(i=>{let{data:a}=i;t({type:eK.Z.GET_ACQUISITION_RAIL_DONE,payload:a.response.Rail,client:e})}).catch(e=>{t({type:eK.Z.GET_ACQUISITION_RAIL_FAIL,error:(0,_.Z)(e,["response","data","error"],{})})})}}var ta=i(11248),to=i.n(ta),tn=i(47228),ts=i(69206);class tr extends o.Component{render(){let{tile:e}=this.props;return(0,a.jsxs)(tl,{children:[(0,a.jsxs)(td,{bgColor:e.TitleBgColor,children:[(0,a.jsx)(el.j,{html:e.Title,className:"fs-12 w-600 text-gray-900 text-align-center"}),(0,a.jsx)(tm,{src:e.MediaURL,alt:""})]}),(0,a.jsx)(tc,{html:e.SubTitle,className:e.IsLocked?"w-600":"w-800"})]})}constructor(e){super(e),this.componentDidMount=()=>{this.props.tile.MediaURL&&(0,tn.Am)(this.props.tile.MediaURL)&&to().loadAnimation({container:this.animationContainerRef.current,path:this.props.tile.MediaURL,renderer:"canvas",loop:!0,autoplay:!0})},this.animationContainerRef=o.createRef()}}let tl=c.default.div.withConfig({componentId:"sc-cf631b6f-0"})(["width:130px;border-radius:8px;border:1px solid ",";margin-right:12px;background-color:#fff;"],ts.Z.z300),td=c.default.div.withConfig({componentId:"sc-cf631b6f-1"})(["padding:6px 0 16px 0;border-radius:7px 7px 0 0;background-color:",";background-size:100% 100%;position:relative;"],e=>e.bgColor||"#fff"),tc=(0,c.default)(el.j).withConfig({componentId:"sc-cf631b6f-2"})(["padding:14px 10px 6px;color:#363636;background-color:#fff;text-align:center;border-radius:0 0 7px 7px;min-height:55px;display:flex;align-items:center;justify-content:center;"]),tm=c.default.img.withConfig({componentId:"sc-cf631b6f-3"})(["width:20px;height:20px;position:absolute;bottom:-10px;left:calc(50% - 10px);"]);class tu extends o.Component{renderCTA(){let{CTA:{Action:e,IconImage:t,TextColor:i,Text:o}={}}=this.props.acquisitionRail||{};return(0,a.jsxs)("div",{className:"d-flex align-items-center pointer",onClick:()=>this.handleTextCta(e),children:[(0,a.jsx)("div",{className:"fs-16 w-600",style:{color:i},children:o}),(null==t?void 0:t.length)?(0,a.jsx)(tv,{src:t,alt:"",className:ej().icon}):(0,a.jsx)(a.Fragment,{})]})}handleBannerImageCta(e,t){var i,a;(null==t?void 0:null===(i=t.Action)||void 0===i?void 0:i.ActionType)===er.Acw&&(this.props.actions.trackPopUp(null==t?void 0:null===(a=t.Action)||void 0===a?void 0:a.TrackingParams),window.location.href="/complete-restaurant-setup?source=webOnboardingPage&completeRedirection=HOME")}handleTextCta(e){this.props.actions.trackPopUp(null==e?void 0:e.TrackingParams),(0,M.TM)(null==e?void 0:e.ActionType,null==e?void 0:e.ActionData,this.props.router)}render(){var e,t,i,o,n,s,r,l,d;let{acquisitionRail:c}=this.props,m=window.outerWidth<992,{Tiles:u=[]}=c;return(0,a.jsxs)(tg,{style:{backgroundImage:"url(".concat((null===(e=c.TopBgImage)||void 0===e?void 0:e.length)?c.TopBgImage:null==c?void 0:c.BannerImage,")")},className:(null===(t=c.TopBgImage)||void 0===t?void 0:t.length)===0?"".concat(ej().heightInherit," pointer"):"",onClick:()=>this.handleBannerImageCta(null==c?void 0:c.BannerImage,null==c?void 0:c.BannerImageCTA),children:[(0,a.jsx)(el.j,{className:"".concat(ej().acquistionHeading," w-800"),html:c.Heading}),(0,a.jsxs)("div",{className:"d-flex align-items-baseline",children:[(0,a.jsx)(el.j,{className:"".concat(m?"fs-12":"fs-16"," ").concat(ej().acqSubtitle," w-600 pb-4"),html:c.SubHeading}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:c.SubHeading?"ml-4":"mb-4",children:this.renderCTA()})})]}),(0,a.jsx)(tp,{children:u&&(null==u?void 0:u.length)?u.map(e=>(0,a.jsx)(tr,{tile:e},e.index)):null}),(0,a.jsx)(th,{bgImage:c.BottomBgImage,children:(0,a.jsxs)("div",{className:"d-flex justify-content-flex-start align-items-center",children:[(0,a.jsxs)("div",{className:"d-flex justify-content-flex-start align-items-end",children:[(0,a.jsx)("div",{children:(0,a.jsx)(eG.Z,{animationClass:ej().walletImage,animationUrl:null==c?void 0:null===(i=c.BottomMeta)||void 0===i?void 0:i.MediaUrl})}),(0,a.jsx)(el.j,{className:"fs-16 w-800 ml-2",html:null==c?void 0:null===(o=c.BottomMeta)||void 0===o?void 0:o.Text})]}),(null==c?void 0:null===(s=c.BottomMeta)||void 0===s?void 0:null===(n=s.CTA)||void 0===n?void 0:n.Text)?(0,a.jsx)(P.Z,{className:"ml-5 red-600 solid",size:"small",onClick:()=>{var e,t,i,a,o,n;(0,M.TM)(null==c?void 0:null===(i=c.BottomMeta)||void 0===i?void 0:null===(t=i.CTA)||void 0===t?void 0:null===(e=t.Action)||void 0===e?void 0:e.ActionType,null==c?void 0:null===(n=c.BottomMeta)||void 0===n?void 0:null===(o=n.CTA)||void 0===o?void 0:null===(a=o.Action)||void 0===a?void 0:a.ActionData,this.props.router)},children:(0,a.jsx)("p",{className:"w-800",children:null==c?void 0:null===(l=c.BottomMeta)||void 0===l?void 0:null===(r=l.CTA)||void 0===r?void 0:r.Text})}):(0,a.jsx)(a.Fragment,{}),!m&&(null==c?void 0:null===(d=c.Image)||void 0===d?void 0:d.length)?(0,a.jsx)(tx,{src:null==c?void 0:c.Image,alt:""}):(0,a.jsx)(a.Fragment,{})]})})]})}constructor(...e){super(...e),this.showRewardPage=()=>{let{acquisitionRail:e}=this.props,t=e.CTA?e.CTA.Action.TrackingParams:e.TrackingParams;this.props.showRewardPage(t)}}}let tg=c.default.div.withConfig({componentId:"sc-167fca91-0"})(["width:100%;background-repeat:no-repeat;background-size:100% 200px;padding-top:20px;"]),tp=c.default.div.withConfig({componentId:"sc-167fca91-1"})(["display:flex;z-index:8;position:relative;margin-left:16px;"]),th=c.default.div.withConfig({componentId:"sc-167fca91-2"})(["background-image:url(",");background-repeat:no-repeat;background-size:100% 100%;border-radius:0 0 24px 24px;padding:42px 22px 16px 16px;transform:translateY(-26px);display:flex;justify-content:space-between;position:relative;"],e=>e.bgImage),tv=c.default.img.withConfig({componentId:"sc-167fca91-3"})(["width:15px;height:12px;margin-left:8px;"]),tx=c.default.img.withConfig({componentId:"sc-167fca91-4"})(["width:174px;height:174px;position:absolute;top:-165px;right:0;"]);var tf=(0,s.withRouter)((0,n.$j)(e=>({}),e=>({actions:(0,r.DE)({trackPopUp:Y.fA},e)}))(tu)),t_=i(39003);function tC(e,t,i){return a=>{a({type:eK.Z.ORDER_GET_ONE_BEGIN});let o=e2.Z.getOrder(e,t);(0,eY.Z)(!0).get(o).then(e=>{let{data:t,headers:o}=e;a({type:eK.Z.ORDER_GET_ONE_DONE,order:t.response}),"function"==typeof i&&i(t)}).catch(e=>a({type:eK.Z.ORDER_GET_ONE_FAIL,error:(0,_.Z)(e,["response","data","error"],{})}))}}var ty=i(58498),tb=o.memo(function(e){let{BackgroundColor:t,BackgroundImage:i,BannerAction:n,ButtonCTA:s,DismissableCTA:r,Heading:l,SubHeading:d,SubText:c,WebImage:m,trackPopup:u,history:g}=e,[p,h]=(0,o.useState)(!0),v=(0,o.useCallback)(e=>{var t;e.stopPropagation(),u(null==r?void 0:null===(t=r.Action)||void 0===t?void 0:t.TrackingParams),h(!1)},[r,u]),x=(0,o.useCallback)(()=>{u(null==n?void 0:n.TrackingParams),(0,M.TM)(null==n?void 0:n.ActionType,null==n?void 0:n.ActionData,g)},[n,u,g]);return p?(0,a.jsx)("div",{className:"container relative p-0 mb-g1 ".concat(ej().bannerBorder),onClick:x,children:(0,a.jsxs)("div",{style:{backgroundColor:t,backgroundImage:i},className:ej().zplbanner,children:[(0,a.jsx)("img",{src:m,className:ej().zplImg,alt:""}),(0,a.jsxs)("div",{className:ej().zplContent,children:[(0,a.jsxs)("div",{className:ej().zplText,children:[(0,a.jsx)(el.j,{html:d,className:"fs-18 w-600 mb-1"}),(0,a.jsx)(el.j,{html:l,className:"fs-24 w-800 mb-1"}),(0,a.jsx)(el.j,{html:c,className:"fs-18 w-600"})]}),s&&s.Text?(0,a.jsxs)("div",{style:{backgroundColor:null==s?void 0:s.BgColor},className:ej().zplCTA,children:[(0,a.jsx)("div",{style:{color:null==s?void 0:s.TextColor},className:"fs-17 w-600 ".concat(ej().ctaText),children:null==s?void 0:s.Text}),(0,a.jsx)("img",{src:null==s?void 0:s.IconImage,className:ej().ctaArrow,alt:""})]}):null]}),r?(0,a.jsx)("img",{className:ej().dismissCTA,onClick:v,src:null==r?void 0:r.IconImage,alt:"dismiss CTA"}):null]})}):null}),tj=i(9257),tT=i(73108);let tw={handleActionType:M.TM,trackPopUp:Y.fA};var tA=(0,s.withRouter)((0,n.$j)(e=>({homePageStatus:e.status.get_home}),e=>({actions:(0,r.DE)(tw,e)}))(e=>{var t,i,n,r,l,d,c,m,u,g,p,h,v,x,f,_,C,y,b,j,T,w,A,N,H,I,B,S,D,k,P,O,R,E,L,Z,U,F,q,W,z,G,V,Q,X,K,J,$,ee,et,ei,ea,eo,en,es,er,ed,ec,em,eu,eg,ep,eh,ev,ex,ef,e_,eC,ey,eb,eT,ew,eA,eN,eH,eI,eB,eS,eD,ek,eM,eP,eO,eR,eE,eL,eZ,eU,eF,eq,eW,ez,eG,eQ,eX,eK,eY,eJ,e$,e0,e1,e2,e4,e6,e5,e8,e9,e3,e7,te,tt,ti,ta,to,tn,ts,tr,tl,td,tc,tm,tu,tg,tp,th,tv,tx,tf,t_,tC,ty,tb,tw,tA,tH,tI,tB,tS,tD,tk,tM,tP,tO,tR,tE,tL,tZ,tU,tF,tq,tW,tz,tG,tV,tQ,tX,tK,tY,tJ,t$,t0,t1,t2,t4,t6,t5,t8,t9,t3,t7,ie,it,ii,ia,io,is,ir;let il=(0,s.useRouter)(),[id,ic]=(0,o.useState)(!0),im=()=>{var t,i,o,n,s,r;let{Action:l,IconImage:d,BgColor:c,TextColor:m,Text:u}=(null===(o=e.HomeBannerData)||void 0===o?void 0:null===(i=o.Data)||void 0===i?void 0:null===(t=i.Body)||void 0===t?void 0:t.PrimaryCTA)||{};return(null===(r=e.HomeBannerData)||void 0===r?void 0:null===(s=r.Data)||void 0===s?void 0:null===(n=s.Body)||void 0===n?void 0:n.PrimaryCTA)?(0,a.jsx)(tj.Z,{className:"solid w-400 ".concat((0,M.tq)(992)?"":"mr-5","  ").concat(ej().milestoneBannerPrimaryCta),size:"compressed",btnColor:c,onClick:()=>(0,M.TM)(null==l?void 0:l.ActionType,null==l?void 0:l.ActionData,il,{},null==l?void 0:l.TrackingParams,e.actions.trackPopUp),children:(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("span",{style:{color:m},children:u}),(0,a.jsx)(tN,{src:d,alt:"",className:ej().icon})," "]})}):""},iu=(0,o.useCallback)(t=>{var i,a,o,n,s;t.stopPropagation(),e.actions.trackPopUp(null===(s=e.HomeBannerData)||void 0===s?void 0:null===(n=s.Data)||void 0===n?void 0:null===(o=n.Header)||void 0===o?void 0:null===(a=o.DismissableCTA)||void 0===a?void 0:null===(i=a.Action)||void 0===i?void 0:i.TrackingParams),ic(!1)},[null===(n=e.HomeBannerData)||void 0===n?void 0:null===(i=n.Data)||void 0===i?void 0:null===(t=i.Header)||void 0===t?void 0:t.DismissableCTA,Y.fA]);return id?(0,M.tq)(992)?(0,a.jsxs)("div",{className:"d-flex ".concat(ej().heightMilestoneDiv," ")+" w-400 container mb-g1 ".concat((0,M.tq)(540)?"":"p-0"),children:[(0,a.jsx)("div",{className:"".concat(ej().milestoneBannerHeader),style:(null===(eW=e.HomeBannerData)||void 0===eW?void 0:null===(eq=eW.Data)||void 0===eq?void 0:null===(eF=eq.Header)||void 0===eF?void 0:null===(eU=eF.BackgroundGradient)||void 0===eU?void 0:eU.length)>=2?{background:"linear-gradient(90deg,"+(null===(eQ=e.HomeBannerData)||void 0===eQ?void 0:null===(eG=eQ.Data)||void 0===eG?void 0:null===(ez=eG.Header)||void 0===ez?void 0:ez.BackgroundGradient[0])+" 0%, "+(null===(eY=e.HomeBannerData)||void 0===eY?void 0:null===(eK=eY.Data)||void 0===eK?void 0:null===(eX=eK.Header)||void 0===eX?void 0:eX.BackgroundGradient[1])+" 100%)"}:{},children:(0,a.jsx)("p",{style:(null===(e2=e.HomeBannerData)||void 0===e2?void 0:null===(e1=e2.Data)||void 0===e1?void 0:null===(e0=e1.Header)||void 0===e0?void 0:null===(e$=e0.Heading)||void 0===e$?void 0:null===(eJ=e$.TextGradientColors)||void 0===eJ?void 0:eJ.length)>=2?{background:"linear-gradient(180deg, "+(null===(e8=e.HomeBannerData)||void 0===e8?void 0:null===(e5=e8.Data)||void 0===e5?void 0:null===(e6=e5.Header)||void 0===e6?void 0:null===(e4=e6.Heading)||void 0===e4?void 0:e4.TextGradientColors[0])+" 0%, "+(null===(te=e.HomeBannerData)||void 0===te?void 0:null===(e7=te.Data)||void 0===e7?void 0:null===(e3=e7.Header)||void 0===e3?void 0:null===(e9=e3.Heading)||void 0===e9?void 0:e9.TextGradientColors[1])+" 90.38%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}:{},children:(0,a.jsxs)("div",{className:"d-flex",children:[(0,a.jsx)("img",{className:ej().thumbsupIcon,src:null===(ta=e.HomeBannerData)||void 0===ta?void 0:null===(ti=ta.Data)||void 0===ti?void 0:null===(tt=ti.Header)||void 0===tt?void 0:tt.MediaURL}),(0,a.jsx)("span",{className:"d-flex align-items-center",children:null===(tr=e.HomeBannerData)||void 0===tr?void 0:null===(ts=tr.Data)||void 0===ts?void 0:null===(tn=ts.Header)||void 0===tn?void 0:null===(to=tn.Heading)||void 0===to?void 0:to.Text})]})})}),(0,a.jsxs)("div",{className:"wd-100 d-flex ".concat(ej().milestoneHeaderBody),style:(null===(tm=e.HomeBannerData)||void 0===tm?void 0:null===(tc=tm.Data)||void 0===tc?void 0:null===(td=tc.Body)||void 0===td?void 0:null===(tl=td.BackgroundGradient)||void 0===tl?void 0:tl.length)>=2?{background:"linear-gradient(360deg,"+(null===(tp=e.HomeBannerData)||void 0===tp?void 0:null===(tg=tp.Data)||void 0===tg?void 0:null===(tu=tg.Body)||void 0===tu?void 0:tu.BackgroundGradient[0])+" 0.5%, "+(null===(tx=e.HomeBannerData)||void 0===tx?void 0:null===(tv=tx.Data)||void 0===tv?void 0:null===(th=tv.Body)||void 0===th?void 0:th.BackgroundGradient[1])+" 100%)"}:{},children:[(null===(tC=e.HomeBannerData)||void 0===tC?void 0:null===(t_=tC.Data)||void 0===t_?void 0:null===(tf=t_.Header)||void 0===tf?void 0:tf.DismissableCTA)&&(0,a.jsx)("img",{className:ej().crossIcon,src:null===(tA=e.HomeBannerData)||void 0===tA?void 0:null===(tw=tA.Data)||void 0===tw?void 0:null===(tb=tw.Header)||void 0===tb?void 0:null===(ty=tb.DismissableCTA)||void 0===ty?void 0:ty.IconImage,onClick:iu}),(0,a.jsxs)("div",{className:"wd-100 ".concat(ej().marginDeal," d-flex justify-content-between"),children:[(null===(tH=e.HomeBannerData)||void 0===tH?void 0:tH.Type)==="Card"?(0,a.jsx)(el.j,{className:"w-800 fs-21",html:null===(tS=e.HomeBannerData)||void 0===tS?void 0:null===(tB=tS.Data)||void 0===tB?void 0:null===(tI=tB.Body)||void 0===tI?void 0:tI.Title}):(0,a.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,a.jsx)(el.j,{className:"w-600 fs-16",html:null===(tM=e.HomeBannerData)||void 0===tM?void 0:null===(tk=tM.Data)||void 0===tk?void 0:null===(tD=tk.Body)||void 0===tD?void 0:tD.PrimaryText}),(0,a.jsx)(el.j,{className:"fs-16 w-600",html:null===(tR=e.HomeBannerData)||void 0===tR?void 0:null===(tO=tR.Data)||void 0===tO?void 0:null===(tP=tO.Body)||void 0===tP?void 0:tP.SecondaryText})]}),(null===(tE=e.HomeBannerData)||void 0===tE?void 0:tE.Type)==="Card"?(0,a.jsx)(el.j,{className:"fs-16 w-600",html:null===(tU=e.HomeBannerData)||void 0===tU?void 0:null===(tZ=tU.Data)||void 0===tZ?void 0:null===(tL=tZ.Body)||void 0===tL?void 0:tL.PrimaryText}):(0,a.jsxs)("div",{className:"".concat(ej().heigth10px," ").concat(ej().progressBar),children:[(0,a.jsx)(tT.Z,{completed:(null===(tz=e.HomeBannerData)||void 0===tz?void 0:null===(tW=tz.Data)||void 0===tW?void 0:null===(tq=tW.Body)||void 0===tq?void 0:null===(tF=tq.Progress)||void 0===tF?void 0:tF.Percentage)>2?null===(tX=e.HomeBannerData)||void 0===tX?void 0:null===(tQ=tX.Data)||void 0===tQ?void 0:null===(tV=tQ.Body)||void 0===tV?void 0:null===(tG=tV.Progress)||void 0===tG?void 0:tG.Percentage:2,isLabelVisible:!1,animateOnRender:!0,bgColor:null===(t$=e.HomeBannerData)||void 0===t$?void 0:null===(tJ=t$.Data)||void 0===tJ?void 0:null===(tY=tJ.Body)||void 0===tY?void 0:null===(tK=tY.Progress)||void 0===tK?void 0:tK.ProgressColor,baseBgColor:null===(t4=e.HomeBannerData)||void 0===t4?void 0:null===(t2=t4.Data)||void 0===t2?void 0:null===(t1=t2.Body)||void 0===t1?void 0:null===(t0=t1.Progress)||void 0===t0?void 0:t0.BackgroundColor,height:"10px"}),(0,a.jsx)(eV.Z,{source:null===(t9=e.HomeBannerData)||void 0===t9?void 0:null===(t8=t9.Data)||void 0===t8?void 0:null===(t5=t8.Body)||void 0===t5?void 0:null===(t6=t5.Progress)||void 0===t6?void 0:t6.MediaURL,classname:ej().coinIcon})]}),(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",style:(null===(t3=e.HomeBannerData)||void 0===t3?void 0:t3.Type)==="Card"?{marginTop:"16px"}:{},children:[(null===(t7=e.HomeBannerData)||void 0===t7?void 0:t7.Type)==="Card"&&im(),(()=>{var t,i,o,n,s,r;let{Action:l,IconImage:d,BgColor:c,TextColor:m,Text:u}=(null===(o=e.HomeBannerData)||void 0===o?void 0:null===(i=o.Data)||void 0===i?void 0:null===(t=i.Footer)||void 0===t?void 0:t.SecondaryCTA)||{};return(null===(r=e.HomeBannerData)||void 0===r?void 0:null===(s=r.Data)||void 0===s?void 0:null===(n=s.Footer)||void 0===n?void 0:n.SecondaryCTA)?(0,a.jsx)("div",{style:{color:m},className:"fs-14 pointer w-600",onClick:()=>(0,M.TM)(null==l?void 0:l.ActionType,null==l?void 0:l.ActionData,il,{},null==l?void 0:l.TrackingParams,e.actions.trackPopUp),children:u}):""})()]}),(0,a.jsx)(el.j,{className:"fs-12 w-600",html:null===(ii=e.HomeBannerData)||void 0===ii?void 0:null===(it=ii.Data)||void 0===it?void 0:null===(ie=it.Footer)||void 0===ie?void 0:ie.Text})]})]}),(null===(ia=e.HomeBannerData)||void 0===ia?void 0:ia.Type)==="Card"&&(0,a.jsx)("div",{className:"d-flex",children:(0,a.jsx)("img",{className:ej().fnvImage,src:null===(ir=e.HomeBannerData)||void 0===ir?void 0:null===(is=ir.Data)||void 0===is?void 0:null===(io=is.Body)||void 0===io?void 0:io.MediaURL})})]})]}):(0,a.jsxs)("div",{className:"d-flex ".concat(ej().heightMilestoneDiv," ")+" w-400 container p-0 mb-g2",children:[(0,a.jsx)("div",{className:"".concat(ej().width20," ").concat(ej().height100," ").concat(ej().milestoneBannerHeader),style:(null===(c=e.HomeBannerData)||void 0===c?void 0:null===(d=c.Data)||void 0===d?void 0:null===(l=d.Header)||void 0===l?void 0:null===(r=l.BackgroundGradient)||void 0===r?void 0:r.length)>=2?{background:"linear-gradient(90deg,"+(null===(g=e.HomeBannerData)||void 0===g?void 0:null===(u=g.Data)||void 0===u?void 0:null===(m=u.Header)||void 0===m?void 0:m.BackgroundGradient[0])+" 0%, "+(null===(v=e.HomeBannerData)||void 0===v?void 0:null===(h=v.Data)||void 0===h?void 0:null===(p=h.Header)||void 0===p?void 0:p.BackgroundGradient[1])+" 100%)"}:{},children:(0,a.jsx)("h1",{className:"w-800 fs-24",style:(null===(y=e.HomeBannerData)||void 0===y?void 0:null===(C=y.Data)||void 0===C?void 0:null===(_=C.Header)||void 0===_?void 0:null===(f=_.Heading)||void 0===f?void 0:null===(x=f.TextGradientColors)||void 0===x?void 0:x.length)>=2?{background:"linear-gradient(180deg, "+(null===(w=e.HomeBannerData)||void 0===w?void 0:null===(T=w.Data)||void 0===T?void 0:null===(j=T.Header)||void 0===j?void 0:null===(b=j.Heading)||void 0===b?void 0:b.TextGradientColors[0])+" 0%, "+(null===(I=e.HomeBannerData)||void 0===I?void 0:null===(H=I.Data)||void 0===H?void 0:null===(N=H.Header)||void 0===N?void 0:null===(A=N.Heading)||void 0===A?void 0:A.TextGradientColors[1])+" 90.38%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}:{},children:null===(k=e.HomeBannerData)||void 0===k?void 0:null===(D=k.Data)||void 0===D?void 0:null===(S=D.Header)||void 0===S?void 0:null===(B=S.Heading)||void 0===B?void 0:B.Text})}),(0,a.jsxs)("div",{className:"wd-80 ".concat(ej().height100," d-flex ").concat(ej().milestoneHeaderBody),style:(null===(E=e.HomeBannerData)||void 0===E?void 0:null===(R=E.Data)||void 0===R?void 0:null===(O=R.Body)||void 0===O?void 0:null===(P=O.BackgroundGradient)||void 0===P?void 0:P.length)>=2?{background:"linear-gradient(360deg,"+(null===(U=e.HomeBannerData)||void 0===U?void 0:null===(Z=U.Data)||void 0===Z?void 0:null===(L=Z.Body)||void 0===L?void 0:L.BackgroundGradient[0])+" 0.5%, "+(null===(W=e.HomeBannerData)||void 0===W?void 0:null===(q=W.Data)||void 0===q?void 0:null===(F=q.Body)||void 0===F?void 0:F.BackgroundGradient[1])+" 100%)"}:{},children:[(null===(V=e.HomeBannerData)||void 0===V?void 0:null===(G=V.Data)||void 0===G?void 0:null===(z=G.Header)||void 0===z?void 0:z.DismissableCTA)&&(0,a.jsx)("img",{className:ej().crossIcon,src:null===(J=e.HomeBannerData)||void 0===J?void 0:null===(K=J.Data)||void 0===K?void 0:null===(X=K.Header)||void 0===X?void 0:null===(Q=X.DismissableCTA)||void 0===Q?void 0:Q.IconImage,onClick:iu}),(0,a.jsxs)("div",{className:"wd-80 ".concat(ej().marginDeal," d-flex justify-content-between flex-sm-column"),children:[(null===($=e.HomeBannerData)||void 0===$?void 0:$.Type)==="Card"?(0,a.jsx)(el.j,{className:"w-800 fs-21",html:null===(ei=e.HomeBannerData)||void 0===ei?void 0:null===(et=ei.Data)||void 0===et?void 0:null===(ee=et.Body)||void 0===ee?void 0:ee.Title}):(0,a.jsxs)("div",{className:"".concat(ej().width90," d-flex justify-content-between"),children:[(0,a.jsx)(el.j,{className:"w-600 fs-18",html:null===(en=e.HomeBannerData)||void 0===en?void 0:null===(eo=en.Data)||void 0===eo?void 0:null===(ea=eo.Body)||void 0===ea?void 0:ea.PrimaryText}),(0,a.jsx)(el.j,{className:"fs-18 w-600",html:null===(ed=e.HomeBannerData)||void 0===ed?void 0:null===(er=ed.Data)||void 0===er?void 0:null===(es=er.Body)||void 0===es?void 0:es.SecondaryText})]}),(null===(ec=e.HomeBannerData)||void 0===ec?void 0:ec.Type)==="Card"?(0,a.jsx)(el.j,{className:"fs-16 ".concat(ej().width90," w-600"),html:null===(eg=e.HomeBannerData)||void 0===eg?void 0:null===(eu=eg.Data)||void 0===eu?void 0:null===(em=eu.Body)||void 0===em?void 0:em.PrimaryText}):(0,a.jsxs)("div",{className:"".concat(ej().heigth10px," ").concat(ej().width90),children:[(0,a.jsx)(tT.Z,{className:ej().progressBar,completed:(null===(ex=e.HomeBannerData)||void 0===ex?void 0:null===(ev=ex.Data)||void 0===ev?void 0:null===(eh=ev.Body)||void 0===eh?void 0:null===(ep=eh.Progress)||void 0===ep?void 0:ep.Percentage)>2?null===(ey=e.HomeBannerData)||void 0===ey?void 0:null===(eC=ey.Data)||void 0===eC?void 0:null===(e_=eC.Body)||void 0===e_?void 0:null===(ef=e_.Progress)||void 0===ef?void 0:ef.Percentage:2,isLabelVisible:!1,animateOnRender:!0,bgColor:null===(eA=e.HomeBannerData)||void 0===eA?void 0:null===(ew=eA.Data)||void 0===ew?void 0:null===(eT=ew.Body)||void 0===eT?void 0:null===(eb=eT.Progress)||void 0===eb?void 0:eb.ProgressColor,baseBgColor:null===(eB=e.HomeBannerData)||void 0===eB?void 0:null===(eI=eB.Data)||void 0===eI?void 0:null===(eH=eI.Body)||void 0===eH?void 0:null===(eN=eH.Progress)||void 0===eN?void 0:eN.BackgroundColor,height:"10px"}),(0,a.jsx)(eV.Z,{source:null===(eM=e.HomeBannerData)||void 0===eM?void 0:null===(ek=eM.Data)||void 0===ek?void 0:null===(eD=ek.Body)||void 0===eD?void 0:null===(eS=eD.Progress)||void 0===eS?void 0:eS.MediaURL,classname:ej().coinIcon})]}),(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between ".concat(ej().width90),children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[im(),(()=>{var t,i,o,n,s,r;let{Action:l,IconImage:d,BgColor:c,TextColor:m,Text:u}=(null===(o=e.HomeBannerData)||void 0===o?void 0:null===(i=o.Data)||void 0===i?void 0:null===(t=i.Body)||void 0===t?void 0:t.SecondaryCTA)||{};return(null===(r=e.HomeBannerData)||void 0===r?void 0:null===(s=r.Data)||void 0===s?void 0:null===(n=s.Body)||void 0===n?void 0:n.SecondaryCTA)?(0,a.jsx)("div",{style:{color:m},className:"fs-14 pointer w-600",onClick:()=>(0,M.TM)(null==l?void 0:l.ActionType,null==l?void 0:l.ActionData,il,{},null==l?void 0:l.TrackingParams,e.actions.trackPopUp),children:u}):""})()]}),(0,a.jsx)(el.j,{className:"fs-12 w-600",html:null===(eR=e.HomeBannerData)||void 0===eR?void 0:null===(eO=eR.Data)||void 0===eO?void 0:null===(eP=eO.Footer)||void 0===eP?void 0:eP.Text})]})]}),(0,a.jsx)("div",{className:"".concat(ej().width20," ").concat(ej().overflowHidden," d-flex align-items-end "),children:(0,a.jsx)("img",{className:ej().fnvImage,src:null===(eZ=e.HomeBannerData)||void 0===eZ?void 0:null===(eL=eZ.Data)||void 0===eL?void 0:null===(eE=eL.Body)||void 0===eE?void 0:eE.MediaURL})})]})]}):(0,a.jsx)("div",{})}));let tN=c.default.img.withConfig({componentId:"sc-383ed6b4-0"})(["width:15px;height:12px;margin-left:8px;"]);var tH=i(51393),tI=i.n(tH),tB=i(76841);let tS={getCommunications:Y.fM,resetCommunications:Y.eE,toggleCreditModal:tB.vr,trackPopUp:Y.fA,setAppMode:Y.ei};var tD=(0,s.withRouter)((0,n.$j)(e=>({commData:e.user.commData}),e=>({actions:(0,r.DE)(tS,e)}))(e=>{var t,i,n,s,r,l,d,c,m,u,g,p,h,v,x,f,_,C,y,b,j,T,w,A,N,H,I,B,S,D,k,P,O,R,E,L,Z,U,F;return(0,o.useEffect)(()=>{let t={source:e.source};e.actions.getCommunications(t)},[]),(0,o.useEffect)(()=>()=>{e.actions.resetCommunications()},[]),(null===(t=e.commData)||void 0===t?void 0:t.SiteWideMessage)?(0,a.jsx)("div",{className:e.className,children:(0,a.jsxs)("div",{className:"".concat("cart"===e.source?tI().summarySiteWideBox:tI().siteWideBox," w-400 py-4 d-flex align-items-center justify-content-center mb24 border-radius-24px scrollableList"),style:{borderColor:(null===(n=e.commData)||void 0===n?void 0:null===(i=n.SiteWideMessage)||void 0===i?void 0:i.CardBorderColor)?null===(r=e.commData)||void 0===r?void 0:null===(s=r.SiteWideMessage)||void 0===s?void 0:s.CardBorderColor:"",backgroundColor:null===(c=e.commData)||void 0===c?void 0:null===(d=c.SiteWideMessage)||void 0===d?void 0:null===(l=d.Body)||void 0===l?void 0:l.BackgroundColor},children:[(null===(g=e.commData)||void 0===g?void 0:null===(u=g.SiteWideMessage)||void 0===u?void 0:null===(m=u.Body)||void 0===m?void 0:m.MediaURL)?(0,a.jsx)(eV.Z,{classname:tI().img32,source:null===(v=e.commData)||void 0===v?void 0:null===(h=v.SiteWideMessage)||void 0===h?void 0:null===(p=h.Body)||void 0===p?void 0:p.MediaURL}):(0,a.jsx)(a.Fragment,{}),(0,a.jsxs)("div",{className:"fs-16 ml-4",children:[(null===(_=e.commData)||void 0===_?void 0:null===(f=_.SiteWideMessage)||void 0===f?void 0:null===(x=f.Body)||void 0===x?void 0:x.PrimaryText)&&(0,a.jsx)(el.j,{className:"w-600 ".concat("cart"===e.source?"":" inline "),html:null===(b=e.commData)||void 0===b?void 0:null===(y=b.SiteWideMessage)||void 0===y?void 0:null===(C=y.Body)||void 0===C?void 0:C.PrimaryText}),(null===(w=e.commData)||void 0===w?void 0:null===(T=w.SiteWideMessage)||void 0===T?void 0:null===(j=T.Body)||void 0===j?void 0:j.PrimaryCTA)&&(0,a.jsxs)("div",{className:"pointer w-800 ml-2 ".concat(tI().widthInherit," ").concat("cart"===e.source?" mt-3 d-flex align-items-center ":" d-inline-flex align-items-center "),onClick:()=>{var t,i,a,o,n,s,r,l,d,c,m,u,g,p,h;(0,M.TM)(null===(n=e.commData)||void 0===n?void 0:null===(o=n.SiteWideMessage)||void 0===o?void 0:null===(a=o.Body)||void 0===a?void 0:null===(i=a.PrimaryCTA)||void 0===i?void 0:null===(t=i.Action)||void 0===t?void 0:t.ActionType,null===(c=e.commData)||void 0===c?void 0:null===(d=c.SiteWideMessage)||void 0===d?void 0:null===(l=d.Body)||void 0===l?void 0:null===(r=l.PrimaryCTA)||void 0===r?void 0:null===(s=r.Action)||void 0===s?void 0:s.ActionData,e.history,{toggleCreditModal:()=>e.actions.toggleCreditModal(!0),setAppMode:t=>e.actions.setAppMode(t)},null===(h=e.commData)||void 0===h?void 0:null===(p=h.SiteWideMessage)||void 0===p?void 0:null===(g=p.Body)||void 0===g?void 0:null===(u=g.PrimaryCTA)||void 0===u?void 0:null===(m=u.Action)||void 0===m?void 0:m.TrackingParams,e.actions.trackPopUp)},style:{color:null===(I=e.commData)||void 0===I?void 0:null===(H=I.SiteWideMessage)||void 0===H?void 0:null===(N=H.Body)||void 0===N?void 0:null===(A=N.PrimaryCTA)||void 0===A?void 0:A.TextColor},children:[null===(k=e.commData)||void 0===k?void 0:null===(D=k.SiteWideMessage)||void 0===D?void 0:null===(S=D.Body)||void 0===S?void 0:null===(B=S.PrimaryCTA)||void 0===B?void 0:B.Text,(null===(E=e.commData)||void 0===E?void 0:null===(R=E.SiteWideMessage)||void 0===R?void 0:null===(O=R.Body)||void 0===O?void 0:null===(P=O.PrimaryCTA)||void 0===P?void 0:P.IconImage)&&(0,a.jsx)(eV.Z,{classname:tI().sitewideImgCTAIcon,source:null===(F=e.commData)||void 0===F?void 0:null===(U=F.SiteWideMessage)||void 0===U?void 0:null===(Z=U.Body)||void 0===Z?void 0:null===(L=Z.PrimaryCTA)||void 0===L?void 0:L.IconImage})]})]})]})}):(0,a.jsx)(a.Fragment,{})}));i(63389);var tk=i(77722),tM=i(48412),tP=(0,s.withRouter)((0,n.$j)(e=>({userData:e.user.data,homePageCategoryRails:e.user.homePageCategoryRails,homePageCategoryRailsStatus:e.status.get_home_page_category_rails}),e=>({actions:(0,r.DE)({getHomeCategoryRails:Y.nt,resetHomeCategoryRails:Y.DB,setErrorToast:Y.dB},e)}))(e=>{var t,i,n,r;let l=(0,s.useRouter)(),[d,c]=(0,o.useState)(1);(0,o.useEffect)(()=>{e.userData&&e.homePageCategoryRailsStatus.state===X.Z.STATE_INIT&&e.actions.getHomeCategoryRails(d)},[e.userData]),(0,o.useEffect)(()=>()=>{e.actions.resetHomeCategoryRails(),c(1)},[]);let m=()=>{e.actions.getHomeCategoryRails(d+1),c(d+1)},u=t=>{let{show:i,text:a,type:o,className:n}=t;e.actions.setErrorToast(a)};return(0,a.jsx)("div",{children:(0,a.jsx)(tM.Z,{dataLength:null===(i=e.homePageCategoryRails)||void 0===i?void 0:null===(t=i.Rails)||void 0===t?void 0:t.length,hasMore:null===(n=e.homePageCategoryRails)||void 0===n?void 0:n.HasNextPage,loader:(0,a.jsx)("div",{className:"spinner-container",children:(0,a.jsx)(tk.Z,{size:"large",color:er.FVB})}),next:()=>m(),className:"p-0",initialScrollY:1,children:((null===(r=e.homePageCategoryRails)||void 0===r?void 0:r.Rails)||[]).map(t=>(0,a.jsxs)("div",{className:"container p-0 ".concat((0,M.tq)(992)?"mb-g1":"mb-g2"),children:[(0,a.jsxs)("div",{className:"d-flex mb24 justify-content-between align-items-center ".concat((0,M.tq)(540)?"mx-4":""),children:[(0,a.jsxs)("div",{className:"d-flex",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)(eV.Z,{source:t.IconPath,classname:"".concat((0,M.tq)(992)?"img48":"img64")})}),(0,a.jsxs)("div",{className:"d-flex flex-column ".concat(ej().categoryTexts),children:[(0,a.jsx)("div",{className:"w-800 ".concat((0,M.tq)(992)?"fs-20":"fs-30"),children:t.Heading}),(0,a.jsx)("div",{className:"w-400 fs-16 ".concat(ej().greySubHeading),children:t.Description})]})]}),t.SeeAllCTA?(0,a.jsxs)("div",{className:"d-flex align-items-center pointer",children:[(0,a.jsx)("div",{onClick:()=>{var e,i,a,o;return(0,M.TM)(null===(i=t.SeeAllCTA)||void 0===i?void 0:null===(e=i.Action)||void 0===e?void 0:e.ActionType,null===(o=t.SeeAllCTA)||void 0===o?void 0:null===(a=o.Action)||void 0===a?void 0:a.ActionData,l)},className:"w-600 fs-16 white-space-nowrap",style:{color:t.SeeAllCTA.TextColor},children:t.SeeAllCTA.Text}),t.SeeAllCTA.IconImage?(0,a.jsx)("img",{src:t.SeeAllCTA.IconImage,alt:"",className:"imageIcon"}):(0,a.jsx)(a.Fragment,{})]}):(0,a.jsx)(a.Fragment,{})]}),(0,a.jsx)(e$.Z,{promotionsData:t.Products||[],categoryRailMeta:{Heading:t.Heading,SubHeading:t.Description,IconPath:t.IconPath},cartUpdateSource:t.Source,dontOpenIssueModal:!1,addUpdateManyIssues:e.addUpdateManyIssues,removeManyIssues:e.removeManyIssues,updateOneIssue:e.updateOneIssue,isIssuesModalOpen:e.isIssuesModalOpen,clearIssues:e.clearIssues,toastOpenHandler:u,isHome:!0,type:"productDescription"},"HOMEPAGE")]}))})})})),tO=i(65396),tR=i.n(tO);class tE extends o.Component{render(){var e,t,i,o,n,s,r,l,d,c,m,u,g,p,h,v,x;let{offerItem:f,onClickHandler:_,onClickDetailsHandler:C,Direction:y}=this.props;return(0,a.jsx)("div",{className:"".concat("function"==typeof _?"pointer":"cursor"," ").concat("vertical"===y?tR().offerCardCart:tR().offerCardHome),style:{backgroundColor:f.Body.BackgroundColor,borderColor:f.Body.BorderColor},onClick:"function"==typeof _?()=>{_(null==f?void 0:f.Body)}:null,children:(0,a.jsxs)("div",{className:"d-flex mb1",style:{height:"100%"},children:[(0,a.jsx)(eV.Z,{source:f.Body.MediaURL,classname:tR().offerCardImage}),(0,a.jsxs)("div",{className:"justify-content-between ".concat(tR().rod),children:[(0,a.jsxs)("div",{className:"firstBox",children:[(0,a.jsx)("div",{className:tR().dot1,style:{borderColor:f.Body.BorderColor,backgroundColor:"".concat("vertical"===y?"white":"#f4f6fb")}}),(0,a.jsx)("div",{className:tR().cover1,style:{backgroundColor:"".concat("vertical"===y?"white":"#f4f6fb")}})]}),(0,a.jsxs)("div",{className:"secondBox",children:[(0,a.jsx)("div",{className:tR().dot2,style:{borderColor:f.Body.BorderColor,backgroundColor:"".concat("vertical"===y?"white":"#f4f6fb")}}),(0,a.jsx)("div",{className:tR().cover2,style:{backgroundColor:"".concat("vertical"===y?"white":"#f4f6fb")}})]})]}),(0,a.jsxs)("div",{className:tR().offerDetails,children:[(0,a.jsx)(el.j,{className:"text-align-left ".concat("vertical"===y?tR().TitleCart:tR().TitleHome," "),html:f.Body.Title}),(0,a.jsx)(el.j,{className:"text-align-left ".concat("vertical"===y?tR().SubTitleCart:tR().SubTitleHome),html:f.Body.SubTitle}),(0,a.jsxs)("div",{className:"d-flex",children:[(0,a.jsx)(tT.Z,{className:"wd-100 ".concat(tR().progressBar),completed:null==f?void 0:null===(t=f.Body)||void 0===t?void 0:null===(e=t.Progress)||void 0===e?void 0:e.Percentage,isLabelVisible:!1,animateOnRender:!0,bgColor:null==f?void 0:null===(o=f.Body)||void 0===o?void 0:null===(i=o.Progress)||void 0===i?void 0:i.ProgressColor,baseBgColor:null==f?void 0:null===(s=f.Body)||void 0===s?void 0:null===(n=s.Progress)||void 0===n?void 0:n.BackgroundColor,height:"6px"}),(null===(l=f.Body)||void 0===l?void 0:null===(r=l.Progress)||void 0===r?void 0:r.MediaURL)?(0,a.jsx)("img",{src:null===(c=f.Body)||void 0===c?void 0:null===(d=c.Progress)||void 0===d?void 0:d.MediaURL,className:tR().icon}):(0,a.jsx)(a.Fragment,{})]}),(null==f?void 0:null===(m=f.Body)||void 0===m?void 0:m.SecondaryCTA)?(0,a.jsx)("div",{className:"pointer fs-14 fw-500 ".concat(tR().SecondaryCTAText),style:{color:"".concat((null==f?void 0:null===(g=f.Body)||void 0===g?void 0:null===(u=g.SecondaryCTA)||void 0===u?void 0:u.TextColor)?null==f?void 0:null===(h=f.Body)||void 0===h?void 0:null===(p=h.SecondaryCTA)||void 0===p?void 0:p.TextColor:"")},onClick:e=>{e.stopPropagation(),C(null==f?void 0:f.Body)},children:null==f?void 0:null===(x=f.Body)||void 0===x?void 0:null===(v=x.SecondaryCTA)||void 0===v?void 0:v.Text}):(0,a.jsx)(a.Fragment,{})]})]})})}constructor(e){super(e)}}var tL=(0,n.$j)(e=>({}),e=>({actions:(0,r.DE)(e)}))(tE);i(58449);var tZ=i(7888),tU=(0,s.withRouter)((0,n.$j)(e=>{var t;return{CartDiscount:(null===(t=e.user)||void 0===t?void 0:t.CartDiscount)||{}}},e=>({actions:(0,r.DE)({resetCartDiscount:Y.Zw,trackPopUp:Y.fA},e)}))(e=>{var t,i;let{Source:n,className:s,CartDiscount:r,actions:l,onClickHandler:d,onClickDetailsHandler:c,Direction:m,history:u}=e,[g,p]=(0,o.useState)({}),[h,v]=(0,o.useState)(0),[x,f]=(0,o.useState)(!1),[_,C]=(0,o.useState)(!1),[y,b]=(0,o.useState)(!1),[j,T]=(0,o.useState)(!1);(0,o.useRef)();let[w,A]=(0,o.useState)(window.scrollY);(0,o.useEffect)(()=>{var e,t,i,a,o,s,l,d;r&&(null===(i=r[0])||void 0===i?void 0:null===(t=i.RightCTA)||void 0===t?void 0:null===(e=t.Action)||void 0===e?void 0:e.ActionType)===er.Acw&&(p(r[0]),v(0)),r&&(null===(a=Object.keys(r))||void 0===a?void 0:a.length)&&(null===(o=r[n])||void 0===o?void 0:o.BannerData)&&(v((null===(l=r[n])||void 0===l?void 0:null===(s=l.BannerData)||void 0===s?void 0:s.length)<=r[n].ActiveBannerIndex?0:r[n].ActiveBannerIndex),p(r[n]),f(!1),(null===(d=r[n])||void 0===d?void 0:d.SuccessPopUp)?C(!0):C(!1))},[r]),(0,o.useEffect)(()=>()=>{l.resetCartDiscount()},[]);let{BannerData:N}=g;return(0,a.jsxs)(o.Fragment,{children:[_?(0,a.jsx)(tZ.Z,{isOpen:_,onClose:()=>{C(!1)},SuccessPopUp:null==g?void 0:g.SuccessPopUp}):(0,a.jsx)(a.Fragment,{}),N&&(null==N?void 0:N.length)!==0?(0,a.jsxs)("div",{className:"".concat("vertical"===m?tR().offercont:"mb-g2"),children:[(0,a.jsxs)("div",{className:"d-flex ".concat("vertical"===m?y?tR().offerTitleBoxScroll:tR().offerTitleBox:""),children:[(0,a.jsx)("div",{className:"".concat(tR().offerTitle),children:"CartPage"==n?(0,a.jsxs)("div",{className:"".concat(tR().offerTitleCart),children:[" ",null==g?void 0:g.OfferTitle," "]}):"HomePage"==n?(0,a.jsx)("div",{className:"fs-30 w-800 text-gray-1000 ".concat(tR().offerTitleHome),children:" Offers of the Day "}):""}),(0,a.jsx)("div",{className:"d-flex align-items-center justify-content-center",children:(0,a.jsx)(eV.Z,{source:null==g?void 0:g.OfferTitleMediaUrl,classname:"px-1 height-16px"})})]}),"vertical"===m?(0,a.jsx)("div",{className:"".concat(tR().offersContainer),onScroll:e=>{e.target.scrollTop>5?b(!0):b(!1)},children:((null==g?void 0:g.BannerData)||[]).map((e,t,i)=>(0,a.jsx)(tL,{idx:t,offerItem:e,onClickHandler:d,onClickDetailsHandler:c,Direction:m},e.Id))}):(0,a.jsx)("section",{className:"relative carousel-custom",children:(0,a.jsx)(ei.Z,{arrows:!1,customButtonGroup:(null==N?void 0:N.length)>2&&(0,a.jsx)(q.hE,{type:"discount",dimension:(0,M.tq)(540)?36:48}),deviceType:"desktop",containerClass:tR().cont,responsive:(0,W.bq)(W.SM,null==N?void 0:N.length),renderButtonGroupOutside:!0,ssr:!0,className:tR().limitOverflow,autoPlay:null!==(t=N[h])&&void 0!==t&&!!t.TransitionAfterSeconds&&!x,interval:(null===(i=N[h])||void 0===i?void 0:i.TransitionAfterSeconds)*1e3,onChange:e=>{v(e)},children:((null==g?void 0:g.BannerData)||[]).map((e,t,i)=>(0,a.jsx)(tL,{idx:t,offerItem:e,onClickHandler:d,onClickDetailsHandler:c,Direction:m},e.Id))})})]}):(0,a.jsx)(a.Fragment,{})]})})),tF=i(68739),tq=i(92371),tW=function(e){let{text:t,color:i,font:o,tabXFactor:n=1.6}=e.headingData,s={600:"w-600 fw-600",200:"w-200 fw-200",bold:"w-1000 fw-800"};return(0,a.jsx)("div",{style:{fontSize:null==o?void 0:o.webSize},children:(0,a.jsx)("p",{style:{opacity:null==i?void 0:i.alpha,color:null==i?void 0:i.type,fontSize:window.innerWidth>=540&&window.innerWidth<=992?100*n+"%":null==o?void 0:o.webSize},className:s[null==o?void 0:o.size]?(null==o?void 0:o.weight)==="bold"?s[null==o?void 0:o.weight]:s[null==o?void 0:o.size]:"",children:t})})};class tz extends o.Component{componentDidMount(){let{actions:e,userData:t}=this.props,i=window.localStorage.getItem(er.Pzx);t&&(e.getAerobars(),e.getHomePage(),e.v2_getCategoriesWithSubCategories(!0,t.account.id,!0,!0,t.outlet.outletAddress.cityId),t.outlet.serviceabilityStatus&&"SERVICEABLE"!==t.outlet.serviceabilityStatus&&t.outlet.outletAddress.zipcode&&(window.location.href="/serviceable/".concat(t.outlet.serviceabilityStatus))),this.props.paymentV2&&"failed"===this.props.paymentV2.status&&i===er.s5n&&(this.setState({showPayOnDeliveryModal:!0}),window.localStorage.removeItem(er.Pzx)),window.addEventListener("scroll",this.scrollHandler)}componentDidUpdate(e,t){let{actions:i,userData:a,serviceablePinCodeData:o,getHomeStatus:n,homeData:{rails:s=[]}={}}=this.props;if(t.toast!==this.state.toast&&this.state.toast.show&&this.state.toast.text&&this.props.actions.setErrorToast(this.state.toast.text),e.getHomeStatus.state!==n.state&&n.state===X.Z.STATE_DONE){let e=[];(null==s?void 0:s.length)&&s.forEach(t=>{t.Rails.map(t=>{switch(t.RailType){case"Rewards":i.getAcquisitionRail();break;case"Products":e.push(t);break;case"BrandCampaign":i.getBrandCampaign(t.Endpoint);break;case"Banners":i.getCommercialBanners(t.Endpoint);break;case"Testimonials":(0,Y.G3)(i.getTestimonials);break;case"FeaturesTicker":i.getFeatureTickers(t.Endpoint);break;case"CollaborativeBanners":i.getCollaborativeBanners(t.Endpoint);break;case"Exigency":i.getExigencyBanners(t.Endpoint);break;case"CartDiscount":i.getCartDiscount(t.Endpoint);break;default:tq.Z.error("Home","No rail action")}})}),e.length&&i.getVerticalProducts(e)}a&&!e.userData&&(i.getAerobars(),i.getHomePage(),i.v2_getCategoriesWithSubCategories(!0,a.account.id,!0,!0,a.outlet.outletAddress.cityId)),e.userDataStatus.state!==this.props.userDataStatus.state&&this.props.userDataStatus.state===X.Z.STATE_DONE&&(a.outlet.serviceabilityStatus&&"SERVICEABLE"!==a.outlet.serviceabilityStatus&&a.outlet.outletAddress.zipcode?window.location.href="/serviceable/".concat(a.outlet.serviceabilityStatus):this.setState({selectedAppSourceValue:this.props.userData.user.email,showPincodeModal:!a.outlet.outletAddress.zipcode})),e.setPinCodeStatus.state!==this.props.setPinCodeStatus.state&&this.props.setPinCodeStatus.state===X.Z.STATE_DONE&&("SERVICEABLE"!==o.IsServiceable?window.location.href="/serviceable/".concat(o.IsServiceable):window.location.reload()),e.shareAppLinkStatus.state!==this.props.shareAppLinkStatus.state&&(this.props.shareAppLinkStatus.state===X.Z.STATE_DONE?this.toastOpenHandler({show:!0,text:"Link successfully sent",type:"success",className:"info-toast"}):this.props.shareAppLinkStatus.state===X.Z.STATE_FAIL&&this.toastOpenHandler({show:!0,text:this.props.shareAppLinkStatus.error,type:"error",className:""})),e.getOrderOneStatus.state===X.Z.STATE_BEGIN&&this.props.getOrderOneStatus.state===X.Z.STATE_DONE&&(1===this.props.order.PaymentEnabled?this.setState({showPayOnDeliveryModal:!0}):this.props.order.PaymentMessage&&this.props.order.PaymentMessage.trim().length&&this.toastOpenHandler({show:!0,text:this.props.order.PaymentMessage,type:"error",className:""}))}componentWillUnmount(){window.removeEventListener("scroll",this.scrollHandler)}getCategoryAndSubCategoryIds(e){let{categoryId:t,subCategoryId:i}=e,{v2Categories:a}=this.props;if(0===a.length||!t)return null;let o={categoryId:t,subCategoryId:i};if(!i){let e=a.find(e=>e.id===t);o={...o,subCategoryId:e.children[0].id}}return o}getCurrentBannerIndex(){}setCustomState(e,t){this.setState({[e]:t})}setCarouselAutoplay(e,t){var i;let a=null==e?void 0:null===(i=e.current)||void 0===i?void 0:i.getBoundingClientRect(),o=(null==a?void 0:a.top)<window.innerHeight&&(null==a?void 0:a.bottom)>=0;this.setCustomState(t,o)}renderCommercialBannersCarousel(e){let{commercialBanners:t,commercialBannersStatus:i}=this.props;if(i.state!==X.Z.STATE_DONE||t&&0===t.length)return null;let o=[];return i.state!==X.Z.STATE_DONE||(null==(o=t)?void 0:o.length)?(0,a.jsx)(es.Z,{message:"Unable to load Carousel",children:(0,a.jsxs)("section",{className:"container carousel-custom relative ".concat((0,M.tq)(992)?"mb-g1":"mb-g2"," ").concat((0,M.tq)(540)?null:"p-0"),ref:this.commercialBannersRef,children:[(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between fs-30 w-800 mb24",children:[(0,a.jsx)("div",{children:e.Heading}),!(0,M.tq)(992)&&(0,a.jsx)("div",{className:"".concat(ej().bannerCounter," w-600 fs-14"),children:(null==o?void 0:o.length)===1?"1/1":this.state.currentSlide+"/"+(null==o?void 0:o.length)})]}),(0,a.jsx)(ei.Z,{arrows:!1,customButtonGroup:(0,a.jsx)(q.hE,{dimension:(0,M.tq)(540)?36:48,currentIndex:this.state.currentSlide,totalSlides:null==o?void 0:o.length,type:"banners"}),deviceType:"desktop",responsive:(0,W.bq)(W.hJ),renderButtonGroupOutside:!0,containerClass:ej().widthOverflowed,className:ej().limitOverflow,autoPlay:!0,autoPlaySpeed:3e3,infinite:!0,afterChange:(e,t)=>{let{currentSlide:i,onMove:a}=t;(0,M.tq)(992)||this.setCurrentSlide(this.state.currentSlide%(null==o?void 0:o.length)+1)},children:o.map(e=>(0,a.jsxs)("div",{className:"".concat(ej().bannerContainer," "),onClick:()=>{e.trackingData&&this.props.actions.trackPopUp(e.trackingData),(0,M.TM)(e.actionType,e.actionData,this.props.router,{sendReference:!0})},children:[(0,a.jsx)("img",{src:e.src,alt:e.commercialName,className:"".concat(ej().bannerImg," ").concat(ej().imageContainerBorder)}),e.bannerType!==er.CcE||(0,M.tq)(992)?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("div",{className:"".concat(ej().textOnBannerImage," w-800 d-flex flex-column"),children:[e.heading.length?(0,a.jsx)("div",{className:ej().mb12,children:e.heading}):(0,a.jsx)(a.Fragment,{}),e.subHeading.length?(0,a.jsx)("div",{className:"".concat(ej().subHeadingBannerTextSize," fs-16"),children:e.subHeading}):(0,a.jsx)(a.Fragment,{})]})]},e.keyVal))})]})}):null}renderCollaborativeBannersCarousel(e){var t,i;return(0,a.jsx)("div",{className:"container relative p-0 mb-g1",ref:this.collaborativeBannersRef,children:(0,a.jsx)(ei.Z,{arrows:!1,customButtonGroup:(0,a.jsx)(q.hE,{dimension:(0,M.tq)(540)?36:48,currentIndex:this.state.collaborativeBannerCurrentSlide,totalSlides:null===(t=this.props.collaborativeBanners)||void 0===t?void 0:t.length,type:"testimonials"}),deviceType:"desktop",responsive:(0,W.bq)(W.Dg),renderButtonGroupOutside:!0,className:ej().limitOverflow,autoPlay:this.state.collaborativeBannerAutoplay,infinite:!0,autoPlaySpeed:3e3,children:null===(i=this.props)||void 0===i?void 0:i.collaborativeBanners.map(e=>(e.hideMargin=!0,this.renderExigencyBannersCarousel(e,!1)))})})}renderExigencyBannersCarousel(e,t){if(!e)return null;let{Image:i="",Id:n,ActionType:s,ActionData:r,TrackingParams:l,BannerType:d,Heading:c,SubHeading:m,hideMargin:u}=e;return(0,a.jsx)(o.Fragment,{children:(0,a.jsx)("section",{className:"".concat(t?"mb-g1":""," relative carousel-custom container ").concat((0,M.tq)(540)?"":"p-0"),children:(0,a.jsx)("div",{className:"d-flex justify-content-center align-items-center wd-100",children:(0,a.jsx)("div",{className:"col-12 p-0",children:(0,a.jsxs)("div",{className:ej().imageContainer,onClick:()=>{l&&this.props.actions.trackPopUp(l),(0,M.TM)(s,r,this.props.router,{sendReference:!0})},children:[(0,a.jsxs)("div",{className:"absolute ".concat(ej().dynamicCollaborativeBannerContainer),children:[(null==e?void 0:e.BannerType)==="DYNAMIC"&&(0,a.jsx)(tW,{headingData:null==e?void 0:e.HeadingV2}),(0,a.jsx)("div",{className:"mb-1"}),(null==e?void 0:e.BannerType)==="DYNAMIC"&&(0,a.jsx)(tW,{headingData:null==e?void 0:e.SubHeadingV2})]}),(0,a.jsx)("img",{className:ej().exigency,src:i,alt:"Pay Later Banner"})]},n)})})})})}renderCategories(){let{v2Categories:e}=this.props;return 0===e.length?null:(0,a.jsx)("section",{className:"container mb-5 p-0",children:(0,a.jsx)(es.Z,{message:"Unable to load Categories",children:(0,a.jsx)(Q,{categories:e})})})}handleZplDismiss(e){e.stopPropagation()}renderZplBanner(e){let{DynamicBannerData:{BackgroundColor:t,BackgroundImage:i,BannerAction:o,ButtonCTA:n,DismissableCTA:s,Heading:r,SubHeading:l,SubText:d,WebImage:c}={}}=e||{};return(0,a.jsx)(tb,{BackgroundColor:t,BackgroundImage:i,BannerAction:o,ButtonCTA:n,DismissableCTA:s,Heading:r,SubHeading:l,SubText:d,WebImage:c,trackPopup:this.props.actions.trackPopUp,history:this.props.history})}renderMilestoneBanner(e){let{HomeBannerData:t}=e||{};return(0,a.jsx)(tA,{HomeBannerData:t})}appLink(e){window.open(this.props.appLinks[e],"_blank").focus()}renderSetupAerobars(){var e,t,i,o,n,s;let r=this.props.aerobars.filter(e=>{var t,i;return(null==e?void 0:null===(i=e.RightCTA)||void 0===i?void 0:null===(t=i.Action)||void 0===t?void 0:t.ActionType)===er.Acw});return(r=r.length>0?r[0]:r)&&(null==r?void 0:null===(e=r.MediaUrl)||void 0===e?void 0:e.length)&&(null==r?void 0:null===(t=r.Description)||void 0===t?void 0:t.length)&&(0,a.jsx)("div",{className:"".concat(ej().setupCard," ").concat(ej().flex100," d-flex align-items-center justify-content-center ").concat(ej().wd95),children:(0,a.jsxs)("div",{className:"".concat(ej().setupCardInner," d-flex align-items-center"),children:[(0,a.jsx)(eV.Z,{source:r.MediaUrl,classname:ej().img48}),(0,a.jsx)("div",{className:"ml-4 wd-100",children:(0,a.jsx)(el.j,{html:r.Description,className:"mr-2 fs-14 w-600  text-align-left ".concat((null===(n=r.RightCTA)||void 0===n?void 0:null===(o=n.Action)||void 0===o?void 0:null===(i=o.ActionType)||void 0===i?void 0:i.length)>0?"pointer":"")})}),(0,a.jsx)(P.Z,{size:"small",onClick:()=>this.handleCompleteSetupClick(r),children:null===(s=r.RightCTA)||void 0===s?void 0:s.Text})]})})}CheckSalesOpsUser(){var e,t;if(null===(t=this.props.userData)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.isSalesOpsUser){window.location.href="/z/4pl/outlet-orders?isSalesOpsUser=true";let e={isSalesOpsUser:"true"},t=new URL(window.location.href);Object.keys(e).forEach(i=>t.searchParams.set(i,e[i])),window.history.pushState({},"",t)}}render(){let{config:e,signedInFromZomato:t,signInResponse:i,userDataStatus:n,shareAppLinkStatus:s,getAppLinkStatus:r,validatePincodeStatus:l,serviceablePinCodeData:d,userData:c,order:m,paymentV2:u,overdue:g}=this.props;return(0,a.jsxs)(o.Fragment,{children:[(m||u.orders&&"failed"===u.status)&&(0,a.jsx)(eq.Z,{orders:u&&u.orders&&"failed"===u.status?u.orders:[m],showModal:this.state.showPayOnDeliveryModal,onModalClose:this.handlePODModalClose,toastOpenHandler:this.toastOpenHandler,source:er.s5n,refreshAerobars:this.props.actions.getAerobars,paymentDetails:u}),this.CheckSalesOpsUser(),this.state.showOfferDetailsModal?(0,a.jsx)(tF.Z,{offerData:this.props.offerDetailsData,closePopup:this.toggleOfferDetailsModal,history:this.props.history,source:this.props.router.pathname}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(es.Z,{children:(0,a.jsx)(e0.default,{currentPath:this.props.currentPath,isMobile:this.props.isMobile})}),t?(0,a.jsx)("div",{className:"d-flex justify-content-center ".concat(ej().onboardModal),children:this.state.showAppLinkModal?(0,a.jsxs)("div",{className:"".concat(ej().contentBoxSecond),children:[(0,a.jsx)(eN.X1q,{size:22,color:er.GPL,className:"".concat(ej().icon),onClick:()=>this.props.actions.removeSignedInFromZomato()}),(0,a.jsxs)("div",{className:"row align-items-center",children:[(0,a.jsx)("div",{className:"col-12 col-sm-4",children:(0,a.jsx)("img",{src:"../../../assets/images/mocksOnline.png",className:"p-4 py-5 wd-100 ".concat(ej().onboard),alt:""})}),(0,a.jsx)("div",{className:"col-12 col-sm-8",children:(0,a.jsxs)("div",{className:"d-flex flex-column ".concat(ej().respAlign),children:[(0,a.jsx)("div",{className:"fs-32 w-200",children:"Get the Hyperpure App"}),(0,a.jsxs)("div",{className:"text-black mb-4",children:["Open the link sent to your email or phone to",(0,a.jsx)("br",{})," download the app"]}),n.state===X.Z.STATE_FAIL?null:(0,a.jsx)(o.Fragment,{children:n.state===X.Z.STATE_BEGIN?(0,a.jsx)(et.Cv,{}):(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(eU,{options:[{label:"Email",value:"email"},{label:"Phone",value:"phoneNumber"}],selectedColor:f.Q6.z500,className:ej().respAlign,selected:this.state.selectedAppSource,name:"group2",horizontal:!0,onChange:this.onChangeAppSource}),(0,a.jsxs)("div",{className:"d-flex justify-content-start",children:[(0,a.jsx)("input",{className:"app-share-input",value:this.state.selectedAppSourceValue,onChange:e=>this.setState({selectedAppSourceValue:e.target.value})}),s.state===X.Z.STATE_BEGIN?(0,a.jsx)("div",{className:"app-share-btn",children:(0,a.jsx)(eF.Z,{color:"white"})}):(0,a.jsx)("div",{className:"app-share-btn",onClick:this.shareAppLink,children:"Share App Link"})]})]})}),(0,a.jsxs)("div",{className:"mt-5 text-gray-700",children:["Download the app from",(0,a.jsxs)("div",{className:"d-flex mt-3 ".concat(ej().respAlign),children:[(0,a.jsx)("img",{src:"../../../assets/images/Appstore.svg",className:"mr-2 pointer",onClick:()=>this.appLink("AppStoreAppLink"),alt:""}),(0,a.jsx)("img",{src:"../../../assets/images/Playstore.svg",className:"mx-1 pointer",onClick:()=>this.appLink("PlayStoreAppLink"),alt:""})]})]})]})})]})]}):(0,a.jsxs)("div",{className:"".concat(ej().contentBox),children:[(0,a.jsx)("div",{className:"".concat(ej().mobHead," show-on-mobile"),children:"Account Created"}),(0,a.jsx)(eN.X1q,{size:22,color:er.GPL,className:"".concat(ej().icon),onClick:()=>this.props.actions.removeSignedInFromZomato()}),(0,a.jsx)("img",{src:"../../../assets/images/alreadyOnboarded.svg",width:"250px",className:ej().firstImage,alt:""}),(0,a.jsx)("h2",{className:"mt-4 mb-2",children:"Welcome to Hyperpure"}),(0,a.jsx)("p",{children:"Start buying to enjoy our amazing discounts & the large range of quality product offerings"}),i&&i.PromotionStatus&&(0,a.jsxs)("p",{className:"fs-18",children:[(0,a.jsx)(el.j,{html:i.PromotionMessage}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"fs-12 w-600 text-gray-dark",children:i.PromotionExpiryString})]}),(0,a.jsx)("div",{className:"d-flex mt-3 justify-content-center show-on-desktop",children:(0,a.jsx)(P.Z,{btnColor:"red",className:"solid",icon:(0,a.jsx)(eN.Czm,{}),iconAlign:"right",onClick:()=>this.props.actions.removeSignedInFromZomato(),children:"START BUYING"})}),r.state===X.Z.STATE_BEGIN?(0,a.jsx)(et.Cv,{}):(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-5 text-gray-700 show-on-desktop flex-column",children:["Download the app from",(0,a.jsxs)("div",{className:"row justify-content-center mt-3",children:[(0,a.jsx)("div",{className:"col-6 col-sm-4",children:(0,a.jsx)("img",{src:"../../../assets/images/Appstore.svg",className:"pointer",onClick:()=>this.appLink("AppStoreAppLink"),alt:""})}),(0,a.jsx)("div",{className:"col-6 col-sm-4",children:(0,a.jsx)("img",{src:"../../../assets/images/Playstore.svg",className:"pointer",onClick:()=>this.appLink("PlayStoreAppLink"),alt:""})}),(0,a.jsx)("div",{className:"col-6 col-sm-4 show-on-desktop",children:(0,a.jsxs)("div",{className:"app-download-link pointer",onClick:()=>this.setState({showAppLinkModal:!0}),children:["Get download link",(0,a.jsx)("br",{})," by Email / SMS"]})})]})]}),(0,a.jsx)("div",{className:"mt-3 text-gray-700 show-on-mobile wd-100",children:(0,a.jsxs)("div",{className:"row justify-content-center mt-3 wd-100",children:[(0,a.jsx)("div",{className:"col-4 d-flex align-items-center justify-content-center",children:(0,a.jsx)("div",{className:"text-red-cta fs-16 text-align-center",onClick:()=>this.props.actions.removeSignedInFromZomato(),children:"Skip"})}),(0,a.jsx)("div",{className:"col-8",children:(0,a.jsx)("div",{className:"btn btn-red btn-expand",onClick:()=>this.appLink("GenericAppLink"),children:"Get the app"})})]})})]})]})}):null,(0,a.jsx)("main",{className:"site-content pd-top-global-large greyBg relative ".concat(ej().paddingTop150px),children:(0,M.Kq)([this.props.userDataStatus,this.props.v2CategoriesStatus],()=>{var e;return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(tD,{className:"container ".concat((0,M.tq)(540)?"":"p-0"),source:"home"}),this.props.aerobars&&0!==this.props.aerobars.length&&(0,a.jsx)(tt,{aerobars:this.props.aerobars,aerobarCTAHandler:this.aerobarCTAHandler,trackingCTA:this.props.actions.trackPopUp,history:this.props.history,toggleCreditModal:this.props.actions.toggleCreditModal}),(null===(e=this.props.homeData)||void 0===e?void 0:e.invalidStateData)?(0,a.jsx)("div",{className:"container",children:this.renderInvalidState()}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"scrollableList",children:this.renderHomeRails()}),(0,a.jsx)(tP,{addUpdateManyIssues:this.props.addUpdateManyIssues,removeManyIssues:this.props.removeManyIssues,updateOneIssue:this.props.updateOneIssue,isIssuesModalOpen:this.props.isIssuesModalOpen}),this.renderSetupAerobars()]})]})})})]})}constructor(){super(),this.state={toast:{show:!1,text:null,type:"default",className:""},showAppLinkModal:!1,selectedAppSource:"email",showPincodeModal:!1,showPayOnDeliveryModal:!1,verticalProducts:{},currentSlide:2,collaborativeBannerCurrentSlide:1,showOfferDetailsModal:!1,collaborativeBannerAutoplay:!0,commercialBannerAutoplay:!1},this.cartOfferOnClickDetailsHandler=e=>{var t,i,a,o,n,s,r,l;(null==e?void 0:null===(i=e.SecondaryCTA)||void 0===i?void 0:null===(t=i.Action)||void 0===t?void 0:t.ActionType)==="OFFER_DETAILS_BOTTOM_SHEET"&&(null==e?void 0:null===(n=e.SecondaryCTA)||void 0===n?void 0:null===(o=n.Action)||void 0===o?void 0:null===(a=o.ActionData)||void 0===a?void 0:a.Endpoint.length)!==0&&(this.props.actions.getOfferDetails(null==e?void 0:null===(l=e.SecondaryCTA)||void 0===l?void 0:null===(r=l.Action)||void 0===r?void 0:null===(s=r.ActionData)||void 0===s?void 0:s.Endpoint),this.toggleOfferDetailsModal())},this.toggleOfferDetailsModal=()=>{this.setState(e=>({showOfferDetailsModal:!e.showOfferDetailsModal}))},this.toastOpenHandler=e=>{let{show:t,text:i,type:a,className:o}=e;this.setState(e=>({...e,toast:{...e.toast,show:t,text:i,type:a,className:o}}))},this.toastCloseHandler=()=>{this.setState(e=>({...e,toast:{...e.toast,show:!1,text:null,type:"default",className:""}}))},this.scrollHandler=()=>{this.setCarouselAutoplay(this.commercialBannersRef,"commercialBannerAutoplay"),this.setCarouselAutoplay(this.collaborativeBannersRef,"collaborativeBannerAutoplay")},this.setCurrentSlide=e=>{this.setState({currentSlide:e})},this.setCollaborativeBannerCurrentSlide=e=>{this.setState({collaborativeBannerCurrentSlide:e})},this.renderBrandCampaign=e=>{let{campaignData:t}=this.props;return t&&!t.CampaignItems?null:(0,a.jsx)(eT,{campaignData:t,rail:e,history:this.props.router})},this.renderFeatureTickerMobile=()=>{var e;return(null===(e=this.props.featureTickers)||void 0===e?void 0:e.length)?(0,a.jsx)("div",{className:"container relative mb-g1 p-0 ".concat(ej().featureTickerMobileMargin),children:(0,a.jsx)("div",{className:"d-flex ".concat(ej().tickerBox),children:(0,a.jsx)(ei.Z,{arrows:!1,customButtonGroup:(0,a.jsx)(a.Fragment,{}),deviceType:"mobile",responsive:(0,W.bq)(W.Fc),renderButtonGroupOutside:!0,className:ej().limitOverflow,autoPlaySpeed:3e3,infinite:!0,children:this.props.featureTickers.map((e,t)=>{var i,o,n;return(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-center ".concat(ej().featureTickMobile),children:[(0,a.jsx)(eV.Z,{classname:this.props.featureTickers.length<=2?"".concat(ej().img48," "):"".concat(ej().img64),source:null==e?void 0:null===(i=e.Body)||void 0===i?void 0:i.MediaURL}),(0,a.jsxs)("div",{className:(this.props.featureTickers.length<=2?"d-flex align-items-center ".concat(ej().truncated2by2," wd-80"):" wd-70 ")+" ml-4 ",children:[(0,a.jsx)(el.j,{className:"fs-16 w-400 fw-800 "+(this.props.featureTickers.length<=2?"":"".concat(ej().truncated," ").concat(ej().featureTickerTitle)),html:null==e?void 0:null===(o=e.Body)||void 0===o?void 0:o.Title}),(0,a.jsx)(el.j,{className:(this.props.featureTickers.length<=2?"ml-2 ":"".concat(ej().truncated," ").concat(ej().subheadingMweb))+"mt-1 fs-16 fw-500 w-600",html:null==e?void 0:null===(n=e.Body)||void 0===n?void 0:n.SubTitle})]})]},t)})})})}):(0,a.jsx)(a.Fragment,{})},this.renderFeatureTickerWeb=()=>{var e;return(null===(e=this.props.featureTickers)||void 0===e?void 0:e.length)?(0,a.jsx)("div",{className:"container p-0 mb-g1",children:(0,a.jsx)("div",{className:"d-flex bg-white ".concat(ej().tickerBox),children:this.props.featureTickers.map((e,t)=>{var i,o,n;return(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-center ".concat((0,M.tq)(992)?"".concat(ej().featureTicker," "):(t===this.props.featureTickers.length-1?"":"".concat(ej().borderLine))+(this.props.featureTickers.length<=2?" wd-50":" wd-33")),children:[(0,a.jsx)(eV.Z,{classname:this.props.featureTickers.length<=2?"".concat(ej().img48," "):"".concat(ej().img64),source:null==e?void 0:null===(i=e.Body)||void 0===i?void 0:i.MediaURL}),(0,a.jsxs)("div",{className:(this.props.featureTickers.length<=2?"d-flex align-items-center ".concat(ej().truncated2by2," wd-80"):" wd-70 ")+" ml-4 ",children:[(0,a.jsx)(el.j,{className:"fs-16 w-400 fw-800 "+(this.props.featureTickers.length<=2?"":"".concat(ej().truncated," ")),html:null==e?void 0:null===(o=e.Body)||void 0===o?void 0:o.Title}),(0,a.jsx)(el.j,{className:(this.props.featureTickers.length<=2?"ml-2 ":"".concat(ej().truncated," "))+"mt-1 fs-16 fw-500 w-600",html:null==e?void 0:null===(n=e.Body)||void 0===n?void 0:n.SubTitle})]})]})})})}):(0,a.jsx)(a.Fragment,{})},this.renderFeaturesTicker=()=>(0,M.tq)(992)?this.renderFeatureTickerMobile():this.renderFeatureTickerWeb(),this.onChangeAppSource=e=>{this.setState({selectedAppSource:e,selectedAppSourceValue:this.props.userData.user[e]})},this.shareAppLink=()=>{let e={};"email"===this.state.selectedAppSource?e.Email=this.state.selectedAppSourceValue:e.PhoneNumber=this.state.selectedAppSourceValue,this.props.actions.shareAppLink(e)},this.handlePincode=e=>{let{userData:t}=this.props;e&&6===e.length&&this.props.actions.serviceablePinCode(t.outlet.outletAddress.cityId,e),this.setState({selectedPinCode:e})},this.aerobarCTAHandler=e=>{let{actions:{getOrder:t}={}}=this.props,{Action:{ActionData:i,ActionType:a}}=e,o="CALL"===a?"PhoneNumber":"OrderNumber";if("DISPLAY_MESSAGE"===a)(0,M.TM)(a,i,null,{toggleDAModal:()=>{this.props.actions.toggleDAModal(!0,{CTA:e})}});else{if("ORDER_PAYMENT"===a){t(i[o],"number");return}window.location.href="/buyer/order/".concat(i[o],"/number")}},this.showRewardPage=e=>{this.props.actions.trackPopUp(e),window.location.href="/buyer/rewards"},this.handlePODModalClose=()=>{this.setState({showPayOnDeliveryModal:!1}),this.props.actions.clearPaymentDetail()},this.renderInvalidState=()=>{var e,t,i;let{homeData:o}=this.props;return(0,a.jsx)("div",{className:"d-flex flex-column align-items-center justify-content-center vh-80",children:(0,a.jsxs)("div",{className:"d-flex flex-column align-items-center justify-content-center ".concat(ej().wd45Percent),children:[(0,a.jsx)(eV.Z,{source:null==o?void 0:null===(e=o.invalidStateData)||void 0===e?void 0:e.Image,classname:ej().invalidStateImage}),(0,a.jsx)("div",{className:"w-800 fs-36 mb-2 mt-2 text-align-center",children:null==o?void 0:null===(t=o.invalidStateData)||void 0===t?void 0:t.Heading}),(0,a.jsx)("div",{className:"w-400 fs-18 text-align-center ".concat(ej().invalidStateBottomHeading),children:null==o?void 0:null===(i=o.invalidStateData)||void 0===i?void 0:i.SubHeading})]})})},this.renderHomeDiscount=()=>(0,a.jsx)("section",{className:"container relative p-0",children:(0,a.jsx)(es.Z,{message:"Unable to load Home discounts",children:(0,a.jsx)(tU,{Source:"HomePage",className:"container my-4",Direction:"horizontal",onClickDetailsHandler:this.cartOfferOnClickDetailsHandler})})}),this.renderHomeRails=()=>{let{homeData:e,addUpdateManyIssues:t,updateOneIssue:i,removeManyIssues:o,isIssuesModalOpen:n,verticalProducts:s,testimonials:r,getTestimonialstatus:l,acquisitionRail:d,v2Categories:c}=this.props;if(e&&e.rails&&e.rails.length){let m=[];return e.rails.map((e,u)=>{m.push(e.Rails.map(e=>{var m,u,g;switch(e.RailType){case"Rewards":if(d&&!(0,t_.Z)(d))return(0,a.jsx)("div",{className:"container p-0 mb-g1",children:(0,a.jsx)(tf,{acquisitionRail:d,showRewardPage:this.showRewardPage,history:this.props.history})});return null;case"Products":let{SeeAllCTA:p,Source:h}=e,v={...e};return p&&p.Action&&p.Action.ActionData&&(v={...v,SeeAllCtaAction:p.Action}),(null===(m=s[e.Heading])||void 0===m?void 0:m.length)?(0,a.jsx)("div",{className:"container p-0  ".concat((0,M.tq)(992)?"mb-g1":"mb-g2"),children:(0,a.jsx)(e$.Z,{promotionProductsStatus:this.props.verticalProductsStatus,promotionsData:s[e.Heading]||[],toastOpenHandler:this.toastOpenHandler,railMeta:v,cartUpdateSource:h,dontOpenIssueModal:!1,addUpdateManyIssues:t,removeManyIssues:o,updateOneIssue:i,isIssuesModalOpen:n,clearIssues:this.props.clearIssues,isHome:!0,type:"productDescription"},e.Heading)}):(0,a.jsx)(a.Fragment,{});case"BrandCampaign":return this.renderBrandCampaign(e);case"Banners":return this.renderCommercialBannersCarousel(e);case"Banner":if(null==e?void 0:e.DynamicBannerData)return this.renderZplBanner(e);if(null==e?void 0:e.HomeBannerData)return this.renderMilestoneBanner(e);return(0,a.jsx)("div",{});case"Testimonials":return(0,a.jsx)(ea,{testimonials:r,getTestimonialstatus:l,isMobile:(0,M.tq)(540)},"testimonial");case"Categories":return(0,a.jsx)(eQ,{layoutConfig:e.LayoutConfig,data:c,history:this.props.history,className:"scrollableList",cartUpdateSource:"Home",tour:this.props.tour,tourNextStep:e=>this.props.actions.tourNextStep(e)},"CategoriesCarousel");case"SubCategories":return this.renderCategories();case"FeaturesTicker":return this.renderFeaturesTicker();case"Exigency":return this.renderExigencyBannersCarousel(null===this||void 0===this?void 0:null===(g=this.props)||void 0===g?void 0:null===(u=g.exigencyBannersV2)||void 0===u?void 0:u[0],!0);case"CollaborativeBanners":return this.renderCollaborativeBannersCarousel(e);case"CartDiscount":return this.renderHomeDiscount();default:return tq.Z.error("Home","invalid rail type found"),null}}))}),m}},this.handleCompleteSetupClick=e=>{var t,i;this.props.actions.trackPopUp(null===(i=e.RightCTA)||void 0===i?void 0:null===(t=i.Action)||void 0===t?void 0:t.TrackingParams),window.location.href="/complete-restaurant-setup?source=webOnboardingPage&completeRedirection=HOME"},this.commercialBannersRef=o.createRef(),this.collaborativeBannersRef=o.createRef()}}var tG=(0,s.withRouter)((0,n.$j)(e=>({config:e.user.config||{},userData:e.user.data,commercialBanners:e.user.commercialBanners,exigencyBanners:e.user.homeData.exigencyBanners||[],appLinks:e.user.appLinks,featuredOffers:e.catalog.featuredOffers,trialOffers:e.catalog.trialOffers,v2Categories:e.catalog.v2Categories,superSaverRail:e.catalog.superSaverRail,signInResponse:(e.auth.signInResponse||{}).response,tour:e.user.tour,serviceablePinCodeData:e.auth.serviceablePinCode||{},aerobars:e.aerobars.aerobars||[],acquisitionRail:e.acquisitionRail.acquisitionRail||{},order:e.order.order,paymentV2:e.payment.transaction||{},overdue:e.user.overdue,homeData:e.user.homeData,testimonials:e.user.testimonials,verticalProducts:e.catalog.verticalProducts,headerDeliveryNudge:e.user.headerDeliveryNudge||!1,pastOrderStatus:e.status.user_getPastOrders,validatePincodeStatus:e.status.register_validatePinCode,setPinCodeStatus:e.status.consumer_setPincode,signedInFromZomato:e.happyRegister.signedInFromZomato,shareAppLinkStatus:e.status.user_shareAppLink,getAppLinkStatus:e.status.user_getAppLink,userDataStatus:e.status.user_getData,featuredOffersStatus:e.status.offers_getFeatured,trialOffersStatus:e.status.offers_getTrial,v2CategoriesStatus:e.status.catalog_v2GetCategoriesAndSubCategories,commercialBannersStatus:e.status.user_getCommercialBanners,getOrderOneStatus:e.status.order_get_one,getHomeStatus:e.status.get_home,getTestimonialstatus:e.status.testimonials,verticalProductsStatus:e.status.vertical_products,featureTickers:e.user.featureTickers||[],campaignData:e.brandCampaign.campaignData||[],collaborativeBanners:e.user.collaborativeBanners||[],exigencyBannersV2:e.user.exigencyBannersV2||[],offerDetailsData:e.user.offerDetailsData}),e=>({actions:(0,r.DE)({getCommercialBanners:Y.TG,getBrandCampaign:eJ,v2_getCategoriesWithSubCategories:K.uB,getPromoProducts:K.sn,removeSignedInFromZomato:Y.DA,pastOrders:Y.Hd,shareAppLink:Y.jc,tourNextStep:Y.zy,trackPopUp:Y.fA,setPinCode:Y.YI,serviceablePinCode:eX.yf,getUserData:Y.is,getAerobars:e4,getAcquisitionRail:ti,getOrder:tC,clearPaymentDetail:ty.oj,getHomePage:Y.tn,getVerticalProducts:K.AE,getTestimonials:Y.BZ,getFeatureTickers:Y.j0,getCollaborativeBanners:Y.i,getExigencyBanners:Y.V0,toggleCreditModal:tB.vr,toggleDAModal:Y.n9,getCartDiscount:Y.hw,setErrorToast:Y.dB,getOfferDetails:Y.Ds},e)}))((0,e1.Z)(er.MEK,er.fV2)(tz))),tV=!0,tQ=(0,n.$j)(e=>({isAuthenticated:e.auth.isAuthenticated,locationModalData:e.auth.showLocationModal?e.auth.locationModalData:e.user.locationModalData,showLocationModal:e.auth.showLocationModal?e.auth.showLocationModal:e.user.showLocationModal,testimonials:e.user.testimonials,showAppInstallPrompt:e.user.showAppInstallPrompt,v2CategoriesStatus:e.status.catalog_v2GetCategoriesAndSubCategories,v2Categories:e.catalog.v2Categories}))(function(e){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(ey(),{children:[(0,a.jsx)("meta",{property:"og:title",content:e_.rW}),(0,a.jsx)("meta",{name:"description",content:"Hyperpure: Your go-to for wholesale restaurant supplies at Mandi rates in India. Fresh veggies, groceries, dairy & more. Shop now!"}),(0,a.jsx)("meta",{property:"og:description",content:"Hyperpure: Your go-to for wholesale restaurant supplies at Mandi rates in India. Fresh veggies, groceries, dairy & more. Shop now!"}),(0,a.jsx)("meta",{property:"og:image",content:"https://www.hyperpure.com/data/images/static/logo1701090332.png"}),(0,a.jsx)("meta",{name:"keywords",content:e_.oD.join(", ")}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:image:type",content:"image/png"}),(0,a.jsx)("meta",{property:"og:image:width",content:"150"}),(0,a.jsx)("meta",{property:"og:image:height",content:"150"}),(0,a.jsx)("meta",{property:"og:url",content:"https://www.hyperpure.com"}),(0,a.jsx)("meta",{name:"google-site-verification",content:"5XuFZlxZsrjDP_Nsh5yiL1pjxHGUfdNRDu4oTSf9wB0"}),(0,a.jsx)("meta",{name:"google-site-verification",content:"QK1vCFHnt2RAJ1sY9CyIIxmlDQZoF6ChGZmK_DYBKc8"}),(0,a.jsx)("link",{rel:"canonical",href:"https://www.hyperpure.com"})]}),e.showLocationModal?(0,a.jsx)(eA,{isMobile:(0,M.tq)(992)||e.isMobileSSR,...e}):e.isAuthenticated?(0,a.jsx)(tG,{...e}):(0,a.jsx)(eA,{isMobile:(0,M.tq)(992)||e.isMobileSSR,...e})]})})},8128:function(e){e.exports={imageContainer:"Home_imageContainer__wpDjL",bannerContainer:"Home_bannerContainer__d_vu_",textOnImage:"Home_textOnImage__3wp6z",subHeadingTextSize:"Home_subHeadingTextSize__Z_5ez",textOnBannerImage:"Home_textOnBannerImage__dLSvI",subHeadingBannerTextSize:"Home_subHeadingBannerTextSize__oL3AZ",imageContainerBorder:"Home_imageContainerBorder__bwHHo",topMarginCorrection:"Home_topMarginCorrection__TxTCd",siteMessage:"Home_siteMessage__SbuE1",onboardModal:"Home_onboardModal__K2NeL",contentBox:"Home_contentBox__14_1M",contentBoxSecond:"Home_contentBoxSecond__XC_vO",firstImage:"Home_firstImage__tf1uV",icon:"Home_icon__zUmxt",mobHead:"Home_mobHead__s_0_1",onboard:"Home_onboard__pPHUx",respAlign:"Home_respAlign__qufz_",semiSerCard:"Home_semiSerCard__nHzSm",orderStatusTag:"Home_orderStatusTag__a_9FS",statusImage:"Home_statusImage__tq8HX",descriptionImage:"Home_descriptionImage__82w8n",aerobarHeader:"Home_aerobarHeader__v0UDK",aerobarCard:"Home_aerobarCard__EtUJJ",aerobarCardCover:"Home_aerobarCardCover__2p3pH",orderStatusStr:"Home_orderStatusStr__qAjJS",acquisitionRail:"Home_acquisitionRail__MXJRK",acquistionHeading:"Home_acquistionHeading__6dUan",acqSubtitle:"Home_acqSubtitle__f5tLK",acquisitionTile:"Home_acquisitionTile__T499L",tileImageHeight:"Home_tileImageHeight__2vlZT",tileRupeeHeight:"Home_tileRupeeHeight__XmMij",acquisitionWalletImage:"Home_acquisitionWalletImage__Rm1af",learnMoreHeight:"Home_learnMoreHeight__NswDj",tileAnimationHeight:"Home_tileAnimationHeight__Rhe6P",tileAnimationHeightRail:"Home_tileAnimationHeightRail__Mghh9",tileImageHeightRail:"Home_tileImageHeightRail__a_8J9",cont:"Home_cont__xAS9I",paddingTop150px:"Home_paddingTop150px__PFf2K",delayedTag:"Home_delayedTag__lUZ2x",bannerImg:"Home_bannerImg__Q2cvz",exigency:"Home_exigency__LCag_",zplbanner:"Home_zplbanner__cSew8",zplImg:"Home_zplImg__5ZJ3K",zplContent:"Home_zplContent__uqP_p",zplText:"Home_zplText__uAzgr",zplCTA:"Home_zplCTA__cXVby",ctaText:"Home_ctaText__cqQlm",ctaArrow:"Home_ctaArrow___7BAK",dismissCTA:"Home_dismissCTA__vI7aS",homeSeparator:"Home_homeSeparator__bQF1R",walletImage:"Home_walletImage__U6OcX",dealBg:"Home_dealBg__6U5DB",secondryText:"Home_secondryText__bTAcm",dealBgMobile:"Home_dealBgMobile__Ppmix",dealBgForNoCard:"Home_dealBgForNoCard__dGi_Z",dealHeading:"Home_dealHeading__k0xRc",dealHeadingMobile:"Home_dealHeadingMobile__VZtee",paddingLeftRight:"Home_paddingLeftRight__W2Kew",dealImg:"Home_dealImg__XMXMI",dealImgMobile:"Home_dealImgMobile__bDjY6",noDealImg:"Home_noDealImg__b8gN7",overflowHidden:"Home_overflowHidden__QoXvh",marginDeal:"Home_marginDeal__7u4qx",progressBar:"Home_progressBar__tIWiy",heigth10px:"Home_heigth10px__Bf9PV",fnvImage:"Home_fnvImage__DVEq1",dealText:"Home_dealText__aSnFz",CTAWidth:"Home_CTAWidth__1wagY",coinIcon:"Home_coinIcon__FgWof",height20px:"Home_height20px__kZUtS",height30px:"Home_height30px__2MmbP",width90:"Home_width90__xKbHI",width93:"Home_width93___ODoO",width70:"Home_width70__K4ISu",width60:"Home_width60__0ywz9",width40:"Home_width40__ATu9H",width20:"Home_width20__pxhUB",width92:"Home_width92__x9Ib2",width95:"Home_width95__2da6k",wd98:"Home_wd98__V9M7i",heightMilestoneDiv:"Home_heightMilestoneDiv__FOAJP",thumbsupIcon:"Home_thumbsupIcon__oww7z",milestoneBannerHeader:"Home_milestoneBannerHeader__jOQLw",milestoneHeaderBody:"Home_milestoneHeaderBody__kMXEa",gradientText:"Home_gradientText__5Yn6X",height100:"Home_height100__Txc5z",detailsProgressBox:"Home_detailsProgressBox__PNZ5H",detailsProgressBoxMobile:"Home_detailsProgressBoxMobile__wJN_5",progressBox:"Home_progressBox__x6uU6",primaryText:"Home_primaryText__B40uP",textColorGrey:"Home_textColorGrey__L1UQ9",darkGrey:"Home_darkGrey__iPfA2",listPadding:"Home_listPadding__GwGGN",crossIcon:"Home_crossIcon__zY5ZV",coinIconMobilePosition:"Home_coinIconMobilePosition__yy18j",greyLine:"Home_greyLine__AffmV",milestoneHistoryProgressBar:"Home_milestoneHistoryProgressBar__jEHUq",milestoneHistoryCoinIcon:"Home_milestoneHistoryCoinIcon__Bshgo",milestoneTag:"Home_milestoneTag___t_hC",flexDirectionColumn:"Home_flexDirectionColumn__tP8N6",tagBoxPosition:"Home_tagBoxPosition__2jXch",headingCSS:"Home_headingCSS__xt7Kb",onOfferHeading:"Home_onOfferHeading__MUg70",detailsPageHeading:"Home_detailsPageHeading__kATaV",spanProperty:"Home_spanProperty__tdItI",primeText:"Home_primeText__oMhHw",mobileProgressBarContainer:"Home_mobileProgressBarContainer__FSCMk",marginLeft12:"Home_marginLeft12__ni_UN",marginRigth12:"Home_marginRigth12__DCYFd",marginTop12:"Home_marginTop12__1tilp",marginTop24:"Home_marginTop24__LnnUd",marginTop40:"Home_marginTop40__BSKl2",maxWidth800:"Home_maxWidth800__vCTPz",maxWidth50:"Home_maxWidth50__inc9R",brandCampaignImage:"Home_brandCampaignImage__0DsQv",campaignRail:"Home_campaignRail__pRyil",contentHeight:"Home_contentHeight__TWocg",marginTop98:"Home_marginTop98__v_WzV",marginTop108:"Home_marginTop108__JAcEr",backIcon:"Home_backIcon__T0n8E",top20px:"Home_top20px__9c0TP",art:"Home_art__Pmn9c",img64:"Home_img64__9JzqQ",img48:"Home_img48__eyFw6",tickerBox:"Home_tickerBox__DSdbA",borderLine:"Home_borderLine__aJ7MR",paddingTop110px:"Home_paddingTop110px__kWf5X",truncated:"Home_truncated__m9CNJ",featureTickerTitle:"Home_featureTickerTitle__Evebc",featureTickerMobileMargin:"Home_featureTickerMobileMargin__Ups4L",truncated2by2:"Home_truncated2by2__anKLX",creditNudgesImage:"Home_creditNudgesImage__7C1aA",creditAerobarCard:"Home_creditAerobarCard__AvV4M",creditAerobarImgCTAIcon:"Home_creditAerobarImgCTAIcon___n9qQ",dismissNudgeImgCTAIcon:"Home_dismissNudgeImgCTAIcon__eNdqm",invalidStateImage:"Home_invalidStateImage__kRQpg",invalidStateBottomHeading:"Home_invalidStateBottomHeading__Eg0gX",wd45Percent:"Home_wd45Percent__r5sS6",catgeoryRailsHeading:"Home_catgeoryRailsHeading__T_VjN",categoryIcon:"Home_categoryIcon__wPus6",categoryTexts:"Home_categoryTexts__JTxXh",greySubHeading:"Home_greySubHeading__WO1ub",limitOverflow:"Home_limitOverflow__nlZnV",carouselWrapperMobile:"Home_carouselWrapperMobile__XOqxR",bannerCounter:"Home_bannerCounter__5i2Ws",AerobarCTA:"Home_AerobarCTA__WAg_Y",bannerBorder:"Home_bannerBorder__10FNo",mb12:"Home_mb12__Td9oX",aerobarButtonMobile:"Home_aerobarButtonMobile__7duKq",btnBorder8:"Home_btnBorder8__dCUQi",heightInherit:"Home_heightInherit__dnYod",setupCard:"Home_setupCard__CC53c",setupCardInner:"Home_setupCardInner__KeKyh",milestoneBannerPrimaryCta:"Home_milestoneBannerPrimaryCta__5iTSl",dynamicCollaborativeBannerContainer:"Home_dynamicCollaborativeBannerContainer__hQYVL",marginTopBrandItem:"Home_marginTopBrandItem__4N0ot",brandRailHeading:"Home_brandRailHeading__Iq5Jw",featureTickMobile:"Home_featureTickMobile__yAqB8"}},74854:function(e){e.exports={bannerImageWrapper:"Landing_bannerImageWrapper__cNdZm",bannerImage:"Landing_bannerImage__3SGAL",bannerImagePoverlay:"Landing_bannerImagePoverlay__BuL5E",content:"Landing_content__UJVDh",whyHpCard:"Landing_whyHpCard__JCAJn",greytext:"Landing_greytext__Xi_9T",landingCoverImage:"Landing_landingCoverImage__v5F6E",widthInherit:"Landing_widthInherit__g79qf",heightInherit:"Landing_heightInherit__CumuP",shopNowButton:"Landing_shopNowButton__kVmFn",landingLogo:"Landing_landingLogo__r8eNF",landingInfo:"Landing_landingInfo__gZr3b",landingInfoHeading:"Landing_landingInfoHeading__8j4gz",landingInfoSubheading:"Landing_landingInfoSubheading__HCIPU",imageContainerShadow:"Landing_imageContainerShadow__UFAG5",imageContainer:"Landing_imageContainer__OFF8y",borderRadius24px:"Landing_borderRadius24px__2BjO6",bsItem:"Landing_bsItem__5Hy7t",exploreBtn:"Landing_exploreBtn__WXkOt"}},38642:function(e){e.exports={category:"Categories_category__M1z31",categoriesName:"Categories_categoriesName__LBVM_",categoryImage:"Categories_categoryImage__UHuOW",categoriesWrapper:"Categories_categoriesWrapper__W4UG6",subCategoryListContainer:"Categories_subCategoryListContainer__HG4bd",card:"Categories_card__fvbgQ",heightFix:"Categories_heightFix__LClQD",categoryIcon:"Categories_categoryIcon__vaISd",sellAllIcon:"Categories_sellAllIcon__K4TkA"}},2568:function(e){e.exports={icon:"CategoryCarousel_icon__OJiuL",animation:"CategoryCarousel_animation__IOYID",header:"CategoryCarousel_header__nmJLY",marginLeft12:"CategoryCarousel_marginLeft12__vLvIb",categoryItem:"CategoryCarousel_categoryItem__QMWvC",categoryItemMobile:"CategoryCarousel_categoryItemMobile__6Css2",categoryItemHeading:"CategoryCarousel_categoryItemHeading__3HwFN",textCategoryItem:"CategoryCarousel_textCategoryItem__aKUpM",catlaogNegativeMargin:"CategoryCarousel_catlaogNegativeMargin__VcRp8",mwebScrollableCat:"CategoryCarousel_mwebScrollableCat__oDcqb",categoryImgMobile:"CategoryCarousel_categoryImgMobile__q1ktD",categoriesContainer:"CategoryCarousel_categoriesContainer__UqXXa",categoryBoxMobile:"CategoryCarousel_categoryBoxMobile__toxH2"}},20583:function(e){e.exports={CTAImage:"CTARenderer_CTAImage___6EWy",orderPaymentBtn:"CTARenderer_orderPaymentBtn__yEOsE"}},65396:function(e){e.exports={scrollSection:"Offers_scrollSection__UmxtQ",offerCardCart:"Offers_offerCardCart__5PZXD",offerCardHome:"Offers_offerCardHome__WKYMF",offerTitleCart:"Offers_offerTitleCart__YxpYA",offerTitleHome:"Offers_offerTitleHome__0jFux",offerTitleBox:"Offers_offerTitleBox__6Ckeo",offerTitleBoxScroll:"Offers_offerTitleBoxScroll__Uom9j",offerCardImage:"Offers_offerCardImage__gr21Z",offerDetails:"Offers_offerDetails__1NXHn",rod:"Offers_rod__91rFU",dot1:"Offers_dot1__2SjIU",dot2:"Offers_dot2__sjrar",cover1:"Offers_cover1__0sM2N",cover2:"Offers_cover2__8_tHf",progressBar:"Offers_progressBar__lxNjk",TitleCart:"Offers_TitleCart__2a_P3",SubTitleCart:"Offers_SubTitleCart__ZCxBa",SecondaryCTAText:"Offers_SecondaryCTAText__dpXIZ",TitleHome:"Offers_TitleHome__ajBsr",SubTitleHome:"Offers_SubTitleHome__aRlgN",icon:"Offers_icon__q575H",cont:"Offers_cont__FmW_2",offersContainer:"Offers_offersContainer__Iqk3J",offercont:"Offers_offercont__Y6MO0"}},89335:function(e){e.exports={image:"Steps_image__8iYYe",stepCounter:"Steps_stepCounter__Qu2oC",mwebStep:"Steps_mwebStep__W2bPa",newSelectedCounter:"Steps_newSelectedCounter__iCleu",btnMweb:"Steps_btnMweb__o69WA",stepsContainer:"Steps_stepsContainer__KAw4S",step:"Steps_step__n9rPx","fs-16":"Steps_fs-16__KlN9b","fs-18":"Steps_fs-18__DuZBu",heading:"Steps_heading__fhxN1",stepNumber:"Steps_stepNumber__Ht3X3",selectedStep:"Steps_selectedStep__Wxk6f"}},92595:function(e){e.exports={testimonials:"Testimonials_testimonials__yZsVs",imageWrapper:"Testimonials_imageWrapper__b9Wbu",icon:"Testimonials_icon__b8BT6",imageIconWrapper:"Testimonials_imageIconWrapper__EEcJh",content:"Testimonials_content__tokVS",testimonialsWrapper:"Testimonials_testimonialsWrapper__QJQxc",cont:"Testimonials_cont__TKFIP",testimonialText:"Testimonials_testimonialText__yusZY",imgTest:"Testimonials_imgTest__ZLPU6",mt24:"Testimonials_mt24__9m3vb",subTextGrey:"Testimonials_subTextGrey___cgzX",limitOverflow:"Testimonials_limitOverflow__AKKP0",widthOverflowed:"Testimonials_widthOverflowed__vqAWR",bottomCard:"Testimonials_bottomCard__g_RvQ",textCardTest:"Testimonials_textCardTest__f1cAz",quote:"Testimonials_quote__lJpkV",greytext:"Testimonials_greytext__HaavB"}}},function(e){e.O(0,[801,148,593,951,458,541,22,27,125,888,774,179],function(){return e(e.s=75557)}),_N_E=e.O()}]);