PageSourceSearch

https://pwa-cdn.freechargebiz.in/pwa-static/pwa/build/_next/static/chunks/pages/services-22d1bdc5363d2250.js

js freechargebiz.in collected 2026-10-02 16:07:58 UTC 136,249 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7054,5738],{51980:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/services",function(){return i(47649)}])},47649:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return ii},default:function(){return ai}});var a=i(26042),n=i(69396),s=i(85893),o=i(67294),r=i(45697),c=i.n(r),l=i(14416),d=i(45217),u=i(18135),p=i(72772),h=i(44515),m=i(94081),g=i(96486),f=i(11163),v=i.n(f),E=i(76905),N=i(80812),T=i(82311),x=function(){return(0,a.Z)({event:"services_page"},window.gaUserInfo)},y=function(){(0,E.ru)((0,a.Z)({pageName:N.o9.onHamburgerClick.pageName,steps_name:N.o9.onHamburgerClick.stepDescription,technology:"PWA_Revamp",category_name:N.o9.onHamburgerClick.categoryName},x()))},I=function(e,t,i,n){var s=(0,a.Z)({pageName:N.o9.onTileClick(e,n,i).pageName,icid:"".concat(e,"-").concat(t+1,"-").concat(i),tile_position:t+1,technology:"PWA_Revamp"},x());i===T.Lm.DONATION_TITLE?(0,E.ru)((0,a.Z)({},N.o9.onDonationTileClick,s)):(0,E.ru)((0,a.Z)({steps_name:N.o9.onTileClick(e,n,i).stepDescription,category_name:N.o9.onTileClick(e,n,i).categoryName,section_name:(null===n||void 0===n?void 0:n.section)||e,tile_name:(null===n||void 0===n?void 0:n.tileName)||i},s))},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,E.ru)((0,a.Z)({pageName:N.o9.spotlightPopupCtaClick(t).pageName,steps_name:N.o9.spotlightPopupCtaClick(t).stepDescription,category_name:N.o9.spotlightPopupCtaClick(t).categoryName,icid:e,technology:"PWA_Revamp"},x()))},b=i(95080),_=i(57107),A=function(e){var t=e.title,i=e.expandable,n=void 0!==i&&i,r=e.renderTiles,c=e.maxLength,l=e.showMoreText,d=void 0===l?T.Lm.GRID_SECTION.DEFAULT_SHOW_MORE_TEXT:l,u=e.showLessText,p=void 0===u?T.Lm.GRID_SECTION.DEFAULT_SHOW_LESS_TEXT:u,h=e.gridHeight,m=void 0===h?{}:h,f=e.headerIcon,v=e.headerIconWidth,y=m.collapsedHeight,I=m.expandedHeight,C=(0,o.useState)(n&&(0,g.size)(r)<c),A=C[0],w=C[1],L=(0,o.useState)(y),S=L[0],j=L[1],R=(0,b.HM)(f&&v?{width:"".concat(v,"px")}:{},"grid-icon-width"),O=(0,b.HM)({maxHeight:S},"grid-max-height"),k=(0,b.HM)({order:A?(0,g.size)(r)+1:c},"more-icon-order");return(0,g.isEmpty)(r)?null:(0,s.jsxs)("div",{className:"grid-section",children:[t&&(0,s.jsxs)("h3",{className:"section-heading",children:[t,f&&(0,s.jsx)("img",{src:f,className:R,alt:T.bC.ICON})]}),(0,s.jsxs)("ul",{className:"section-tiles-wrapper ".concat(A?"section-expanded":""," ").concat(O),children:[n&&(0,g.size)(r)>c&&(0,s.jsxs)("li",{className:"more-icon ".concat(k),onClick:function(){!function(e,t){var i="",n="",s="";switch(e){case"RECHARGE & BILL PAYMENTS":i=t?N.o9.onPaymentShowLessClick.pageName:N.o9.onPaymentShowMoreClick.pageName,n=t?N.o9.onPaymentShowLessClick.stepDescription:N.o9.onPaymentShowMoreClick.stepDescription,s=t?N.o9.onPaymentShowLessClick.stepDescription:N.o9.onPaymentShowMoreClick.stepDescription;break;case"BUY & INVEST":i=t?N.o9.onInvestShowLessCLick.pageName:N.o9.onInvestShowMoreClick.pageName,n=t?N.o9.onInvestShowLessCLick.stepDescription:N.o9.onInvestShowMoreClick.stepDescription,s=t?N.o9.onInvestShowLessCLick.stepDescription:N.o9.onInvestShowMoreClick.stepDescription;break;case"New Payments":i=t?N.o9.onNewPaymentShowLessCLick.pageName:N.o9.onNewPaymentShowMoreClick.pageName,n=t?N.o9.onNewPaymentShowLessCLick.stepDescription:N.o9.onNewPaymentShowMoreClick.stepDescription,s=t?N.o9.onNewPaymentShowLessCLick.stepDescription:N.o9.onNewPaymentShowMoreClick.stepDescription;break;case"Shop":i=t?N.o9.onShopShowLessCLick.pageName:N.o9.onShopShowMoreClick.pageName,n=t?N.o9.onShopShowLessCLick.stepDescription:N.o9.onShopShowMoreClick.stepDescription,s=t?N.o9.onShopShowLessCLick.stepDescription:N.o9.onShopShowMoreClick.stepDescription}i&&(0,E.ru)((0,a.Z)({pageName:i,steps_name:n,technology:"PWA_Revamp",category_name:s},x()))}(t,A),j(A?y:I),w(!A),A?(0,_.A6)():(0,_.GY)()},children:[(0,s.jsx)("div",{className:"tile-img-tag ".concat(A?"expand":""),children:(0,s.jsx)("span",{})}),(0,s.jsx)("div",{className:"tile-type",children:A?p:d})]}),o.Children.toArray(r)]})]})};A.propTypes={title:c().string,expandable:c().bool,renderTiles:c().array,maxLength:c().number,showMoreText:c().string,
1showLessText:c().string};var w=A,L=(i(66337),i(80039)),S=i(95128),j=i(90842),R=i(82972),O=i(15999),k=i(91183),D=i(5485),P=i(97429),U=i(85987),M=function(e){var t=e.title,i=e.isNew,a=e.offers,n=e.resourceUrl,r=e.resourceAlt,c=e.clickUrl,d=e.clickFlow,u=e.inSameTab,p=e.fcWalletId,h=e.imageUrl,m=e.deeplink,v=e.tileClickHandler,E=void 0===v?g.noop:v,N=e.pageName,x=e.index,y=e.layoutTypeId,I=e.isActive,C=void 0===I||I,_=e.imageHeight,A=void 0===_?"":_,w=e.imageWidth,M=void 0===w?"":w,F=e.showProductPopup,G=void 0!==F&&F,H=e.handleProductPopup,B=void 0===H?g.noop:H,V=e.isConsentUpdated,Z=void 0!==V&&V,W=e.popupSource,Y=void 0===W?"":W,X=e.clickedIndex,q=(0,o.useState)(""),K=q[0],z=q[1],J=(0,o.useRef)(null),Q=(0,f.useRouter)(),$=(0,D.Z)(),ee=$.isLoggedIn,te=void 0!==ee&&ee,ie=$.actions,ae=void 0===ie?{}:ie,ne=(0,P.Z)(J,{threshold:.1}),se=(0,U.Z)(K,ne&&!(0,g.isEmpty)(K)),oe=se.isImageDownloaded,re=void 0!==oe&&oe,ce=se.isError,le=void 0!==ce&&ce,de=(0,l.v9)((function(e){var t=e.app;return null===t||void 0===t?void 0:t.isSdkJourney})),ue=function(){if(E(),m){var e=(0,R.eu)(m,!1),t=e.page,i=e.objectContainingUtmDetails;if(t){var a=e[t.pageName]||{},n=a.dest,s=a.name,o=a.id,r=a.shortCode,l={action:"view",page:t.pageName,dest:n,objectContainingUtmDetails:i,couponName:s,couponId:o,shortCode:r};(0,R.pU)(l,te,p)}}else if("vernost"===d)(0,L.n)("False",!1,te,p);else if((0,g.startsWith)(c,"http"))u?window.location.href=c:O.Dt?(0,O.Is)(c):window.open(c);else if(!te&&((0,g.includes)(S.P,c)||(0,g.find)(S.pd,(function(e){return c.indexOf(e)>-1}))||(0,g.some)(S.L8,(function(e){return e.test(c)}))))ae.showPopup(c);else if("dcc"===N){var h="/dcc?category=".concat(c.slice(1),"&layoutTypeId=").concat(y||1),f=c;(0,O.y)({clickUrl:h,viaRedirectionUrl:!0,fallbackPage:"/services",clickSeoUrl:f})}else(0,O.y)({clickUrl:c,viaRedirectionUrl:!0,fallbackPage:"/services"})};(0,o.useEffect)((function(){Z&&"category-tile"===Y&&x===X&&ue()}),[Z,Y]);var pe=(0,b.HM)({order:x+1},"tile-order-".concat(x));return(0,s.jsxs)("li",{className:"section-category-tile ".concat(C?"":"disable-tile"," ").concat(pe),title:t,onClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e&&e.preventDefault();var t=Q.pathname,i=void 0===t?"":t;(0,g.includes)(i,"services")&&de&&(0,O.jw)("isTileClickedFromServices",!0),"credit-cards"!==N&&"/gift-cards"!==c&&G?B("category-tile",x):ue()},ref:function(e){J.current=e,z("".concat(n||h).concat(A?"?imheight=".concat(A):M?"?imwidth=".concat(M):""))},children:[(0,s.jsxs)("div",{className:"tile-img-tag",children:[i&&(0,s.jsx)("span",{className:"tile-tag",children:T.Lm.CATEGORY_TILE.NEW_TILE_TAG_TEXT}),(0,s.jsx)("img",{src:re&&!le?K:"".concat(j.O1,"/home/default_tile.png"),alt:r||T.bC.CATEGORY_TILE_DEFAULT,className:"tile-img",onError:O.nA.bind(undefined,"DEFAULT_TILE_ICON"),loading:"lazy"})]}),t&&(0,s.jsx)("div",{className:"tile-type",children:t}),k.UI&&a&&(0,s.jsx)("div",{className:"tile-cb",children:a})]})};M.propTypes={title:c().string,isNew:c().bool,offers:c().string,resourceUrl:c().string,clickUrl:c().string,pageName:c().string,handleProductPopup:c().func,showProductPopup:c().bool,isConsentUpdated:c().bool,popupSource:c().string,clickedIndex:c().oneOfType([c().number,c().object])};var F=M,G=i(46073),H=function(e){var t=e.categoriesList,i=void 0===t?[]:t,a=e.creditItemClickHandler,n=void 0===a?g.noop:a;return o.Children.toArray((0,g.map)(i,(function(e,t){var i=e.headlines,a=void 0===i?{}:i,o=e.logoUrl,r=void 0===o?"":o,c=e.categoryName,l=void 0===c?"":c,d=e.redirectionUrl,u=void 0===d?{}:d,p=a.headline,h=void 0===p?"":p,m=a.subHeadline1,f=void 0===m?"":m,E="dummy"===l||"CreditCard"===l;return(0,s.jsxs)("div",{className:"unified-credits",children:[(0,s.jsxs)("div",{className:"upper-section",children:[r&&(0,s.jsx)("img",{src:r,alt:"".concat(h," image")}),h&&(0,s.jsx)("span",{className:"section-heading",children:h})]}),(0,s.jsxs)("div",{className:"lower-section",children:[f&&(0,s.jsx)("span",{className:"section-sub-heading",children:f}),(0,s.jsx)(G.Z,{buttonType:"secondary",handleClick:function(){var e=(0,g.isEmpty)(u)?"":u[T.B3.USER_CREDIT_ITEM_REDIRECTION_URL];I("category",t,h),E?e&&((0,O.lD)(e)?window.location.href=e:v().push(e)):n(l)},type:"button",text:E?T.Lm.UNIFIED_CREDIT.START_SAVING_TEXT:T.Lm.UNIFIED_CREDIT.GET_DETAILS_TEXT})]})]})})))};H.propTypes={isMultipleView:c().bool,isSingleView:c().bool,bannerDetails:c().object};var B=H,V=i(40177),Z=i(38701),W=i(39572),Y=i(96029),X=void 0,q=function(e){var t=e.templateData,i=e.setShowMenu,n=e.dispatch,r=e.omnitureTrackingId,c=e.screen,l=(0,o.useRef)();(0,V.Z)(l,(function(){return i(!1)}),["click"]);var d=function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,E.ru)((0,a.Z)({pageName:N.o9.onClickOfCtaOnThreeDotsMenu(e,t).pageName,steps_name:N.o9.onClickOfCtaOnThreeDotsMenu(e,t).stepDescription,category_name:N.o9.onClickOfCtaOnThreeDotsMenu(e,t).categoryName},i,x()))}((0,g.camelCase)(e.actionTitle),c,{icid:r}),n(Y.N.manageNotificationRequest({actionType:e.actionType,requestParam
1s:e.requestParams})),i(!1)};return(0,s.jsx)("div",{className:"menu-content-wrapper",ref:l,children:(0,g.map)(t[T.B3.CTA_NEGATIVE],(function(e,t){return(0,s.jsx)(G.Z,{text:e.actionTitle,buttonType:"secondary",customClass:"cta-button",handleClick:d.bind(X,e)},"negative-cta-".concat(t+1))}))})},K=function(e){var t=e.templateData,i=e.slideIndex,n=e.isLoggedIn,r=e.fcWalletId,c=e.isAsideView,d=e.layoutId,u=void 0===d?1:d,p=e.setPopupType,h=void 0===p?g.noop:p,m=e.setPopupData,f=void 0===m?g.noop:m,v=e.closeClickHandler,y=void 0===v?g.noop:v,C=e.handleProductPopup,b=void 0===C?g.noop:C,A=e.showProductPopup,w=void 0!==A&&A,L=e.isConsentUpdated,S=void 0!==L&&L,j=e.popupSource,k=void 0===j?"":j,D=e.clickedIndex,P=t[T.B3.NOTIFICATION_TYPE]===T.Lm.REMINDER,U=(0,l.v9)((function(e){return e.dcc})),M=(0,l.I0)(),F=(0,o.useState)(!1),H=F[0],B=F[1],V=(0,o.useState)({}),K=V[0],z=V[1],J=(0,o.useState)({}),Q=J[0],$=J[1],ee="".concat(t[T.B3.NOTIFICATION_TYPE],"-").concat(i,"-").concat(P?t[T.B3.BILLER_NAME]:t[T.B3.TITLE],"}"),te=2===u?"myNotifications":"home",ie=function(e,t){var i=K.circleId,a=void 0===i?"":i,n=K.shortCode,s=void 0===n?"":n,o=K.authenticators,r=void 0===o?[]:o,c=K.page,l=void 0===c?"":c,d=(0,g.get)(U,"dccCategoryList.data.code",""),u=(0,g.get)((0,g.head)(r),"parameterValue",""),p=(0,O.bw)(s,l),h=p.category,m=p.layoutTypeId,f=(0,g.get)(e,"seoSlug","");(0,O.xW)(e,d,u,r,a,"bill-reminder-payment",h,f,t&&t.seoSlug,t&&t.circleName),t&&t.seoSlug?(0,O.MW)("push",O.vu.billerFetchPageUrl(h,f,t.seoSlug,m),O.vu.billerFetchPageAs(h,f,t.seoSlug)):(0,O.MW)("push",O.vu.billerFetchPageUrl(h,f,"reviewstep",m),O.vu.billerFetchPageAs(h,f,"reviewstep"))},ae=function(){var e=t[T.B3.TITLE];if(I("inApp",i,(0,g.replace)(e,/%/g,"")),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,E.ru)((0,a.Z)({pageName:N.o9.onClickOfNotificationCta(e,t).pageName,steps_name:N.o9.onClickOfNotificationCta(e,t).stepDescription,category_name:N.o9.onClickOfNotificationCta(e,t).categoryName},i,x()))}(t[T.B3.NOTIFICATION_TYPE],te,{icid:ee}),(0,_.OC)(t[T.B3.CATEGORY_NAME]),t[T.B3.DEEP_LINK])if("reminder"===t[T.B3.NOTIFICATION_TYPE])(0,O.y)({clickUrl:t[T.B3.DEEP_LINK],viaRedirectionUrl:!0,fallbackPage:"/services"});else{var s=(0,R.eu)(t[T.B3.DEEP_LINK]),o=s.page,c=s.objectContainingUtmDetails;if(o){var l=s[o.pageName]||{},d=l.dest,u=l.name,p=l.id,h=l.shortCode,m=l.authenticators,f=l.billerId,v=l.circleId,y={action:"view",page:o.pageName,dest:d,objectContainingUtmDetails:c,couponName:u,couponId:p,shortCode:h,authenticators:m,billerId:f,circleId:v};z((0,a.Z)({},y));var C=(0,g.get)(U,"dccCategoryList.data.categoryShortCode")!==h;if("utility"===o.pageName)((0,g.isEmpty)(U.dccCategoryList)||C)&&h?M(W.N.getCategoryInfo(h,"","","",!0)):(0,O.$N)(y,U,ie,$);else(0,R.pU)(y,n,r)}}},ne=function(){(0,g.isEmpty)(t[T.B3.CTA_NEGATIVE])?(y(),M(Y.N.collapseNotificationRequest(t))):((0,E.ru)((0,a.Z)({pageName:N.o9.onOpenOfManageReminderPopUp.pageName,steps_name:N.o9.onOpenOfManageReminderPopUp.stepDescription,category_name:N.o9.onOpenOfManageReminderPopUp.categoryName},x())),h("notification-cta"),f({data:t[T.B3.CTA_NEGATIVE],minHeight:"auto",minWidth:"100%"}))},se=(0,s.jsx)("p",{children:P?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"biller-name",children:"".concat(t[T.B3.CATEGORY_NAME]," ").concat(T.Lm.BILL_TEXT)})," ","".concat(T.Lm.DUE_ON_TEXT," ").concat(t[T.B3.DUE_DATE])]}):t[T.B3.DESCRIPTION]});return(0,o.useEffect)((function(){(0,g.isEmpty)(U.dccCategoryList)||(0,g.isEmpty)(K)||(0,O.$N)(K,U,ie,$)}),[null===U||void 0===U?void 0:U.dccCategoryList,K]),(0,o.useEffect)((function(){if(!(0,g.isEmpty)(Q)){var e=Q.blockType,t=void 0===e?"":e,i=Q.biller,a=void 0===i?{}:i,n=Q.blockEndDate,s=void 0===n?"":n,o=Q.circleDetails,r=void 0===o?"":o;"HARD"===t?Z.Dd.info(T.Lm.BILLER_BLOCK_WARNING(a.name,s)):"SOFT"===t&&(h("dcc-soft-block"),f({data:{wrapperClass:"biller-blocked-popup-content",heading:T.Lm.BILLER_DOWN_HEADING,subHeading:T.Lm.BILLER_DOWN_SUBHEADING(a.name),primaryBtn:{name:"tryLaterBtn",handleClick:y,text:T.Lm.BILLER_TRY_LATER},secondaryBtn:{name:"continueBtn",handleClick:ie.bind(X,a,r),text:T.Lm.PROCEED_WITH_RISK}},minHeight:"270px",minWidth:"400px"}))}}),[Q]),(0,o.useEffect)((function(){S&&"notification"===k&&i===D&&ae()}),[S,k]),(0,s.jsxs)("div",{className:"mynotifications-slide-item layoutId-".concat(u),children:[1===u&&(0,s.jsxs)("div",{className:"notif-description",children:[se,!c&&(0,s.jsx)("img",{src:T.eG.CROSS_ICON,alt:T.bC.CLOSE_ICON,onClick:ne})]}),H&&(0,s.jsx)(q,{templateData:t,setShowMenu:B,dispatch:M,omnitureTrackingId:ee,screen:te}),(0,s.jsxs)("div",{className:"notif-body",children:[(0,s.jsxs)("div",{className:"notif-left-section",children:[(0,s.jsx)("img",{src:t[T.B3.IMAGE_
1URL],alt:T.bC.NOTIFICATION_IMAGE,className:"notif-img",onError:O.nA.bind(X,"DEFAULT_PROVIDER_FALLBACK_LOGO")}),(0,s.jsxs)("div",{className:"notif-content",children:[(0,s.jsxs)("div",{className:"content-head",children:[(0,s.jsx)("p",{className:"notif-title",children:P?t[T.B3.BILLER_NAME]:t[T.B3.TITLE]}),c&&((0,g.isEmpty)(t[T.B3.CTA_NEGATIVE])?(0,s.jsx)("img",{src:T.eG.CROSS_ICON,alt:T.bC.CLOSE_ICON,onClick:ne}):(0,s.jsx)("img",{src:T.eG.MORE_OPTIONS,alt:T.bC.CLOSE_ICON,onClick:function(){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";(0,E.ru)((0,a.Z)({pageName:N.o9.onClickOfThreeDots(e).pageName,steps_name:N.o9.onClickOfThreeDots(e).stepDescription,category_name:N.o9.onClickOfThreeDots(e).categoryName},x()))}(te),B(!0)}}))]}),(0,s.jsx)("p",{className:"content-bottom-text",children:P?(0,s.jsxs)(s.Fragment,{children:[t[T.B3.CUSTOMER_ID]," ",(0,s.jsx)("span",{className:"dot"})," \u20b9",t[T.B3.AMOUNT]]}):t[T.B3.SUB_TEXT]}),2===u&&(0,s.jsx)("div",{className:"sub-text",children:se})]})]}),t[T.B3.DEEP_LINK]&&(0,s.jsx)("div",{className:"notif-cta",children:(T.B3.CTA_POSITIVE||P)&&(0,s.jsx)(G.Z,{text:t[T.B3.CTA_POSITIVE]||T.Lm.PAY_BILL,buttonType:"secondary",customClass:"cta-positive",handleClick:function(){w?b("notification",i):ae()}})})]})]})};K.propTypes={templateData:c().object,collapseNotification:c().func,slideIndex:c().number,isLoggedIn:c().bool,fcWalletId:c().string,isAsideView:c().bool,layoutId:c().number,setPopupType:c().func,setPopupData:c().func,closeClickHandler:c().func,handleProductPopup:c().func,showProductPopup:c().bool,isConsentUpdated:c().bool,popupSource:c().string,clickedIndex:c().oneOfType([c().number,c().object])};var z=K,J=function(e){var t=e.templateData,i=t.title,a=t.deeplink,n=t.exclusiveImageUrl,r=e.slideIndex,c=e.isMobile,l=(0,o.useRef)(null),d=(0,P.Z)(l,{threshold:.01}),u=(0,U.Z)(n,d),p=u.isImageDownloaded,h=void 0!==p&&p,m=u.isError,f=void 0!==m&&m;return(0,s.jsx)("a",{ref:l,className:"exclusive-deal-slide-item",href:a,onClick:h&&!f?function(e){e&&e.preventDefault(),I("dealfooter",r,i
1);var t=(0,g.toLower)((0,g.slice)(a,(0,g.lastIndexOf)(a,"/")+1).join(""));v().push("/deals?useCase=".concat(t),"/deals/".concat(t))}:null,children:h&&!f?(0,s.jsx)("img",{className:"deal-image",src:n,alt:T.bC.DEAL_IMAGE(i)}):(0,s.jsx)(Ce,{height:c?135:150,moduleName:"ExclusiveDeals"})})};J.propTypes={templateData:c().shape({imageUrl:c().string,title:c().string,subtitle:c().string,deeplink:c().string}),slideIndex:c().number};var Q=J,$=i(47568),ee=i(97582),te=i(35924),ie=i(16866),ae=i(92298),ne=(function(){var e=(0,$.Z)((function(){var e,t,i,a,n,s,o,r,c=arguments;return(0,ee.__generator)(this,(function(l){switch(l.label){case 0:e=c.length>0&&void 0!==c[0]?c[0]:g.noop,l.label=1;case 1:return l.trys.push([1,4,,5]),(0,g.isFunction)(ie.b9L)?[4,(0,ae.HT)((0,ie.b9L)(!0))]:[3,3];case 2:t=l.sent(),(i=t.data)&&!i.errorCode&&e(Y.N.getHomePageConfigSuccess(i.data)),l.label=3;case 3:return[3,5];case 4:return a=l.sent(),n=a.response,s=n&&n.data&&n.data.errorMessage||"",o=n&&n.data&&n.data.errorCode||"",r={errorAPI:ie.b9L,errorCode:o,errorMessage:s},e(Y.N.getHomePageConfigError(r)),[3,5];case 5:return[2]}}
1))}))}(),function(e,t,i){var a=""===e[T.B3.SHOW_IN]||(t?"LoggedIn"===e[T.B3.SHOW_IN]:"LoggedOut"===e[T.B3.SHOW_IN]);return!(!i||!e||"enable"!==e[T.B3.STATUS])&&a}),se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=e.label,n=void 0===a?"":a,r=e.activeImgUrl,c=void 0===r?"":r,l=e.inActiveImgUrl,d=void 0===l?"":l,u=i[t-1],p=u.label;return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)("img",{src:n===p?c:d,alt:"".concat((0,g.toLower)(n)," image")}),(0,s.jsx)("span",{children:n})]})},oe=function(e){switch(e){case 1:return te.jN.HOME;case 2:return te.jN.LOANS;default:return 0}},re=function(e,t){var i=(0,g.includes)(t,"?")?(0,g.split)(t,"?")[0]:t;return!e&&((0,g.includes)(S.P,i)||(0,g.find)(S.pd,(function(e){return i.indexOf(e)>-1}))||(0,g.some)(S.L8,(function(e){return e.test(i)})))},ce=function(e){var t=Math.floor(e/60),i=e%60;return"".concat(t,":").concat((0,g.padStart)((0,g.toString)(i),2,"0"))},le=function(e){var t=e.header,i=e.components,o=e.offers,r=e.auth,c=e.isMobile,l=void 0!==c&&c,d=e.gridHeight,u=void 0===d?{}:d,p=e.headerIcon,h=e.headerIconWidth,m=e.handleProductPopup,f=void 0===m?g.noop:m,v=e.showProductPopup,E=void 0===v?g.noop:v,N=e.isConsentUpdated,T=void 0!==N&&N,x=e.popupSource,y=void 0===x?"":x,C=e.clickedIndex,b=void 0===C?null:C,A=r.isLoggedIn,L=r.fcWalletId,S=function(e,i,a){I(t,i,e,a),(0,_.E2)(e)},j=(0,g.map)((0,g.size)(i)>0?(0,g.filter)(i,(function(e){var t,a=(t=e.categoryGridName,(0,g.find)(o.categoryGrid,(function(e){return e.name===t})));return e.offers=a&&a.showBubbleRibben&&a.offers[0]&&a.offers[0].shortText||"",ne(e,A,i)})):[],(function(e,t){return(0,s.jsx)(F,(0,n.Z)((0,a.Z)({},e),{fcWalletId:L,tileClickHandler:S.bind(undefined,e.title,t,e.gaAnalyticsData),index:t,imageHeight:"28",handleProductPopup:f,showProductPopup:E,isConsentUpdated:T,popupSource:y,clickedIndex:b}),e.title)}));return(0,s.jsx)(w,{title:t,expandable:!0,renderTiles:j,maxLength:l?6:10,gridHeight:u,headerIcon:p,headerIconWidth:h})};le.propTypes={header:c().string,components:c().array,home:c().object,auth:c().object,isMobile:c().bool,gridHeight:c().object};var de=le,ue=i(24381),pe=function(e){var t=e.categoryName,i=e.productsList,a=void 0===i?[]:i,n=e.resetHandler;return(0,s.jsx)(ue.Z,{layoutId:2,headerText:t,handleGoBackClick:n,children:(0,g.map)(a,(function(e,t){return function(e,t){var i=e.logoUrl,a=e.headline,n=e.redirectionUrl,o=a.headline,r=a.subHeadline1,c=a.subHeadline2,l=a.cta,d=a.label,u=n[T.B3.CREDIT_CATEGORY_PRODUCT_REDIRECTION_URL];return(0,s.jsxs)("div",{className:"credit-category-product",children:[(0,s.jsx)("div",{className:"logo",children:(0,s.jsx)("img",{src:i})}),(0,s.jsxs)("div",{className:"content",children:[(0,s.jsxs)("div",{className:"content-head",children:[o,d&&(0,s.jsx)("span",{className:"head-tag",children:d})]}),(0,s.jsx)("h2",{className:"content-sub-headline",children:r}),c&&(0,s.jsx)("p",{className:"content-note",children:c}),(0,s.jsx)("p",{className:"content-cta",onClick:function(){u&&((0,O.lD)(u)?window.location.href=u:v().push(u))},children:l})]})]},t)}(e,t)}))})};pe.propTypes={productsList:c().array};var he=pe,me=i(69928),ge=function(e){e&&e.preventDefault(),(0,E.ru)((0,a.Z)({pageName:N.o9.onViewAllDealsClick.pageName,steps_name:N.o9.onViewAllDealsClick.stepDescription,category_name:N.o9.onViewAllDealsClick.categoryName,technology:"PWA_Revamp"},x())),v().push(T.BA.DEALS)},fe=function(e){var t=e.header,i=e.home.exclusiveDeals,a=i.dealsList,n=i.dealsLoaded,r=e.isMobile,c=(0,o.useState)([]),l=c[0],d=c[1];return(0,o.useEffect)((function(){n&&!(0,g.isEmpty)(a)&&d((0,g.filter)(a,"exclusiveImageUrl"))}),[a,n]),(0,g.isEmpty)(l)?null:(0,s.jsxs)("div",{className:"home-slider-section exclusive-deals-slider-section",children:[t&&(0,s.jsx)("h3",{className:"section-heading",children:t}),(0,s.jsxs)(me.default,{wrapperClass:"home-slider",infinite:!1,slideWidth:r?"155px":"25%",slideHeight:r?"135px":"150px",showSliderShimmer:!n,shimmerComponent:(0,s.jsx)(Ce,{height:r?135:150,moduleName:"ExclusiveDeals"}),showArrows:n&&!r,children:[(0,g.map)(l,(function(e,t){return(0,s.jsx)(Q,{templateData:e||{},slideIndex:t,isMobile:r},t)})),(0,s.jsxs)("a",{href:T.BA.DEALS,onClick:ge,className:"view-all",children:[T.Lm.VIEW_ALL,(0,s.jsx)("img",{src:"".concat(j.O1,"/icons/angle-right.png"),alt:T.bC.ANGLE_RIGHT_ICON})]})]})]})};fe.propTypes={header:c().string,home:c().shape({exclusiveDeals:c().shape({dealsList:c().array,dealsLoaded:c().bool})})};var ve=fe,Ee=i(29815),Ne=i(33090),Te=function(e){var t=e.home,i=e.auth,n=e.layoutId,r=void 0===n?1:n,c=e.isDesktop,l=void 0!==c&&c,d=e.isTablet,u=void 0!==d&&d,p=e.isAsideView,h=void 0!==p&&p,m=e.setPopupType,f=void 0===m?g.noop:m,v=e.setPopupData,y=void 0===v?g.noop:v,I=e.setHidePopupCloseCta,C=void 0===I?g.noop:I,b=e.closeClickHandler,_=void 0===b?g.noop:b,A=e.isSdkJourney,w=void 0!==A&&A,L=e.handleProductPopup,S=void 0===L?g.noop:L,j=e.showProductPopup,R=void 0!==j&&j,O=e.isConsentUpdated,k=void 0!==O&&O,D=e.popupSource,P=void 0===D?"":D,U=e.clickedIndex,M=void 0===U?null:U,F=t.myNotifications,G=F.notificationsList,H=F.notificationsLoaded,B=(0,o.useState)(G),V=B[0],Z=B[1],W=(0,Ne.Z)().appConfig.DISABLE_NOTIFICATIONS;(0,o.useEffect)((function(){var e=G.length>T.zz;if(!h&&e){var t=(0,Ee.Z)(G);t.splice(T.zz,0,{title:"view-all-tile"}),Z((0,g.slice)(t,0,4))}else Z(G)}),[h,G]);var Y=i.isLoggedIn,X=void 0!==Y&&Y,q=i.fcWalletId,K=void 0===q?"":q,J=function(){(0,E.ru)((0,a.Z)({pageName:N.o9.onClickOfViewAllNotifications.pageName,steps_name:N.o9.onClickOfViewAllNotifications.stepDescription,category_name:N.o9.onClickOfViewAllNotifications.categoryName},x())),f("notifications"),y({minHeight:"100%",minWidth:"100%"}),C(!0)},Q=(0,g.map)(V,(function(e,t){return"view-all-tile"===e.title?(0,s.jsxs)("div",{onClick:J,className:"view-all",children:[T.Lm.VIEW_ALL,(0,s.jsx)("img",{src:T.eG.ANGLE_RIGHT,alt:T.bC.VIEW_ALL})]},t):(0,s.jsx)(z,{setPopupType:f,setPopupData:y,slideIndex:t,templateData:e,isLoggedIn:X,fcWalletId:K,isAsideView:h,layoutId:r,closeClickHandler:_,handleProductPopup:S,showProductPopup:R,isConsentUpdated:k,popupSource:P,clickedIndex:M},t)}));if(H&&(0,g.isEmpty)(G)||W)return null;switch(!0){case h:return(0,s.jsxs)("div",{className:"home-notifications layoutId-".concat(r),children:[!(0,g.isEmpty)(G)&&(0,s.jsxs)("div",{className:"notifications-header",children:[2===r&&(0,s.jsx)("img",{className:"cancel-icon",onClick:_,src:T.eG.CANCEL_ICON}),(0,s.jsx)("h3",{children:T.Lm.MY_NOTIFICATIONS_TEXT})]}),(0,s.jsx)("div",{className:"home-notifications-container",children:Q})]});case!l&&!w:return(0,s.jsx)(me.default,{wrapperClass:"home-slider-section home-notifications",sliderClass:"home-slider",autoplaySpeed:1e4,slideWidth:"".concat((0,g.size)(V)>1?u?"40%":"88%":"100%"),showSliderShimmer:!H,slideHeight:"94px",slideGap:0,infinite:!1,shimmerComponent:(0,s.jsx)(Ce,{moduleName:"InAppNotifications"}),showViewAllSlide:G.length>T.zz,viewAllSlideWidth:"180px",children:Q});default:return null}};Te.propTypes={home:c().object,auth:c().object,layoutId:c().number,isDesktop:c().bool,isTablet:c().bool,isAsideView:c().bool,setPopupType:c().func,setPopupData:c().func,setHidePopupCloseCta:c().func,closeClickHandler:c().func};var xe=Te,ye=i(59746),Ie=function(e){var t=e.moduleName,i=e.height,a=e.isMobile,n=void 0!==a&&a,r=e.isTablet,c=void 0!==r&&r;switch(t){case"InAppNotifications":return(0,s.jsxs)(ye.Z,{height:70,backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",style:{backgroundColor:"#fff"},uniqueKey:"in-app-notification",children:[(0,s.jsx)("circle",{cx:"30",cy:"35",r:"18"}),(0,s.jsx)("rect",{x:"65",y:"20",width:"180",height:"12"}),(0,s.jsx)("rect",{x:"65",y:"40",width:"160",height:"10"})]});case"Spotlight":return(0,s.jsxs)(ye.Z,{height:i,backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",style:{backgroundColor:n||c?"#fff":"transparent"},uniqueKey:"spotlight",children:[(0,s.jsx)("rect",{x:"10",y:"15",width:"90px",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("circle",{cx:"40",cy:"70",r:"20"}),(0,s.jsx)("rect",{x:"20",y:"110",width:"75",height:"10",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"20",y:"130",width:"100",height:"20",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"20",y:"160",width:"125",height:"20",rx:"5",ry:"5"}),(0,s.jsx)("circle",{cx:"210",cy:"70",r:"20"}),(0,s.jsx)("rect",{x:"190",y:"110",width:"75",height:"10",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"190",y:"130",width:"100",height:"20",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"190",y:"160",width:"125",height:"20",rx:"5",ry:"5"}),(0,s.jsx)("circle",{cx:"380",cy:"70",r:"20"}),(0,s.jsx)("rect",{x:"360",y:"110",width:"75",height:"10",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"360",y:"130",width:"100",height:"20",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"360",y:"160",width:"125",height:"20",rx:"5",ry:"5"}),(0,s.jsx)("circle",{cx:"540",cy:"70",r:"20"}),(0,s.jsx)("rect",{x:"520",y:"110",width:"75",height:"10",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"520",y:"130",width:"100",height:"20",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"520",y:"160",width:"125",height:"20",rx:"5",ry:"5"})]});case"ExclusiveDeals":return(0,s.jsxs)(ye.Z,{height:i,backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",style:{backgroundColor:"#fff"},uniqueKey:"exclusive-deals",children:[(0,s.jsx)("circle",{cx:"40",cy:"40",r:"18"}),(0,s.jsx)("rect",{x:"20",y:"65",width:"55%",height:"10",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"20",y:"85",width:"70%",height:"20",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"20",y:"115",width:"50%",height:"20",rx:"5",ry:"5"})]});case"FeaturedDeals":return(0,s.jsxs)(ye.Z,{height:i,backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",style:{backgroundColor:n||c?"#fff":"transparent"},uniqueKey:"featured-deals",children:[(0,s.jsx)("circle",{cx:"45",cy:"45",r:"20"}),(0,s.jsx)("rect",{x:"25",y:"80",width:"200px",height:"10",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"25",y:"100",width:"240px",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"25",y:"125",width:"200px",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("circle",{cx:"380",cy:"45",r:"20"}),(0,s.jsx)("rect",{x:"360",y:"80",width:"200px",height:"10",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"360",y:"100",width:"240px",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"360",y:"125",width:"200px",height:"15",rx:"5",ry:"5"})]});case"CategoryGrid":return(0,s.jsxs)(ye.Z,{height:275,backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",style:{backgroundColor:n||c?"#fff":"transparent"},uniqueKey:"grid",children:[(0,s.jsx)("rect",{x:"10",y:"40",width:"90px",height:"15",rx:"5",ry:"5"}),n?(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)("rect",{x:"5%",y:"80",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"40%",y:"80",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"78%",y:"80",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"5%",y:"180",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"40%",y:"180",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"78%",y:"180",width:"60",height:"60",rx:"15",ry:"15"})]}):(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)("rect",{x:"5%",y:"80",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"27%",y:"80",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"48%",y:"80",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"68%",y:"80",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"88%",y:"80",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"5%",y:"180",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"27%",y:"180",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"48%",y:"180",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"68%",y:"180",width:"60",height:"60",rx:"15",ry:"15"}),(0,s.jsx)("rect",{x:"88%",y:"180",width:"60",height:"60",rx:"15",ry:"15"})]})]});case"Investments":return(0,s.jsxs)(ye.Z,{height:230,backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",style:{backgroundColor:n||c?"#fff":"transparent"},uniqueKey:"investments",children:[(0,s.jsx)("rect",{x:"10",y:"10",width:"90px",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("circle",{cx:"50",cy:"65",r:"20"}),(0,s.jsx)("rect",{x:"80",y:"55",width:"65",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"50",y:"110",width:"90",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"60",y:"130",width:"70",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"30",y:"170",width:"120",height:"35",rx:"20",ry:"20"}),(0,s.jsx)("circle",{cx:"230",cy:"65",r:"20"}),(0,s.jsx)("rect",{x:"260",y:"55",width:"65",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"230",y:"110",width:"90",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"240",y:"130",width:"70",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"210",y:"170",width:"120",height:"35",rx:"20",ry:"20"}),(0,s.jsx)("circle",{cx:"410",cy:"65",r:"20"}),(0,s.jsx)("rect",{x:"440",y:"55",width:"65",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"410",y:"110",width:"90",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"420",y:"130",width:"70",height:"15",rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:"390",y:"170",width:"120",height:"35",rx:"20",ry:"20"})]});case"TopBanner":return(0,s.jsx)(ye.Z,{height:n?"136":c?"150":"180",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",style:{backgroundColor:"#fff"},uniqueKey:"exclusive-deals",children:(0,s.jsx)("rect",{x:"0",y:"0",width:"100%",height:n?"136":c?"150":"180",rx:"20",ry:"20"})});case"LandingPage":return(0,s.jsxs)("div",{className:"content-loader",children:[(0,s.jsx)(Ie,{moduleName:"TopBanner"}),n||c?(0,s.jsx)(Ie,{moduleName:"InAppNotifications"}):null,(0,s.jsx)(Ie,{moduleName:"CategoryGrid",isTablet:c,isMobile:n}),(0,s.jsx)(Ie,{moduleName:"Investments",isTablet:c,isMobile:n}
1),(0,s.jsx)(Ie,{moduleName:"Spotlight",height:n?185:220,isMobile:n,isTablet:c}),(0,s.jsx)(Ie,{height:160,moduleName:"FeaturedDeals",isMobile:n,isTablet:c})]});default:return null}},Ce=Ie,be=i(38373),_e=function(e){var t=e.slideIndex,i=e.spotlightDetails,r=e.openSpotlightPopUp,c=e.isLoggedIn,l=e.fcWalletId,d=e.isMobile,u=void 0!==d&&d,p=e.isTablet,h=void 0!==p&&p,m=i.action,f=i.actionUrl,v=i.description,E=i.imageUrl,N=(0,D.Z)().setCallback,x=(0,o.useRef)(null),y=(0,P.Z)(x,{threshold:.01}),C=(0,U.Z)(E,y),b=C.isImageDownloaded,A=void 0!==b&&b,w=C.isError,L=void 0!==w&&w;if((0,g.isEmpty)(E))return null;return(0,s.jsx)("div",{ref:x,className:"spotlight-slide-item",onClick:A&&!L?function(){switch(I("spotlight",t,v),(0,_.AO)(v,E),m){case"webview":case"webview:internal":case"webview:external":window.location.href=f;break;case"deeplink":!function(){var e=(0,R.eu)(f),t=e.popUp,i=e.page,s=e.fallbackMethod,o=e.objectContainingUtmDetails;if(t){if("offer"===be.Mm[t.useCase]){var d=(0,n.Z)((0,a.Z)({},t[t.useCase]),{description:v});d.imageUrl=E,r(d,s)}}else if(i){var u=e[i.pageName]||{},p=u.dest,h=u.name,m=u.id,g=u.shortCode,T=re(c,"/".concat(be.sN[i.pageName])),x={action:"view",page:i.pageName,dest:p,objectContainingUtmDetails:o,couponName:h,couponId:m,shortCode:g};T?N(R.pU.bind(void 0,x,c,l)):(0,R.pU)(x,c,l)}}()}}:null,children:A&&!L?(0,s.jsx)("img",{className:"spotlight-image",alt:T.bC.OFFER_BANNER,src:E}):(0,s.jsx)(Ce,{height:u?185:220,moduleName:"Spotlight",isMobile:u,isTablet:h})})},Ae=function(e){var t=e.header,i=e.home,a=e.openSpotlightPopUp,n=e.auth,o=e.isMobile,r=e.isTablet,c=e.isSdkJourney,l=n.isLoggedIn,d=n.fcWalletId,u=i.notificationSpotlight,p=u.spotlightList,h=u.spotlightLoaded,m=(0,g.isEmpty)(p)?[]:p;return(0,g.isEmpty)(m)||c?null:(0,s.jsxs)("div",{className:"home-slider-section spotlight-slider-section",children:[t&&(0,s.jsx)("h3",{className:"section-heading",children:t}),(0,s.jsx)(me.default,{wrapperClass:"home-slider",infinite:!1,slideWidth:o?"150px":"25%",slideHeight:o?"185px":"220px",showSliderShimmer:!h,shimmerComponent:(0,s.jsx)(Ce,{height:o?185:220,moduleName:"Spotlight",isMobile:o,isTablet:r}),showArrows:h&&!o,children:(0,g.map)(m,(function(e,t){return(0,s.jsx)(_e,{slideIndex:t,spotlightDetails:e,openSpotlightPopUp:a,isLoggedIn:l,fcWalletId:d,isMobile:o,isTablet:r},t)}))})]})};Ae.propTypes={header:c().string,home:c().object};var we=Ae,Le=function(e){var t=e.home,i=e.creditItemClickHandler,a=e.auth,n=t.userCreditProducts.data||{},r=n.eligibleProduct,c=void 0===r?null:r,l=n.eligibleCategories,d=void 0===l?[]:l,u=n.defaultBannerDetails,p=void 0===u?{}:u,h=a.isLoggedIn,m=(0,o.useState)([]),f=m[0],v=m[1];return(0,o.useEffect)((function(){if(!(0,g.isEmpty)(d)){var e=(0,g.filter)(d,(function(e){return!(0,g.isEmpty)(e.redirectionUrl[T.B3.USER_CREDIT_ITEM_REDIRECTION_URL])}));!(0,g.isEmpty)(e)&&v(e)}}),[d]),!h||(0,g.isEmpty)(f)?null:(0,g.isEmpty)(c)?(0,s.jsx)("div",{className:"unified-credits-container",children:(0,s.jsx)(B,{bannerDetails:p,categoriesList:f,creditItemClickHandler:i})}):(0,s.jsx)("div",{className:"unified-credits-container",children:(0,s.jsx)(B,{bannerDetails:c,creditItemClickHandler:i})})};Le.propTypes={home:c().object,auth:c().object,creditItemClickHandler:c().func};var Se=Le,je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slideIndex,i=e.fcWalletId,a=e.isLoggedIn,n=e.slideDetails,r=e.tileClickHandler,c=e.isTablet,l=e.isMobile,d=e.page,u=n||{},p=u.deeplink,h=u.imageUrl,m=u.title,f=(0,o.useRef)(null),v=(0,o.useState)(""),E=v[0],N=v[1],T=(0,P.Z)(f,{threshold:.1}),x=(0,U.Z)(E,T&&!(0,g.isEmpty)(E)),y=x.isImageDownloaded,I=void 0!==y&&y,C=x.isError,b=void 0!==C&&C;if((0,g.isEmpty)(h))return null;var A=function(){var e=(0,R.eu)(p,!1),n=e.page,s=e.objectContainingUtmDetails;if((0,g.isFunction)(r)&&r("featured",t,m),(0,_.ET)(m,h,d),n){var o=e[n.pageName]||{},c=o.dest,l=o.name,u=o.id,f=o.shortCode,v={action:"view",page:n.pageName,dest:c,objectContainingUtmDetails:s,couponName:l,couponId:u,shortCode:f};(0,R.pU)(v,a,i)}},w=function(e){f.current=e,N("".concat(h,"?imwidth=").concat((null===e||void 0===e?void 0:e.clientWidth)||""))};return(0,s.jsx)("div",{ref:w,className:"deal-view",onClick:I&&!b?A:null,children:I&&!b?(0,s.jsx)("img",{src:E,alt:"featured-deals-".concat(t+1)}):b?(0,s.jsx)("img",{src:k.ax.BLOGS,alt:"featured-deals-".concat(t+1)}):(0,s.jsx)(Ce,{height:160,moduleName:"FeaturedDeals",isTablet:c,isMobile:l})},"featured-deals-".concat(t))},Re=function(e){var t=e.header,i=void 0===t?"":t,a=e.auth,n=void 0===a?{}:a,r=e.isMobile,c=void 0!==r&&r,l=e.isTablet,d=void 0!==l&&l,u=e.slideWidth,p=void 0===u?"50%":u,h=e.actions,m=void 0===h?{}:h,f=e.page,v=void 0===f?"home":f,E=e.tileClickHandler,N=void 0===E?g.noop:E,T=e.isSdkJourney,x=void 0!==T&&T,y=n.isLoggedIn,I=n.fcWalletId,C=(0,g.get)(e,"".concat(v,".").concat(v,"Featured"),{}),b=C.featuresLoaded,_=void 0!==b&&b,A=C.featuresList;return(0,o.useEffect)((function(){!_&&(0,g.isEmpty)(A)&&!x&&m["get".concat((0,g.capitalize)(v),"pageFeaturedRequest")]()}),[]),_&&(0,g.isEmpty)(A)||x?null:(0,s.jsxs)("div",{className:"home-slider-section featured-deals",children:[i&&(0,s.jsx)("h3",{className:"section-heading",children:i}),(0,s.jsx)(me.default,{wrapperClass:"home-slider",infinite:!1,slideWidth:c?"280px":p,slideHeight:"160px",showSliderShimmer:!_,shimmerComponent:(0,s.jsx)(Ce,{height:160,moduleName:"FeaturedDeals",isTablet:d,isMobile:c}),showArrows:_&&!c,children:o.Children.toArray((0,g.map)(A,(function(e,t){return(0,s.jsx)(je,{slideIndex:t,slideDetails:e,isLoggedIn:y,fcWalletId:I,tileClickHandler:N,isTablet:d,isMobile:c,page:v},t)})))})]})},Oe=i(40801),ke=i(26975),De=void 0,Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;(0,O.lD)(e)?window.open(e):v().push(e,t)},Ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clickHandler,i=void 0===t?g.noop:t,a=e.data,n=void 0===a?{}:a,r=e.index,c=void 0===r?0:r,l=n.clickUrl,d=void 0===l?"":l,u=n.clickAs,p=void 0===u?"":u,h=n.resourceUrl,m=void 0===h?"":h,f=n.title,v=void 0===f?"":f,E=n.subTitle,N=void 0===E?"":E,x=n.resourceType,y=void 0===x?"":x,I=n.ctaText,C=void 0===I?"":I,b=n.isLoginRequired,_=void 0!==b&&b,A=(0,o.useRef)(null),w=(0,P.Z)(A,{threshold:.1});return(0,s.jsxs)("a",{href:p||d,className:"investment-slide-item",onClick:i.bind(De,{clickUrl:d,clickAs:p||d,title:v,isLoginRequired:_},c),ref:A,children:[(0,s.jsxs)("div",{className:"upper-section",children:[m&&(0,s.jsx)("img",{src:w?"".concat(m,"?imwidth=40"):"".concat(j.O1,"/home/default_tile.png"),className:"investment-image",alt:"".concat((0,g.toLower)(y)," image"),loading:"lazy"}),v&&(0,s.jsx)("span",{className:"investment-title",children:v})]}),(0,s.jsxs)("div",{className:"lower-section",children:[N&&(0,s.jsx)("span",{className:"investment-sub-title",children:N}),(0,s.jsx)(G.Z,{buttonType:"secondary",handleClick:i.bind(De,{clickUrl:d,clickAs:p||d,title:v,isLoginRequired:_},c),type:"button",text:C||T.Lm.INVESTMENTS.START_SAVING_TEXT})]})]})},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.header,i=e.data,a=void 0===i?[]:i,n=e.isMobile,r=void 0!==n&&n,c=e.isDesktop,l=void 0!==c&&c,d=e.isSdkJourney,u=void 0!==d&&d,p=(0,D.Z)(),h=p.isLoggedIn,m=void 0!==h&&h,f=p.setCallback,v=void 0===f?g.noop:f;if((0,g.isEmpty)(a)||u)return null;var E=function(e,t,i){i&&(i.preventDefault(),i.stopPropagation());var a=e.clickUrl,n=e.clickAs,s=e.title,o=e.isLoginRequired,r=void 0!==o&&o;I("investment",t,s),(0,_.ht)(s),(0,ke.uu)(Oe.C1.onFreeCreditScoreClick,{category_name:Oe.P7.CATEGORY_EXPERIAN,user_t
1ype:Oe.P7.HOME_PAGE}),r&&!m?v(Pe.bind(De,a,n),a,n):Pe(a,n)};return(0,s.jsxs)("div",{className:"home-slider-section investments-slider-section",children:[(0,s.jsx)("h3",{className:"section-heading",children:t}),(0,s.jsx)(me.default,{wrapperClass:"home-slider",infinite:!1,slideWidth:r?"166px":"248px",slideHeight:"189px",showArrows:!r,slideGap:l?15:10,preventOnStart:!0,children:o.Children.toArray((0,g.map)(a,(function(e,t){return(0,s.jsx)(Ue,{data:e,clickHandler:E,index:t},"investment-".concat(t+1))})))})]})},Fe="Pay Credit Card Bill",Ge="Add New Card",He="View More",Be={BBPS_LOGO:{url:"".concat(j.O1,"/icons/bbps-new-1.png"),altText:"BBPS Logo"},MORE_ICON:{url:"".concat(j.O1,"/sdk/more-cc.svg"),altText:"More Option"},BANK_ICON:{altText:"Banks Logo"}},Ve=function(e){var t=e.bankData,i=void 0===t?{}:t,a=e.currentPosition,n=void 0===a?0:a,o=e.moreTilePosition,r=void 0===o?5:o,c=e.handleBankCardClick,l=void 0===c?g.noop:c;return(0,s.jsxs)("div",{className:"bank-tile",onClick:function(){return l(n===r?{}:i)},children:[(0,s.jsx)("div",{className:"bank-img-container",children:n===r?(0,s.jsx)("img",{src:Be.MORE_ICON.url,alt:Be.MORE_ICON.altText}):(0,s.jsx)("img",{src:null===i||void 0===i?void 0:i.imgUrl,alt:Be.BANK_ICON.altText})}),n===r?(0,s.jsx)("p",{children:He}):(0,s.jsx)("p",{children:null===i||void 0===i?void 0:i.name})]})},Ze=i(38078),We=(i(85533),"banks-list"),Ye=function(){var e=(0,f.useRouter)(),t=(0,l.v9)((function(e){return e.auth.csrfRequestIdentifierToken})),i=(0,o.useState)(),a=i[0],n=i[1],r=(0,Ze.Z)({onSuccess:O.Gt,onError:O.MO,useSlugAsResponseKey:!0}),c=r.response,d=void 0===c?{}:c,u=r.error,p=void 0===u?{}:u,h=r.fetchIntercept,m=r.abortIntercept,v=function(){e.push("/credit-cards/banks",void 0,{shallow:!0})},E=function(t){(0,g.isEmpty)(t)?v():e.push({pathname:"/credit-cards/banks/".concat((0,g.kebabCase)(t.name))},void 0,{shallow:!0})};return(0,o.useEffect)((function(){return m}),[]),(0,o.useEffect)((function(){(0,g.isEmpty)(a)&&h((0,ie.CMX)("CC"),"GET",{csrfRequestIdentifier:t},null,{showToast:!0,showLoader:!0,additionalData:{slug:We}})}),[a]),(0,o.useEffect)((function(){var e,t,i,a;(0,g.isEmpty)(d.banksListSuccess)?(0,g.isEmpty)(p.banksListError)||n([]):!(0,g.isEmpty)(null===(e=d.banksListSuccess)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.billers)&&n(null===(i=d.banksListSuccess)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.billers)}),[d.banksListSuccess,p.banksListError]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"credit-card-partner-section",children:[(0,s.jsxs)("div",{className:"heading-section",children:[(0,s.jsxs)("div",{className:"left-col",children:[(0,s.jsx)("p",{className:"credit-card-partner-heading",children:Fe}),(0,s.jsx)("img",{src:Be.BBPS_LOGO.url,alt:Be.BBPS_LOGO.altText,className:"image-in-heading"})]}),(0,s.jsx)("div",{className:"right-col",children:(0,s.jsx)("p",{className:"add-new-card-link",onClick:v,children:Ge})})]}),(0,s.jsx)("div",{className:"grid-section",children:(0,s.jsx)("ul",{className:"section-tiles-wrapper",children:!(0,g.isEmpty)(a)&&(0,g.map)(null===a||void 0===a?void 0:a.slice(0,9),(function(e,t){return(0,s.jsx)(Ve,{bankData:e,currentPosition:t,moreTilePosition:8,handleBankCardClick:E})}))})})]})})},Xe={TOP_BANNER:function(e){var t=e.isDesktop,i=e.isMobile,o=e.home,r=e.key,c=e.auth,l=e.actions,d=e.isSdkJourney;return(0,s.jsx)(st,(0,n.Z)((0,a.Z)({isDesktop:t},o.topBanner,c),{actions:l,isMobile:i,isSdkJourney:d}),r)},IN_APP_NOTIFICATIONS:function(e){var t=e.key,i=e.home,a=e.auth,n=e.isDesktop,o=e.isTablet,r=e.setPopupType,c=e.setPopupData,l=e.closeClickHandler,d=e.isSdkJourney,u=e.handleProductPopup,p=e.showProductPopup,h=e.isConsentUpdated,m=e.popupSource,g=e.clickedIndex,f=e.setHidePopupCloseCta;return(0,s.jsx)(xe,{home:i,auth:a,isDesktop:n,isTablet:o,setPopupType:r,setPopupData:c,closeClickHandler:l,isSdkJourney:d,handleProductPopup:u,showProductPopup:p,isConsentUpdated:h,popupSource:m,clickedIndex:g,setHidePopupCloseCta:f},t)},CATEGORY_TILE:function(e){var t=e.key,i=e.header,a=e.offers,n=e.components,o=e.auth,r=e.isMobile,c=e.gridHeight,l=e.headerIcon,d=e.headerIconWidth,u=e.handleProductPopup,p=e.showProductPopup,h=e.isConsentUpdated,m=e.popupSource,g=e.clickedIndex;return(0,s.jsx)(de,{header:i,offers:a,components:n,auth:o,isMobile:r,gridHeight:c,headerIcon:l,headerIconWidth:d,handleProductPopup:u,showProductPopup:p,isConsentUpdated:h,popupSource:m,clickedIndex:g},t)},SDK_CC_TILES:function(){return(0,s.jsx)(Ye,{})},SPOTLIGHT:function(e){var t=e.key,i=e.header,a=e.home,n=e.openSp
1otlightPopUp,o=e.auth,r=e.isMobile,c=e.isTablet,l=e.isSdkJourney;return(0,s.jsx)(we,{header:i,home:a,openSpotlightPopUp:n,auth:o,isMobile:r,isTablet:c,isSdkJourney:l},t)},UNIFIED_CREDIT:function(e){var t=e.key,i=e.home,a=e.creditItemClickHandler,n=e.auth;return(0,s.jsx)(Se,{home:i,creditItemClickHandler:a,auth:n},t)},EXCLUSIVE_DEALS:function(e){var t=e.key,i=e.header,a=e.home,n=e.isMobile;return(0,s.jsx)(ve,{header:i,home:a,isMobile:n},t)},FEATURED_DEALS:function(e){var t=e.key,i=e.home,a=e.header,n=e.auth,o=e.isMobile,r=e.isTablet,c=e.actions,l=e.featuredClickHandler,d=e.isSdkJourney;return(0,s.jsx)(Re,{page:"home",tileClickHandler:l,home:i,header:a,auth:n,isMobile:o,isTablet:r,actions:c,isSdkJourney:d},t)},INVESTMENTS:function(e){var t=e.key,i=e.header,a=e.sectionData,n=e.isMobile,o=e.isDesktop,r=e.isSdkJourney;return(0,s.jsx)(Me,{header:i,data:a,isMobile:n,isDesktop:o,isSdkJourney:r},t)},BLOGS:function(e){var t=e.key,i=e.header,a=e.home,n=e.isDesktop,o=e.isMobile,r=e.isSdkJourney;return(0,s.jsx)(at,{header:i,home:a,isDesktop:n,isMobile:o,isSdkJourney:r},t)},FEATURE_CARD:function(e){var t=e.key,i=e.sectionData,a=e.isDesktop,n=e.isSdkJourney;return(0,s.jsx)(nt,{data:i,isDesktop:a,isSdkJourney:n},t)}},qe=i(65114),Ke=i(14391),ze=void 0,Je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.setPopupData,i=void 0===t?g.noop:t,o=e.setPopupType,r=void 0===o?g.noop:o,c=e.emailVerified,l=void 0!==c&&c,d=function(e){"/help-support"===e?(l?v().push(e):i((0,a.Z)({data:{usecase:"email-validation"}},{minHeight:"243px",minWidth:"100vw",maxHeight:"243px",maxWidth:"100vw"})),r("email-validation")):v().push(e)};return(0,s.jsxs)("div",{className:"quick-access-component",children:[(0,s.jsxs)("div",{className:"quick-links-container",children:[(0,s.jsx)("p",{className:"heading",children:T.Lm.QUICK_LINKS}),(0,s.jsx)("div",{className:"links-box",children:(0,g.map)(T.u_,(function(e){return(0,s.jsxs)("div",{className:"link-entity",onClick:d.bind(ze,e.link),children:[(0,s.jsx)("img",(0,n.Z)((0,a.Z)({},e.icon),{className:"entity-icon"})),(0,s.jsx)("p",{className:"title",children:e.title}),(0,s.jsx)("img",{src:T.eG.RIGHT_ARROW,className:"forward-arrow",alt:T.bC.RIGHT_ARROW})]})}))})]}),(0,s.jsxs)("div",{className:"powered-by",children:[(0,s.jsx)("p",{children:T.Lm.POWERED_BY}),(0,s.jsx)("img",{src:T.eG.FREECHARGE_LOGO,alt:T.bC.FREECHARGE_LOGO})]})]})},Qe=(i(21784),JSON.parse('{"_comments":[{"api":"{CDN_HOST_NAME}/pwa/json/homePageConfig.json","method":"GET"}],"data":{"homeResponse":{"groups":[{"header":"","itemType":"TOP_BANNER","position":1,"status":"enable","showIn":"","resourceId":1},{"header":"","itemType":"IN_APP_NOTIFICATIONS","position":2,"status":"enable","showIn":"LoggedIn","resourceId":2},{"header":"Instant Mobile Recharge","itemType":"QUICK_RECHARGE","position":3,"status":"disable","showIn":"LoggedOut","resourceId":3},{"components":[{"clickUrl":"/ncmc-recharge","resourceType":"NCMC_RECHARGE","resourceUrl":" https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/home/ncmc.svg","resourceAlt":"Freecharge NCMC Recharge","title":"NCMC Recharge","isNew":true,"showIn":"","status":"enable","pageName":"ncmc-recharge","layoutTypeId":"2","categoryGridName":"NCMC Recharge","type":"recharge"},{"clickUrl":"/credit-cards","resourceType":"CREDIT_CARDS","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/credit-card.svg","resourceAlt":"Freecharge Credit Card Bill Payments","title":"Pay Credit Card Bill","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"credit-cards","layoutTypeId":"2","categoryGridName":"Credit Card Bill Payments","type":"bill-payment"},{"clickUrl":"/donation","resourceType":"DCC","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/dcc/donation-icon.svg","resourceAlt":"Donation","title":"Donation","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"donation","layoutTypeId":"2","categoryGridName":"Donation"},{"clickUrl":"/mobile-recharge","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/mobile_2.png","resourceAlt":"Freecharge Mobile recharge","title":"Mobile Recharge","
1isNew":false,"showIn":"","status":"enable","isActive":true,"pageName":"dcc","layoutTypeId":"2","categoryGridName":"Mobile Recharge","type":"recharge"},{"clickUrl":"/postpaid-bill-payments","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/postpaid_2.svg","resourceAlt":"Freecharge Mobile bill payment","title":"Mobile Postpaid","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","layoutTypeId":"2","categoryGridName":"Mobile Postpaid","type":"bill-payment"},{"clickUrl":"/electricity","resourceType":"ELECTRICITY","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/electricity_2.png","resourceAlt":"Electricity bill payment on Freecharge","title":"Electricity","isNew":false,"showIn":"","status":"enable","pageName":"dcc","categoryGridName":"Electricity","type":"bill-payment","isActive":true},{"clickUrl":"/dth","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/dth_2.png","resourceAlt":"Freecharge DTH recharge","title":"DTH","isNew":false,"showIn":"","status":"enable","pageName":"dcc","categoryGridName":"DTH","type":"recharge"},{"clickUrl":"/ev-recharge","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/ev-recharge_2.svg","resourceAlt":"Freecharge EV Recharge","title":"EV Recharge","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"EV Recharge","type":"recharge"},{"clickUrl":"/fastag-recharge","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/fastag_2.svg","resourceAlt":"Freecharge Fastag Recharge","title":"FASTag Recharge","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"FasTag","type":"recharge"},{"clickUrl":"/gift-cards","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/gift-cards_2.svg","resourceAlt":"Gift Cards","title":"Gift Cards","isNew":true,"showIn":"","status":"enable","isActive":false,"click_name":"homePageCorpGiftCardsClick"},{"clickUrl":"/landline","resourceType":"LANDLINE","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/landline_2.png","resourceAlt":"Landline bill payment on Freecharge","title":"Landline","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Landline","type":"bill-payment"},{"clickUrl":"/cylinder-gas-booking","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/cylinder-booking_2.png","resourceAlt":"Book a cylinder on Freecharge","title":"Book a Cylinder","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"LPG Cylinder","type":"bill-payment"},{"clickUrl":"/gas","resourceType":"GAS","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/gas_2.svg","resourceAlt":"Gas bill payment on Freecharge","title":"Gas Pipeline","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Gas","type":"bill-payment"},{"clickUrl":"/water","resourceType":"WATER","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/water_2.png","resourceAlt":"Water bill payment on Freecharge","title":"Water","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Water","type":"bill-payment"},{"clickUrl":"/broadband","resourceType":"BROADBAND","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/broadband_2.png","resourceAlt":"Recharge Broadband on Freecharge","title":"Broadband","isNew":false,"showIn":"","status":"enable","isActive":true,"pageName":"dcc","categoryGridName":"Broadband","type":"bill-payment"},{"clickUrl":"/subscriptions","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/subscription_2.svg","resourceAlt":"Freecharge Subscriptions Recharge","title":"OTT/Subscriptions","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Subscription"},{"clickUrl":"/online-emi-payment","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/loan-payment_2.svg","resourceAlt":"Pay Loan EMI on Freecharge","title":"Loan Repayment","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Online EMI"},{"clickUrl":"/datacard","resourceType":"DATACARD","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/datacard_2.png","resourceAlt":"Freecharge Datacard recharge","title":"Datacard","isNew":false,"showIn":"","status":"disable","isActive":false,"categoryGridName":"Datacard"},{"clickUrl":"/google-play","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/google_play.svg","resourceAlt":"Recharge Google Play on Freecharge","title":"Google Play","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","layoutTypeId":"4","categoryGridName":"Google Play"},{"clickUrl":"/deals","resourceType":"DEALS","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/deals_2.png","resourceAlt":"Freecharge Deals and Offers","title":"Deals","isNew":false,"showIn":"","status":"disable","isActive":false,"categoryGridName":"Deals"},{"clickUrl":"/municipal","resourceId":"213","resourceType":"MUNICIPAL","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/municipal_2.png","resourceAlt":"Municipal bill payment on Freecharge","title":"Municipal","isNew":false,"showIn":"","status":"disable","isActive":false,"categoryGridName":"Municipal"},{"clickUrl":"/insurance-bill-payment","resourceType":"INSURANCE","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/insurance_2.png","resourceAlt":"Pay Insurance premium on Freecharge","title":"Insurance","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Insurance"},{"clickUrl":"/municipal-tax-payments","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/municipal_2.png","resourceAlt":"Municipal bill payment on Freecharge","title":"Municipal Tax","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Municipal"},{"clickUrl":"/housing-society","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/housing-society_2.svg","resourceAlt":"Housing Society bill payment on Freecharge","title":"Apartments","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Housing Society"},{"clickUrl":"/cable-tv-recharge","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/cable-tv-recharge_2.svg","resourceAlt":"Cable TV Recharge on Freecharge","title":"Cable TV","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Cable TV","type":"recharge"},{"clickUrl":"/clubs-and-associations","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/dcc/ca-tile.svg","resourceAlt":"Clubs and Associations bill payment on Freecharge","title":"Clubs and Associations","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Clubs and Associations Bill Payment"}
1,{"clickUrl":"https://fastag.axisbank.co.in/CEBAWEB/Pages/CreateAccount/CreateAccount.aspx","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/home/axis-fastag.svg","resourceAlt":"Axis Fastag Recharge","title":"Axis Bank FASTag","isNew":true,"showIn":"","status":"enable","isActive":false,"click_name":"homePageCorpAxisFasTagRechargeClick"},{"clickUrl":"/education-fees","resourceType":"DCC","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/dcc/education-fees.svg","resourceAlt":"Education Fees payment on Freecharge","title":"Education Fees","isNew":false,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Education Fees","layoutTypeId":"3"},{"clickUrl":"/recurring-deposit","resourceType":"DCC","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/dcc/rd-icon-1.svg","resourceAlt":"Recurring Deposit payment on Freecharge","title":"Recurring Deposit","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Recurring Deposit","gaAnalyticsData":{"category":"recurring_deposit_click","tileName":"recurring_deposit","section":"recharge_bill_payments"}},{"clickUrl":"/hospital-and-pathology","resourceType":"DCC","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/dcc/pathology-icon-1.svg","resourceAlt":"Hospital on Freecharge","title":"Hospital and Pathology","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Hospital and Pathology","gaAnalyticsData":{"category":"hospital_pathology_click","tileName":"hospital_pathology","section":"recharge_bill_payments"}},{"clickUrl":"/prepaid-meter-recharge","resourceType":"DCC","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/dcc/meter-icon-1.svg","resourceAlt":"Prepaid Meter on Freecharge","title":"Prepaid Meter","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Prepaid Meter","gaAnalyticsData":{"category":"prepaid_meter_recharge_click","tileName":"prepaid_meter_recharge","section":"recharge_bill_payments"}},{"clickUrl":"/nps","resourceType":"DCC","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/dcc/nps-icon-1.svg","resourceAlt":"NPS on Freecharge","title":"National Pension Scheme","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"National Pension Scheme","gaAnalyticsData":{"category":"nps_contributions_click","tileName":"nps_contributions_recharge","section":"recharge_bill_payments"}},{"clickUrl":"/hospital-bill-payments","resourceType":"DCC","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/dcc/hospital-bill-icon-1.svg","resourceAlt":"Hospital on Freecharge","title":"Hospital","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"Hospital"},{"clickUrl":"/municipal-services-payments","resourceType":"DCC","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/dcc/municipal-tax.svg","resourceAlt":"Municipal Tax","title":"Municipal Services","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"municipal-services"},{"clickUrl":"/traffic-fines","resourceType":"DCC","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/dcc/e-challan-icon.svg","resourceAlt":"Traffic Challan","title":"E-Challan","isNew":true,"showIn":"","status":"enable","isActive":false,"pageName":"dcc","categoryGridName":"e-challan"}],"header":"Recharges & Bill Payments","itemType":"CATEGORY_TILE","position":4,"status":"enable","showIn":"","resourceId":4,"gridHeight":{"collapsedHeight":245,"expandedHeight":1535},"headerIcon":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/icons/bbps-new-4.svg","headerIconWidth":40},{"header":"","itemType":"UNIFIED_CREDIT","position":5,"status":"disable","showIn":"","resourceId":5},{"header":"","itemType":"FEATURE_CARD","position":6,"status":"enable","showIn":"","resourceId":6,"components":[{"clickUrl":"/credit-score-check","resourceType":"CREDIT","resourceUrl":"https://pwa-cdn.freecharge.in/pwa-static/pwa/images/cibil/cibil-score-check-icon.svg","subTitle":"anywhere anytime","title":"Free CREDIT Score","ctaText":"Check Now","isLoginRequired":true}]},{"header":"Loans & more","itemType":"INVESTMENTS","position":7,"status":"enable","showIn":"","resourceId":7,"components":[{"clickUrl":"/credit-score-check","resourceType":"CREDIT","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/home/cibil.png","subTitle":"Check your credit history","title":"Free CREDIT Score","ctaText":"Check Now","isLoginRequired":false},{"clickUrl":"https://digitalbanking.axisbank.com/vkyc-fd/landing-page?utm_source=freecharge&utm_medium=website&utm_campaign=dbat-vcipfd&utm_content=vkyc-fd-bde-fcweb","resourceType":"FIXED DEPOSIT","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/home/fixed-deposit.png","subTitle":"Risk-free investment","title":"Axis Fixed Deposit","ctaText":"Start Saving","isLoginRequired":false},{"clickUrl":"https://leap.axis.bank.in/?utm_cta=FCapp&utm_medium=FCapp&utm_campaign=FCapp&utm_source=FCapp","resourceType":"SAVINGS ACCOUNT","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/home/axis-bank-icon.png","subTitle":"Instant digital opening, flexible balance options","title":"Saving Accounts","ctaText":"Apply Now","isLoginRequired":false},{"clickUrl":"/gold-loan","resourceType":"Gold Loan","resourceUrl":"https://fc-stg-cdn.fcinternal.in/pwa-static/pwa/images/home/gold-loan-icon.png","subTitle":"Unlock your gold\'s power!","title":"Gold Loan","ctaText":"Apply Now","isLoginRequired":false}]},{"header":"Shopping","itemType":"CATEGORY_TILE","position":8,"status":"enable","showIn":"","resourceId":8},{"header":"Spotlight","itemType":"SPOTLIGHT","position":9,"status":"enable","showIn":"","resourceId":9},{"header":"Exclusive Deals","itemType":"EXCLUSIVE_DEALS","position":10,"status":"enable","showIn":"","resourceId":10},{"header":"Featured","itemType":"FEATURED_DEALS","position":11,"status":"enable","showIn":"","resourceId":11},{"header":"Most Popular Blogs","itemType":"BLOGS","position":12,"status":"enable","showIn":"","resourceId":12},{"header":"","itemType":"ABOUT_SECTION","position":13,"status":"enable","showIn":"","resourceId":13},{"header":"","itemType":"CAROUSEL","position":14,"status":"enable","showIn":"","resourceId":14,"components":[{"clickUrl":"http://freecharge.com","resourceUrl":"https://d2o927etjybc8i.cloudfront.net/ios/v3/img/super_offers_home.png","Action":"NEW_TAB"}]},{"header":"Freecharge Balance is issued by","itemType":"FOOTER","position":15,"status":"enable","showIn":"","resourceId":15}]}}}')),$e=function(e){var t,i=e.reduxActions,r=void 0===i?{}:i,c=e.home,l=void 0===c?{}:c,d=e.offers,u=void 0===d?{}:d,p=e.auth,h=void 0===p?{}:p,m=e.isMobile,f=void 0!==m&&m,v=e.isDesktop,E=void 0!==v&&v,N=e.isTablet,x=void 0!==N&&N,y=e.openSp
1otlightPopUp,C=void 0===y?g.noop:y,b=e.closeClickHandler,_=void 0===b?g.noop:b,A=e.setPopupType,w=void 0===A?g.noop:A,L=e.setPopupData,S=void 0===L?g.noop:L,R=e.isSdkJourney,D=void 0!==R&&R,P=e.partnerPriorityTilesOrder,U=void 0===P?[]:P,M=e.sdkPartnerId,F=e.handleProductPopup,G=void 0===F?g.noop:F,H=e.showProductPopup,B=void 0===H?g.noop:H,V=e.isConsentUpdated,Z=void 0!==V&&V,W=e.popupSource,Y=void 0===W?"":W,X=e.clickedIndex,q=void 0===X?null:X,K=e.setHidePopupCloseCta,z=void 0===K?g.noop:K,J=h.isLoggedIn,Q=void 0!==J&&J,$=(0,o.useState)(""),ee=$[0],te=$[1],ae=l.myNotifications,se=void 0===ae?{}:ae,oe=l.topBanner,re=(void 0===oe?{}:oe).fetchLoggedInBanners,ce=void 0!==re&&re,le=se.notificationsLoaded,de=void 0!==le&&le,ue=(0,Ze.Z)({onSuccess:O.Gt,onError:O.MO,useSlugAsResponseKey:!0}),pe=ue.response,me=void 0===pe?{}:pe,ge=ue.fetchIntercept,fe=void 0===ge?g.noop:ge,ve=(0,o.useMemo)((function(){var e=(0,g.get)(l,"pageConfig.pageConfigLoaded",!1);if(!e)return{pageConfigLoaded:e};var t=0,i=[],s=k.R0?(0,g.get)(Qe,"data.homeResponse[".concat(T.B3.GROUPS,"]"),[]):(0,g.get)(l,"pageConfig.pageConfigData.homeResponse[".concat(T.B3.GROUPS,"]"),[]);return(0,g.forEach)(s,(function(e){if("CATEGORY_TILE"!==e[T.B3.ITEM_TYPE]||(0,g.includes)(T.z9,M)||(0,g.isEmpty)(U)||(0,g.isEmpty)(U[t]))if("CATEGORY_TILE"===e[T.B3.ITEM_TYPE]&&e[T.B3.HEADER]===T.Lm.CATEGORY_TILES_HEADER)if((0,g.includes)(T.z9,M)){var s={itemType:T.dB,status:e.status,showIn:e.showIn,position:e.position,resourceId:e.resourceId};i.push(s)}else i.push(e);else i.push(e);else{var o=function(e,t){return(0,g.isEmpty)(e)||(0,g.isEmpty)(t)?e||[]:(0,g.sortBy)(e,(function(e){if("enable"!==e.status)return 1/0;var i=t.indexOf(null===e||void 0===e?void 0:e.categoryGridName);return-1===i?1/0:i}))}(e.components,U[t]);i.push((0,n.Z)((0,a.Z)({},e),{components:o})),t+=1}})),{pageConfigData:i,pageConfigLoaded:!0}}),[l.pageConfig]),Ee=ve.pageConfigLoaded,Ne=ve.pageConfigData,Te=function(e){e&&(te(e),r.getCreditCategoryProductsRequest(h.csrfRequestIdentifierToken,e))};if((0,o.useEffect)((function(){D||Q&&!de&&r.getMyNotificationsRequest()}),[Q,de]),(0,o.useEffect)((function(){Q&&!ce&&r.resetHomepageTopBanner()}),[Q,ce]),(0,o.useEffect)((function(){var e=l.exclusiveDeals,t=l.homeShop,i=l.notificationSpotlight,a=void 0===i?{}:i,n=l.pageConfig,s=void 0===n?{}:n,o=l.homeBlogs,c=void 0===o?{}:o,d=c.blogList,p=c.blogListLoaded,h=e.dealsList,m=e.dealsLoaded,f=t.shopList,v=t.shopListLoaded,E=u.categoryGrid,N=a.spotlightLoaded,T=void 0!==N&&N,x=a.spotlightList,y=void 0===x?[]:x,I=s.pageConfigLoaded,C=void 0!==I&&I,b=s.pageConfigData,_=void 0===b?{}:b;D||(!T&&(0,g.isEmpty)(y)&&r.getNotificationSpotlightRequest(),!m&&(0,g.isEmpty)(h)&&r.getHomepageDealsRequest(),!v&&(0,g.isEmpty)(f)&&r.getHomepageShopRequest(),!p&&(0,g.isEmpty)(d)&&r.getHomepageBlogRequest()),(0,g.isEmpty)(E)&&fe(ie.h7X,"GET",{},null,{additionalData:{slug:"CATEGORY_GRID"}}),!C&&(0,g.isEmpty)(_)&&r.getHomePageConfigRequest()}),[]),(0,o.useEffect)((function(){(0,g.isEmpty)(null===me||void 0===me?void 0:me.categoryGridSuccess)||r.getCategoryGridSuccess(null===me||void 0===me?void 0:me.categoryGridSuccess)}),[null===me||void 0===me?void 0:me.categoryGridSuccess]),ee&&!(0,g.isEmpty)(l.creditCategoryProducts)){var xe=l.creditCategoryProducts.data,ye=(void 0===xe?{}:xe).products,Ie=void 0===ye?[]:ye;if((0,g.size)(Ie))return(0,s.jsx)(he,{productsList:Ie,resetHandler:function(){r.resetCreditCategoryProducts()},categoryName:ee})}return(0,s.jsxs)("div",{className:"home-tab-wrapper",children:[function(){var e=[],t=(0,g.get)(l,"homeShop",[]).shopList;return Ee?(0,g.isEmpty)(Ne)?(0,s.jsx)(qe.Z,{icon:"".concat(j.O1,"/login/error-icon-2.png"),title:T.Lm.OOPS,subTitle:T.Lm.TRY_LATER,alt:T.bC.ERROR_ICON,ctaText:T.Lm.RETRY,ctaAction:r.getHomePageConfigRequest,buttonType:"primary",customClass:"home-config-retry"}):((0,g.forEach)(Ne,(function(i){ne(i,h.isLoggedIn,Ne)&&(0,g.isFunction)(Xe[i[T.B3.ITEM_TYPE]])&&e.push(Xe[i[T.B3.ITEM_TYPE]]({header:i[T.B3.HEADER],headerIcon:i[T.B3.HEADER_ICON],headerIconWidth:i[T.B3.HEADER_ICON_WIDTH],key:i[T.B3.RESOURCE_ID],home:l,offers:u,actions:r,components:"Shopping"===i.header?t:i.components,auth:h,openSpotlightPopUp:C,setPopupType:w,setPopupData:S,closeClickHandler:_,creditItemClickHandler:Te,featuredClickHandler:I,sectionData:i[T.B3.COMPONENTS],isMobile:f,isDesktop:E,isTablet:x,gridHeight:i[T.B3.GRID_HEIGHT],isSdkJourney:D,handleProductPopup:G,showProductPopup:B,isConsentUpdated:Z,popupSource:Y,clickedIndex:q,setHidePopupCloseCta:z}))})),e):(0,s.jsx)(Ce,{moduleName:"LandingPage",isMobile:f,isTablet:x})}(),!D&&(0,s.jsx)(Ke.Z,{type:"homepage",isDesktop:E}),D&&(0,s.jsx)(Je,{setPopupData:S,setPopupType:w,emailVerified:null===(t=h.fullProfileDetails)||void 0===t?void 0:t.emailVerified})]})};$e.propTypes={reduxActions:c().object,home:c().object,offers:c().object,auth:c().object,isMobile:c().bool,isDesktop:c().bool,isTablet:c().bool,closeClickHandler:c().func,setPopupType:c().func,setPopupData:c().func,openSpotlightPopUp:c().func,setHidePopupCloseCta:c().func};var et=$e,tt=i(61496),it=i(24760),at=function(e){var t=e.header,i=e.home.homeBlogs,a=i.blogList,
1n=void 0===a?[]:a,o=i.blogListLoaded,r=void 0!==o&&o,c=e.isMobile,l=e.isDesktop,d={isMobile:c,isDesktop:l};return e.isSdkJourney?null:(0,s.jsx)(tt.default,{heading:t,blogCardData:(0,it.Gv)(n),customClass:"most-popular home-slider-section",isPortrait:!0,isSliderView:!0,mediaValues:d,customSlideWidth:"244",customSlideGap:15,customSliderWrapperClass:"home-slider",customWidth:l?"319":"285",isLoading:!r})},nt=function(e){var t=e.data,i=void 0===t?[]:t,a=e.isDesktop,n=void 0!==a&&a,o=e.isSdkJourney,r=void 0!==o&&o;if(n||(0,g.isEmpty)(i)||r)return null;var c=function(e){v().push(e)};return(0,g.map)(i,(function(e,t){var i=e.clickUrl,a=void 0===i?"":i,n=e.resourceUrl,o=void 0===n?"":n,r=e.title,l=void 0===r?"":r,d=e.subTitle,u=void 0===d?"":d,p=e.resourceType,h=void 0===p?"":p,m=e.ctaText,f=void 0===m?"":m;return(0,s.jsx)("div",{className:"feature-card-section",children:(0,s.jsxs)("div",{className:"feature-card",children:[(0,s.jsx)("img",{src:o,alt:"".concat((0,g.toLower)(h)," image")}),(0,s.jsxs)("div",{className:"label-section",children:[(0,s.jsx)("p",{className:"heading",children:l}),(0,s.jsx)("p",{className:"sub-heading",children:u})]}),(0,s.jsx)(G.Z,{buttonType:"primary",text:f||T.Lm.CHECK_NOW,handleClick:c.bind(undefined,a),customClass:"".concat((0,g.toLower)(h)," btn")})]})},t)}))},st=function(e){var t=e.csrfRequestIdentifierToken,i=void 0===t?"":t,a=e.isDesktop,n=void 0!==a&&a,r=e.isMobile,c=void 0!==r&&r,l=e.topBannerData,d=void 0===l?[]:l,u=e.topBannerLoaded,p=void 0!==u&&u,h=e.isLoggedIn,m=void 0!==h&&h,f=e.actions,v=e.isSdkJourney,E=void 0!==v&&v,N=function(e){if(!e)return g.noop;var t=(0,R.eu)(e),i=t.page,a=t.objectContainingUtmDetails;if(i){var n=t[i.pageName]||{},s=n.dest,o=n.name,r=n.id,c=n.shortCode,l={action:"view",page:i.pageName,dest:s,objectContainingUtmDetails:a,couponName:o,couponId:r,shortCode:c};(0,R.pU)(l,m)}};return(0,o.useEffect)((function(){!p&&!E&&f.getHomepageTopBannerRequest({isLoggedIn:m,csrfRequestIdentifierToken:i})}),[p,m,E]),p&&(0,g.isEmpty)(d)||E?null:(0,s.jsx)("div",{className:"home-slider-section top-banner-container ",children:(0,s.jsx)(me.default,{wrapperClass:"top-banner-slider home-slider",showSliderIndicators:!0,slideGap:10,showArrows:p&&(0,g.size)(d)>1&&n,autoplay:!0,slideWidth:"100%",showSliderShimmer:!p,shimmerComponent:(0,s.jsx)(Ce,{moduleName:"TopBanner"}),children:(0,g.map)(d,(function(e,t){var i,a,n,o;return(0,s.jsx)("div",{className:"".concat((null===(i=e.section)||void 0===i?void 0:i.deeplink)?"clickable":""),onClick:N.bind(undefined,null===(a=e.section)||void 0===a?void 0:a.deeplink),children:(0,s.jsx)("img",{src:c?null===(n=e.section)||void 0===n?void 0:n.imgUrlMobile:null===(o=e.section)||void 0===o?void 0:o.imgUrl,alt:"banner-".concat(t)})},"banner-".concat(t))}))})})},ot=i(53583),rt=void 0,ct=function(e){var t=e.popupDetails,i=e.hidePopup,a=void 0===i?g.noop:i,n=(0,g.get)(t,"offerContentDetails",{}),r=(0,g.get)(t,"offerMetaDetails",{}),c=(0,g.get)(t,"deepLinkFallbackMethod",g.noop),l=(0,o.useState)(!1),d=l[0],u=l[1],p=(0,o.useRef)(null),h=(0,D.Z)(),m=h.isLoggedIn,f=void 0!==m&&m,E=h.setCallback,N=function(e){v().push(e)};(0,o.useEffect)((function(){(0,g.isEmpty)(t)&&u(!1)}),[t]);return(0,o.useEffect)((function(){if(!(0,g.isEmpty)(n)&&!(0,g.isEmpty)(r)){var e=p.current,t=e.querySelector(".tc-div").offsetTop,i=void 0===t?0:t;d?e.scrollTo({top:i-40,left:0,behavior:"smooth"}):e.scrollTo({top:0,left:0,behavior:"smooth"})}}),[d]),(0,s.jsx)("div",{className:"offer-popup-container",ref:p,children:!((0,g.isEmpty)(n)||(0,g.isEmpty)(r))&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"image-div",children:(0,s.jsx)("img",{src:n[T.B3.OFFER_PARAMS][T.B3.BANNER_IMAGE],alt:T.Lm.SPOTLIGHT.OFFER_IMAGE_ALT})}),(0,s.jsxs)("div",{className:"redeem-div",children:[(0,s.jsx)("h5",{className:"popup-head-text",children:T.Lm.SPOTLIGHT.OFFER_REDEEM_LABEL}),(0,s.jsx)("ul",{className:"popup-desc",children:(0,g.map)((0,g.split)(n[T.B3.OFFER_HOW_TO_REDEEM],"\n"),(function(e,t){return e?(0,s.jsx)("li",{children:(0,s.jsx)("p",{children:e})},t):null}))})]}),(0,s.jsxs)("div",{className:"tc-div",children:[(0,s.jsxs)("h5",{className:"popup-head-text",onClick:u.bind(rt,!d),children:[T.Lm.SPOTLIGHT.OFFER_TERMS_AND_CON
1DITIONS,(0,s.jsx)("span",{className:"arrow ".concat(d?"arrow-up":"arrow-down")})]}),(0,s.jsx)("ul",{className:"popup-desc ".concat(d?"show-desc":""),children:(0,g.map)((0,g.split)(n[T.B3.OFFER_TERMS_AND_CONDITIONS],"\n"),(function(e,t){return e?(0,s.jsx)("li",{children:(0,s.jsx)("p",{children:e})},t):null}))})]}),(0,s.jsx)("div",{className:"offer-button-container",children:(0,s.jsx)(G.Z,{text:(0,g.toUpper)(r.btnText||T.Lm.SPOTLIGHT.OFFER_BTN_DEFAULT_TEXT),handleClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=r.btnUrl,n=r.btnPageView,s=r.shortCode;if(C(t.icid,e),i&&(0,O.lD)(i))window.location.href=i;else if(n){var o=be.sN[n];if(o)if((0,O.lD)(o))window.location.href=o;else{var l="/".concat(o),d=re(f,l);a(),d?E(N.bind(rt,l)):N(l)}else s&&"utility"===n?(0,ot.db)(s,"push"):c()}}.bind(rt,(0,g.toUpper)(r.btnText||T.Lm.SPOTLIGHT.OFFER_BTN_DEFAULT_TEXT)),buttonType:"primary"})})]})})},lt=i(65624),dt=i(92876),ut=i(74762),pt=function(e,t,i){(0,dt.nz)(ut.uv.LINK_CLICK,{pageName:ut.VR.onTileClick(e),icid:"".concat(e,"-").concat(t,"-").concat(i),technology:"PWA_Revamp"})},ht=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,dt.nz)(ut.uv.LINK_CLICK,(0,a.Z)({pageName:ut.VR.emiDetailsPageLoad,technology:"PWA_Revamp"},e))},mt=function(e){(0,dt.nz)(ut.uv.LINK_CLICK,{pageName:ut.VR.onEditBtnClick,calculatorName:e,technology:"PWA_Revamp"})},gt=void 0,ft=function(e,t,i,a){a.stopPropagation(),pt("unifiedCard",i,t),(0,O.lD)(e)?window.open(e):v().push(e)},vt=function(e){var t=e.data,i=void 0===t?{}:t,a=e.bgColour,n=void 0===a?"":a,o=e.cardIndex,r=void 0===o?0:o,c=i.it_v1,l=void 0===c?"":c,d=i.it_v2,u=void 0===d?"":d,p=i.it_v3,h=void 0===p?"":p,m=i.it_v4,f=void 0===m?"":m,v=i.action.actionValue,E=void 0===v?"":v;return(0,s.jsxs)("div",{className:"unified-card",onClick:ft.bind(gt,E,l,r),ref:function(e){e&&(e.style.setProperty("background-color",n),e.style.setProperty("box-shadow","0 3px 10px 0 ".concat(n)))},children:[(0,s.jsxs)("div",{className:"upper-section",children:[f&&(0,s.jsx)("img",{src:f,className:"card-image",alt:"".concat((0,g.toLower)(l)," image")}),l&&(0,s.jsx)("span",{className:"card-title",children:l})]}),(0,s.jsxs)("div",{className:"lower-section",children:[(u||h)&&(0,s.jsx)("span",{className:"card-sub-title",children:u||h}),(0,s.jsx)(G.Z,{buttonType:"secondary",handleClick:ft.bind(gt,E,l,r),type:"button",text:lt.Lm.CREATE_NOW_TEXT,buttonStyle:{boxShadow:"0 8px 16px 0 ".concat((0,O.f3)(n,{lum:-.2}))}})]})]})},Et=(i(62903),function(){window.location.href=lt.Sf.PERSONAL_LOAN_LINK}),Nt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,i=void 0===t?"":t,a=e.isMobile,n=void 0!==a&&a,o=e.renderPageConfig;switch(i){case lt.Er.NO_DATA:return(0,s.jsxs)("div",{className:"page-banner",children:[(0,s.jsxs)("div",{className:"content-section",children:[(0,s.jsx)("h1",{children:lt.Lm.NO_DATA_HEADING}),(0,s.jsxs)("div",{className:"text-area",children:[(0,s.jsxs)("p",{children:[" ",lt.Lm.NO_DATA_SUB_HEADING.LINE_1]}),(0,s.jsxs)("p",{children:[" ",lt.Lm.NO_DATA_SUB_HEADING.LINE_2]})]}),(0,s.jsx)(G.Z,{buttonType:"primary",text:lt.Lm.REQUEST_LOAN_BTN_TEXT,type:"button",handleClick:Et})]}),!n&&(0,s.jsx)("img",{src:"".concat(j.O1,"/loan/loan_banner.png?imwidth=230"),alt:lt.gq.BANNER_IMAGE})]});case lt.Er.HAS_DATA:return(0,s.jsxs)("div",{className:"page-banner",children:[(0,s.jsxs)("div",{className:"content-section",children:[(0,s.jsx)("h1",{children:lt.Lm.HEADING_TEXT}),(0,s.jsx)("div",{className:"text-area",children:(0,s.jsx)("p",{children:lt.Lm.INFO_TEXT})}),o]}),!n&&(0,s.jsx)("img",{src:"".concat(j.O1,"/loan/loan_banner.png?imwidth=230"),alt:lt.gq.BANNER_IMAGE})]});default:return null}},Tt=(i(89521),i(41886)),xt=function(e,t){pt("exploreCredit",t,e),(0,Tt.i)(Oe.I4.onLoanHomeTileClick(e))},yt=function(e){var t=e.loan,i=e.auth,a=e.isMobile,n=e.isTablet,r=e.isDesktop,c=e.reduxActions,l=e.isSdkJourney,d=t.pageDetails,u=void 0===d?{}:d,p=u.response,h=void 0===p?[]:p,m=u.isDataLoaded,f=void 0!==m&&m,v=u.isDataForLoggedInState,E=void 0!==v&&v,N=(0,D.Z)().isLoggedIn,T=void 0!==N&&N,x=(0,o.useState)(T?"":lt.Er.HAS_DATA),y=x[0],I=x[1],C=(0,o.useState)([]),b=C[0],_=C[1],A=(0,o.useMemo)((function(){return o.Children.toArray((0,g.map)(b,(function(e){var t=e.items,i=void 0===t?[]:t,a=e.templateStructureId;return 2===(void 0===a?0:a)?(0,s.jsx)("div",{className:"grid-section",children:(0,s.jsx)("ul",{className:"section-tiles-wrapper",children:o.Children.toArray((0,g.map)(i,(function(e,t){var i=e.data,a=i.it_v1,n=void 0===a?"":a,o=i.it_v2,r=void 0===o?"":o,c=i.it_v3,l=void 0===c?"":c,d=i.action.actionValue,u=void 0===d?"":d;return(0,s.jsx)(F,{title:n,isNew:!1,isActive:l,resourceUrl:r,resourceAlt:"".concat((0,g.toLower)(n)," image"),clickUrl:u,tileClickHandler:xt.bind(undefined,n,t),index:t,imageWidth:"40"},(0,g.toLower)(n))})))})},"grid-section"):(0,s.jsx)("div",{className:"unified-cards",children:o.Children.toArray((0,g.map)(i,(function(e,t){var i=e.data,a=void 0===i?{}:i,n=e.bgColour,o=void 0===n?"":n;return(0,s.jsx)(vt,{data:a,bgColour:o,cardIndex:t},"unified-card-".concat(t+1))})))},"unified-cards")})))}),[b]);return(0,o.useEffect)((function(){var e=u.error,t=void 0===e?{}:e;if(f)if(T)if((0,g.isEmpty)(h))(0,g.isEmpty)(t)||I(lt.Er.NO_DATA);else{var i=(0,g.filter)(h,(function(e){return!(0,g.isEmpty)(e.items)}));_((function(e){return(0,g.isEmpty)(i)?e:i})),I((0,g.isEmpty)(i)?lt.Er.NO_DATA:lt.Er.HAS_DATA)}else if(!(0,g.isEmpty)(h)){var a=(0,g.filter)(h,(function(e){return!(0,g.isEmpty)(e.items)}));_((function(e){return(0,g.isEmpty)(a)?e:a}))}}),[T,u,f]),(0,o.useEffect)((function(){if(!l&&(T!==E||(0,g.isEmpty)(h))){var e=i.csrfRequestIdentifierToken,t=void 0===e?"":e;c.getPageDetailsRequest(t,r)}}),[T]),(0,o.useEffect)((function(){r&&(0,Tt.i)(Oe.I4.onLoanHomePage)}),[]),(0,s.jsxs)("div",{className:"loan-tab-wrapper",children:[f?y&&(0,s.jsx)(Nt,{type:y,isMobile:a,renderPageConfig:(0,g.isEmpty)(b)?null:A}):(0,s.jsx)(Ut,{moduleName:"LandingPage",isDesktop:r,isMobile:a}),(0,s.jsx)(St,{reduxActions:c,header:lt.Lm.EMI_CALCULATOR_TEXT,loan:t,isDesktop:r,isMobile:a}),(0,s.jsx)(Re,{loan:t,header:lt.Lm.FEATURED_TEXT,auth:i,isMobile:a,isTablet:n,slideWidth:r?"33%":"44%",actions:c,page:"loan",tileClickHandler:pt,isSdkJourney:l})]})},It=i(14924),Ct=i(5152),bt=i.n(Ct),_t=i(11329),At=i(36536),wt=bt()((function(){return Promise.resolve().then(i.bind(i,62903))}),{loadableGenerated:{webpack:function(){return[62903]}},ssr:!1}),Lt=(0,g.debounce)((function(e,t){var i;e((function(e){return e[t]=!0,e})),i=t,(0,dt.nz)(ut.uv.LINK_CLICK,{pageName:ut.VR.onRangeScroll,calculatorName:i,technology:"PWA_Revamp"})}),100,{leading:!0,trailing:!1}),St=function(e){var t=e.header,i=void 0===t?"":t,r=e.loan,c=void 0===r?{}:r,l=e.reduxActions,d=void 0===l?{}:l,u=e.isPopUpView,p=void 0!==u&&u,h=e.popUpClickHandler,m=void 0===h?g.noop:h,f=c.loanData,v=void 0===f?{}:f,E=c.showEmiDetails,N=void 0!==E&&E,T=(0,o.useState)({}),x=T[0],y=T[1],I=(0,o.useState)((0,g.isEmpty)(v)||(0,g.isEmpty)(v.activeLoan)?lt.Lm.LOANS.PERSONAL_TEXT:v.activeLoan),C=I[0],b=I[1],_=(0,o.useState)((0,g.isEmpty)(v)||(0,g.isEmpty)(v.emiValues[C])?lt.By[C]:v.emiValues[C]),A=_[0],w=_[1],L=(0,o.useState)(-1),S=L[0],j=L[1],R=function(e){var t=e.target.value===lt.Lm.IN_YEARS_TEXT;if(A.tenureInYears!==t){var i=(0,a.Z)({},A);
1i.tenure=t?Math.round(i.tenure/12)||1:12*i.tenure,i.tenureInYears=t,w(i)}},k=function(e){var t=A[e],i=A.tenureInYears;switch(e){case"loan_amount":return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)("label",{children:[lt.Lm.LOAN_AMOUNT_TEXT,":"]}),(0,s.jsxs)("div",{className:"value-section",children:[(0,s.jsx)("span",{children:"\u20b9"}),(0,s.jsx)("span",{children:t?(0,O.LA)(Math.round(1e5*Number(t))):"0"})]})]});case"roi":return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)("label",{children:lt.Lm.ROI_TEXT}),(0,s.jsxs)("div",{className:"value-section",children:[(0,s.jsx)("span",{children:"%"}),(0,s.jsx)("span",{children:t?Number(t).toFixed(1):"0"})]})]});case"tenure":return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)("div",{className:"year-month-selector",children:[(0,s.jsx)("label",{children:lt.Lm.LOAN_TENURE_TEXT}),(0,s.jsxs)("select",{ref:function(e){e&&e.style.setProperty("width",i?"":"65px")},name:"year-month-selector",value:i?lt.Lm.IN_YEARS_TEXT:lt.Lm.IN_MONTHS_TEXT,onChange:R,children:[(0,s.jsx)("option",{value:lt.Lm.IN_MONTHS_TEXT,children:lt.Lm.IN_MONTHS_TEXT}),(0,s.jsx)("option",{value:lt.Lm.IN_YEARS_TEXT,children:lt.Lm.IN_YEARS_TEXT})]})]}),(0,s.jsxs)("div",{className:"value-section",children:[(0,s.jsx)("span",{children:(0,s.jsx)("span",{className:"calendar-icon"})}),(0,s.jsx)("span",{children:t||"0"})]})]});default:return null}},D=function(e){var t=e.target,i=t.name,n=t.value,s=(0,a.Z)({},A);s[i]=n,w(s),p||x[C]||Lt(y,C)},P=function(){(0,Tt.i)(Oe.I4.onLoanHomeViewDetailsClick);var e=(0,g.get)(v,"emiValues",{});d.setLoanData({activeLoan:C,emiValues:(0,n.Z)((0,a.Z)({},e),(0,It.Z)({},C,(0,a.Z)({},A)))}),!N&&d.toggleEmiDetailsState()},U=function(e){var t,i=(0,g.isEmpty)(v)?{}:v.emiValues,s=(0,g.isEmpty)(i)?{}:i[e],o=(0,n.Z)((0,a.Z)({},i),(0,It.Z)({},C,(0,a.Z)({},A)));t=e,(0,dt.nz)(ut.uv.LINK_CLICK,{pageName:ut.VR.onLoanClick,calculatorName:t,technology:"PWA_Revamp"}),(0,Tt.i)(Oe.I4.onLoanHomeLoanTypeClick(e)),d.setLoanData({activeLoan:v.activeLoan||"",emiValues:o}),w((0,g.isEmpty)(s)?lt.By[e]:s),b(e)},M=(0,At.WT)(A),F=C===lt.Lm.LOANS.HOME_TEXT;return(0,o.useEffect)((function(){return Lt.cancel}),[]),(0,s.jsx)("div",{className:"emi-calculator",children:(0,s.jsxs)("div",{className:"content-section",children:[(0,s.jsxs)("div",{className:"left-section",children:[i&&(0,s.jsx)("h3",{className:"section-heading",children:i}),(0,s.jsx)("div",{className:"loans-list",children:o.Children.toArray((0,g.map)(lt.Lm.LOANS,(function(e){return(0,s.jsx)("span",{className:C===e?"active":"",onClick:C!==e?U.bind(undefined,e):null,children:e},e)})))}),(0,s.jsxs)("div",{className:"slider-container",children:[(0,s.jsx)(_t.Z,{minValue:F?lt._B.LOAN.HOME_MIN_VALUE:lt._B.LOAN.OTHERS_MIN_VALUE,maxValue:F?lt._B.LOAN.HOME_MAX_VALUE:lt._B.LOAN.OTHERS_MAX_VALUE,step:F?lt._B.LOAN.HOME_STEP:lt._B.LOAN.OTHERS_STEP,minValueText:F?lt._B.LOAN.HOME_MIN_VALUE_TEXT:lt._B.LOAN.OTHERS_MIN_VALUE_TEXT,maxValueText:F?lt._B.LOAN.HOME_MAX_VALUE_TEXT:lt._B.LOAN.OTHERS_MAX_VALUE_TEXT,upperSection:k("loan_amount"),input:{name:"loan_amount",value:A.loan_amount,onChange:D}}),(0,s.jsx)(_t.Z,{minValue:lt._B.ROI.MIN_VALUE,maxValue:lt._B.ROI.MAX_VALUE,step:lt._B.ROI.STEP,minValueText:lt._B.ROI.MIN_VALUE_TEXT,maxValueText:lt._B.ROI.MAX_VALUE_TEXT,upperSection:k("roi"),input:{name:"roi",value:A.roi,onChange:D}}),(0,s.jsx)(_t.Z,{minValue:lt._B.TENURE.MIN_VALUE,maxValue:A.tenureInYears?(0,At.rT)(C)/12:(0,At.rT)(C),minValueText:lt._B.TENURE.MIN_VALUE_TEXT,maxValueText:A.tenureInYears?(0,At.rT)(C)/12:(0,At.rT)(C),upperSection:k("tenure"),input:{name:"tenure",value:A.tenure,onChange:D}})]}),p?(0,s.jsx)(G.Z,{text:lt.Lm.CALCULATE_EMI_TEXT,handleClick:function(){var e=A.roi,t=A.tenure,i=A.loan_amount,a=A.tenureInYears;(0,dt.nz)(ut.uv.LINK_CLICK,{pageName:ut.VR.onCalculateEmiClick,technology:"PWA_Revamp"}),ht({calculatorName:C,interestRate:Number(e),tenure:a?12*Number(t):Number(t),loanAmount:Math.round(1e5*i)}),P(),m()},buttonType:"primary",type:"button",customClass:"calculate-emi-btn"}):(0,s.jsxs)("div",{className:"emi-value",children:[(0,s.jsx)("label",{children:lt.Lm.EMI_TEXT}),(0,s.jsxs)("span",{children:["\u20b9\xa0",(0,O.LA)(M||0)]})]})]}),!p&&(0,s.jsxs)("div",{className:"right-section",children:[(0,s.jsxs)("div",{className:"emi-details",children:[(0,s.jsxs)("div",{className:"emi-amount",children:[(0,s.jsx)("h3",{children:lt.Lm.LOAN_EMI_TEXT}),(0,s.jsx)("span",{className:"value-text",children:(0,O.LA)(M||0)})]}),(0,s.jsxs)("div",{className:"principle-amount ".concat(0===S?"active":""),children:[(0,s.jsx)("label",{className:"label-text",children:lt.Lm.PRINCIPAL_AMOUNT_TEXT}),(0,s.jsx)("span",{className:"value-text",children:(0,O.LA)(Math.round(1e5*A.loan_amount||0))})]}),(0,s.jsxs)("div",{className:"interest-amount ".concat(1===S?"active":""),children:[(0,s.jsx)("label",{className:"label-text",children:lt.Lm.INTEREST_AMOUNT_TEXT}),(0,s.jsx)("span",{className:"value-text",children:(0,At.L7)(A,M)})]}),(0,s.jsxs)("div",{className:"total-amount",children:[(0,s.jsx)("label",{className:"label-text",children:lt.Lm.TOTAL_AMOUNT_PAYABLE_TEXT}),(0,s.jsx)("span",{className:"value-text",children:(0,At.YY)(A,M)})]}),(0,s.jsx)(wt,{chartData:(0,At.W$)(A,M),onMouseOver:function(e){if(e){var t=e.index;j(void 0===t?0:t)}},onMouseOut:function(){j(-1)},options:{rotation:85}})]}),(0,s.jsxs)("div",{className:"view-details",children:[(0,s.jsx)("p",{children:lt.Lm.INTEREST_SCHEDULE_TEXT}),(0,s.jsx)("span",{onClick:P,children:lt.Lm.VIEW_DETAILS_TEXT})]}),(0,s.jsx)("div",{className:"details-text-info",children:(0,s.jsx)("p",{children:lt.Lm.INTEREST_INFO_TEXT})})]})]})})},jt=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,o.useCallback)((function(e){e.preventDefault(),e.returnValue=""}),[]),i=function(){window.addEventListener("beforeunload",t)},a=function(){window.removeEventListener("beforeunload",t)};return(0,o.useEffect)((function(){if(e)return i(),a}),[e]),{addListenerHandler:i,removeListenerHandler:a}},Rt=i(86149),Ot=Boolean("undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement)?o.useLayoutEffect:o.useEffect,kt=function(e){return Math.round(100*e)/100},Dt=function(e){var t=e.tenure,i=e.roi,a=e.loan_amount,n=e.tenureInYears;a=1e5*Number(a),i=Number(i),t=Number(t),n&&t&&(t*=12);for(var o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r=new Date,c=r.getMonth(),l=r.getFullYear(),d=i/100/12,u=kt(a*(d+d/(Math.pow(1+d,t)-1))),p=a,h=0,m=[],f=1;f<t+1;f++){var v=kt(p*d);h=kt(h+v);var E=kt(u-v);p=kt(p-E);var N=(c+f)%(0,g.size)(o);0===N&&l++,m.push((0,s.jsxs)("tr",{children:[(0,s.jsxs)("td",{children:[o[N]," ",l]}),(0,s.jsx)("td",{children:(0,O.LA)(v)}),(0,s.jsx)("td",{children:(0,O.LA)(E)}),(0,s.jsx)("td",{children:p>0?(0,O.LA)(p):0})]},"emi-".concat(f+1)))}return m},Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.loan,i=void 0===t?{}:t,a=e.reduxActions,n=void 0===a?{}:a,r=e.isDesktop,c=void 0!==r&&r,l=e.isMobile,d=void 0!==l&&l,u=i.loanData,p=void 0===u?{}:u,h=p.activeLoan,m=void 0===h?"":h,f=p.emiValues,v=void 0===f?{}:f,E=v[m],N=E.tenure,T=E.roi,x=E.loan_amount,y=E.tenureInYears,I=(0,o.useState)(!1),C=I[0],b=I[1];jt();var _=function(){!C&&mt(m),b((function(e){return!e}))},A=(0,At.WT)(v[m]);return Ot((function(){!(0,g.isUndefined)(window)&&window.scroll(0,0)}),[]),(0,o.useEffect)((function(){ht({calculatorName:m,interestRate:Number(T),tenure:y?12*Number(N):Number(N),loanAmount:Math.round(1e5*x)})}),[]),(0,s.jsxs)("div",{className:"emi-details-container",children:[c&&(0,s.jsxs)("div",{className:"container-header",children:[(0,s.jsx)("img",{src:"".concat(j.O1,"/hamburger/back.png"),alt:lt.gq.BACK_ICON,onClick:n.toggleEmiDetailsState}),(0,s.jsx)("h2",{children:m})]}),(0,s.jsxs)("div",{className:"emi-details-section",children:[(0,s.jsxs)("div",{className:"emi-detail amount-text",children:[(0,s.jsx)("h3",{children:lt.Lm.LOAN_EMI_TEXT}),(0,s.jsx)("span",{children:(0,O.LA)(A||0)})]}),(0,s.jsx)("img",{className:"edit-icon",onClick:_,src:"".concat(j.O1,"/icons/edit_square_white.png"),alt:lt.gq.EDIT_ICON}),(0,s.jsxs)("div",{className:"emi-detail amount-text",children:[(0,s.jsx)("label",{children:lt.Lm.TOTAL_INTEREST_PAID_TEXT}),(0,s.jsx)("span",{children:(0,At.L7)(v[m],A)})]}),(0,s.jsxs)("div",{className:"emi-detail amount-text",children:[(0,s.jsx)("label",{children:lt.Lm.LOAN_AMOUNT_TEXT}),(0,s.jsx)("span",{children:(0,O.LA)(Math.round(1e5*x))})]}),(0,s.jsxs)("div",{className:"emi-detail",children:[(0,s.jsx)("label",{children:lt.Lm.TENURE_TEXT}),(0,s.jsxs)("span",{children:[N," ",y?"Year":"Month",Number(N)>1?"s":""]})]}),(0,s.jsxs)("div",{className:"emi-detail",children:[(0,s.jsx)("label",{children:lt.Lm.INTEREST_RATE_TEXT}),(0,s.jsxs)("span",{children:[T," %"]})]})]}),(0,s.jsxs)("div",{className:"loan-table",children:[(0,s.jsx)("h3",{className:"section-heading",children:c?lt.Lm.EMI_REPAYMENT_SCHEDULE_TEXT:lt.Lm.LOAN_SCHEDULE_TEXT}),(0,s.jsx)("div",{className:"table-data",children:(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:lt.Lm.TABLE.DATE}),(0,s.jsx)("th",{children:lt.Lm.TABLE.INTEREST}),(0,s.jsx)("th",{children:lt.Lm.TABLE.PRINCIPAL}),(0,s.jsx)("th",{children:lt.Lm.TABLE.BALANCE})]})}),(0,s.jsx)("tbody",{children:Dt(v[m])})]})}),(0,s.jsxs)("p",{className:"note-text",children:[(0,s.jsx)("b",{children:lt.Lm.EMI_DETAILS_NOTE_TEXT}),lt.Lm.EMI_DETAILS_TEXT]})]}),(0,s.jsx)(Rt.Z,{layoutId:3,isPopUpShown:C,wrapperClass:"emi-calculator-popup",popUpContent:C?(0,s.jsx)(St,{loan:i,isPopUpView:!0,reduxActions:n,popUpClickHandler:_,header:lt.Lm.EMI_CALCULATOR_TEXT,isMobile:d}):null,closeClickHandler:_,minWidth:"530px",minHeight:"620px"})]})},Ut=function(e){var t=e.moduleName,i=void 0===t?"":t,a=e.isDesktop,n=void 0!==a&&a,o=e.isMobile,r=void 0!==o&&o;return"LandingPage"===i?(0,s.jsxs)(ye.Z,{height:260,backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",uniqueKey:"loan-detail
1s",children:[(0,s.jsx)("rect",{x:n?0:30,y:n?5:30,width:r?180:250,height:r?40:50,rx:"10",ry:"10"}),(0,s.jsx)("rect",{x:n?0:30,y:n?90:115,width:r?280:350,height:r?15:20,rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:n?0:30,y:n?120:145,width:r?300:450,height:r?15:20,rx:"5",ry:"5"}),(0,s.jsx)("rect",{x:n?0:30,y:n?150:175,width:r?280:350,height:r?15:20,rx:"5",ry:"5"})]}):null},Mt=i(98206),Ft=i(7157),Gt=i(59676),Ht=i(27004),Bt=i(69695),Vt=i(70189),Zt=i(11243),Wt=i(5721),Yt=i(64554),Xt=i(55318),qt=i(69859),Kt=i(57806),zt=i(3146),Jt=i(75600),Qt=i(11616),$t=i(70784),ei=i(79952),ti=function(e){var t=e.reduxActions,i=e.home,r=e.loan,c=e.auth,d=e.offers,m=e.offerDetails,I=e.app,C=e.handleSubmit,b=i.myNotifications.ctaError,A=void 0!==b&&b,w=i.userPolicyAcceptanceData,L=i.userRedirectConfirmation,S=i.showHomepage,R=w.userPolicyAcceptanceLoaded,k=w.userPolicyAcceptanceValue,D=r.showEmiDetails,P=void 0!==D&&D,U=r.loanData,M=void 0===U?{}:U,F=c.isLoggedIn,H=void 0!==F&&F,B=c.csrfRequestIdentifierToken,V=void 0===B?"":B,W=c.logOutResponse,Y=void 0===W?{}:W,X=c.fullProfileDetails,q=void 0===X?{}:X,K=I.platform,z=I.isSdkJourney,J=void 0!==z&&z,Q=I.userAgent,$=void 0===Q?{}:Q,ee=I.sdkDetails,te=I.sdkPartnerId,ae=I.platformDetails,ne=void 0===ae?{}:ae,re=I.isCompleteWebJourney,le=void 0!==re&&re,de=ee.partnerPriorityTilesOrder,pe=$.isMobile,he=void 0!==pe&&pe,me=$.isTablet,ge=void 0!==me&&me,fe=$.isDesktop,ve=void 0!==fe&&fe,Ee=(0,n.Z)((0,a.Z)({},ne),{browser:null===$||void 0===$?void 0:$.browser,os:null===$||void 0===$?void 0:$.os,osVersion:null===$||void 0===$?void 0:$.osVersion}),Ne=(0,f.useRouter)(),Te=(0,g.get)(Ne,"query.pageId","1"),ye=(0,o.useState)(Number(Te)),Ie=ye[0],Ce=ye[1],be=(0,o.useState)({}),_e=be[0],Ae=be[1],we=(0,o.useState)(""),Le=we[0],Se=we[1],je=(0,o.useState)(!1),Re=je[0],Oe=je[1],ke=(0,o.useState)(!1),De=ke[0],Pe=ke[1],Ue=(0,o.useRef)({}),Me=(0,o.useState)(T.Yw.INITIAL_VALUE),Fe=Me[0],Ge=Me[1],He=(0,o.useState)(!1),Be=He[0],Ve=He[1],We=(0,l.I0)(),Ye=(0,o.useState)(""),Xe=Ye[0],qe=Ye[1],Ke=(0,o.useState)(!1),ze=Ke[0],Je=Ke[1],Qe=(0,l.v9)((function(e){var t=e.form;return(0,u.Z)("servicesForm")({form:t})||{}})),$e=(0,Ze.Z)({onSuccess:O.Gt,onError:O.MO,useSlugAsResponseKey:!0}),tt=$e.response,it=void 0===tt?{}:tt,at=$e.fetchIntercept,nt=void 0===at?g.noop:at,st=$e.error,ot=void 0===st?{}:st,rt=function(){Se(""),Ae({}),Oe(!1),(0,g.isEmpty)(Ue.current)||(t.resetOfferDetails(),Ue.current={}),(0,g.isEmpty)(Xe)||(Ge(T.Yw.INITIAL_VALUE),Ve(!1),qe("")),(0,g.isEmpty)(Qe.email)||We((0,p.mc)("servicesForm"))},lt=(0,ei.Z)(V,Ee,"RECHARGES_BILL_PAYMENTS",rt,J),pt=lt.productConsent,ht=lt.handleAttributeTogle,mt=lt.handleProductConsentSubmit,gt=lt.isConsentUpdated,ft=lt.popupSource,vt=lt.setPopupSource,Et=lt.setClickedIndex,Nt=lt.clickedIndex,Tt=lt.hasError,xt=lt.consentError,It=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];nt(ie.AZt,"POST",{csrfRequestIdentifier:V},{emailVerificationId:Xe},{showLoader:e,additionalData:{slug:"email-verify-status"}})},Ct=(0,$t.Z)(It,T.m5,T.pj,T.cs),bt=Ct.startPolling,_t=void 0===bt?g.noop:bt,At=Ct.terminatePolling,wt=void 0===At?g.noop:At,Lt=it.offerDetailsSuccess,St=(0,o.useMemo)((function(){return!(0,g.isEmpty)(k)&&(0,g.map)(k,(function(e){return(0,g.pick)(e.acceptedPolicyDetails,["policyId","action"])}))}),[R,k]),jt=(0,o.useMemo)((function(){return!(0,g.isEmpty)(St)&&(0,g.every)(St,{action:"ACCEPTED"})}),[St]),Ot=function(e,t){Ue.current={offerMetaDetails:e,deepLinkFallbackMethod:t,icid:(0,g.isUndefined)(window)?"":window.digitalData.icid},nt((0,ie.Llx)(e.id),"GET",{csrfRequestIdentifier:V},{},{additionalData:{slug:"OFFER-DETAILS"}}
1)},kt=function(e,t){var i=t.actionUrl,a=void 0===i?"":i,n=t.actionAsPath,s=void 0===n?a:n,o=t.label,r=void 0===o?"":o;(0,_.v1)(r),v().push(a,s,{shallow:!0}),Ce(e)},Dt=function(){(0,O.jw)("userRedirectConfirmation",!0),(0,O.jw)("showHomepage",!0),t.setUserRedirectConfirmation(!0),t.setShowSdkHomepage(!0),q.emailVerified&&rt()},Ut=function(){var e=(0,g.map)((0,g.filter)(St,{action:"NO_ACTION"}),(function(e){return(0,n.Z)((0,a.Z)({},e),{action:"ACCEPTED"})}));nt(ie.Ys$,"POST",{csrfRequestIdentifier:V},e,{isRawData:!0,showLoader:!0,additionalData:{slug:"RECORD-USER-CONSENT"}})},Zt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Et(t),vt(e),Ae({data:{usecase:"product-consent"},minHeight:"unset",minWidth:"unset",maxHeight:"100vh",maxWidth:"100vw"}),Se("product-consent"),Oe(!0)},Wt=function(){if(K!==zt.w.DESKTOP){var e=[(0,s.jsx)(et,{reduxActions:t,home:i,offers:d,auth:c,openSpotlightPopUp:Ot,setPopupType:Se,setPopupData:Ae,closeClickHandler:rt,isSdkJourney:J,isMobile:he,isTablet:ge,isDesktop:ve,partnerPriorityTilesOrder:de,sdkPartnerId:te,handleProductPopup:Zt,showProductPopup:pt.showPopUp&&!(0,g.isEmpty)(pt.categories),isConsentUpdated:gt,popupSource:ft,clickedIndex:Nt,setHidePopupCloseCta:Oe},"home-tab-1")];return J||e.push((0,s.jsx)(yt,{reduxActions:t,loan:r,auth:c,isSdkJourney:J,isDesktop:ve,isMobile:he},"home-tab-2")),(0,s.jsx)(Mt.Z,{wrapperClass:"home-tabs-wrapper",tabLabels:J?[]:T.cZ,selectedTabId:Ie,tabContent:e,labelRenderer:se,onTabClick:kt,onTabChange:kt})}switch(Ie){case 1:return(0,s.jsx)(et,{reduxActions:t,home:i,auth:c,offers:d,openSpotlightPopUp:Ot,isSdkJourney:J,isMobile:he,isTablet:ge,isDesktop:ve,partnerPriorityTilesOrder:de,sdkPartnerId:te,handleProductPopup:Zt,showProductPopup:pt.showPopUp&&!(0,g.isEmpty)(pt.categories),isConsentUpdated:gt,popupSource:ft,clickedIndex:Nt},"home-tab-1");case 2:return(0,s.jsx)(yt,{reduxActions:t,loan:r,auth:c,isSdkJourney:J,isDesktop:ve},"home-tab-2");default:return null}},Yt=function(e){nt(ie.x6e,"POST",{csrfRequestIdentifier:V},{emailAddress:e,redirectLink:"/accountSettings?useCase=userProfile&step=editProfile"},{additionalData:{slug:"validate-user-email"}})},Xt=function(e){var t=e.email;Yt(t)};(0,o.useEffect)((function(){if((0,g.isEmpty)(it.validateUserEmailSuccess))(0,g.isEmpty)(ot.validateUserEmailError)||Z.Dd.error(T.Lm.ERROR_MESSAGE);else{var e=it.validateUserEmailSuccess,t=e.data,i=e.error;if((0,g.isEmpty)(t)){if(!(0,g.isEmpty)(i)){var n=i.errorCode&&i.errorMessage;Z.Dd.error(n||T.Lm.ERROR_MESSAGE)}}else qe(t.emailVerificationId),Ae((0,a.Z)({data:{usecase:"email-verification"}},{minHeight:"243px",minWidth:"100vw",maxHeight:"243px",maxWidth:"100vw"})),Se("email-verification"),Ge(T.Yw.FINAL_VALUE),Ve(!0)}}),[it.validateUserEmailSuccess,ot.validateUserEmailError]),(0,o.useEffect)((function(){var e;return Fe>0&&"email-verification"===Le&&(e=setInterval((function(){Ge((function(e){return e<=1?(Ve(!1),0):e-1}))}),1e3)),function(){e&&clearInterval(e)}}),[Fe,Le]);var qt=function(){Yt(Qe.email)};(0,o.useEffect)((function(){(0,g.isEmpty)(Xe)?wt():_t()}),[Xe]),(0,o.useEffect)((function(){if(!(0,g.isEmpty)(it.emailVerifyStatusSuccess)){var e=it.emailVerifyStatusSuccess,t=e.data,i=e.error;(0,g.isEmpty)(t)||t.emailUpdated||!ze||(Z.Dd.error(T.Lm.MANUAL_VERIFY_MESSGAE),Je(!1)),(0,g.isEmpty)(t)||!0!==t.emailUpdated?(0,g.isEmpty)(i)?(0,g.isEmpty)(null===i||void 0===i?void 0:i.emailVerifyStatusError)||Z.Dd.error(T.Lm.ERROR_MESSAGE):(Ae((0,a.Z)({data:{usecase:"email-verification-error"}},{minHeight:"243px",minWidth:"100vw",maxHeight:"243px",maxWidth:"100vw"})),Se("email-verification-error"),Ge(T.Yw.INITIAL_VALUE),Ve(!1),qe("")):(Ae((0,a.Z)({data:{usecase:"email-verification-success"}},{minHeight:"243px",minWidth:"100vw",maxHeight:"243px",maxWidth:"100vw"})),Se("email-verification-success"),Ge(T.Yw.INITIAL_VALUE),Ve(!1),qe(""))}}),[it.emailVerifyStatusSuccess,null===ot||void 0===ot?void 0:ot.emailVerifyStatusError]);var Kt=function(){It(!0),Je(!0)},Jt=function(){Ae((0,a.Z)({data:{usecase:"email-validation"}},{minHeight:"243px",minWidth:"100vw",maxHeight:"243px",maxWidth:"100vw"})),Se("email-validation")},ti=function(){Ge(T.Yw.INITIAL_VALUE),Ve(!1),qe(""),Ae((0,a.Z)({data:{usecase:"email-validation"}},{minHeight:"243px",minWidth:"100vw",maxHeight:"243px",maxWidth:"100vw"})),Se("email-validation")};return(0,o.useEffect)((function(){it.recordUserConsentSuccess&&!(0,g.isEmpty)(it.recordUserConsentSuccess)&&Dt()}),[it.recordUserConsentSuccess]),(0,o.useEffect)((function(){(0,g.isEmpty)(ot.recordUserConsentError)||Z.Dd.error(T.Lm.ERROR_MESSAGE)}),[ot.recordUserConsentError]),(0,o.useEffect)((function(){if(J&&!le){var e=(0,O.Kk)("userRedirectConfirmation",!1),i=(0,O.Kk)("showHomepage",!1);e||i?(t.setUserRedirectConfirmation(!0),t.setShowSdkHomepage(!0),t.getPolicyAcceptanceSuccess(!0)):t.getPolicyAcceptanceRequest
1(c.csrfRequestIdentifierToken,te)}}),[J,le]),(0,o.useEffect)((function(){if(!(0,g.isEmpty)(m))if((0,g.isEmpty)(m.productType)&&1===Ie){var e=Ue.current.icid,t=void 0===e?"":e,i=m.offer;!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";(0,E.ru)((0,a.Z)({pageName:N.o9.spotlightPopup.pageName,steps_name:N.o9.spotlightPopup.stepDescription,category_name:N.o9.spotlightPopup.categoryName,icid:e,technology:"PWA_Revamp"},x()))}(t),Ae({data:(0,n.Z)((0,a.Z)({},Ue.current),{offerContentDetails:i}),minHeight:"auto",minWidth:"415px"})}else rt()}),[m,Ie]),(0,o.useEffect)((function(){2!==Number(Te)&&P&&t.toggleEmiDetailsState(),Ce(Number(Te))}),[Te]),(0,o.useEffect)((function(){if((0,g.isEmpty)(Y))switch(Ie){case 1:e=H,(0,E.ru)((0,a.Z)({pageName:N.o9.pageLoad.pageName,steps_name:N.o9.pageLoad.stepDescription,loginStatus:e,technology:"PWA_Revamp",category_name:N.o9.pageLoad.categoryName},x())),(0,_.Sn)();break;case 2:!function(e){(0,dt.nz)(ut.uv.PAGE_LOAD,{pageName:ut.VR.pageLoad,loginStatus:e,technology:"PWA_Revamp"})}(H),(0,_.Yk)()}var e}),[Ie,H]),(0,o.useEffect)((function(){H&&!J&&t.getUserBalanceRequest()}),[H]),(0,o.useEffect)((function(){rt(),(0,O.gk)("selectedCard"),(O.gn||O.Dt)&&(0,O.WU)("close webview on app")}),[]),(0,o.useEffect)((function(){A&&Z.Dd.info(T.Lm.NEGATIVE_CTA_ERROR)}),[A]),(0,o.useEffect)((function(){"notifications"!==Le&&"notification-cta"!==Le||K!==zt.w.DESKTOP||(Ae({}),Se(""))}),[K,Le]),(0,o.useEffect)((function(){(0,g.isEmpty)(Lt)||t.getOfferDetailsSuccess(Lt)}),[Lt]),(0,o.useEffect)((function(){var e;return J&&R&&!L&&(Ae({data:{usecase:jt?"existingFreechargeUser":"newUser"},minHeight:"100%",minWidth:"100vw",maxHeight:"100%",maxWidth:"100vw"}),Se("sdk-acknowledgement"),Oe(!0),jt&&(e=setTimeout((function(){Dt()}),2e3))),function(){return clearTimeout(e)}}),[jt,R,L]),(0,o.useEffect)((function(){R&&S&&!q.emailVerified&&(Ae((0,a.Z)({data:{usecase:"email-validation"}},{minHeight:"243px",minWidth:"100vw",maxHeight:"243px",maxWidth:"100vw"})),Se("email-validation"),Oe(!0))}),[R,S,q.emailVerified]),P&&!(0,g.isEmpty)(M)?(0,s.jsx)(ue.Z,{layoutId:4,headerText:M.activeLoan,handleGoBackClick:t.toggleEmiDetailsState,activeSidebarOptionId:oe(Ie),showFooter:K===zt.w.DESKTOP,usePrimaryBg:!0,showSeoContentBody:null,children:(0,s.jsx)(Pt,{loan:r,reduxActions:t})}):(0,s.jsxs)(ue.Z,{customAppLayoutClass:"nav-tabs-wrapper ".concat(J?"client-window":""),hamburgerIconClickHandler:y,activeSidebarOptionId:oe(Ie),layoutId:J?3:1,showFooter:!J,asideComponent:1===Ie&&(0,s.jsx)(xe,{home:i,auth:c,setPopupData:Ae,setPopupType:Se,setHidePopupCloseCta:Oe,closeClickHandler:rt,isAsideView:!0,handleProductPopup:Zt,showProductPopup:pt.showPopUp&&!(0,g.isEmpty)(pt.categories),isConsentUpdated:gt,popupSource:ft,clickedIndex:Nt}),usePrimaryBg:!0,children:[Tt?(0,s.jsx)(Vt.Z,{errorCode:xt.errorCode,errorMessage:xt.errorMessage}):(0,s.jsx)(s.Fragment,{children:J?R?S?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"client-greetings",children:(0,Qt.Qs)(T.Lm.CLIENT_GREETING((0,g.isEmpty)(q.name)?T.Lm.DEFAULT_USER_NAME:q.name))}),Wt()]}):null:(0,s.jsx)(Gt.Z,{}):Wt()}),(0,s.jsx)(Rt.Z,{layoutId:"sdk-acknowledgement"===Le?1:3,isPopUpShown:!(0,g.isEmpty)(_e),popUpContent:Le?function(){var e=function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";(0,E.ru)((0,a.Z)({pageName:N.o9.onClickOfCtaInPopUp(e).pageName,steps_name:N.o9.onClickOfCtaInPopUp(e).stepDescription,category_name:N.o9.onClickOfCtaInPopUp(e).categoryName},x()))}((0,g.camelCase)(e.actionTitle)),t.manageNotificationRequest({actionType:e.actionType,requestParams:e.requestParams}),rt()},n=_e.data,o=void 0===n?{}:n;switch(Le){case"notifications":return(0,E.ru)((0,a.Z)({pageName:N.o9.onOpenOfMyNotificationsPopUp.pageName,steps_name:N.o9.onOpenOfMyNotificationsPopUp.stepDescription,category_name:N.o9.onOpenOfMyNotificationsPopUp.categoryName},x())),(0,s.jsx)("div",{className:"view-all-notifications-container",children:(0,s.jsx)(xe,{home:i,auth:c,layoutId:2,closeClickHandler:rt,isAsideView:!0,setPopupData:Ae,setPopupType:Se,handleProductPopup:Zt,showProductPopup:pt.showPopUp&&!(0,g.isEmpty)(pt.categories),isConsentUpdated:gt,popupSource:ft,clickedIndex:Nt,setHidePopupCloseCta:Oe})});case"notification-cta":return(0,s.jsxs)("div",{className:"cta-container",children:[(0,s.jsx)("h1",{children:T.Lm.CTA_NEGATIVE_HEADING}),(0,s.jsx)("ul",{children:(0,g.map)(o,(function(t,i){return(0,s.jsxs)("li",{onClick:e.bind(undefined,t),children:[t.actionTitle," ",(0,s.jsx)("img",{src:T.eG.MANAGE_NOTIFICATION_CTA,alt:T.bC.ANGLE_RIGHT_ICON})]},"negative-cta-".concat(i))}))})]});case"dcc-soft-block":return(0,s.jsxs)("div",{className:o.wrapperClass,children:[(0,s.jsx)("h2",{children:o.heading}),(0,s.jsx)("p",{className:"subheading",children:o.subHeading}),(0,s.jsxs)("div",{className:"button-section",children:[(0,s.jsx)(G.Z,{name:o.primaryBtn.name,text:o.primaryBtn.text,buttonType:"primary",handleClick:o.primaryBtn.handleClick,customClass:"primary-btn"}),(0,s.jsx)("p",{onClick:o.secondaryBtn.handleClick,className:"proceed-btn",children:o.secondaryBtn.text})]})]});case"email-validation":return(0,s.jsxs)("form",{className:"email-validation-conatiner",onSubmit:C(Xt),children:[(0,s.jsx)("p",{className:"heading",children:T.Lm.ENTER_EMAIL_ID}),(0,s.jsx)("p",{className:"sub-heading",children:T.Lm.DETAILS_TO_RESOLVE_QUERY}),(0,s.jsx)(h.Z,{name:"email",type:"email",placeholder:"Enter Email ID",component:Ht.Z,layoutId:3,wrapperClass:"email-validation-wrapper"}),(0,s.jsx)(G.Z,{type:"submit",text:T.Lm.VALIDATE,layoutId:3,isDisabled:(0,g.isEmpty)(Qe.email)})]});case"email-verification":return(0,s.jsxs)("div",{className:"email-verification-container",children:[(0,s.jsx)("div",{className:"image-wrapper",children:(0,s.jsx)("img",{src:T.eG.EMAIL_VERIFICATION,alt:T.bC.EMAIL_VERIFICATION})}),(0,s.jsxs)("div",{className:"meta-info",children:[(0,s.jsx)("p",{className:"check-email",children:T.Lm.CHECK_EMAIL}),(0,s.jsx)("p",{className:"confirmation-text",children:T.Lm.VERIFICATION_LINK_SENT}),(0,s.jsxs)("div",{className:"email",children:[(0,s.jsx)("p",{className:"email-address",children:null===Qe||void 0===Qe?void 0:Qe.email}),(0,s.jsx)("p",{className:"edit",onClick:ti,children:T.Lm.EDIT})]})]}),(0,s.jsxs)("div",{className:"cta-container",children:[(0,s.jsx)(G.Z,{type:"button",text:Fe>0?T.Lm.RESEND_TIMER(ce(Fe)):T.Lm.RESEND,buttonType:"secondary",handleClick:qt,layoutId:3,isDisabled:Be}),(0,s.jsx)(G.Z,{type:"button",text:T.Lm.I_HAVE_VERIFIED,buttonType:"primary",handleClick:Kt,layoutId:3})]})]});case"email-verification-success":return(0,s.jsxs)("div",{className:"email-verification-success-container",children:[(0,s.jsx)("div",{className:"image-wrapper",children:(0,s.jsx)("img",{src:T.eG.EMAIL_VERIFICATION_SUCCESS,alt:T.bC.EMAIL_VERIFICATION_SUCCESS})}),(0,s.jsxs)("div",{className:"meta-info",children:[(0,s.jsx)("p",{className:"congratulations",children:T.Lm.CONGRATULATIONS}),(0,s.jsx)("p",{className:"congratulations-text",children:T.Lm.EMAIL_VERIFICATION_SUCCESS}),(0,s.jsx)("p",{className:"email",children:null===Qe||void 0===Qe?void 0:Qe.email})]}),(0,s.jsx)("div",{className:"cta-container",children:(0,s.jsx)(G.Z,{type:"button",text:"OK",buttonType:"primary",handleClick:function(){t.getFullProfileDetailsRequest(V,!0),rt(),Oe(!1)},layoutId:3})})]});case"email-verification-error":return(0,s.jsxs)("div",{className:"email-verification-error-container",children:[(0,s.jsx)("div",{className:"image-wrapper",children:(0,s.jsx)("img",{src:T.eG.EMAIL_VERIFICATION_ERROR,alt:T.bC.EMAIL_VERIFICATION_ERROR})}),(0,s.jsxs)("div",{className:"meta-info",children:[(0,s.jsx)("p",{className:"check-email",children:T.Lm.ERROR}),(0,s.jsx)("p",{className:"confirmation-text",children:T.Lm.TRY_AGAIN})]}),(0,s.jsx)("div",{className:"cta-container",children:(0,s.jsx)(G.Z,{type:"button",text:T.Lm.RETRY,buttonType:"primary",handleClick:Jt,layoutId:3})})]});case"sdk-acknowledgement":var r=o.usecase;switch(void 0===r?"":r){case T.Im.EXISTING_FREECHARGE_USER:return(0,s.jsxs)("div",{className:"existing-user-container",children:[(0,s.jsxs)("div",{className:"loader-gif-section",children:[(0,s.jsx)("img",{src:"".concat(j.O1,"/loader/loader-biz-icon.gif?v=1")}),(0,s.jsx)("p",{className:"loader-text",children:T.Lm.REDIRECTING}),(0,s.jsx)("p",{className:"loader-subtext",children:T.Lm.REDIRECTING_SUBTEXT})]}),(0,s.jsx)("p",{className:"existing-user-last-info",children:T.Lm.REDIRECTING_INFO})]});case T.Im.NEW_USER:return(0,s.jsxs)("div",{className:"new-user-flow",children:[(0,s.jsxs)("div",{className:"acknowledgement-section",children:[(0,s.jsx)("img",{src:T.eG.NEW_USER_FLOW,alt:T.bC.NEW_USER_FLOW,className:"new-user-flow-icon"}),(0,s.jsx)("p",{className:"consent-text-heading",children:T.Lm.ACKNOWLEDGEMENT}),(0,s.jsx)("p",{className:"consent-text-subheading",children:T.Lm.PRIVACY_POLICY_INFO})]}),(0,s.jsxs)("div",{className:"cta-container acknowledgement-cta",children:[(0,s.jsx)("div",{className:"terms-container",children:(0,s.jsx)(Ft.Z,{options:[{label:(0,s.jsxs)(s.Fragment,{children:[T.Lm.CONFIRMATION,(0,s.jsx)("a",{href:"https://www.freechargebiz.in/termsandconditions",className:"terms-condition",children:T.Lm.TERMS_CONDITION})," ",T.Lm.AND," ",(0,s.jsx)("a",{href:"https://www.freechargebiz.in/termsandconditions",className:"terms-condition",children:T.Lm.PRIVACY_POLICY})]}),value:"ACCEPTED",checked:De}],labelField:"label",valueField:"value",handleChange:function(e){(0,g.isEmpty)(e)?Pe(!1):Pe(!0)},layoutId:3,checkboxImages:{ACTIVE:"".concat(j.O1,"/radio/checkbox_active.png"),IN_ACTIVE:"".concat(j.O1,"/radio/radio_inactive_neo_banking.png")}})}),(0,s.jsx)(G.Z,{type:"button",text:T.Lm.CONTINUE,handleClick:Ut,layoutId:3,isDisabled:!De})]})]});default:return null}
1case"product-consent":return(0,s.jsx)(Bt.Z,{popupDetails:pt,onToggle:ht,handleSubmit:mt});default:return null}}():(0,s.jsx)(ct,{popupDetails:_e.data,hidePopup:rt}),closeClickHandler:rt,wrapperClass:"home-popup-container ".concat(Le),minWidth:_e.minWidth,minHeight:_e.minHeight,maxHeight:_e.maxHeight,maxWidth:_e.maxWidth,hideCloseButton:Re})]})};ti.propTypes={reduxActions:c().object,home:c().object,auth:c().object,offerDetails:c().object,platform:c().string,pageId:c().string};var ii=!0,ai=(0,l.$j)((function(e){var t=e.home,i=e.auth,a=e.offers,n=e.app;return{home:t,loan:e.loan,auth:i,offers:a,app:n,offerDetails:a.offerDetails}}),(function(e){return{reduxActions:(0,d.DE)((0,a.Z)({},Y.N,Zt.N,Xt.N,Wt.N,Yt.N,qt.N,Kt.N),e)}}))((0,m.Z)({form:"servicesForm",validate:function(e){var t=e.email,i={};return i.email=Jt.z.REQUIRED(t,"Email","input")||Jt.z.EMAIL(t),i}})(ti))},40177:function(e,t,i){"use strict";var a=i(96486),n=i(67294);t.Z=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["mousedown","touchstart"];(0,n.useEffect)((function(){var n=function(i){e.current&&!e.current.contains(i.target)&&t(i)};return(0,a.forEach)(i,(function(e){document.addEventListener(e,n)})),function(){(0,a.forEach)(i,(function(e){document.removeEventListener(e,n)}))}}),[e,t])}},70784:function(e,t,i){"use strict";var a=i(67294),n=i(96486),s=void 0;t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.noop,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i,r=(0,a.useState)(!1),c=r[0],l=r[1],d=(0,a.useState)(!1),u=d[0],p=d[1],h=(0,a.useRef)(null),m=(0,a.useRef)(null),g=(0,a.useRef)(1),f=function(){l(!0),p(!1),g.current=1},v=function(){l(!1),p(!1),g.current=1,h.current=setTimeout(l.bind(s,!0),100)};return(0,a.useEffect)((function(){m.current=e}),[e]),(0,a.useEffect)((function(){if(c){var e=function(){g.current<=t?((0,n.isFunction)(m.current)&&m.current(),g.current=g.current+1,h.current=setTimeout(e,o)):(l(!1),p(!0))};h.current=setTimeout(e,i)}return function(){h.current&&clearTimeout(h.current)}}),[c]),{isPolling:c,isPollingReached:u,startPolling:f,resetPolling:v,terminatePolling:l.bind(s,!1)}}},98206:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var a=i(26042),n=i(69396),s=i(99534),o=i(85893),r=i(67294),c=i(96486),l=i(45697),d=i.n(l),u=(i(44732),function(e){var t=e.scrollWidth,i=e.offsetWidth,a=e.dataset.draggable;return!((0,c.split)(e.className," ").indexOf("tab-content")>=0)&&(t>i||"true"===a||e.parentNode&&u(e.parentNode))}),p=i(3146),h=void 0,m=(0,r.forwardRef)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=e.wrapperClass,l=void 0===i?"":i,d=e.selectedTabId,m=void 0===d?1:d,g=e.defaultActiveTabId,f=void 0===g?1:g,v=e.swipeThreshold,E=void 0===v?5:v,N=e.tabLabelsHeading,T=void 0===N?"":N,x=e.tabLabels,y=void 0===x?[]:x,I=e.tabContent,C=void 0===I?[]:I,b=e.swipeToSlide,_=void 0===b||b,A=e.transitionSpeed,w=void 0===A?500:A,L=e.onTabClick,S=void 0===L?c.noop:L,j=e.onTabChange,R=void 0===j?c.noop:j,O=e.limitBorderToText,k=void 0!==O&&O,D=e.labelRenderer,P=e.platform,U=void 0===P?p.w.MOBILE:P,M=e.beforeTabChange,F=void 0===M?c.noop:M,G=e.renderExtraOptions,H=void 0===G?c.noop:G,B=(0,s.Z)(e,["wrapperClass","selectedTabId","defaultActiveTabId","swipeThreshold","tabLabelsHeading","tabLabels","tabContent","swipeToSlide","transitionSpeed","onTabClick","onTabChange","limitBorderToText","labelRenderer","platform","beforeTabChange","renderExtraOptions"]),V=(0,r.useState)(m>f?m:f),Z=V[0],W=V[1],Y=(0,r.useState)(!1),X=Y[0],q=Y[1],K=(0,r.useState)(0),z=K[0],J=K[1],Q=(0,r.useState)(""),$=Q[0],ee=Q[1],te=(0,r.useState)(!1),ie=te[0],ae=te[1],ne=(0,r.useRef)({}),se=(0,r.useRef)(null),oe=(0,r.useRef)(null),re=function(e){var t=se.current,i=t.clientWidth,a=t.querySelector(".swipeable-tabs-wrapper .tab-labels");if(!(0,c.isNull)(a)&&a.children[e]){var n=a.children[e],s=n.offsetWidth,o=n.offsetLeft,r=Number((o+s/2-i/2).toFixed(2));a&&a.scrollTo&&a.scrollTo({top:0,left:r>0?r:0,behavior:"smooth"})}},ce=function(e){var t=se.current,i=t.clientWidth,a=e.startX,n=e.endX,s=t.querySelector(".swipeable-tabs-wrapper .tab-labels"),o=i/E,r=Z;a>n&&a-n>o&&Z<s.childElementCount?r++:a<n&&n-a>o&&Z>
11&&r--,r!==Z&&(W(r),re(r-1),(0,c.isFunction)(R)&&R(r,y[r-1])),J("".concat(-100*(r-1),"%"))},le=function(e){var t=e.target,i=u(t),a="INPUT"===t.tagName&&"range"===t.type;ae(i||a);var n=e.changedTouches?e.changedTouches[0]:e,s=n.clientX,o=n.clientY;q(!1),ne.current={startX:s,startY:o,endX:s,endY:o}},de=function(e){if("vertical"!==$&&!ie){var t=r.Children.count(C),i=e.changedTouches?e.changedTouches[0]:e,a=i.clientX,n=i.clientY,s=window.document.documentElement.querySelector("body"),o=s.style.overflow,c=se.current,l=c.clientWidth,d=ne.current,u=d.startX,p=d.startY,h=c.querySelector(".tab-content"),m=h.children[Z-1],g=h.offsetWidth,f=m.offsetLeft,v={startX:u,startY:p,endX:a,endY:n},E=Math.round(Math.sqrt(Math.pow(a-u,2))),N=Math.round(Math.sqrt(Math.pow(n-p,2)));E>10&&ee("horizontal"),N>10&&"horizontal"!==$&&ee("vertical");var T=a>u?1:-1;ne.current=v;var x=-(f-E*T);"hidden"!==o&&"horizontal"===$&&(s.style.overflow="hidden"),x<=0&&-x+g<=l*t&&J("".concat(x,"px"))}},ue=function(){var e=window.document.documentElement.querySelector("body"),t=e.style.overflow;q(!0),ae(!1),ee(""),"hidden"===t&&(e.style.overflow=""),ce(ne.current)},pe=function(e,t){var i=e+1;i!==Z&&(F(i,t)||(W(i),re(e),q(!0),J("".concat(-100*e,"%")),(0,c.isFunction)(S)&&S(i,t)))},he=function(e){return(0,c.isObject)(e)&&(0,c.isFunction)(D)?D(e,Z,y):e},me=function(e){se.current=e,(0,c.isNull)(t)||(t.current=e)},ge={onTouchStart:_?le:null,onTouchMove:_?de:null,onTouchEnd:_?ue:null,onTouchCancel:_?ue:null};return(0,r.useEffect)((function(){Z!==m&&m>0&&m<=(0,c.size)(y)&&m<=(0,c.size)(C)&&(W(m),re(m-1),J("".concat(-100*(m-1),"%")))}),[m]),(0,r.useEffect)((function(){Z>1&&(re(Z-1),J("".concat(100*-(Z-1),"%")))}),[]),(0,r.useEffect)((function(){var e=oe.current;e&&U===p.w.MOBILE&&(e.style.setProperty("--tab-transform","translate3d(".concat(z,", 0, 0)")),e.style.setProperty("--tab-duration",X?"".concat(w,"ms"):"0ms"))}),[z,X,w,U]),(0,o.jsxs)("div",{ref:me,className:"swipeable-tabs-wrapper ".concat(l),children:[T&&(0,o.jsx)("p",{className:"tab-labels-heading",children:T}),!(0,c.isEmpty)(y)&&(0,o.jsx)("div",{className:"tab-labels",children:(0,c.map)(y,(function(e,t){return(0,o.jsx)("div",{className:"tab-option ".concat(Z-1===t?"active":""," ").concat(k?"border-under-text ":""),onClick:pe.bind(h,t,e),children:he(e)},t)}))}),(0,o.jsx)("div",(0,n.Z)((0,a.Z)({className:"tab-content-wrapper"},ge),{children:(0,o.jsx)("div",{ref:oe,className:"tab-content ".concat(U===p.w.MOBILE?"":"animation-fade"),children:(0,c.map)(C,(function(e,t){return(0,o.jsx)("div",{className:Z-1===t?"active":"","aria-hidden":!(Z-1===t),tabIndex:-1,children:r.Children.map(e,(function(e){return(0,r.isValidElement)(e)?(0,r.cloneElement)(e,B):null}))},t)}))})})),H()]})}));m.propTypes={wrapperClass:d().string,selectedTabId:d().number,defaultActiveTabId:d().number,tabLabels:d().array,tabContent:d().array,swipeToSlide:d().bool,transitionSpeed:d().number,onTabClick:d().func,onTabChange:d().func,limitBorderToText:d().bool,labelRenderer:d().func,beforeTabChange:d().func};var g=m},61496:function(e,t,i){"use strict";i.r(t);var a=i(85893),n=i(67294),s=i(96486),o=i(11163),r=i(41664),c=i.n(r),l=i(5152),d=i.n(l),u=(i(66337),i(289)),p=i(15999),h=i(62205),m=i(90842),g=(i(4150),i(97429)),f=i(85987),v=void 0,E=d()((function(){return i.e(3746).then(i.bind(i,43746))}),{loadableGenerated:{webpack:function(){return[43746]}},ssr:!1}),N=d()((function(){return Promise.all([i.e(9928),i.e(5738)]).then(i.bind(i,69928))}),{loadableGenerated:{webpack:function(){return[69928]}},ssr:!1}),T=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.blogCardObj,o=void 0===i?{}:i,r=t.index,l=void 0===r?0:r,d=t.isDark,u=void 0!==d&&d,N=t.fcChannel,T=void 0===N?"":N,x=o.parentCategorySlug,y=void 0===x?"":x,I=o.subCategorySlug,C=void 0===I?"":I,b=o.slug,_=void 0===b?"":b,A=(0,n.useState)(null),w=A[0],L=A[1],S=(0,n.useState)(""),j=S[0],R=S[1],O=(0,n.useRef)(null),k=(0,n.useRef)(null),D=(0,g.Z)(k,{threshold:.1}),P=(0,f.Z)(j,D&&!(0,s.isEmpty)(j)),U=P.isImageDownloaded,M=void 0!==U&&U,F=P.isError,G=void 0!==F&&F,H=function(e){k.current=e,"Video"!==o.featureMediaType&&R("".concat(o.thumbnailImage,"?imwidth=").concat((null===e||void 0===e?void 0:e.clientWidth)||""))};return(0,a.jsx)(c(),{href:(0,p.yJ)("/blog/".concat(y,"/").concat(C,"/").concat(_),T),prefetch:!1,children:(0,a.jsx)("a",{children:(0,a.jsxs)("div",{className:"blog-card ".concat(o.isDark||u?"dark-theme":""," ").concat(o.showMobileViewOnly?"":"apply-device-styling"),children:[(0,a.jsxs)("div",{className:"image-container",ref:H,children:["Video"===o.featureMediaType?(0,a.jsx)("video",{ref:O,controls:w===l,onPlay:L.bind(v,l),onPause:L.bind(v,null),preload:"metadata",children:(0,a.jsx)("source",{src:"".concat(o.thumbnailImage,"#t=0.5"),type:"video/mp4"})}):(0,a.jsx)(E,{customClass:"card-image",url:M&&!G?j:o.isPortrait?"".concat(m.O1,"/blogs/no-image-article.png"):"".concat(m.O1,"/blogs/no-image-latest.png"),altText:o.thumbnailAltText||"Post Image",fallbackHandler:p.nA,fallbackImageUrl:o.isPortrait?h.FB.BLOGS_PORTRAIT:h.FB.BLOGS_LANDSCAPE}),!(0,s.isEmpty)(o.videoDetails)&&w!==l&&(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("img",{className:"play-btn",src:h.eG.PLAY_ICON,alt:h.gq.PLAY_ICON,onClick:(0,s.isFunction)(null===(e=O.current)||void 0===e?void 0:e.play)?O.current.play:null}),(0,a.jsxs)("div",{className:"play-time",children:[(0,a.jsx)("img",{src:h.eG.PLAY_TIME,alt:h.gq.PLAY_TIME}),(0,a.jsx)("span",{children:o.videoDetails.duration})]})]})]}),(0,a.jsxs)("div",{className:"text-container",children:[(0,a.jsxs)("div",{className:"text-details",children:[(0,a.jsx)("p",{className:"post-category",children:o.categoryName}),(0,a.jsx)("p",{className:"post-title",children:(0,s.toLower)((0,p.SH)(o.title))})]}),(0,a.jsxs)("div",{className:"date-readtime",children:[(0,a.jsx)("span",{className:"date",children:o.date}),(0,a.jsx)("span",{className:"dot"}),(0,a.jsxs)("span",{className:"read-time",children:[o.readingTime," min read"]})]})]})]})})})},x=(0,n.forwardRef)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=e.isDark,r=void 0!==i&&i,c=e.blogCardData,l=void 0===c?[]:c,d=e.heading,p=void 0===d?"":d,h=e.subHeading,m=void 0===h?"":h,g=e.customClass,f=void 0===g?"":g,v=e.isPortrait,E=void 0!==v&&v,x=e.isSliderView,y=void 0!==x&&x,I=e.isFeaturedView,C=void 0!==I&&I,b=e.mediaValues,_=void 0===b?{}:b,A=e.isLoading,w=void 0!==A&&A,L=e.sideColumn,S=void 0!==L&&L,j=e.customSlideWidth,R=void 0===j?"":j,O=e.customSlideGap,k=void 0===O?0:O,D=e.customSliderWrapperClass,P=void 0===D?"":D,U=e.count,M=void 0===U?1:U,F=_.isDesktop,G=void 0!==F&&F,H=(0,o.useRouter)(),B=(0,n.use
1State)((0,s.get)(H,"query.fcChannel","")),V=B[0],Z=function(e){return(0,s.map)(e,(function(e,t){return(0,a.jsx)(T,{blogCardObj:e,index:t,isDark:r,fcChannel:V},"card-view-".concat(t))}))};return(0,a.jsxs)("div",{className:"blog-cards ".concat(f),ref:t,children:[p&&(0,a.jsx)("p",{className:"blog-cards-heading ".concat(r?"dark-heading":""," ").concat(m?"has-sub-heading":""),children:p}),m&&(0,a.jsx)("p",{className:"blog-cards-sub-heading ".concat(r?"dark-sub-heading":""),children:!w&&m}),y?(0,a.jsx)(N,{wrapperClass:"blog-cards-slider ".concat(P),infinite:!1,slideWidth:R||(G?"319px":"285px"),slideGap:k||(G?40:18),showArrows:G,showSliderShimmer:(0,s.isEmpty)(l)||w,shimmerComponent:(0,a.jsx)(u.Z,{uniqueKey:"blog-card-slider"}),preventOnStart:!0,children:Z(l)}):C?(0,a.jsxs)("div",{className:"featured-view",children:[(0,a.jsx)("div",{className:"featured-card",children:Z([l[0]])}),(0,a.jsx)("div",{className:"other-card",children:Z((0,s.slice)(l,1,l.length))})]}):w?(0,a.jsx)(u.Z,{mediaValues:_,sideColumn:S,uniqueKey:"blog-card",count:M,isPortrait:E}):(0,a.jsx)("div",{className:"stacked-view",children:Z(l)})]})}));t.default=x},11329:function(e,t,i){"use strict";var a=i(85893),n=i(67294),s=i(73935),o=i(45697),r=i.n(o),c=(i(28080),function(e){var t=e.layoutId,i=void 0===t?1:t,o=e.step,r=void 0===o?1:o,c=e.minValue,l=void 0===c?1:c,d=e.maxValue,u=void 0===d?100:d,p=e.minValueText,h=void 0===p?"":p,m=e.maxValueText,g=void 0===m?"":m,f=e.upperSection,v=void 0===f?null:f,E=e.input,N=void 0===E?{}:E,T=e.meta,x=void 0===T?{}:T,y=e.error,I=void 0===y?"":y,C=e.hideErrors,b=void 0!==C&&C,_=e.rePositionErrors,A=void 0!==_&&_,w=e.rePositionErrorsElement,L=void 0===w?null:w,S=e.fillColor,j=void 0===S?"#fb7a45":S,R=e.defaultColor,O=void 0===R?"rgba(92, 92, 92, 0.4)":R,k=e.primaryColor,D=void 0===k?"":k,P=e.secondaryColor,U=function(){var e=N.value||"";if(e){var t=u-l;return((Number(e)-l)/t*100).toFixed(2)}return 0},M=[j,"#f07742",D],F=[j,"#f07742",void 0===P?"":P];return(0,a.jsxs)("div",{className:"range-slider-container",children:[v&&(0,a.jsx)("div",{className:"upper-section",children:v}),(0,a.jsxs)("div",{className:"range-slider ".concat(["","with-border","with-gradients"][i-1]),children:[(0,a.jsx)("input",{type:"range",step:r,name:N.name,min:l,max:u,ref:function(e){e&&e.style.setProperty("background","linear-gradient(to right, ".concat(M[i-1]," 0%, ").concat(F[i-1]," ").concat(U(),"%, ").concat(O," ").concat(U(),"%, ").concat(O," 100%)"))},onChange:N.onChange,value:N.value||""}),(h||g)&&(0,a.jsxs)("div",{className:"min-max-value",children:[h&&(0,a.jsx)("span",{className:"min-value",children:h}),g&&(0,a.jsx)("span",{className:"max-value",children:g})]})]}),!b&&!A&&(0,a.jsxs)(n.Fragment,{children:[I&&(0,a.jsx)("span",{className:"error-message",children:I}),x&&x.touched&&x.error&&(0,a.jsx)("span",{className:"error-message",children:x.error})]}),A&&L&&(0,a.jsxs)(n.Fragment,{children:[I&&s.createPortal((0,a.jsx)("span",{className:"error-message",children:I}),L),x&&x.touched&&x.error&&s.createPortal((0,a.jsx)("span",{className:"error-message",children:x.error}),L)]})]})});c.propTypes={step:r().number,minValue:r().number,maxValue:r().number,minValueText:r().oneOfType([r().string,r().number,r().element]),maxValueText:r().oneOfType([r().string,r().number,r().element]),upperSection:r().element,name:r().string,value:r().oneOfType([r().string,r().number]),onChange:r().func},t.Z=c},79952:function(e,t,i){"use strict";var a=i(26042),n=i(69396),s=i(67294),o=i(96486),r=i(14416),c=i(5485),l=i(1463),d=i(21406),u=i(25118),p=i(38701),h=i(51856),m=i(33090),g=i(86333);t.Z=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.noop,v=arguments.length>4&&void 0!==arguments[4]&&arguments[4],E=arguments.length>5&&void 0!==arguments[5]?arguments[5]:o.noop,N=(0,c.Z)(),T=N.isLoggedIn,x=void 0!==T&&T,y=(0,s.useState)({categories:[],pageData:{},showPopUp:!1}),I=y[0],C=y[1],b=(0,s.useState)(!1),_=b[0],A=b[1],w=(0,s.useState)(""),L=w[0],S=w[1],j=(0,s.useState)(null),R=j[0],O=j[1],k=(0,s.use
1State)({}),D=k[0],P=k[1],U=(0,s.useState)(!1),M=U[0],F=U[1],G=(0,l.Z)(e),H=G.fetchProductConsentStatus,B=G.productMandatoryConsentStatusSuccess,V=G.productMandatoryConsentStatusError,Z=G.fetchProductSpecificConsent,W=G.productSpecificConsentError,Y=G.productSpecificConsentSuccess,X=G.updateCategories,q=G.bulkUpdateConsentCategoriesError,K=G.bulkUpdateConsentCategoriesSuccess,z=(0,r.I0)(),J=(0,m.Z)(!0)||{},Q=J.appConfig,$=(void 0!==Q&&Q).ENABLE_AB_ROLLOUT_FOR_CONSENT,ee=(0,s.useCallback)((function(e){var t=(0,d.a5)(e).transformedCategories;C({categories:t,pageData:u.Lm.CONSENT_PAGE_HEADING,showPopUp:!0})}),[]),te=function(e,t){var i=(0,d.xh)(I.categories,e,t);C((0,n.Z)((0,a.Z)({},I),{categories:i}))},ie=function(){X({deviceDetails:t,consents:(0,d.IM)(I.categories)})};return(0,s.useEffect)((function(){return!x||v||(0,o.includes)(g._L,i)||H(encodeURIComponent(i)),function(){return C({categories:[],pageData:{},showPopUp:!1})}}),[x,v]),(0,s.useEffect)((function(){var e;if(!(0,o.isEmpty)(B)&&B.status===u.Lm.STATUS_SUCCESS&&!(0,o.isEmpty)(B.data)&&(!$||(null===B||void 0===B||null===(e=B.data)||void 0===e?void 0:e.isConsentApplicable))){var t=(0,o.get)(B,"data.hasConsent",!1);C((0,n.Z)((0,a.Z)({},I),{showPopUp:!t})),!t&&Z(encodeURIComponent(i))}}),[B]),(0,s.useEffect)((function(){(0,o.isEmpty)(V)||(F(!0),P({errorCode:V.errorCode||"",errorMessage:V.message||V.errorMessage||""}))}),[V]),(0,s.useEffect)((function(){(0,o.isEmpty)(W)||(F(!0),P({errorCode:W.errorCode||"",errorMessage:W.message||W.errorMessage||""}))}),[W]),(0,s.useEffect)((function(){(0,o.isEmpty)(Y)||"SUCCESS"!==Y.status||(0,o.isEmpty)(Y.data)||ee(Y.data)}),[Y]),(0,s.useEffect)((function(){(0,o.isEmpty)(K)||"SUCCESS"!==K.status||(p.Dd.success((0,d.qD)()),C({categories:[],pageData:{},showPopUp:!1}),A(!0),E(!0),z((0,h.Fx)(!0)),f&&f())}),[K]),(0,s.useEffect)((function(){(0,o.isEmpty)(q)||(F(!0),P({errorCode:q.errorCode||"",errorMessage:q.message||q.errorMessage||""}),A(!1),E(!1),z((0,h.Fx)(!1)))}),[q]),{productConsent:I,handleAttributeTogle:te,handleProductConsentSubmit:ie,isConsentUpdated:_,setPopupSource:S,popupSource:L,setClickedIndex:O,clickedIndex:R,hasError:M,consentError:D}}},26975:function(e,t,i){"use strict";i.d(t,{FL:function(){return o},SI:function(){return c},ty:function(){return r},uu:function(){return l}});var a=i(26042),n=i(40801),s=i(21251),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.Nj)(e,(0,a.Z)({category_name:n.P7.CATEGORY_CREDIT},t))},r=function(){(0,s.Nj)(n.Fw.onCibil,{category_name:n.P7.CATEGORY_ERROR})},c=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="";switch(e){case 1:o="One";break;case 2:o="Two";break;case 3:o="Third";break;case 4:o="Fourth";break;case 5:o="Fifth"}var r="";switch(t){case"load":r=n.Fw.onCibilSecretQuestion(o);break;case"next":r=n.Fw.onCibilSecretNext(o);break;case"prev":r=n.Fw.onCibilSecretPrev(o)}(0,s.Nj)(r,(0,a.Z)({category_name:n.P7.CATEGORY_CREDIT},i))},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.Nj)(e,(0,a.Z)({category_name:n.P7.CATEGORY_CREDIT},t))}},62903:function(e,t,i){"use strict";i.r(t);var a=i(26042),n=i(828),s=i(85893),o=i(67294),r=i(96486),c=i(66775),l=i(55376),d=void 0;c.kL.register(c.qi,c.u);t.default=function(e){var t=e.chartData,i=void 0===t?null:t,c=e.onMouseOver,u=void 0===c?r.noop:c,p=e.onMouseOut,h=void 0===p?r.noop:p,m=e.options,g=void 0===m?{}:m,f=(0,o.useRef)(null),v=function(e,t){t&&(0,r.isFunction)(e)&&f.current&&e((0,n.Z)(f.current.getElementsAtEventForMode(t.nativeEvent,"point",{axis:"r",intersect:!1},!0),1)[0])};return(0,s.jsx)("div",{className:"pie-chart",children:(0,s.jsx)(l.by,{ref:f,data:i,options:(0,a.Z)({plugins:{tooltip:{callbacks:{label:function(e){return i.labels[e.dataIndex]}}}}},g),onMouseMove:v.bind(d,u),onMouseOut:v.bind(d,h)})})}},82311:function(e,t,i){"use strict";i.d(t,{B3:function(){return s},BA:function(){return d},Im:function(){return n},Lm:function(){return o},Yw:function(){return f},bC:function(){return r},cZ:function(){return c},cs:function(){return g},dB:function(){return E},eG:function(){return l},m5:function(){return h},pj:function(){return m},u_:function(){return p},z9:function(){return v},zz:function(){return u}});var a=i(90842),n={EXISTING_FREECHARGE_USER:"existingFreechargeUser",NEW_USER:"newUser"}
1,s={IMAGE_URL:"imageUrl",TITLE:"title",GROUPS:"groups",HEADER:"header",ITEM_TYPE:"itemType",SHOW_IN:"showIn",RESOURCE_ID:"resourceId",STATUS:"status",COMPONENTS:"components",OFFER_IMAGE_URL:"campaignImage",OFFER_HOW_TO_REDEEM:"howToRedeem",OFFER_TERMS_AND_CONDITIONS:"termsAndConditions",USER_CREDIT_ITEM_REDIRECTION_URL:"msite",CREDIT_CATEGORY_PRODUCT_REDIRECTION_URL:"msite",OFFER_PARAMS:"offerParams",BANNER_IMAGE:"carouselDesktopBannerImage",GRID_HEIGHT:"gridHeight",DUE_DATE:"dueDate",NOTIFICATION_TYPE:"notificationType",BILLER_NAME:"billerName",SUB_TEXT:"subText",DESCRIPTION:"description",CUSTOMER_ID:"customerId",AMOUNT:"amount",CTA_POSITIVE:"ctaPositive",CTA_NEGATIVE:"ctaNegative",DEEP_LINK:"deeplink",CATEGORY_CODE:"categoryCode",CATEGORY_NAME:"categoryName",HEADER_ICON:"headerIcon",HEADER_ICON_WIDTH:"headerIconWidth"},o={GRID_SECTION:{DEFAULT_SHOW_MORE_TEXT:"More",DEFAULT_SHOW_LESS_TEXT:"Less"},CATEGORY_TILE:{NEW_TILE_TAG_TEXT:"NEW"},EXCLUSIVE_DEALS:{HEADER_BTN_TEXT:"VIEW ALL"},SPOTLIGHT:{OFFER_IMAGE_ALT:"Offer image",OFFER_REDEEM_LABEL:"How to Redeem ?",OFFER_TERMS_AND_CONDITIONS:"Terms & Conditions",OFFER_BTN_DEFAULT_TEXT:"TRANSACT NOW"},UNIFIED_CREDIT:{START_SAVING_TEXT:"Start Saving",GET_DETAILS_TEXT:"Get detail"},INVESTMENTS:{START_SAVING_TEXT:"Start Saving",GET_DETAILS_TEXT:"Get detail"},ABOUT_SECTION:{HOME:{HEADING_1:"Online Recharge on Freecharge",TEXT_CONTENT_1:"Your mobile recharge either prepaid or postpaid is just a click away with Freecharge! Trusted by over 27 million users, Freecharge is your one-stop shop solution for online recharge.",TEXT_CONTENT_2:"Freecharge covers major network providers in India, that include Airtel, Aircel, Vodafone. BSNL, Idea, Tata Docomo (GSM), Uninor, etc. Not only that, to facilitate the online recharges, the latest talk time plans and data packs are updated on the Freecharge website accordingly. This makes the data more reliable, and the interface becomes more user-friendly for users."},LOANS:{HEADING_1:"Get Instant Loans Online with Freecharge",TEXT_CONTENT_1:"Apply for a loan online via Freecharge and get it disbursed quickly. Our fast and easy loan approval process will help you achieve your goals faster. If you are thinking of getting a bank loan online, then you have come to the right place.",HEADING_2:"A Loan for Your Every Need",TEXT_CONTENT_2:"Two-wheeler Loan - Have you always dreamed of owning a sweet ride and taking long trips on it? If your answer is yes, then we are glad that you have dropped in. Get the ride of your dreams with a Two-wheeler Loan on Freecharge. Get up to 100% financing and a flexible tenure to pay back. The application process for all our loans, including the two-wheeler loan is simple and user-friendly.",TEXT_CONTENT_3:"Personal Loan - You can get different types of online Personal Loans on Freecharge. Apply for an instant Personal Loan on Freecharge and get it directly in your bank account. With a completely digital process, you can apply for Personal Loan online and get it processed quickly. With our instant pre-approved Personal Loans, you can get up to \u20b960,000 in just hours.",TEXT_CONTENT_4:"Freecharge Plus Credit Card - Just like our instant Personal Loan, we also have a virtual credit card that you can get your hands on quickly. It is one of the best credit card options in the market. You can get \u20b96000 yearly cashback with Freecharge Plus Credit Card. You also get gift vouchers and many other benefits.",TEXT_CONTENT_5:"Freecharge Pay Later - One of the latest products in our credit line, Freecharge Pay Later is a simple, hassle-free, one-click payment method. You will not need OTPs or PINs to complete a transaction. You will get up to Rs.5,000/month as credit. The credit limit will also increase according to your repayment habits. Currently only available to a select number of users."}},BILLER_DOWN_HEADING:"Provider is having trouble",BILLER_BLOCK_WARNING:function(e,t){return"Sorry, ".concat(e," is facing technical issues. Please try again later after ").concat(new Date(t).toLocaleString("en-US",{timeZone:"Asia/Kolkata"}))},BILLER_DOWN_SUBHEADING:function(e){return"The provider you have selected ".concat(e," is having some issue now.")+"Please check back later to avoid failure/on-hold payments."},INBOX_TEXT:"Inbox",MY_NOTIFICATIONS_TEXT:"My Notifications",VIEW_ALL:"View All",OOPS:"Oops, Something went wrong",TRY_LATER:"Please try again.",RETRY:"Retry",REMINDER:"reminder",PAY_BILL:"PAY BILL",CTA_NEGATIVE_HEADING:"Manage Bill Reminder",BILL_TEXT:"bill",DUE_ON_TEXT:"due on",PROCEED_WITH_RISK:"PROCEED TO PAY ANYWAY",BILLER_TRY_LATER:"TRY AGAIN 
1LATER",NEGATIVE_CTA_ERROR:"Sorry, something went wrong. Please try after some time.",CLIENT_GREETING:function(e){return"Hi, ".concat(e," \ud83d\udc4b")},QUICK_LINKS:"Quick Links",POWERED_BY:"Powered By",CONTINUE:"CONTINUE",NEXT:"OKAY",ACKNOWLEDGEMENT:"Consent Acknowledgement",PRIVACY_POLICY_INFO:"Please review and accept our terms to continue",TERMS_CONDITION:"Terms & Conditions",PRIVACY_POLICY:"Privacy Policy",AND:"and",CONFIRMATION:"I hereby confirm that I have read, understood and agree to the freecharge ",REDIRECT:"You will be redirected to the Freecharge Home Page",PROCEED:'Click "Okay" to proceed to the Freecharge homepage to use services.',ERROR_MESSAGE:"Something went wrong!",ACCEPTED:"ACCEPTED",NO_ACTION:"NO_ACTION",DEFAULT_USER_NAME:"user",REDIRECTING:"Redirecting...",REDIRECTING_SUBTEXT:"You\u2019ll be on the Freecharge Bill Payment & Recharges",REDIRECTING_INFO:"Kindly do not go back or close the app",ENTER_EMAIL_ID:"Enter Email ID to Continue",DETAILS_TO_RESOLVE_QUERY:"We need your details to serve you better - Payment receipts, customer support and important notifications",CHECK_EMAIL:"Check Your Email!",VERIFICATION_LINK_SENT:"We have sent a verification link to your email id",EDIT:"EDIT",RESEND:"RESEND",I_HAVE_VERIFIED:"I\u2019VE VERIFIED",CONGRATULATIONS:"Congratulations!",EMAIL_VERIFICATION_SUCCESS:"Your email verified successfully",ERROR:"Error!",TRY_AGAIN:"Email Not Verified. Please try again",VALIDATE:"VALIDATE",RESEND_TIMER:function(e){return"RESEND (".concat(e,"s)")},MANUAL_VERIFY_MESSGAE:"Email not verified yet. Please go to your mailbox and try verifying again",DONATION_TITLE:"Donation",CATEGORY_TILES_HEADER:"Recharges & Bill Payments"},r={PRODUCT_ICON:"product icon",DEAL_IMAGE:function(e){return"".concat(e," image")},DOWN_ARROW_ICON:"down arrow icon",NOTIFICATION_IMAGE:"notification image",USER_CREDIT_IMAGE:"user credit image",MOBILE_INPUT_ICON:"mobile icon",CHECK_DISABLED_ICON:"freecharge check icon",CHECK_ICON:"check bill on freecharge",OFFER_BANNER:"offer banner",CATEGORY_TILE_DEFAULT:"Tile Icon",ANGLE_RIGHT_ICON:"Angle Right Icon",ERROR_ICON:"Something went wrong",CLOSE_ICON:"Close",VIEW_ALL:"View All",ICON:"Icon",FREECHARGE_LOGO:"freecharge logo",EXISTING_USER_FLOW:"exisiting user flow",NEW_USER_FLOW:"new user flow",RIGHT_ARROW:"Move forward",EMAIL_VERIFICATION:"email-verification",EMAIL_VERIFICATION_SUCCESS:"email-verification-success",EMAIL_VERIFICATION_ERROR:"email-verification-error",EMAIL_VERIFICATION_FAILED:"email-verification-failed"},c=[{label:"Home",activeImgUrl:"".concat(a.O1,"/hamburger/tabs_home_active.png"),inActiveImgUrl:"".concat(a.O1,"/hamburger/tabs_home_inactive.png"),actionUrl:"/services"},{label:"Loans & Credit Card",activeImgUrl:"".concat(a.O1,"/hamburger/tabs_loan_active.png"),inActiveImgUrl:"".concat(a.O1,"/hamburger/tabs_loan_inactive.png"),actionUrl:"/services?pageId=2",actionAsPath:"/loans"}],l={MANAGE_NOTIFICATION_CTA:"".concat(a.O1,"/home/back-icon.svg"),CROSS_ICON:"".concat(a.O1,"/complainStatus/cross.svg"),MORE_OPTIONS:"".concat(a.O1,"/accountSettings/more-dots.svg"),ANGLE_RIGHT:"".concat(a.O1,"/icons/angle-right.png"),CANCEL_ICON:"".concat(a.O1,"/payLater/cross-icon.svg"),AXIS_LOGO:"".concat(a.O1,"/checkoutEmi/axis-bank-logo.png"),EMAIL_VERIFICATION:"".concat(a.O1,"/sdk/email-verification.png"),EMAIL_VERIFICATION_SUCCESS:"".concat(a.O1,"/sdk/email-verification-success.png"),EMAIL_VERIFICATION_ERROR:"".concat(a.O1,"/sdk/email-verification-error.png"),EMAIL_VERIFICATION_FAILED:"".concat(a.O1,"/sdk/email-unverified.png"),RIGHT_ARROW:"".concat(a.O1,"/sdk/right-arrow.svg"),FREECHARGE_LOGO:"".concat(a.O1,"/sdk/fc-logo-updated.svg"),EXISTING_USER_FLOW:"".concat(a.O1,"/sdk/existing-user-flow-icon.svg"),NEW_USER_FLOW:"".concat(a.O1,"/sdk/new-user-flow.svg")},d={DEALS:"/deals"},u=3,p=[{icon:{src:"".concat(a.O1,"/sdk/transactions-icon.svg"),alt:"icon"},title:"My Transactions",link:"/transactions-history"},{icon:{src:"".concat(a.O1,"/sdk/help-icon.svg"),alt:"need help"},title:"Need Help?",link:"/help-support"}],h=25,m=0,g=5e3,f={INITIAL_VALUE:0,FINAL_VALUE:120},v=[],E="SDK_CC_TILES"},44732:function(){},4150:function(){},85533:function(){},28080:function(){},89521:function(){},21784:function(){},18135:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var a=function(e){var t=e.getIn;return function(e,i){return function(a){var n=i||function(e){return t(e,"form")};return t(n(a),e+".values")}}}(i(83920).Z)},72772:function(e,t,i){"use strict";i.d(t,{My:function(){return c},cS:function(){return d},j2:function(){return o},m:function(){return n},m6:function(){return l},mc:function(){return r},ob:function(){return s}});var a=i(64738),n=(a.Z.arrayInsert,a.Z.arrayMove,a.Z.arrayPop,a.Z.arrayPush,a.Z.arrayRemove,a.Z.arrayRemoveAll,a.Z.arrayShift,a.Z.arraySplice,a.Z.arraySwap,a.Z.arrayUnshift,a.Z.autofill,a.Z.blur,a.Z.change),s=(a.Z.clearAsyncError,a.Z.clearFields,a.Z.clearSubmit,a.Z.clearSubmitErrors,a.Z.destroy),o=(a.Z.focus,a.Z.initialize),r=(a.Z.registerField,a.Z.reset),c=(a.Z.resetSection,a.Z.setSubmitFailed),l=(a.Z.setSubmitSucceeded,a.Z.startAsyncValidation),d=(a.Z.startSubmit,a.Z.stopAsyncValidation);a.Z.stopSubmit,a.Z.submit,a.Z.touch,a.Z.unregisterField,a.Z.untouch,a.Z.updateSyncWarnings,a.Z.updateSyncErrors}}
1,function(e){e.O(0,[2757,4081,5389,9928,4073,9774,2888,179],(function(){return t=51980,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.