1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1689],{31689:function(e,l,i){var n,t,a,s,o,r,d=i(2265),c=i(87736),u=i(7122),v=i(4514),m=i(57437),h=i(42949),p=i(44452),x=i(81772),g=i(30850),f=i(74155),b=i(80575),j=i(49232),N=i(87550),y=i(95494),_=i(49069),S=i(4606),w=i(73473),k=i(94946),C=i(21622),I=i(27710),T=i(99150),M=i(93098),D=i(11269),P=i(89452),A=i(45409),L=i(56556);let F={ENVIRONMENT:"prod",SERVICE_URL:"https://www.axismf.com",SERVICE_MOCK_URL:"https://www.axismf.com",AGGREGATOR_URL:"https://www.axismf.com"},E=e=>e.language.trim().slice(0,3).toUpperCase(),O=e=>{var l,i,n;let{onLanguageChange:t,currentLanguage:a,supportedLanguages:s=[]}=e,o=null!==(i=null===(l=s[0])||void 0===l?void 0:l.code)&&void 0!==i?i:"",[r,c]=d.useState(null!=a?a:o),[u,h]=d.useState(!1),p=d.useMemo(()=>Array.isArray(s)?s.filter(e=>!!(e&&"string"==typeof e.code&&e.code.trim()&&"string"==typeof e.language&&e.language.trim())).map(e=>({label:E(e),value:e.code})):[],[s]),x=null!==(n=p.find(e=>e.value===r))&&void 0!==n?n:p[0],g=e=>{c(e),h(!1),t(e)};return(d.useEffect(()=>{c(null!=a?a:o)},[a,o]),p.length)?m.jsx("div",{className:"campaign-language-dropdown ".concat(u?"open":""),children:m.jsx("div",{className:"campaign-language-box",children:u?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"campaign-language-options",children:p.map(e=>m.jsx("button",{type:"button",className:"campaign-language-option ".concat(r===e.value?"active":""),onClick:()=>g(e.value),children:e.label},e.value))}),m.jsx("button",{type:"button",className:"campaign-language-close",onClick:()=>h(!1),children:m.jsx("img",{fetchPriority:"low",src:v.pathChanger("arrow_up_ios_new.svg"),alt:"arrow-up",className:"arrow-img",draggable:"false"})})]}):m.jsxs(m.Fragment,{children:[m.jsx("button",{type:"button",className:"campaign-language-selected",onClick:()=>h(!0),children:m.jsx("span",{children:null==x?void 0:x.label})}),m.jsx("button",{type:"button",className:"campaign-language-close",onClick:()=>h(!0),children:m.jsx("img",{fetchPriority:"low",src:v.pathChanger("arrow_down_ios_new.svg"),alt:"arrow-down",className:"arrow-img",draggable:"false"})})]})})}):null},z=d.lazy(()=>Promise.resolve().then(function(){return lM}).then(e=>({default:e.FullscreenBanner}))),B=d.lazy(()=>Promise.resolve().then(function(){return lP}).then(e=>({default:e.AchievementSection}))),R=d.lazy(()=>Promise.resolve().then(function(){return lF}).then(e=>({default:e.EntryPoint}))),U=d.lazy(()=>Promise.resolve().then(function(){return lO}).then(e=>({default:e.ContentLong}))),H=d.lazy(()=>Promise.resolve().then(function(){return lB}).then(e=>({default:e.ImagePlaceholder}))),W=d.lazy(()=>Promise.resolve().then(function(){return lU}).then(e=>({default:e.KeyFocus}))),Y=d.lazy(()=>Promise.resolve().then(function(){return lW}).then(e=>({default:e.IapSchedule}))),V=d.lazy(()=>Promise.resolve().then(function(){return lq}).then(e=>({default:e.Faqs}))),q=d.lazy(()=>Promise.resolve().then(function(){return lK}).then(e=>({default:e.Disclaimer}))),G=d.lazy(()=>Promise.resolve().then(function(){return lZ}
1).then(e=>({default:e.ContentWithIcons}))),K=d.lazy(()=>Promise.resolve().then(function(){return lX}).then(e=>({default:e.SuitableSection}))),J=d.lazy(()=>Promise.resolve().then(function(){return l0}).then(e=>({default:e.AdvantageSection}))),Z=d.lazy(()=>Promise.resolve().then(function(){return l2}).then(e=>({default:e.FeaturesOfDebtFunds}))),$=d.lazy(()=>Promise.resolve().then(function(){return l5}).then(e=>({default:e.TypesOfDebtFunds}))),X=d.lazy(()=>Promise.resolve().then(function(){return l4}).then(e=>({default:e.ContentSectionFaq}))),Q=d.lazy(()=>Promise.resolve().then(function(){return l7}).then(e=>({default:e.SuitableSectionTwo}))),ee=d.lazy(()=>Promise.resolve().then(function(){return ie}).then(e=>({default:e.MultiplePointSection}))),el=d.lazy(()=>Promise.resolve().then(function(){return ii}).then(e=>({default:e.EsgPillarSection}))),ei=d.lazy(()=>Promise.resolve().then(function(){return ia}).then(e=>({default:e.EsgPracticeSection}))),en=d.lazy(()=>Promise.resolve().then(function(){return io}).then(e=>({default:e.EsgMeasureSection}))),et=d.lazy(()=>Promise.resolve().then(function(){return iE}).then(e=>({default:e.HorizontalLeadForm}))),ea=d.lazy(()=>Promise.resolve().then(function(){return iz}).then(e=>({default:e.ShuruaatSIP}))),es=d.lazy(()=>Promise.resolve().then(function(){return iU}).then(e=>({default:e.MoneyIQSection}))),eo=d.lazy(()=>Promise.resolve().then(function(){return iV}).then(e=>({default:e.IAPSIPCalculator}))),er=d.lazy(()=>Promise.resolve().then(function(){return iG}).then(e=>({default:e.EsgTopSection}))),ed=d.lazy(()=>Promise.resolve().then(function(){return iJ}).then(e=>({default:e.BulletPointSection}))),ec=d.lazy(()=>Promise.resolve().then(function(){return iX}).then(e=>({default:e.FeatureSection}))),eu=d.lazy(()=>Promise.resolve().then(function(){return i0}).then(e=>({default:e.SchemeFinderSection}))),ev=d.lazy(()=>Promise.resolve().then(function(){return i2}).then(e=>({default:e.SchemeForYou}))),em=d.lazy(()=>Promise.resolve().then(function(){return lI}).then(e=>({default:e.OverviewSection}))),eh=d.lazy(()=>Promise.resolve().then(function(){return i5}).then(e=>({default:e.RegulatorySection}))),ep=d.lazy(()=>Promise.resolve().then(function(){return i4}).then(e=>({default:e.OutlookSection}))),ex=d.lazy(()=>Promise.resolve().then(function(){return i7}).then(e=>({default:e.BenefitSection}))),eg=d.lazy(()=>Promise.resolve().then(function(){return ne}).then(e=>({default:e.FeatureCardSection}))),ef=d.lazy(()=>Promise.resolve().then(function(){return ni}).then(e=>({default:e.LongContent}))),eb=d.lazy(()=>Promise.resolve().then(function(){return nt}).then(e=>({default:e.DocumentSection}))),ej=d.lazy(()=>Promise.resolve().then(function(){return ns}).then(e=>({default:e.DetailedReturnSection}))),eN=d.lazy(()=>Promise.resolve().then(function(){return nr}).then(e=>({default:e.FundPortfolioSection}))),ey=d.lazy(()=>Promise.resolve().then(function(){return lk}).then(e=>({default:e.OnPageNavigation}))),e_=d.lazy(()=>Promise.resolve().then(function(){return nu}).then(e=>({default:e.LearnMoreSection}))),eS=d.lazy(()=>Promise.resolve().then(function(){return nh}).then(e=>({default:e.FloaterSection}))),ew=d.lazy(()=>Promise.resolve().then(function(){return nx}).then(e=>({default:e.ContentWithImagePlaceholder}))),ek=d.lazy(()=>Promise.resolve().then(function(){return nf}).then(e=>({default:e.NiftyFiftySection}))),eC=d.lazy(()=>Promise.resolve().then(function(){return nj}).then(e=>({default:e.YoutubeSection}))),eI=d.lazy(()=>Promise.resolve().then(function(){return n_}).then(e=>({default:e.BannerLeadForm}))),eT=d.lazy(()=>Promise.resolve().then(function(){return nw}).then(e=>({default:e.LearnMoreSectionTwo}))),eM=d.lazy(()=>Promise.resolve().then(function(){return nC}).then(e=>({default:e.ShortInfoSection}))),eD=d.lazy(()=>Promise.resolve().then(function(){return nT}).then(e=>({default:e.BharatGrowthStoryGraph}))),eP=d.lazy(()=>Promise.resolve().then(function(){return nD}).then(e=>({default:e.PerformanceValue}))),eA=d.lazy(()=>Promise.resolve().then(function(){return nL}).then(e=>({default:e.OurIndexMutualFunds}))),eL=d.lazy(()=>Promise.resolve().then(function(){return nE}).then(e=>({default:e.MarketUpdates}))),eF=d.lazy(()=>Promise.resolve().then(function(){return nz}).then(e=>({default:e.NiftyComp}))),eE=d.lazy(()=>Promise.resolve().then(function(){return nR}).then(e=>({default:e.SystematicInvestmentPlan}))),eO=d.lazy(()=>Promise.resolve().then(function(){return nH}).then(e=>({default:e.FrequencyUnderSIPFacility}))),ez=d.lazy(()=>Promise.resolve().then(function(){return nY}).then(e=>({default:e.ExploreCurrentFunds}))),eB=d.lazy(()=>Promise.resolve().then(function(){return nG}).then(e=>({default:e.ELSSCalculator}))),eR=d.lazy(()=>Promise.resolve().then(function(){return nJ}).then(e=>({default:e.ElssCalculator2}))),eU=d.lazy(()=>Promise.resolve().then(function(){return n$}).then(e=>({default:e.FeaturesOfValueMF}))),eH=d.lazy(()=>Promise.resolve().then(function(){return n3}).then(e=>({default:e.RiskSection}))),eW=d.lazy(()=>Promise.resolve().then(function(){return n4}).then(e=>({default:e.Introduction}))),eY=d.lazy(()=>Promise.resolve().then(function(){return n7}).then(e=>
1({default:e.FactorCard}))),eV=d.lazy(()=>Promise.resolve().then(function(){return te}).then(e=>({default:e.Factors4Cards}))),eq=d.lazy(()=>Promise.resolve().then(function(){return tn})),eG=d.lazy(()=>Promise.resolve().then(function(){return ta}).then(e=>({default:e.Factor_7}))),eK=d.lazy(()=>Promise.resolve().then(function(){return to}).then(e=>({default:e.NonIaptextbox}))),eJ=d.lazy(()=>Promise.resolve().then(function(){return td}).then(e=>({default:e.TextWithEleven}))),eZ=d.lazy(()=>Promise.resolve().then(function(){return tu}).then(e=>({default:e.BulletPoints_Eleven}))),e$=d.lazy(()=>Promise.resolve().then(function(){return tm}).then(e=>({default:e.BulletPoints_Eleven_Two}))),eX=d.lazy(()=>Promise.resolve().then(function(){return lS}).then(e=>({default:e.MicroInvestingMain}))),eQ=d.lazy(()=>Promise.resolve().then(function(){return tp}).then(e=>({default:e.Factor_5}))),e0=d.lazy(()=>Promise.resolve().then(function(){return tg}).then(e=>({default:e.Factor_6}))),e1=d.lazy(()=>Promise.resolve().then(function(){return tb}).then(e=>({default:e.Factor_9}))),e2=d.lazy(()=>Promise.resolve().then(function(){return tN}).then(e=>({default:e.Advantage_additional}))),e3=d.lazy(()=>Promise.resolve().then(function(){return t_}).then(e=>({default:e.Factor_Banner}))),e5=d.lazy(()=>Promise.resolve().then(function(){return tw}).then(e=>({default:e.Hardcoded_Benefits}))),e9=d.lazy(()=>Promise.resolve().then(function(){return tC}).then(e=>({default:e.Gold_3}))),e4=d.lazy(()=>Promise.resolve().then(function(){return tT}).then(e=>({default:e.Hardcoded_crisis_performance}))),e6=d.lazy(()=>Promise.resolve().then(function(){return tD})),e7=d.lazy(()=>Promise.resolve().then(function(){return tA}).then(e=>({default:e.Daily_Sip_5}))),e8=d.lazy(()=>Promise.resolve().then(function(){return tF}).then(e=>({default:e.Gold_Main}))),le=d.lazy(()=>Promise.resolve().then(function(){return tO}).then(e=>({default:e.Ultra_Main}))),ll=d.lazy(()=>Promise.resolve().then(function(){return tY}).then(e=>({default:e.Daily_Sip_Calculator}))),li=d.lazy(()=>Promise.resolve().then(function(){return tq}).then(e=>({default:e.Multicap_Benefits}))),ln=d.lazy(()=>Promise.resolve().then(function(){return tK}).then(e=>({default:e.Mutlicap_Benefits}))),lt=d.lazy(()=>Promise.resolve().then(function(){return tZ}).then(e=>({default:e.Factor_8}))),la=d.lazy(()=>Promise.resolve().then(function(){return tX}).then(e=>({default:e.Daily_Sip_One}))),ls=d.lazy(()=>Promise.resolve().then(function(){return t0}).then(e=>({default:e.Daily_Sip}))),lo=d.lazy(()=>Promise.resolve().then(function(){return t2}).then(e=>({default:e.Banner_Title}))),lr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.trim().replace(/^\/+|\/+$/g,"").toLowerCase()},ld=e=>{var l,i,n,t,a,s,o,r;let{funds:c,selectedById:u,amountById:h,getDisplayAmt:g,selectedPeriod:f,onChangePeriod:b,onClose:j,onToggleScheme:N,onChangeAmount:y,onInvestNow:_,isLoading:S,error:w,minAmount:k,multilingualLabels:C,componentFrom:I}
1=e,[T,M]=d.useState("selected"),[D,P]=d.useState(1),[A,L]=d.useState(!1),[F,E]=d.useState(null),[O,z]=d.useState(null),B=e=>{M(e),P(1)};d.useEffect(()=>P(1),[T]);let R=d.useMemo(()=>"all"===T?c:"selected"===T?c.filter(e=>!!u[e.schemeId]):c.filter(e=>String(e.fundtype||"").toLowerCase().replace(/[-\s]/g,"")===String(T).toLowerCase().replace(/[-\s]/g,"")),[c,T,u]),U=e=>{var l;(null==e?void 0:null===(l=e.riskoMeter)||void 0===l?void 0:l.riskometerDetails)&&(E(e.riskoMeter.riskometerDetails),z(e.riskoMeter),L(!0))},H=Math.max(1,Math.ceil(R.length/9));d.useEffect(()=>{D>H&&P(H)},[H,D]);let W=d.useMemo(()=>Object.values(u).filter(Boolean).length,[u]),Y=e=>{var l;return!!u[String(e)]&&Number(null!==(l=g(e))&&void 0!==l?l:0)<Number(k)},V=d.useMemo(()=>c.some(e=>u[String(e.schemeId)]&&Y(e.schemeId)),[c,u,h,k]),q=d.useMemo(()=>{let e=(D-1)*9;return R.slice(e,e+9)},[R,D]);return c.filter(e=>!!u[e.schemeId]).length,m.jsxs("div",{className:"add-schemes-popup",children:[m.jsxs("div",{className:"add-schemes-header",children:[m.jsx("div",{className:"add-schemes-title",children:(null==C?void 0:C.mainTitle)||"Add Schemes"}),"customLink"!==I&&m.jsx("div",{className:"add-schemes-header-actions",children:m.jsx("button",{className:"add-schemes-invest-btn",type:"button",onClick:()=>null==_?void 0:_(),disabled:V,children:(null==C?void 0:C.investCtaLabel)||"Invest Now"})})]}),m.jsxs("div",{className:"add-schemes-tabs",children:[m.jsx("button",{className:"tab ".concat("selected"===T?"active":""),onClick:()=>B("selected"),type:"button",children:(null==C?void 0:null===(l=C.schemeOptions)||void 0===l?void 0:l[0])||"Selected Schemes"}),m.jsx("button",{className:"tab ".concat("all"===T?"active":""),onClick:()=>B("all"),type:"button",children:(null==C?void 0:null===(i=C.schemeOptions)||void 0===i?void 0:i[1])||"All Schemes"}),m.jsx("button",{className:"tab ".concat("Equity"===T?"active":""),onClick:()=>B("Equity"),type:"button",children:(null==C?void 0:null===(n=C.schemeOptions)||void 0===n?void 0:n[2])||"Equity"}),m.jsx("button",{className:"tab ".concat("Debt"===T?"active":""),onClick:()=>B("Debt"),type:"button",children:(null==C?void 0:null===(t=C.schemeOptions)||void 0===t?void 0:t[3])||"Debt"}),m.jsx("button",{className:"tab ".concat("Hybrid"===T?"active":""),onClick:()=>B("Hybrid"),type:"button",children:(null==C?void 0:null===(a=C.schemeOptions)||void 0===a?void 0:a[4])||"Hybrid"}),m.jsx("button",{className:"tab ".concat("Index"===T?"active":""),onClick:()=>B("Index"),type:"button",children:(null==C?void 0:null===(s=C.schemeOptions)||void 0===s?void 0:s[5])||"Index"}),m.jsx("button",{className:"tab ".concat("FOF Overseas"===T?"active":""),onClick:()=>B("FOF Overseas"),type:"button",children:(null==C?void 0:null===(o=C.schemeOptions)||void 0===o?void 0:o[6])||"FOF Overseas"}),m.jsx("button",{className:"tab ".concat("FOF Domestic"===T?"active":""),onClick:()=>B("FOF Domestic"),type:"button",children:(null==C?void 0:null===(r=C.schemeOptions)||void 0===r?void 0:r[7])||"FOF Domestic"})]}),m.jsxs("div",{className:"add-schemes-count",children:[(null==C?void 0:C.addedSchemeLabel)||"Total Added Schemes",": ",m.jsxs("b",{children:[W,"/",10]})]}),S&&m.jsx("div",{className:"add-schemes-loading",children:"Loading all schemes..."}),w&&!S&&m.jsx("div",{className:"add-schemes-error",children:w}),m.jsx("div",{className:"add-schemes-tablewrap",children:m.jsxs("table",{className:"fund-table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"fund-table-tr",children:[m.jsx("th",{className:"fundtable-label-header",children:(()=>{var e;let l=null==C?void 0:null===(e=C.popupHeaders)||void 0===e?void 0:e[0];return(null==l?void 0:l.type)==="text"&&"label"in l?l.label:"Fund Name"})()}),m.jsxs("th",{className:"fundtable-label-header",children:[(()=>{var e;let l=null==C?void 0:null===(e=C.popupHeaders)||void 0===e?void 0:e[1];return(null==l?void 0:l.type)==="tenureWithLabel"&&"label"in l?l.label:"This Fund / Bench Mark"})()," \xa0",m.jsxs("select",{value:f,onChange:e=>b(e.target.value),className:"period-dropdown",children:[m.jsx("option",{value:"SI",children:(()=>{var e,l;let i=null==C?void 0:null===(e=C.popupHeaders)||void 0===e?void 0:e[1];return(null==i?void 0:i.type)==="tenureWithLabel"&&"label"in i?null===(l=i.tenureLabels)||void 0===l?void 0:l[0]:"Since inception"})()}),m.jsx("option",{value:"1Y",children:"1Y"}),m.jsx("option",{value:"3Y",children:"3Y"}),m.jsx("option",{value:"5Y",children:"5Y"})]})]}),m.jsx("th",{className:"fundtable-label-header",children:"NAV"}),m.jsx("th",{className:"fundtable-label-header",children:(()=>{var e;let l=null==C?void 0:null===(e=C.popupHeaders)||void 0===e?void 0:e[3];return(null==l?void 0:l.type)==="text"&&"NAV"in l?l.NAV:"Riskometer"})()}),m.jsx("th",{className:"fundtable-label-header",children:(()=>{var e;let l=null==C?void 0:null===(e=C.popupHeaders)||void 0===e?void 0:e[4];return(null==l?void 0:l.type)==="text"&&"NAV"in l?l.NAV:"Current Investment Amount"})()})]})}),m.jsx("tbody",{children:q.map(e=>{let l=!!u[e.schemeId];return m.jsxs("tr",{children:[m.jsxs("td",{children:[m.jsx("input",{type:"checkbox",checked:l,disabled:!l&&W>=10,onChange:()=>N(e.schemeId)}),m.jsxs("label",{className:"lbl-list-heading",children:[e.name," ",m.jsx("span",{className:"microinvesting-fundtype",children:e.fundtype})]})]}),m.jsxs("td",{className:"lbl-success-txt-2 fund-return ".concat("N/A"===e.cagr&&"N/A"===e.benchmark?"lbl-success-txt-na":""),children:[e.cagr,"N/A"!==e.cagr&&m.jsx("span",{children:"%"})," / ",e.benchmark,"N/A"!==e.benchmark&&m.jsx("span",{children:"%"})]}),m.jsx("td",{className:"lbl-list-heading",children:e.nav}),m.jsx("td",{className:"lbl-list-heading",children:m.jsxs("div",{className:"risk-inline",children:[m.jsx("img",{fetchPriority:"low",src:e.riskIcon,className:"microinvesting-risk-icon",alt:"riskicon"}),m.jsxs("div",{className:"risk-text-img",children:[m.jsx("span",{className:"risk-text",children:e.risk}),m.jsx("img",{fetchPriority:"low",src:v.pathChanger("info.svg"),className:"risk-info-img",alt:"Info Icon",onClick:()=>U(e)})]})]})}),m.jsxs("td",{children:[m.jsx("input",{className:"investment-btn",type:"text",value:"â¹"+g(e.schemeId),onChange:l=>y(e.schemeId,l.target.value),disabled:!u[e.schemeId]}),Y(e.schemeId)&&m.jsxs("div",{className:"min-validation-msg",children:["Minimum amount is ",k]})]})]},e.schemeId)})})]})}),m.jsxs("div",{className:"popup-pagination",children:[m.jsx("button",{type:"button",className:"pg-arrow",onClick:()=>P(e=>Math.max(1,e-1)),disabled:1===D,children:"â¹"}),Array.from({length:H},(e,l)=>l+1).map(e=>m.jsx("button",{type:"button",className:"pg-num ".concat(e===D?"active":""),onClick:()=>P(e),children:e},e)),m.jsx("button",{type:"button",className:"pg-arrow",onClick:()=>P(e=>Math.min(H,e+1)),disabled:D===H,children:"âº"})]}),A&&m.jsx(p.OverlayPopup,{className:"dialog-popup-default risk-pop-up",showHeader:!1,isFloating:!1,onClose:()=>{E(null),z(null),L(!1)},content:m.jsx(x.RiskoMeter,{riskometerDetails:F,riskoMeter:O})})]})},lc=e=>{var l;null===(l=v.getRouter())||void 0===l||l.pushPath(e)};(n=s||(s={}))[n.ClientError=1]="ClientError",n[n.ServerError=2]="ServerError",n[n.GeneralNetworkError=3]="GeneralNetworkError",n[n.UnknownError=4]="UnknownError";var lu=e=>{};let lv=async function(e,l,i){try{l=await h.getApiServiceHeaders({env:F,url:e});
1let n=await h.getActualRequest(i,{env:F,url:e});return await fetch(e,{method:"POST",credentials:"include",headers:l,body:n,next:{revalidate:0}}).then(lm).then(lh).then(l=>lp(l,e))}catch(e){if(e.errortype)return Promise.resolve(e);{let e={errortype:s.UnknownError,code:0,message:"Network Error"};return lu(e),Promise.resolve(e)}}};function lm(e){if(e.status>=200&&e.status<300||e.status>=400&&e.status<500)return e;if(e.status>=500&&e.status<600){let l={errortype:s.ServerError,code:e.status,message:"Unable to communicate with server"};throw lu(l),l}throw{errortype:s.GeneralNetworkError,code:e.status,message:""}}function lh(e){return e.text()}async function lp(e,l){return JSON.parse(await h.getActualResponse(e,{env:F,url:l}))}async function lx(){let e=await h.getBearerToken();return{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}Date.now().toString();let lg={SERVICE_URL:F.SERVICE_URL,AGGREGATOR_URL:F.AGGREGATOR_URL},lf=async e=>{let l=lg.SERVICE_URL+"/cms/transaction/config",i=await lv(l,{"Content-Type":"application/json"},"");if((null==i?void 0:i.status)==="success")e.success(i);else{var n;e.default(null!==(n=null==i?void 0:i.error)&&void 0!==n?n:i)}},lb=async()=>"Bearer "+await h.getBearerToken(),lj={Daily:"Daily",Weekly:"Weekly",Monthly:"Monthly"},lN=async function(e,l){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,t=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5?arguments[5]:void 0,s=lg.AGGREGATOR_URL+"/cart-services/api/v1/sip-start-date",o=await lb();e&&(e=e.toLowerCase());let r={};t&&(r.schemeId=t),e===lj.Daily.toLowerCase()?(r.daily=!0,r.sipTenure=i,"Until cancelled"!==i&&(r.installments=Number(n))):e===lj.Weekly.toLowerCase()?(r.weekly=!0,r.sipTenure=i,"Until cancelled"!==i&&(r.installments=Number(n))):e===lj.Monthly.toLowerCase()&&(r.monthly=!0,l&&(r.date=l),r.sipTenure=i,"Until cancelled"!==i&&(r.installments=Number(n)));let d=await lv(s,{Authorization:o,"Content-Type":"application/json"},JSON.stringify(r));(null==d?void 0:d.status)==="success"?a.success(d):a.default(d)},ly=e=>{var l,i,n,t,a,s,o,r;let{funds:c,selectedById:u,amountById:v,getDisplayAmt:h,selectedPeriod:g,onChangePeriod:f,onClose:b,onToggleScheme:j,onChangeAmount:N,onInvestNow:y,isLoading:_,error:S,minAmount:w,setShowFundsPopup:k,multilingualLabels:C,language:I,componentFrom:T}=e,[M,D]=d.useState("selected"),[P,A]=d.useState(1),[L,F]=d.useState(!1),[E,O]=d.useState(null),[z,B]=d.useState(null),R=e=>{D(e),A(1)};d.useEffect(()=>A(1),[M]);let U=d.useMemo(()=>"all"===M?c:"selected"===M?c.filter(e=>!!u[e.schemeId]):c.filter(e=>String(e.fundtype||"").toLowerCase().replace(/[-\s]/g,"")===String(M).toLowerCase().replace(/[-\s]/g,"")),[c,M,u]),H=Math.max(1,Math.ceil(U.length/7));d.useEffect(()=>{P>H&&A(H)},[H,P]);let W=d.useMemo(()=>Object.values(u).filter(Boolean).length,[u]),Y=e=>{var l;return!!u[String(e)]&&Number(null!==(l=h(e))&&void 0!==l?l:0)<Number(w)},V=d.useMemo(()=>c.some(e=>u[String(e.schemeId)]&&Y(e.schemeId)),[c,u,v,w]),q=d.useMemo(()=>{let e=(P-1)*7;return U.slice(e,e+7)},[U,P]);return c.filter(e=>!!u[e.schemeId]).length,m.jsxs("div",{className:"add-schemes-popup",children:[m.jsxs("div",{className:"add-schemes-header",children:[m.jsx("div",{className:"add-schemes-title",children:(null==C?void 0:C.mainTitle)||"Add Schemes"}),"customLink"!==T&&m.jsx("div",{className:"add-schemes-header-actions",children:m.jsx("button",{className:"add-schemes-invest-btn",type:"button",onClick:()=>null==y?void 0:y(),disabled:V,children:(null==C?void 0:C.investCtaLabel)||"Invest Now"})})]}),m.jsxs("div",{className:"add-schemes-tabs",children:[m.jsx("button",{className:"tab ".concat("selected"===M?"active":""),onClick:()=>R("selected"),type:"button",children:(null==C?void 0:null===(l=C.schemeOptions)||void 0===l?void 0:l[0])||"Selected Schemes"}),m.jsx("button",{className:"tab ".concat("all"===M?"active":""),onClick:()=>R("all"),type:"button",children:(null==C?void 0:null===(i=C.schemeOptions)||void 0===i?void 0:i[1])||"All Schemes"}),m.jsx("button",{className:"tab ".concat("Equity"===M?"active":""),onClick:()=>R("Equity"),type:"button",children:(null==C?void 0:null===(n=C.schemeOptions)||void 0===n?void 0:n[2])||"Equity"}),m.jsx("button",{className:"tab ".concat("Debt"===M?"active":""),onClick:()=>R("Debt"),type:"button",children:(null==C?void 0:null===(t=C.schemeOptions)||void 0===t?void 0:t[3])||"Debt"}),m.jsx("button",{className:"tab ".concat("Hybrid"===M?"active":""),onClick:()=>R("Hybrid"),type:"button",children:(null==C?void 0:null===(a=C.schemeOptions)||void 0===a?void 0:a[4])||"Hybrid"}),m.jsx("button",{className:"tab ".concat("Index"===M?"active":""),onClick:()=>R("Index"),type:"button",children:(null==C?void 0:null===(s=C.schemeOptions)||void 0===s?void 0:s[5])||"Index"}),m.jsx("button",{className:"tab ".concat("FOF Overseas"===M?"active":""),onClick:()=>R("FOF Overseas"),type:"button",children:(null==C?void 0:null===(o=C.schemeOptions)||void 0===o?void 0:o[6])||"FOF Overseas"}),m.jsx("button",{className:"tab ".concat("FOF Domestic"===M?"active":""),onClick:()=>R("FOF Domestic"),type:"button",children:(null==C?void 0:null===(r=C.schemeOptions)||void 0===r?void 0:r[7])||"FOF Domestic"})]}),m.jsxs("div",{className:"add-schemes-count",children:[(null==C?void 0:C.addedSchemeLabel)||"Total Added Schemes",": ",m.jsxs("b",{children:[W,"/",10]})]}),_&&m.jsx("div",{className:"add-schemes-loading",children:"Loading all schemes..."}),S&&!_&&m.jsx("div",{className:"add-schemes-error",children:S}),m.jsx("div",{className:"add-schemes-tablewrap",children:m.jsxs("table",{className:"mobile-fund-table mobile-fund-table-add-scheme",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{className:"mobile-fund-table-header",children:(()=>{var e;let l=null==C?void 0:null===(e=C.popupHeaders)||void 0===e?void 0:e[0];return(null==l?void 0:l.type)==="text"&&"label"in l?l.label:"Fund Name"})()}),m.jsxs("th",{className:"mobile-fund-table-header mobile-returns-micro",children:[m.jsxs("div",{className:"".concat("SI"!==g?"returns-select-wrap-div":"returns-select-wrap-nosi"," "),children:[m.jsx("span",{className:"returns-select-wrap",children:m.jsxs("select",{value:g,onChange:e=>f(e.target.value),className:"period-dropdown-overlay","aria-label":"Select return period",children:[m.jsx("option",{value:"SI",children:(()=>{var e,l;let i=null==C?void 0:null===(e=C.popupHeaders)||void 0===e?void 0:e[1];return"tam"===I?"SI":(null==i?void 0:i.type)==="tenureWithLabel"&&"label"in i?null===(l=i.tenureLabels)||void 0===l?void 0:l[0]:"Since inception"})()}),m.jsx("option",{value:"1Y",children:"1Y"}),m.jsx("option",{value:"3Y",children:"3Y"}),m.jsx("option",{value:"5Y",children:"5Y"})]})}),m.jsxs("select",{value:g,onChange:e=>f(e.target.value),className:"period-dropdown",children:[m.jsx("option",{value:"SI",children:(()=>{var e,l;let i=null==C?void 0:null===(e=C.popupHeaders)||void 0===e?void 0:e[1];return"tam"===I?"SI":(null==i?void 0:i.type)==="tenureWithLabel"&&"label"in i?null===(l=i.tenureLabels)||void 0===l?void 0:l[0]:"Since inception"})()}),m.jsx("option",{value:"1Y",children:"1Y"}),m.jsx("option",{value:"3Y",children:"3Y"}),m.jsx("option",{value:"5Y",children:"5Y"})]})]}),m.jsx("span",{style:{display:"inline-block",marginLeft:"2px"},children:"Returns"})]})]})}),m.jsx("tbody",{children:q.map((e,l)=>{let i=!!u[e.schemeId];return m.jsxs("tr",{className:"mobile-fund-row",children:[m.jsxs("td",{className:"mobile-fund-data mobile-fund-data-add-scheme name-column",children:[m.jsx("input",{type:"checkbox",checked:i,disabled:!i&&W>=10,onChange:()=>j(e.schemeId)}),m.jsx("div",{className:"mobile-fund-checkbox-name",children:m.jsx("span",{className:"mobile-fund-name",children:e.name})}),m.jsx("div",{className:"mobile-fund-amount-section"})]}),m.jsxs("td",{className:"mobile-fund-data return-column",children:[m.jsxs("div",{className:"mobile-fund-return",children:[e.cagr,"N/A"!==e.cagr&&m.jsx("span",{children:"%"})]}),m.jsx("div",{className:"mobile-return-spacer"})]})]},l)})})]})}),m.jsxs("div",{className:"popup-pagination",children:[m.jsx("button",{type:"button",className:"pg-arrow",onClick:()=>A(e=>Math.max(1,e-1)),disabled:1===P,children:"â¹"}),Array.from({length:H},(e,l)=>l+1).map(e=>m.jsx("button",{type:"button",className:"pg-num ".concat(e===P?"active":""),onClick:()=>A(e),children:e},e)),m.jsx("button",{type:"button",className:"pg-arrow",onClick:()=>A(e=>Math.min(H,e+1)),disabled:P===H,children:"âº"})]}),L&&m.jsx(p.OverlayPopup,{className:"dialog-popup-default risk-pop-up",showHeader:!1,isFloating:!1,onClose:()=>{O(null),B(null),F(!1)},content:m.jsx(x.RiskoMeter,{riskometerDetails:E,riskoMeter:z})})]})},l_=d.forwardRef((e,l)=>{var i,n,t,a,s,o,r,c,g,f,b,j,N,y,_,S,w,k,C,I,T,M,D,P,A,L,F,E,O,z,B,R,U,H,W,Y,V,q,G,K,J,Z,$,X,Q,ee,el;let ei=e||{},{pendingAddToCart:en,onConsumePendingAddToCart:et}=e,{cartData:ea,handleDispatch:es}=(()=>{let e=d.useContext(u.CartPaymentContext);if(!e)throw Error("CartPaymentContext not found. Make sure component is wrapped with CartPaymentProvider.");return e})(),eo=Array.isArray(null==ei?void 0:ei.quickInvAmtChiplets)?null==ei?void 0:ei.quickInvAmtChiplets:[],[er,ed]=d.useState("Direct"),[ec,eu]=d.useState("SI"),[ev,em]=d.useState(!1),[eh,ep]=d.useState(!1),[ex,eg]=d.useState({}),[ef,eb]=d.useState({}
1),[ej,eN]=d.useState([]),[ey,e_]=d.useState(!1),[eS,ew]=d.useState(!1),[ek,eC]=d.useState(null==ei?void 0:null===(i=ei.quickInvAmtChiplets)||void 0===i?void 0:i[0]),eI=h.useLoginContextData(),{droplinkData:eT,handleDropLinkDispatch:eM}=d.useContext(h.DroplinkContext),eD=(null==e?void 0:e.componentId)==="micro_investing_from_outlook"?5:10,eP=h.useAddToCartAction({droplink:{droplinkData:eT,handleDropLinkDispatch:eM},loginContextData:eI}),[eA,eL]=d.useState(""),eF=()=>{lf({default:eB,success:ez})};d.useEffect(()=>{eF()},[]),d.useEffect(()=>{var l;null==e||null===(l=e.onMobileAddSchemesPopupChange)||void 0===l||l.call(e,eh&&ev)},[eh,ev]),d.useEffect(()=>{var e,l,i;if(!eX.length||!(null==ei?void 0:null===(e=ei.quickInvAmtChiplets)||void 0===e?void 0:e[0]))return;let n=Number(null==ei?void 0:ei.customMinInvestmentAmt)||Number(null==ei?void 0:null===(l=ei.quickInvAmtChiplets)||void 0===l?void 0:l[0].slice(1))/eD,t={};eX.forEach(e=>{t[String(e.schemeId)]=!0}),eg(t),eb(()=>{let e={};return eX.forEach(l=>{e[String(l.schemeId)]=n}),e});let a=eX.length*n;ln(a.toFixed(2)),e6(n),eC(null==ei?void 0:null===(i=ei.quickInvAmtChiplets)||void 0===i?void 0:i[0]),lP(a)},[]),d.useEffect(()=>{var e,l,i;if((null==ei?void 0:ei.componentId)!=="micro_investing_from_outlook"||!eX.length||!(null==ei?void 0:null===(e=ei.quickInvAmtChiplets)||void 0===e?void 0:e[0]))return;let n=Number(null==ei?void 0:null===(l=ei.quickInvAmtChiplets)||void 0===l?void 0:l[0].slice(1))/eD,t={};eX.forEach(e=>{t[String(e.schemeId)]=!0}),eg(t),eb(()=>{let e={};return eX.forEach(l=>{e[String(l.schemeId)]=n}),e});let a=eX.length*n;ln(a.toFixed(2)),e6(n),eC(null==ei?void 0:null===(i=ei.quickInvAmtChiplets)||void 0===i?void 0:i[0]),lP(a)},[null==ei?void 0:ei.trendingMutualFunds]);let[eE,eO]=d.useState(),ez=e=>{eO(e.data.config),eL(e.data.config.defaulSipTenure)},eB=e=>{},eR=(e,l,i,n,t)=>new Promise((a,s)=>{lN(e,String(l),i,n,t,{success:e=>{var l,i,n,t;a({sipStartDate:null!==(n=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.sipStartDate)&&void 0!==n?n:"",sipEndDate:null!==(t=null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.sipEndDate)&&void 0!==t?t:""})},default:e=>s(e)})}),eU=async e=>{let l=!0===ei.dailySipFlag?"Daily":"Monthly",i=eA||"",n=eH(null==eE?void 0:eE.defaultDateInMonth);return i&&n?(await Promise.all(e.map(async e=>{var t,a;let s=String(null!==(a=null==e?void 0:null===(t=e.rawScheme)||void 0===t?void 0:t.schemeId)&&void 0!==a?a:null==e?void 0:e.schemeId);try{let e=await eR(l,n,i,1,s);return[s,e]}catch(e){return[s,{sipStartDate:"",sipEndDate:""}]}}))).reduce((e,l)=>{let[i,n]=l;return e[i]=n,e},{}):{}},eH=e=>{if(!e)return 0;let l=String(e).split("-"),i=Number(null==l?void 0:l[0]);return Number.isFinite(i)?i:0},eW=(e,l,i)=>{var n,t,a,s,o,r,d,c,u,v,m,p,x,g,f,b,j,N,y,_,S,w,k,C,I,T,M,D,P,A,L,F;let E=(null==e?void 0:e.rawScheme)||{},O=String(null!==(n=E.schemeId)&&void 0!==n?n:e.schemeId),z=eH(null==eE?void 0:eE.defaultDateInMonth),B=null==i?void 0:i[O],R=null!==(r=null!==(o=null!==(s=null!==(a=null!==(t=E.schemeTitle)&&void 0!==t?t:E.schemeName)&&void 0!==a?a:e.schemeTitle)&&void 0!==s?s:e.schemeName)&&void 0!==o?o:e.name)&&void 0!==r?r:"",U=null!==(v=null!==(u=null!==(c=null!==(d=E.optionName)&&void 0!==d?d:E.optionCode)&&void 0!==c?c:e.optionName)&&void 0!==u?u:e.optionCode)&&void 0!==v?v:"",H=(U&&U.toLowerCase(),"".concat(R));return{schemeId:String(null!==(m=E.schemeId)&&void 0!==m?m:e.schemeId),schemeCode:String(null!==(x=null!==(p=E.schemeCode)&&void 0!==p?p:e.schemeCode)&&void 0!==x?x:""),schemeName:H,schemeTitle:R,pln:String(null!==(f=null!==(g=E.planCode)&&void 0!==g?g:e.planCode)&&void 0!==f?f:""),opt:String(null!==(j=null!==(b=E.optionType)&&void 0!==b?b:e.optionType)&&void 0!==j?j:""),optionCode:String(null!==(y=null!==(N=E.optionType)&&void 0!==N?N:e.optionType)&&void 0!==y?y:""),optionName:String(U||"Growth"),planType:String(null!==(S=null!==(_=E.planType)&&void 0!==_?_:e.planType)&&void 0!==S?S:"Direct"),planOption:String(null!==(k=null!==(w=E.planOption)&&void 0!==w?w:U)&&void 0!==k?k:"Growth"),investmentMode:h.OrderTypes.SIP,amount:String(Math.floor(Number(l)||0)),frequency:!0===ei.dailySipFlag?"Daily":"Monthly",transactionType:"Purchase",sipTenure:eA,sipDebitDate:z,sipStartDate:null!==(C=null==B?void 0:B.sipStartDate)&&void 0!==C?C:"",sipEndDate:null!==(I=null==B?void 0:B.sipEndDate)&&void 0!==I?I:"",itemAddedDate:function(){let e=new Date,l=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear();return"".concat(l,"-").concat(i,"-").concat(n)}(),fundType:null!==(D=null!==(M=null!==(T=E.fundType)&&void 0!==T?T:e.fundtype)&&void 0!==M?M:e.fundType)&&void 0!==D?D:"",nfoFlag:null!==(P=E.nfoFlag)&&void 0!==P?P:"0",isAddedToCart:!0,isCheckedForPayment:!0,investmentBy:null!==(A=E.investmentBy)&&void 0!==A?A:"Self/Direct",folioObj:null!==(F=null!==(L=E.folioObj)&&void 0!==L?L:e.folioObj)&&void 0!==F?F:null,isFirstDebit:!0}},eY=async()=>{let e=lT.map(e=>{var l,i,n;let t=String(null!==(i=null==e?void 0:null===(l=e.rawScheme)||void 0===l?void 0:l.schemeId)&&void 0!==i?i:null==e?void 0:e.sc
1hemeId),a=Number(null!==(n=lC[t])&&void 0!==n?n:lV(t))||0;return{f:e,schemeId:t,amt:a}}),l=await eU(e.map(e=>e.f));return e.map(e=>{let{f:i,amt:n}=e;return eW(i,n,l)})},eV=(e,l)=>h.droplinkHelpers.handleDroplinkMetaData(e,[{key:"schemes.schemeDetails[0]",value:l}]),eq=()=>{var e;ep(!1),eG(),null===(e=document.getElementById("micro-investing-main-z"))||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},eG=()=>{sessionStorage.setItem("ADD_TO_CART_FROM_MICRO_INVESTING","true"),eP.checkUserLoggedIn(async()=>{var e,l,i;if(!(null==eE?void 0:eE.defaultDateInMonth)||!eA){eP.handleShowToast(!0),eP.handleToastMessage("SIP configuration not loaded yet. Please try again.");return}let n=await eY();if(!n.length){eP.handleShowToast(!0),eP.handleToastMessage("Please select at least 1 scheme.");return}if(n.some(e=>{var l;return Number(e.amount)<(Number(null==ei?void 0:ei.customMinInvestmentAmt)||Number(null==ei?void 0:null===(l=ei.quickInvAmtChiplets)||void 0===l?void 0:l[0].slice(1))/eD)})){eP.handleShowToast(!0),eP.handleToastMessage("Minimum amount is ".concat(Number(Number(null==ei?void 0:ei.customMinInvestmentAmt)||(null==ei?void 0:null===(e=ei.quickInvAmtChiplets)||void 0===e?void 0:e[0].slice(1)))/eD," for all selected schemes."));return}eP.resetAddToCartDroplinkSchemeList(),eP.handleResetScheme(!0);let t=!!(null!==(l=await v.SessionStorage.instance.cartDpId.get())&&void 0!==l?l:"")&&!!(null==eT?void 0:eT.dropLinkMetaData),a=async()=>{var e,l;let i=null!==(l=await v.SessionStorage.instance.cartDpId.get())&&void 0!==l?l:"";null==eM||eM({type:h.DroplinkActions.dropLinkId,payload:{dropLinkId:i}}),null==eM||eM({type:h.DroplinkActions.dropLinkType,payload:{dropLinkType:h.UserJourneys.cart}});let t=(null==eT?void 0:null===(e=eT.dropLinkMetaData)||void 0===e?void 0:e.cartDetails)?[...JSON.parse(JSON.stringify(eT.dropLinkMetaData.cartDetails))]:[],a=null==eT?void 0:eT.dropLinkMetaData,s=[...n].reverse();for(let e=0;e<s.length;e++){let l=s[e];if(!a)break;a=eV(a,l),null==eM||eM({type:h.DroplinkActions.dropLinkMetaData,payload:{dropLinkMetaData:a}}),await new Promise(async e=>{var l,i;eP.updateCartDropLinkApi({handleLoading:()=>{},callback:{success:l=>{var i;let n=h.droplinkHelpers.dropLinkFromJson(null==l?void 0:l.data);t=(null==n?void 0:null===(i=n.dropLinkMetaData)||void 0===i?void 0:i.cartDetails)?JSON.parse(JSON.stringify(n.dropLinkMetaData.cartDetails)):t,e()},default:()=>{e()}},schemeFromCampaign:null==a?void 0:null===(i=a.schemes)||void 0===i?void 0:null===(l=i.schemeDetails)||void 0===l?void 0:l[0],baseCartDetailsFromCampaign:t})})}lc("/addtocart"),null==es||es({type:u.Actions.isShowAddToCartPopUp,isShowAddToCartPopUp:!0}),eP.handleShowToast(!0),eP.handleToastMessage("Selected schemes added to cart.")};if(t){await a();return}try{eP.getGenerateCartDropLink({scheme:n[0],dropLinkType:h.UserJourneys.cart,callback:{success:async()=>{await a(),null==es||es({type:u.Actions.isShowAddToCartPopUp,isShowAddToCartPopUp:!0}),lm(!0),eP.handleShowToast(!0),eP.handleToastMessage("Selected schemes added to cart.")},default:async()=>{let e="";for(let i=1;i<=10;i++){var l;if(e=null!==(l=await v.SessionStorage.instance.cartDpId.get())&&void 0!==l?l:"")break;await new Promise(e=>{setTimeout(e,100)})}if(e){await a();return}eP.handleShowToast(!0),eP.handleToastMessage("Unable to create cart droplink. Please try again.")}}}),null===(i=eP.getCartDropLinkByType)||void 0===i||i.call(eP),null==es||es({type:u.Actions.isShowAddToCartPopUp,isShowAddToCartPopUp:!0})}catch(e){eP.handleShowToast(!0),eP.handleToastMessage("getGenerateCartDropLink crashed. Check console.")}})};d.useEffect(()=>{en&&(eG(),null==et||et())},[en]),d.useImperativeHandle(l,()=>({addAllSelectedToCart:eG,hasAnyMinError:()=>lK,getSelectedSchemesForCart:eY,getSelectedCount:()=>lI,focusFirstMinError:()=>lZ()}));let eK=e=>{if(null==e)return"N/A";let l=Number(String(e).replace(/[^0-9.]/g,""));return Number.isFinite(l)?l.toFixed(2):"N/A"};d.useEffect(()=>{let e=()=>em(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let eJ=d.useMemo(()=>Array.isArray(ei.trendingMutualFunds)?ei.trendingMutualFunds.map(e=>{var l,i,n,t,a,s,o,r,d,c,u;return{schemeId:String(e.schemeId),name:e.schemeTitle,fundtype:e.fundT
1ype,investNow:e.investNow,minAmount:e.minAmount,cagr:(null==e?void 0:null===(n=e.cagrBenchmark)||void 0===n?void 0:null===(i=n.cagr)||void 0===i?void 0:null===(l=i.find(e=>e.period===ec))||void 0===l?void 0:l.value)||"N/A",benchmark:(null==e?void 0:null===(s=e.cagrBenchmark)||void 0===s?void 0:null===(a=s.benchmark)||void 0===a?void 0:null===(t=a.find(e=>e.period===ec))||void 0===t?void 0:t.value)||"N/A",aum:(null==e?void 0:e.aum)?e.aum+" Cr":"N/A",nav:eK(null==e?void 0:null===(r=e.cards)||void 0===r?void 0:null===(o=r.find(e=>"NAV"===e.title))||void 0===o?void 0:o.value),risk:(null==e?void 0:null===(d=e.riskoMeter)||void 0===d?void 0:d.riskType)||"N/A",riskIcon:null==e?void 0:null===(c=e.riskoMeter)||void 0===c?void 0:c.riskIcon,riskoMeterDetails:null==e?void 0:null===(u=e.riskoMeter)||void 0===u?void 0:u.riskometerDetails,riskoMeter:null==e?void 0:e.riskoMeter,schemeCode:e.schemeCode,planCode:e.planCode,planType:e.planType,optionType:e.optionType,optionName:e.optionName,optionCode:e.optionCode,planOption:e.planOption,schemeTitle:e.schemeTitle,rawScheme:e}}):[],[ei,ec]),eZ=e=>{let l=Number(String(null!=e?e:"").replace(/[^0-9.]/g,""));return Number.isFinite(l)?l:0},e$=l=>{var i,n,t,a;let s=null!==(t=null==l?void 0:null===(i=l.rawScheme)||void 0===i?void 0:i.investNow)&&void 0!==t?t:null==l?void 0:l.investNow,o=null!==(a=null==l?void 0:null===(n=l.rawScheme)||void 0===n?void 0:n.minAmount)&&void 0!==a?a:null==l?void 0:l.minAmount;return(null==e?void 0:e.componentId)==="micro_investing_from_outlook"?!1!==s:!1!==s&&100>=eZ(o)},eX=d.useMemo(()=>eJ.filter(e$),[eJ]),eQ=d.useMemo(()=>eX.map(e=>String(e.schemeId)),[eX]),e0=d.useMemo(()=>new Set(eQ),[eQ]);d.useMemo(()=>eQ.length>0&&eQ.every(e=>!!ex[e]),[eQ,ex]),d.useMemo(()=>Object.entries(ex).some(e=>{let[l,i]=e;return i&&!e0.has(l)}),[ex,e0]);let e1=ej.length?ej:eX,e2=(e,l)=>Array.isArray(e)?e.map(e=>{var i,n,t,a,s,o,r,d,c,u,v,m,h,p,x;return{schemeId:String(e.schemeId),name:e.schemeTitle,fundtype:e.fundT
1ype,investNow:e.investNow,minAmount:e.minAmount,cagr:null!==(m=null==e?void 0:null===(t=e.cagrBenchmark)||void 0===t?void 0:null===(n=t.cagr)||void 0===n?void 0:null===(i=n.find(e=>e.period===l))||void 0===i?void 0:i.value)&&void 0!==m?m:"N/A",benchmark:null!==(h=null==e?void 0:null===(o=e.cagrBenchmark)||void 0===o?void 0:null===(s=o.benchmark)||void 0===s?void 0:null===(a=s.find(e=>e.period===l))||void 0===a?void 0:a.value)&&void 0!==h?h:"N/A",nav:eK(null!==(p=null==e?void 0:null===(d=e.cards)||void 0===d?void 0:null===(r=d.find(e=>"NAV"===e.title))||void 0===r?void 0:r.value)&&void 0!==p?p:null==e?void 0:e.nav),risk:null!==(x=null==e?void 0:null===(c=e.riskoMeter)||void 0===c?void 0:c.riskType)&&void 0!==x?x:"N/A",riskIcon:null==e?void 0:null===(u=e.riskoMeter)||void 0===u?void 0:u.riskIcon,riskoMeterDetails:null==e?void 0:null===(v=e.riskoMeter)||void 0===v?void 0:v.riskometerDetails,riskoMeter:null==e?void 0:e.riskoMeter,schemeCode:e.schemeCode,planCode:e.planCode,planType:e.planType,optionType:e.optionType,optionName:e.optionName,schemeTitle:e.schemeTitle}}):[],e3=()=>{ey||x.placeGetAllSchemesList({default:e=>{},success:e=>{var l,i;let n=e2((null!==(i=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.schemeInfo)&&void 0!==i?i:[]).filter(e=>"direct"===String(e.planType||e.schemePlan||"").toLowerCase()&&"0"===e.nfoFlag),ec),t=n.filter(e$);lE(e=>{let l={...e},i=le||lH();return n.forEach(e=>{let n=String(e.schemeId);null==l[n]&&(l[n]=i)}),l}),eN(t),e_(!0),lF(e=>{let l={...e};return n.forEach(e=>{null==l[e.schemeId]&&(l[e.schemeId]=!1)}),l})}})};d.useRef(null);
1let[e5,e9]=d.useState("TRENDING"),[e4,e6]=d.useState(Number(null!==(H=null==ei?void 0:null===(t=ei.quickInvAmtChiplets)||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.slice(1))&&void 0!==H?H:0)/eD),[e7,e8]=d.useState(e4),le="TRENDING"===e5?e4:e7,ll=e=>{"TRENDING"===e5?e6(e):e8(e)};d.useEffect(()=>{"TRENDING"===e5&&eJ.length&&(eg(e=>{if(Object.keys(e).length)return e;let l={};return eJ.forEach(e=>l[e.schemeId]=!0),l}),eb(e=>{var l;if(Object.keys(e).length)return e;let i={};eJ.forEach(e=>i[e.schemeId]=!0);let{nextAmt:n}=l$(Number(null==ei?void 0:null===(l=ei.quickInvAmtChiplets)||void 0===l?void 0:l[0].slice(1)),i,{});return n}),ln(e=>{var l;return e||(null==ei?void 0:null===(l=ei.quickInvAmtChiplets)||void 0===l?void 0:l[0].slice(1))}))},[eJ,e5]);let[li,ln]=d.useState(null==ei?void 0:null===(a=ei.quickInvAmtChiplets)||void 0===a?void 0:a[0].slice(1)),[lt,la]=d.useState(!1),[ls,lo]=d.useState(null),[lr,lu]=d.useState(null),[lv,lm]=d.useState(!1),lh=e=>{eC(e);let l=lU(e);lO(l),lF(e=>(lE(i=>{let{nextAmt:n,nextTotal:t,each:a}=l$(l,e,i,e5);return ll(a),ln(t.toFixed(2)),n}),e))},lp=(e,l)=>{let i=lU(l);lE(l=>{let n={...l,[e]:i};return lF(e=>(ln(lB(e,n).toFixed(2)),e)),n})},lx=d.useMemo(()=>{let e=new Map;return eX.forEach(l=>e.set(l.schemeId,l)),ej.forEach(l=>e.set(l.schemeId,l)),Array.from(e.values()).filter(e$)},[eJ,ej]),[lg,lb]=d.useState(!1),[lj,l_]=d.useState({}),[lS,lw]=d.useState({}),lk="TRENDING"===e5?ex:lj,lC="TRENDING"===e5?ef:lS,lI=d.useMemo(()=>{let e=new Set(lx.map(e=>String(e.schemeId)));return Object.entries(lk).reduce((l,i)=>{let[n,t]=i;return l+(t&&e.has(n)?1:0)},0)},[lk,lx]),lT=d.useMemo(()=>lx.filter(e=>!!lk[String(e.schemeId)]),[lx,lk]),lM=d.useMemo(()=>eX.filter(e=>!!lk[String(e.schemeId)]),[eJ,lk]);null==eT||null===(s=eT.dropLinkMetaData)||void 0===s||s.cartDetails;let[lD,lP]=d.useState(Number(null!==(W=null==ei?void 0:null===(r=ei.quickInvAmtChiplets)||void 0===r?void 0:null===(o=r[0])||void 0===o?void 0:o.slice(1))&&void 0!==W?W:0)),[lA,lL]=d.useState(Number(null!==(Y=null==ei?void 0:null===(g=ei.quickInvAmtChiplets)||void 0===g?void 0:null===(c=g[0])||void 0===c?void 0:c.slice(1))&&void 0!==Y?Y:0)),lF=e=>{"TRENDING"===e5?eg(e):l_(e)},lE=e=>{"TRENDING"===e5?eb(e):lw(e)},lO=e=>{"TRENDING"===e5?lP(e):lL(e)},lz=d.useMemo(()=>!0===ei.dailySipFlag?"TRENDING"===e5?eX:lx:eS?lM:lT,[ei.componentId,e5,eJ,lx,eS,lM,lT]),lB=(e,l)=>lx.reduce((i,n)=>{var t;let a=String(n.schemeId);return i+(e[a]&&null!==(t=l[a])&&void 0!==t?t:0)},0),lR=e=>{if(ew(!1),!0!==ei.dailySipFlag){lF(l=>{let i=!!l[e],n={...l,[e]:!i};return lE(l=>{let t={...l},a=String(e);return i||null!=t[a]&&0!==t[a]||(t[a]=lY(n)),ln(lB(n,t).toFixed(2)),t}),n});return}lF(l=>{let i=!!l[String(e)],n={...l,[String(e)]:!i};return lE(n=>{var t,a,s,o,r;let d={...n},c=null===(t=Object.entries(l).find(e=>{let[,l]=e;return l}))||void 0===t?void 0:t[0],u="number"==typeof le&&le>0?le:c&&null!==(a=n[String(c)])&&void 0!==a?a:0,v=lU(li);if(i)ln(String(Math.max(0,v-(null!==(o=null!==(s=n[String(e)])&&void 0!==s?s:u)&&void 0!==o?o:0))));else{let l=(null!==(r=n[String(e)])&&void 0!==r?r:0)>
10?n[String(e)]:u;d[String(e)]=l,ln(String(v+(null!=l?l:0)))}return d}),n})},lU=e=>Number(String(null!=e?e:"").replace(/[^0-9.]/g,""))||0,lH=()=>lU(ek),lW=lU(ek),lY=e=>{let l=Object.values(e).filter(Boolean).length;return 0===l?lW:Number((lW/l).toFixed(2))},lV=e=>{let l=lC[String(e)];return null!=l?l:"number"==typeof le?le:0},lq=Number(null==ei?void 0:ei.customMinInvestmentAmt)||Number(null==ei?void 0:null===(f=ei.quickInvAmtChiplets)||void 0===f?void 0:f[0].slice(1))/eD,lG=d.useMemo(()=>new Set(lx.map(e=>String(e.schemeId))),[lx]),lK=d.useMemo(()=>Object.entries(lk).some(e=>{var l;let[i,n]=e;return!!(n&&lG.has(String(i)))&&Number(null!==(l=lC[String(i)])&&void 0!==l?l:0)<lq}),[lk,lC,lq]),lJ=e=>{var l;return!!lk[String(e)]&&(null!==(l=lC[String(e)])&&void 0!==l?l:0)<lq},lZ=()=>{var e;if("undefined"==typeof document)return!1;let l=Array.from(document.querySelectorAll('input[data-min-error="true"]')),i=null!==(e=l.find(e=>null!==e.offsetParent))&&void 0!==e?e:l[0];return!!i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),i.focus({preventScroll:!0}),!0)},l$=(e,l,i,n)=>{let t=null!=n?n:e5,a=lx.filter(e=>!!l[String(e.schemeId)]).map(e=>String(e.schemeId)).length;if("CUSTOM"===t){let l=Math.floor(e/Math.max(1,0===a?6:a)),n={...i};return lx.forEach(e=>{n[String(e.schemeId)]=l}),{nextAmt:n,nextTotal:0===a?0:l*a,each:l}}if(0===a)return{nextAmt:{...i},nextTotal:0,each:0};let s=Math.floor(e/a),o={...i};return lx.forEach(e=>{o[String(e.schemeId)]=s}),{nextAmt:o,nextTotal:s*a,each:s}},lX=e=>{var l,i;(null==e?void 0:null===(l=e.riskoMeter)||void 0===l?void 0:l.riskometerDetails)&&(lo(null==e?void 0:null===(i=e.riskoMeter)||void 0===i?void 0:i.riskometerDetails),lu(null==e?void 0:e.riskoMeter),la(!0))};return m.jsxs(m.Fragment,{children:[ev?m.jsxs("div",{className:"mobile-microinvestingmain-container",id:"micro_investing_container",children:[m.jsxs("div",{className:"mobile-microivestingmain-upper",children:[m.jsx("div",{className:"mobile-microinvesting-header",children:m.jsx("label",{className:"lbl-content-smallheading-5",children:null!==(X=null==ei?void 0:ei.greetMsg)&&void 0!==X?X:"Hi Investor,"})}),m.jsxs("div",{className:"mobile-microinvesting-upper-right",children:[m.jsx("label",{className:"microinvesting-ttl-investment",children:null!==(Q=null==ei?void 0:ei.investmentAmtDesc)&&void 0!==Q?Q:"Total Investment Amount:"}),m.jsx("input",{type:"text",className:"mobile-microinvesting-input-section",value:"â¹"+Math.round(li),readOnly:!0})]}),m.jsx("div",{className:"mobile-microinvesting-button-section",children:null==eo?void 0:eo.map(e=>m.jsx("button",{onClick:()=>lh(e.toString()),className:ek===e.toString()?"chiplet selected":"chiplet",children:e},e))}),m.jsxs("div",{className:"mobile-microinvesting-totalschemecount",children:[m.jsx("label",{className:"microinvesting-totalschemes",children:null!==(ee=null==ei?void 0:ei.selectedSchemesDesc)&&void 0!==ee?ee:"Total Schemes Selected:"}),m.jsx("label",{className:"mobile-total-scheme-count",children:null!=lI?lI:3})]}),m.jsx("div",{className:"mobile-microinvesting-note",children:m.jsx("label",{className:"lbl-sub-heading",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:null!==(el=null==ei?void 0:ei.note)&&void 0!==el?el:"You have the flexibility to select schemes to invest in and adjust the amount allocated to each selected scheme, which will contribute to the overall total."}})})})]}),(()=>{var l,i;let n=!0===ei.dailySipFlag?eX:lg?lT:lT.slice(0,10);return m.jsxs("div",{className:"mobile-microinvesting-fundtable",id:"microInvestingFundTableMobile",tabIndex:-1,children:[m.jsxs("table",{className:"mobile-fund-table",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{className:"mobile-fund-table-header",children:(()=>{var e,l;let i=null==ei?void 0:null===(l=ei.multilingualLabels)||void 0===l?void 0:null===(e=l.popupHeaders)||void 0===e?void 0:e[0];return(null==i?void 0:i.type)==="text"&&"label"in i?i.label:"Fund Name"})()}),m.jsxs("th",{className:"mobile-fund-table-header mobile-returns-micro",children:[m.jsxs("div",{className:"".concat("SI"!==ec?"returns-select-wrap-div":"returns-select-wrap-nosi"," "),children:[m.jsx("span",{className:"returns-select-wrap",children:m.jsxs("select",{value:ec,onChange:e=>eu(e.target.value),className:"period-dropdown-overlay","aria-label":"Select return period",children:[m.jsx("option",{value:"SI",children:(()=>{var l,i,n;let t=null==ei?void 0:null===(i=ei.multilingualLabels)||void 0===i?void 0:null===(l=i.popupHeaders)||void 0===l?void 0:l[1];return(null==e?void 0:e.language)==="tam"?"SI":(null==t?void 0:t.type)==="tenureWithLabel"&&"label"in t?null===(n=t.tenureLabels)||void 0===n?void 0:n[0]:"Since inception"})()}),m.jsx("option",{value:"1Y",children:"1Y"}),m.jsx("option",{value:"3Y",children:"3Y"}),m.jsx("option",{value:"5Y",children:"5Y"})]})}),m.jsxs("select",{value:ec,onChange:e=>eu(e.target.value),className:"period-dropdown",children:[m.jsx("option",{value:"SI",children:(()=>{var l,i,n;let t=null==ei?void 0:null===(i=ei.multilingualLabels)||void 0===i?void 0:null===(l=i.popupHeaders)||void 0===l?void 0:l[1];return(null==e?void 0:e.language)==="tam"?"SI":(null==t?void 0:t.type)==="tenureWithLabel"&&"label"in t?null===(n=t.tenureLabels)||void 0===n?void 0:n[0]:"Since inception"})()}),m.jsx("option",{value:"1Y",children:"1Y"}),m.jsx("option",{value:"3Y",children:"3Y"}),m.jsx("option",{value:"5Y",children:"5Y"})]})]}),m.jsx("span",{style:{display:"inline-block",marginLeft:"2px"},children:"Returns"})]})]})}),m.jsx("tbody",{children:n.map((l,i)=>{var n,t;return m.jsxs("tr",{className:"mobile-fund-row",children:[m.jsxs("td",{className:"mobile-fund-data name-column",children:[m.jsxs("div",{className:"mobile-fund-checkbox-name",children:[m.jsx("input",{type:"checkbox",checked:!!lk[l.schemeId],onChange:()=>lR(l.schemeId)}),m.jsx("span",{className:"mobile-fund-name",children:l.name})]}),m.jsx("div",{className:"mobile-fund-amount-section",children:m.jsx("div",{className:"mobile-amount-label",children:"Current Investment Amount:"})})]}),m.jsxs("td",{className:"mobile-fund-data return-column",children:[m.jsxs("div",{className:"mobile-fund-return ".concat("N/A"===l.cagr?"mobile-fund-return-na":""),children:[l.cagr,"N/A"!==l.cagr&&m.jsx("span",{children:"%"})]}),m.jsx("input",{className:"mobile-investment-input",type:"text","data-scheme-id":String(l.schemeId),"data-min-error":lJ(l.schemeId)?"true":void 0,value:"â¹"+lV(l.schemeId),onChange:e=>{let i=e.target.value.replace(/[^0-9]/g,"");1e7>
1=Number(i)&&lp(l.schemeId,i)},disabled:!lk[l.schemeId]}),lJ(l.schemeId)&&((null==e?void 0:e.componentId)!=="micro_investing_from_outlook"?m.jsxs("div",{className:"min-validation-msg",children:["Minimum amount is ",Number(null==ei?void 0:ei.customMinInvestmentAmt)||Number(null==ei?void 0:null===(n=ei.quickInvAmtChiplets)||void 0===n?void 0:n[0].slice(1))/eD]}):m.jsxs("div",{className:"min-validation-msg-outlook",children:["Visit Micro-Investing for SIPs under â¹",Number(null==ei?void 0:ei.customMinInvestmentAmt)||Number(null==ei?void 0:null===(t=ei.quickInvAmtChiplets)||void 0===t?void 0:t[0].slice(1))/eD]})),m.jsx("div",{className:"mobile-return-spacer"})]})]},i)})})]}),(null==ei?void 0:ei.dailySipFlag)!==!0&&m.jsx("div",{className:"mobile-view-more-section",children:m.jsx("button",{className:"mobile-view-more-btn",onClick:()=>{ep(!0),e3()},children:(null==ei?void 0:null===(i=ei.multilingualLabels)||void 0===i?void 0:null===(l=i.viewMoreCta)||void 0===l?void 0:l.label)||"View & add more funds"})}),m.jsx("div",{className:"micro-investing-asondate micro-investing-asondate-mobile",children:null==ei?void 0:ei.asOnDate}),m.jsx("div",{className:"micro-investing-disclaimer micro-investing-disclaimer-mobile",dangerouslySetInnerHTML:{__html:null==ei?void 0:ei.disclaimer}})]})})()]}):m.jsxs("div",{className:"microinvesting-container",id:"micro_investing_container",children:[m.jsxs("div",{className:"microinvesting-upper",children:[m.jsxs("div",{className:"microinvesting-upper-left",children:[m.jsx("label",{className:"lbl-content-smallheading-5",children:null!==(V=null==ei?void 0:ei.greetMsg)&&void 0!==V?V:"Hi Investor,"}),m.jsx("label",{className:"lbl-sub-heading",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:null!==(q=null==ei?void 0:ei.note)&&void 0!==q?q:"You have the flexibility to select schemes to invest in and adjust the amount allocated to each selected scheme, which will contribute to the overall total."}})})]}),m.jsxs("div",{className:"microinvesting-upper-right",children:[m.jsxs("label",{className:"microinvesting-ttl-investment",children:[null!==(G=null==ei?void 0:ei.investmentAmtDesc)&&void 0!==G?G:"Total Investment:",m.jsx("input",{type:"text",className:"microinvesting-input-section",value:"â¹"+Math.round(li)})]}),m.jsx("div",{className:"microinvesting-button-section",children:null==eo?void 0:eo.map(e=>m.jsx("button",{onClick:()=>lh(e.toString()),className:ek===e.toString()?"chiplet selected":"chiplet",children:e},e))}),m.jsxs("label",{className:"microinvesting-totalschemes",children:[null!==(K=null==ei?void 0:ei.selectedSchemesDesc)&&void 0!==K?K:"Total Schemes Selected:",m.jsxs("span",{className:"total-scheme-count",children:[lI,"/10"]})]})]})]}),m.jsx("div",{className:"fund-table-wrapper",id:"microInvestingFundTable",tabIndex:-1,children:m.jsxs("table",{className:"fund-table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"fund-table-tr",children:[m.jsx("th",{className:"fundtable-label-header",children:!0===ei.dailySipFlag?m.jsx("div",{className:"mi-toggle single",children:m.jsx("button",{type:"button",className:"mi-toggle__btn is-active",disabled:!0,children:null!==(J=null==ei?void 0:null===(y=ei.multilingualLabels)||void 0===y?void 0:null===(N=y.headers)||void 0===N?void 0:null===(j=N[0])||void 0===j?void 0:null===(b=j.label[0])||void 0===b?void 0:b.label)&&void 0!==J?J:"Trending"})}):m.jsxs("div",{className:"mi-toggle",children:[m.jsx("button",{type:"button",className:"mi-toggle__btn ".concat("TRENDING"===e5?"is-active":""),onClick:()=>{if("TRENDING"===e5)return;e9("TRENDING"),ew(!1);let e=lH(),l={};eX.forEach(e=>l[String(e.schemeId)]=!0),eg(l),eb(i=>{let{nextAmt:n,each:t,nextTotal:a}=l$(e,l,i,"TRENDING");return e6(t),ln(a.toFixed(2)),n})},children:null!==(Z=null==ei?void 0:null===(k=ei.multilingualLabels)||void 0===k?void 0:null===(w=k.headers)||void 0===w?void 0:null===(S=w[0])||void 0===S?void 0:null===(_=S.label[0])||void 0===_?void 0:_.label)&&void 0!==Z?Z:"Trending"}),m.jsx("button",{type:"button",className:"mi-toggle__btn ".concat("CUSTOM"===e5?"is-active":""),onClick:()=>{if("CUSTOM"===e5)return;e9("CUSTOM"),ew(!1),l_({});let e=e4||lH()/(eJ.length||1);e8(e),lw(()=>{let l={};return lx.forEach(i=>
1l[String(i.schemeId)]=e),l}),ln("0")},children:null!==($=null==ei?void 0:null===(M=ei.multilingualLabels)||void 0===M?void 0:null===(T=M.headers)||void 0===T?void 0:null===(I=T[0])||void 0===I?void 0:null===(C=I.label[1])||void 0===C?void 0:C.label)&&void 0!==$?$:"Custom"})]})}),m.jsxs("th",{className:"fundtable-label-header",children:[(null==ei?void 0:null===(A=ei.multilingualLabels)||void 0===A?void 0:null===(P=A.headers)||void 0===P?void 0:null===(D=P[1])||void 0===D?void 0:D.label)||"This Fund / Benchmark"," \xa0",m.jsxs("select",{value:ec,onChange:e=>eu(e.target.value),className:"period-dropdown",children:[m.jsx("option",{value:"SI",children:(()=>{var e,l,i;let n=null==ei?void 0:null===(l=ei.multilingualLabels)||void 0===l?void 0:null===(e=l.popupHeaders)||void 0===e?void 0:e[1];return(null==n?void 0:n.type)==="tenureWithLabel"&&"label"in n?null===(i=n.tenureLabels)||void 0===i?void 0:i[0]:"Since inception"})()}),m.jsx("option",{value:"1Y",children:"1Y"}),m.jsx("option",{value:"3Y",children:"3Y"}),m.jsx("option",{value:"5Y",children:"5Y"})]})]}),m.jsx("th",{className:"fundtable-label-header",children:"NAV"}),m.jsx("th",{className:"fundtable-label-header",children:(null==ei?void 0:null===(E=ei.multilingualLabels)||void 0===E?void 0:null===(F=E.headers)||void 0===F?void 0:null===(L=F[3])||void 0===L?void 0:L.NAV)||"Riskometer"}),m.jsx("th",{className:"fundtable-label-header",children:(null==ei?void 0:null===(B=ei.multilingualLabels)||void 0===B?void 0:null===(z=B.headers)||void 0===z?void 0:null===(O=z[4])||void 0===O?void 0:O.NAV)||"Current Investment Amount"})]})}),m.jsx("tbody",{children:lz.map(l=>{var i,n;return m.jsxs("tr",{children:[m.jsxs("td",{children:[m.jsx("input",{type:"checkbox",checked:!!lk[l.schemeId],onChange:()=>lR(l.schemeId)}),m.jsxs("label",{className:"lbl-list-heading",children:[l.name," ",m.jsx("span",{className:"microinvesting-fundtype",children:l.fundtype})]})]}),m.jsxs("td",{className:"lbl-success-txt-2 fund-return ".concat("N/A"===l.cagr&&"N/A"===l.benchmark?"lbl-success-txt-na":""),children:[m.jsx("span",{className:"".concat(0>Number(l.cagr)?"lbl-fail-red-txt":""),children:l.cagr}),"N/A"!==l.cagr&&m.jsx("span",{className:"".concat(0>Number(l.cagr)?"lbl-fail-red-txt":""),children:"%"}),m.jsx("span",{className:"".concat(0>Number(l.cagr)&&0>Number(l.benchmark)?"lbl-fail-red-txt":""),children:" / "}),m.jsx("span",{className:"".concat(0>Number(l.benchmark)?"lbl-fail-red-txt":""),children:l.benchmark}),"N/A"!==l.benchmark&&m.jsx("span",{className:"".concat(0>Number(l.benchmark)?"lbl-fail-red-txt":""),children:"%"})]}),m.jsx("td",{className:"lbl-list-heading",children:"N/A"===l.nav?"N/A":"â¹".concat(l.nav)}),m.jsx("td",{className:"lbl-list-heading",children:m.jsxs("div",{className:"risk-inline",children:[m.jsx("img",{fetchPriority:"low",src:l.riskIcon,className:"microinvesting-risk-icon",alt:"riskicon"}),m.jsxs("div",{className:"risk-text-img",children:[m.jsx("span",{className:"risk-text",children:l.risk}),m.jsx("img",{fetchPriority:"low",src:v.pathChanger("info.svg"),className:"risk-info-img",alt:"Info Icon",onClick:()=>lX(l)})]})]})}),m.jsxs("td",{children:[m.jsx("input",{className:"investment-btn",type:"text","data-scheme-id":String(l.schemeId),"data-min-error":lJ(l.schemeId)?"true":void 0,value:"â¹"+lV(l.schemeId),onChange:e=>{let i=e.target.value.replace(/[^0-9]/g,"");1e7>=Number(i)&&lp(l.schemeId,i)},disabled:!lk[l.schemeId]}),lJ(l.schemeId)&&((null==e?void 0:e.componentId)!=="micro_investing_from_outlook"?m.jsxs("div",{className:"min-validation-msg",children:["Minimum amount is ",Number(null==ei?void 0:ei.customMinInvestmentAmt)||Number(null==ei?void 0:null===(i=ei.quickInvAmtChiplets)||void 0===i?void 0:i[0].slice(1))/eD]}):m.jsxs("div",{className:"min-validation-msg-outlook",children:["Visit Micro-Investing for SIPs under â¹",Number(null==ei?void 0:ei.customMinInvestmentAmt)||Number(null==ei?void 0:null===(n=ei.quickInvAmtChiplets)||void 0===n?void 0:n[0].slice(1))/eD]}))]})]},l.schemeId)})})]})}),m.jsx("div",{className:"micro-investing-asondate",children:null==ei?void 0:ei.asOnDate}),m.jsx("div",{className:"micro-investing-disclaimer",dangerouslySetInnerHTML:{__html:null==ei?void 0:ei.disclaimer}}),(null==ei?void 0:ei.dailySipFlag)!==!0&&m.jsx("div",{className:"view-more-funds-row",children:m.jsx("button",{type:"button",className:"view-more-funds-btn",onClick:()=>{ep(!0),e3()},children:(null==ei?void 0:null===(U=ei.multilingualLabels)||void 0===U?void 0:null===(R=U.viewMoreCta)||void 0===R?void 0:R.label)||"View & add more funds"})}),lt?m.jsx(p.OverlayPopup,{className:"dialog-popup-default risk-pop-up",showHeader:!1,isFloating:!1,onClose:()=>{lo(null),lu(null),la(!1)},content:m.jsx(x.RiskoMeter,{riskometerDetails:ls,riskoMeter:lr})}):"",lv&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content scheme-list-spec-popup add-to-cart-module",showHeader:!1,isFloating:!1,onClose:()=>lm(!1),content:m.jsx(u.AddToCartSection,{selectedInvestMode:"SELF DIRECT",selectedCart:"",handleSelectedCart:()=>{},listenDroplink:!0})})]}),eh&&!ev&&m.jsx(p.OverlayPopup,{className:"dialog-popup-default add-schemes-popup-wrapper",showHeader:!1,isFloating:!1,onClose:()=>ep(!1),content:m.jsx(ld,{funds:e1,selectedById:lk,amountById:lC,getDisplayAmt:lV,selectedPeriod:ec,onChangePerio
1d:eu,onClose:()=>ep(!1),onToggleScheme:lR,onChangeAmount:lp,onInvestNow:eq,minAmount:lq,multilingualLabels:null==ei?void 0:ei.multilingualLabels,componentFrom:null==ei?void 0:ei.componentFrom})}),eh&&ev&&m.jsx(p.OverlayPopup,{className:"dialog-popup-default add-schemes-popup-wrapper",showHeader:!1,isFloating:!1,onClose:()=>ep(!1),content:m.jsx(ly,{funds:e1,selectedById:lk,amountById:lC,getDisplayAmt:lV,selectedPeriod:ec,onChangePeriod:eu,onClose:()=>ep(!1),onToggleScheme:lR,onChangeAmount:lp,onInvestNow:eq,minAmount:lq,setShowFundsPopup:ep,multilingualLabels:null==ei?void 0:ei.multilingualLabels,language:null==e?void 0:e.language,componentFrom:null==ei?void 0:ei.componentFrom})})]})});var lS=Object.freeze({__proto__:null,MicroInvestingMain:l_});let lw=e=>{var l,i;let[n,t]=d.useState(null!==(i=null==e?void 0:e.cards[0].id)&&void 0!==i?i:null==e?void 0:null===(l=e.cards[0])||void 0===l?void 0:l.tabComponent),a=(l,i)=>{if("nfo-tab-wrapper"===e.className&&e.handleTabClick){e.handleTabClick(l);return}if(null==i||i.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),null==e?void 0:e.handleTabClick){null==e||e.handleTabClick(l);return}t(l);let n=document.getElementById(null==l?void 0:l.trim());n&&n.scrollIntoView({behavior:"smooth",block:"start"})},s=e.checkActiveTab?e.checkActiveTab:n,o=h.useRootContextData();return m.jsx("div",{className:"on-page-navigation",children:m.jsx("div",{className:"nav ".concat(o.showHeader?"nav-nfo-sh":"nav-nfo"),children:m.jsx("div",{className:"tab",children:null==e?void 0:e.cards.map(e=>{var l,i;let n=e.tabId?e.tabId:null!==(l=e.id)&&void 0!==l?l:e.tabComponent;return m.jsx(m.Fragment,{children:m.jsxs("button",{className:"tab-item ".concat(s===n?"active-tab":""),onClick:e=>a(n,e),children:[m.jsx("span",{children:null!==(i=e.name)&&void 0!==i?i:e.title}),(null==e?void 0:e.tooltip)&&m.jsx("span",{onClick:e=>e.stopPropagation(),children:m.jsx(g.AdaptiveTooltip,{title:null==e?void 0:e.tooltip,trigger:"hover",children:m.jsx("img",{fetchPriority:"low",className:"info-icon-payment-tooltip",src:v.pathChanger("exclamation.svg"),alt:"info-icon"})})})]},n)})})})})})};var lk=Object.freeze({__proto__:null,OnPageNavigation:lw});let lC=e=>m.jsx("div",{className:"overview-section",children:m.jsxs("div",{className:"overview-section-content",children:[m.jsxs("div",{className:"overview-section-header-holder",children:[m.jsx("label",{className:"lbl-card-title-21",dangerouslySetInnerHTML:{__html:null==e?void 0:e.titleOne}}),m.jsx("label",{className:"lbl-txt-info-13",dangerouslySetInnerHTML:{__html:null==e?void 0:e.descriptionOne}}),m.jsx("label",{className:"lbl-popup-content",dangerouslySetInnerHTML:{__html:null==e?void 0:e.titleTwo}}),m.jsx("label",{className:"lbl-txt-info-13",dangerouslySetInnerHTML:{__html:null==e?void 0:e.descriptionTwo}})]}),m.jsx("div",{className:"overview-section-content-holder",children:m.jsx(f.FundManager,{managerList:null==e?void 0:e.fundManagerDetails})})]})});var lI=Object.freeze({__proto__:null,OverviewSection:lC});let lT=e=>{let{bannersList:l}=e,i=d.useMemo(()=>(null==l?void 0:l.length)>1,[l]),n=h.useRootContextData();return m.jsx(b.CustomComponentCarousel,{className:"custom-component-carousel-default full-screen-banner",list:l,isSnap:!0,component:e=>{var l,i,t,a,s,o,r,d,c;let{item:v,index:h}=e;return m.jsx("div",{className:"carousel-item-wrapper",children:m.jsx("a",{href:v.redirectLink,target:"_blank",rel:"noopener noreferrer",children:m.jsxs("div",{className:"banner-media",children:[m.jsx("img",{fetchPriority:"low",src:v.image,alt:"Banner",loading:0===h?"eager":"lazy",decoding:"async",onClick:e=>{if("/quick-pay"===v.redirectLink){var l;e.preventDefault(),e.stopPropagation(),null===(l=document.getElementById("banner-invest-btn-z"))||void 0===l||l.click()}}}),m.jsx(u.InvestNowButton,{buttonText:"start Investing",className:"start-invest",uniqueId:"banner-invest-btn-z",scheme:(null==n?void 0:null===(a=n.globalConfig)||void 0===a?void 0:null===(t=a.defaultScheme)||void 0===t?void 0:null===(i=t.trendingScheme)||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:l.schemeId)?null==n?void 0:null===(r=n.globalConfig)||void 0===r?void 0:null===(o=r.defaultScheme)||void 0===o?void 0:null===(s=o.trendingScheme)||void 0===s?void 0:s[0]:null===(c=n.globalState.HOME_PAGE)||void 0===c?void 0:null===(d=c.trending_schemes)||void 0===d?void 0:d[0]})]})})})},leftArrowImage:"/assets/carousal_arrow_left.svg",rightArrowImage:"/assets/carousal_arrow_right.svg",showArrows:i,showDots:i,idPath:"order"})};var lM=Object.freeze({__proto__:null,FullscreenBanner:lT});let lD=e=>{let l=((null==e?void 0:e.title)||"OVER 40,90,100 USERS TRUST US").split(" ");return m.jsx("div",{className:"achievement-section",children:m.jsxs("div",{className:"title-container",style:{backgroundImage:"url(".concat(null==e?void 0:e.backgroundImage,")")},children:[m.jsx("span",{className:"lbl-card-title-3 for-web-title ",children:null==e?void 0:e.title}),m.jsxs("span",{className:"lbl-card-title-3 for-mobile-title",children:[m.jsx("span",{className:"line-1",children:l[0]}),m.jsx("span",{className:"line-2",children:l.slice(1,2).join(" ")}),m.jsx("span",{className:"line-3",children:l.slice(2).map((e,i)=>m.jsxs(d.Fragment,{children:[e,i<l.slice(2).length-1&&m.jsx("span",{style:{margin:"0 8px"}})]},i))})]})]})})};var lP=Object.freeze({__proto__:null,AchievementSection:lD});let lA=e=>{var l;let{EntryPointDetails:i}=e;
1return m.jsxs("div",{className:"card-details",children:[m.jsx("label",{className:"lbl-card-title-21",children:i.title}),m.jsx("div",{className:"cards-container",children:null==i?void 0:null===(l=i.cards)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"card",children:[m.jsx("div",{className:"icon-container",children:m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"entrypoint-icon"})}),m.jsx("label",{className:"lbl-card-title-2",children:e.title}),m.jsx("label",{className:"card-description lbl-card-tag-4",children:e.description}),m.jsx("a",{href:e.buttonLink,className:"card-button lbl-menu-item","aria-label":e.buttonLabel||j.getAriaLabelFromUrl(e.buttonLink),children:e.buttonLabel})]},l))})]})},lL=e=>{let{title:l,cards:i}=e;return m.jsx("div",{className:"entry-point",children:m.jsx(lA,{EntryPointDetails:{title:l,cards:i}})})};var lF=Object.freeze({__proto__:null,EntryPoint:lL});let lE=e=>{var l;return m.jsx("div",{className:"container-long",style:{backgroundColor:e.bgColor||"white"},children:null==e?void 0:null===(l=e.contentLongs)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"section",children:[m.jsx("h3",{className:"lbl-card-title-21 section-title",children:e.title}),m.jsx("div",{className:"desc-container",children:m.jsx("div",{dangerouslySetInnerHTML:{__html:e.description||""}})})]},l))})};var lO=Object.freeze({__proto__:null,ContentLong:lE});let lz=e=>{var l;let i=d.useRef(null),[n,t]=d.useState(0),[a,s]=d.useState(0),[o,r]=d.useState(3),[c,u]=d.useState(null),[v,h]=d.useState(!1);d.useEffect(()=>{if(i.current){var l;s(Math.ceil((null==e?void 0:null===(l=e.images)||void 0===l?void 0:l.length)/o))}},[e,o]),d.useEffect(()=>{let e=()=>{r(window.innerWidth>768?4:1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),d.useEffect(()=>{let e=i.current;if(!e)return;let l=()=>{t(Math.round(e.scrollLeft/e.offsetWidth))};return e.addEventListener("scroll",l),()=>e.removeEventListener("scroll",l)},[]);let p=e=>{u(e),h(!0)},x=()=>{h(!1),u(null)};return m.jsxs("div",{className:"image-place-holder",children:[m.jsxs("div",{className:"image-place-holder-header",children:[m.jsx("label",{className:"iap-title",children:null==e?void 0:e.title}),m.jsxs("div",{className:"carousel-navigation",children:[m.jsx("img",{fetchPriority:"low",className:"previous-btn ".concat(0===n?"disabled":""),onClick:n>0?()=>{if(n>0&&i.current){t(Math.max(n-1,0));let e=i.current.offsetWidth;i.current.scrollBy({left:-e,behavior:"smooth"})}}:void 0,src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous"}),m.jsx("img",{fetchPriority:"low",className:"next-btn ".concat(n===a-1?"disabled":""),onClick:n<a-1?()=>{if(n<a-1&&i.current){var e,l;t(Math.min(n+1,a-1));let s=null==i?void 0:null===(e=i.current)||void 0===e?void 0:e.offsetWidth;null==i||null===(l=i.current)||void 0===l||l.scrollBy({left:s,behavior:"smooth"})}}:void 0,src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next"})]})]}),m.jsxs("div",{className:"border-container",children:[m.jsx("label",{className:"lbl-text-content4",children:null==e?void 0:e.subTitleOne}),m.jsx("label",{className:"lbl-card-title-9",children:null==e?void 0:e.subTitleTwo}),m.jsxs("div",{className:"iap-carousel-container",children:[m.jsx("div",{className:"iap-carousel",ref:i,children:null==e?void 0:null===(l=e.images)||void 0===l?void 0:l.map((e,l)=>m.jsx("div",{className:"iap-card",style:{...1===o&&{flex:"0 0 ".concat(100/o,"%"),maxWidth:"100%",minWidth:0}},children:m.jsx("img",{fetchPriority:"low",src:e.image,alt:"Event ".concat(l+1),className:"iap-image",onClick:()=>p(e),style:{cursor:"pointer"}})},l))}),m.jsx("div",{className:"carousel-dots",children:Array.from({length:a},(e,l)=>m.jsx("div",{className:"carousel-dot ".concat(n===l?"active-dot":""),onClick:()=>{t(l);let e=l*i.current.offsetWidth;i.current.scrollTo({left:e,behavior:"smooth"})}},l))})]})]}),v&&c&&m.jsx("div",{className:"image-popup-overlay",onClick:x,children:m.jsxs("div",{className:"image-popup-content",onClick:e=>e.stopPropagation(),children:[m.jsx("button",{className:"popup-close-btn",onClick:x,children:"\xd7"}),m.jsx("img",{fetchPriority:"low",src:c.image,alt:"Popup",className:"popup-image"}),c.redirectLink&&m.jsx("a",{href:c.redirectLink,target:"_blank",rel:"noopener noreferrer",className:"popup-campaign-link","aria-label":j.getAriaLabelFromUrl(c.redirectLink,"Open in New Tab"),children:"Open in New Tab"})]})})]})};var lB=Object.freeze({__proto__:null,ImagePlaceholder:lz});let lR=e=>{var l,i;let n=null!==(i=null!==(l=null==e?void 0:e.cards)&&void 0!==l?l:null==e?void 0:e.features)&&void 0!==i?i:[];return m.jsxs("div",{className:"focus-areas-container",children:[m.jsx("h2",{className:"focus-title lbl-card-title-3",dangerouslySetInnerHTML:{__html:null==e?void 0:e.title}}
1),m.jsx("div",{className:"focus-grid",children:null==n?void 0:n.map((e,l)=>m.jsx("div",{className:"focus-card",children:m.jsxs("div",{className:"row-align",children:[m.jsx("img",{fetchPriority:"low",className:"icon",src:null==e?void 0:e.icon,alt:"icon"}),m.jsxs("div",{className:"focus-content-holder",children:[m.jsx("h3",{className:"lbl-popup-content focus-heading",dangerouslySetInnerHTML:{__html:null==e?void 0:e.title}}),m.jsx("label",{className:"lbl-txt-info-13 focus-description",dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}})]})]})},l))})]})};var lU=Object.freeze({__proto__:null,KeyFocus:lR});let lH=e=>{var l,i,n;let[t,a]=d.useState(!1),s=e=>{let l=new Date(e),i=l.getDate(),n=l.toLocaleString("default",{month:"short"}),t=l.getFullYear();return"".concat(i,"/").concat(n,"/").concat(t)},[o,r]=d.useState({}),c=e=>{r(l=>({...l,[e]:!l[e]}))};return m.jsxs("div",{className:"iap-schedule",children:[m.jsx("label",{className:"iap-intro",children:"The investor awareness programme plays a pivotal role in our overarching objective to enhance functional literacy and broaden access to investment opportunities across every region of the country. By educating individuals about various investment avenues, risk management strategies, and the potential returns associated with different financial instruments, we aim to empower people from all backgrounds to make informed financial decisions. This initiative not only aims to increase awareness about the benefits and risks of investments but also strives to bridge the knowledge gap and promote a culture of financial prudence and empowerment nationwide. By ensuring that comprehensive investor education reaches every corner of our diverse nation, we aspire to create a more inclusive and financially literate society."}),m.jsx("label",{className:"lbl-txt-info-16",children:"So, join in for the next Investor Education Programme happening in your city!"}),m.jsx("div",{className:"iap-table-container",children:m.jsxs("table",{className:"iap-table",children:[m.jsxs("thead",{children:[m.jsx("tr",{children:m.jsx("th",{className:"lbl-card-title-3 iap-title-container",colSpan:null==e?void 0:null===(l=e.iapScheduleHeaders)||void 0===l?void 0:l.length,children:e.title})}),m.jsx("tr",{children:null==e?void 0:null===(i=e.iapScheduleHeaders)||void 0===i?void 0:i.map((l,i)=>m.jsx("th",{className:(null==e?void 0:e.iapScheduleHeaders[0])===l?"lbl-txt-info-25":"lbl-txt-info-19",children:null==l?void 0:l.title},i))})]}),m.jsx("tbody",{children:null==e?void 0:null===(n=e.iapScheduleData)||void 0===n?void 0:n.map((e,l)=>m.jsxs("tr",{children:[m.jsx("td",{className:"lbl-txt-info-25",children:s(null==e?void 0:e.date)}),m.jsx("td",{className:"lbl-txt-info-19 iap-time",children:null==e?void 0:e.time}),m.jsx("td",{className:"lbl-txt-info-19",children:e.iapFormat}),m.jsx("td",{className:"lbl-txt-info-19",children:m.jsxs("div",{className:"iap-address-wrapper",children:[m.jsx("span",{className:o[l]?"iap-address-text expanded":"iap-address-text collapsed",children:null==e?void 0:e.iapAddress}),(null==e?void 0:e.iapAddress)&&e.iapAddress.length>20&&m.jsx("button",{type:"button",className:"iap-address-toggle",onClick:()=>c(l),children:o[l]?"Read Less":"Read More"})]})}),m.jsx("td",{className:"lbl-txt-info-19",children:e.city}),m.jsx("td",{className:"lbl-txt-info-19",children:e.state}),m.jsx("td",{className:"lbl-txt-info-19",children:e.contactPerson}),m.jsx("td",{className:"lbl-txt-info-19",children:e.contactDetails}),m.jsx("td",{className:"lbl-txt-info-19",children:e.remarks}),m.jsx("td",{className:"lbl-txt-info-19",children:!0==e.womenIap?"Yes":"No"}),m.jsx("td",{className:"lbl-txt-info-19",children:!0==e.openToGp?"Yes":"No"})]},l))})]})}),m.jsx("div",{className:"lbl-card-tag-9 view-all",children:m.jsx("a",{href:e.cta,"aria-label":j.getAriaLabelFromUrl(e.cta,"View All IAP Schedule"),children:"View All"})}),t&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content",showHeader:!1,isFloating:!1,title:"Confirm Redemption Cancellation",onClose:()=>{a(!1)},content:m.jsx("iframe",{src:"https://view.officeapps.live.com/op/embed.aspx?src=",title:"Viewall",className:"iap-popup",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})};var lW=Object.freeze({__proto__:null,IapSchedule:lH});let lY=e=>{let{htmlString:l}=e;return m.jsx("div",{dangerouslySetInnerHTML:{__html:l||""}})},lV=e=>{var l,i;let[n,t]=d.useState(0),a=e=>{t(n===e?null:e)};return m.jsxs("div",{className:"faq-container",children:[m.jsx("h2",{className:"faq-title lbl-card-title-3",children:e.title}),null==e?void 0:null===(l=e.faqs)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"faq-item ".concat(n===l?"active":""),onClick:()=>a(l),children:[m.jsxs("h3",{className:"faq-question lbl-card-title-2",children:[null==e?void 0:e.question,m.jsx("div",{className:"faq-icon",children:n===l?m.jsx("img",{fetchPriority:"low",src:"/assets/faq_up_arrow.svg",alt:"up arrow"}):m.jsx("img",{fetchPriority:"low",src:"/assets/faq_down_arrow.svg",alt:"arrow"})})]}),n===l&&m.jsx("div",{className:"lbl-txt-info-19 faq-answer",children:m.jsx(lY,{htmlString:e.answer})})]},l)),null==e?void 0:null===(i=e.faqs)||void 0===i?void 0:i.map((e,l)=>m.jsxs("div",{className:"faq-item-hidden",children:[m.jsx("div",{className:"faq-question-hidden lbl-card-title-2",children:null==e?void 0:e.question}),m.jsx("div",{className:"lbl-txt-info-19 faq-answer-hidden",children:m.jsx(lY,{htmlString:e.answer})})]},l))]})};var lq=Object.freeze({__proto__:null,Faqs:lV});let lG=e=>m.jsx("div",{className:"disclaimer-container",children:m.jsx("div",{dangerouslySetInnerHTML:{__html:e.disclaimer||""}})});var lK=Object.freeze({__proto__:null,Disclaimer:lG});let lJ=e=>{var l,i,n,t,a,s,o,r,c,u;return(null==e?void 0:null===(l=e.cards[0])||void 0===l?void 0:l.subt
1itle)===""&&(null==e||null===(i=e.cards[0])||void 0===i||i.description),m.jsxs(d.Fragment,{children:[(null==e?void 0:e.title)==null?" ":m.jsxs("div",{className:"cwiFullScreenContent",children:[m.jsx("h1",{className:"cwiTitle",children:null==e?void 0:e.title}),m.jsxs("div",{className:"cwiInfoWrap",children:[m.jsx("div",{className:"cwiIconWrap",children:m.jsx("img",{fetchPriority:"low",src:null==e?void 0:null===(n=e.cards[0])||void 0===n?void 0:n.icon,alt:null!==(u=null==e?void 0:null===(t=e.cards[0])||void 0===t?void 0:t.title)&&void 0!==u?u:"cards",className:"cwiIcon"})}),m.jsxs("div",{className:"cwiDescWrap",children:[(null==e?void 0:null===(a=e.cards[0])||void 0===a?void 0:a.title)!==null&&(null==e?void 0:null===(s=e.cards[0])||void 0===s?void 0:s.title)!==""&&m.jsx("p",{className:"cwiSubtitle",children:null==e?void 0:null===(o=e.cards[0])||void 0===o?void 0:o.title}),m.jsx("div",{className:"cwiDescription",dangerouslySetInnerHTML:{__html:(null==e?void 0:null===(r=e.cards[0])||void 0===r?void 0:r.description)||""}})]})]})]}),m.jsx("div",{className:"cwiHalfScreenContent",children:null==e?void 0:null===(c=e.cards)||void 0===c?void 0:c.map((e,l)=>{var i;return 0===l?null:m.jsx("div",{className:"cwiHalfScreenContentWrap",children:m.jsxs("div",{className:"cwiInfoWrap",children:[m.jsx("div",{className:"cwiIconWrap",children:m.jsx("img",{fetchPriority:"low",src:e.icon,alt:null!==(i=e.title)&&void 0!==i?i:"iconwrap",className:"cwiIcon"})}),m.jsxs("div",{className:"cwiDescWrap",children:[m.jsx("p",{className:"cwiSubtitle",children:e.title}),m.jsx("div",{className:"cwiDescription",dangerouslySetInnerHTML:{__html:e.description||""}})]})]})},l)})})]})};var lZ=Object.freeze({__proto__:null,ContentWithIcons:lJ});let l$=e=>{var l;let i=null!==(l=null==e?void 0:e.cards)&&void 0!==l?l:null==e?void 0:e.bullets;return m.jsxs("div",{children:[m.jsxs("div",{className:"ssTitleWrap",children:[m.jsx("h4",{className:"ssTitle",children:null==e?void 0:e.title}),m.jsx("p",{className:"ssTitleDesc",children:null==e?void 0:e.subTitle})]}),m.jsx("div",{className:"ssCardsContainer",children:null==i?void 0:i.map((e,l)=>{let i=1===l||4===l?"purpleCard":"pinkCard";return m.jsxs("div",{className:"ssCardWrap ".concat(i),style:{backgroundColor:e.bgColor||"white"},children:[m.jsx("div",{className:"ssCardIconWrap",children:m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"ssCardIcon"})}),m.jsx("div",{className:"ssCardDescWrap",children:e.title})]},l)})})]})};var lX=Object.freeze({__proto__:null,SuitableSection:l$});let lQ=e=>{let l=(null==e?void 0:e.features)?null==e?void 0:e.features:null==e?void 0:e.cards;return m.jsx("div",{children:m.jsxs("div",{className:"advsecContainer",children:[m.jsxs("div",{className:"advsecTitleWrap",children:[m.jsx("h2",{className:"advsecTitle",children:null==e?void 0:e.title}),m.jsx("label",{className:"lbl-txt-table-content",children:null==e?void 0:e.subTitle})]}),m.jsx("div",{className:"advsecCardContainer",children:null==l?void 0:l.map((e,l)=>m.jsxs("div",{className:"advsecCardWrap",style:{backgroundColor:e.bgColor?e.bgColor:"white"},children:[m.jsx("div",{className:"advsecCardIconWrap",children:m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"advsecCardIcon"})}),m.jsxs("div",{className:"advsecCardDescWrap",children:[m.jsx("h3",{className:"advsecCardDescTitle",children:e.title}),m.jsx(lY,{htmlString:e.description})]})]},l))}),e.disclaimer&&m.jsx("div",{className:"advsecDisclamier",dangerouslySetInnerHTML:{__html:e.disclaimer||""}})]})})};var l0=Object.freeze({__proto__:null,AdvantageSection:lQ});let l1=e=>{var l;return m.jsx("div",{children:m.jsxs("div",{className:"ftDebtFundContainer",children:[m.jsx("div",{className:"ftDebtFundTitleWrap",children:m.jsx("p",{className:"ftDebtFundTitle",children:null==e?void 0:e.title})}),m.jsx("div",{className:"ftDebtFundCardContainer",children:null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.map(e=>m.jsxs("div",{className:"ftDebtFundCardWrap",children:[m.jsx("div",{className:"ftDebtFundCardIconWrap",children:m.jsx("img",{fetchPriority:"low",src:null==e?void 0:e.icon,alt:(null==e?void 0:e.title)||j.getAltText(null==e?void 0:e.icon),className:"ftDebtFundCardIcon"})}),m.jsx("div",{className:"ftDebtFundCardDescWrap",children:m.jsx("p",{className:"ftDebtFundCardDescInfo",children:null==e?void 0:e.title})})]}))})]})})};var l2=Object.freeze({__proto__:null,FeaturesOfDebtFunds:l1});let l3=e=>{var l;return m.jsx("div",{children:m.jsxs("div",{className:"typeDebtFundContainer",children:[m.jsxs("div",{className:"typeDebtFundTitleWrap",children:[m.jsx("h2",{className:"typeDebtFundTitle",children:null==e?void 0:e.title}),m.jsx("p",{className:"typeDebtFundTitleDesc",children:null==e?void 0:e.subTitle})]}),m.jsx("div",{className:"typeDebtFundCardContainer",children:null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"typeDebtFundCardWrap",children:[m.jsxs("div",{className:"typeDebtFundCardIconWrap",children:[m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"typeDebtFundCardIcon"}),m.jsx("p",{className:"typeDebtFundCardDescTitle",children:e.title})]}),m.jsx("div",{className:"typeDebtFundCardDescWrap",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.description)||""}})]},l))})]})})};var l5=Object.freeze({__proto__:null,TypesOfDebtFunds:l3});let l9=e=>{var l;return m.jsx("div",{children:null==e?void 0:null===(l=e.faqs)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"contSecFaqContainer",children:[m.jsx("h3",{className:"contSecFaqTitle",children:e.question}),m.jsx("div",{className:"contSecFaqDesc",dangerouslySetInnerHTML:{__html:e.answer||""}})]},l))})};var l4=Object.freeze({__proto__:null,ContentSectionFaq:l9});let l6=e=>{var l,i;let n=null!==(i=null!==(l=null==e?void 0:e.cards)&&void 0!==l?l:null==e?void 0:e.features)&&void 0!==i?i:[];return m.jsxs("div",{children:[m.jsx("div",{className:"ssTitleWrap",children:m.jsx("h4",{className:"sstTitle",children:null==e?void 0:e.title})}),m.jsx("div",{className:"sstCardsContainer",children:n.map((e,l)=>m.jsxs("div",{className:"sstCardWrap",children:[m.jsx("div",{className:"sstCardIconWrap",children:m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"sstCardIcon"})}),m.jsx("div",{className:"sstCardDescWrap",children:e.title})]},l))})]})};var l7=Object.freeze({__proto__:null,SuitableSectionTwo:l6});let l8=e=>{var l;return m.jsx("div",{children:m.jsxs("div",{className:"mpsMainWrap",children:[m.jsx("div",{className:"mpsMainTitle",children:e.title}),m.jsx("div",{className:"mpsInnerBoxWrap",children:null==e?void 0:null===(l=e.points)||void 0===l?void 0:l.map((e,l)=>{var i;return m.jsxs("div",{className:"mpsInnerBox",children:[m.jsx("div",{className:"mpsInnerBoxTitle",children:e.title}),m.jsx("ul",{className:"mpsInnerBoxPoints",children:null==e?void 0:null===(i=e.points)||void 0===i?void 0:i.map((e,l)=>m.jsx("li",{children:e.point},l))})]},l)})})]})})};var ie=Object.freeze({__proto__:null,MultiplePointSection:l8});let il=e=>{var l;return m.jsx("div",{children:m.jsxs("div",{className:"esgMainWrapper",children:[m.jsxs("div",{className:"esgMainTitleWrap",children:[m.jsx("div",{className:"esgMainTitle",children:null==e?void 0:e.title}),m.jsx("div",{className:"esgMainSubTitle",children:"Each pillar captures a number of issues"})]}),null==e?void 0:null===(l=e.pillars)||void 0===l?void 0:l.map((e,l)=>{var i;return m.jsxs("div",{className:"esgPillarTableWrap",children:[m.jsxs("div",{className:"esgPillarTableTitleIcon",children:[m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"esgPillarTableIcon"}),m.jsx("p",{className:"esgPillarTableTitle",children:e.title})]}),m.jsx("div",{className:"esgPillarTableData",children:null==e?void 0:null===(i=e.categories)||void 0===i?void 0:i.map((e,l)=>m.jsxs("div",{className:"esgPillarTableTextWrap",children:[m.jsx("div",{className:"esgPillarTableText",children:e.title}),m.jsx("div",{className:"esgPillarTableText",children:e.description})]},l))})]},l)})]})})};var ii=Object.freeze({__proto__:null,EsgPillarSection:il});let it=e=>{var l;return m.jsx("div",{children:m.jsxs("div",{className:"esgMainWrapper",children:[m.jsxs("div",{className:"esgMainTitleWrap",children:[m.jsx("div",{className:"esgMainTitle",children:null==e?void 0:e.title}),m.jsx("div",{className:"esgMainSubTitle",children:null==e?void 0:e.subTitle})]}),m.jsxs("div",{className:"esgFactorsWrap",children:[m.jsx("div",{className:"esgFactorsLeftWrap",children:null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"esgFactorsCardWrap",children:[m.jsx("div",{className:"esgFactorsCardIconWrap",children:m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"esgFactorsCardIcon"})}),m.jsxs("div",{className:"esgFactorsCardDescWrap",children:[m.jsx("h5",{className:"esgFactorsCardDescTitle",children:e.title}),m.jsx("p",{className:"esgFactorsCardDescInfo",children:e.description})]})]},l))}),m.jsx("div",{className:"esgFactorsRightWrap",children:m.jsxs("div",{className:"esgFactorsDescCardWrap",children:[m.jsx("div",{className:"esgFactorsDescCardIconWrap",children:m.jsx("img",{fetchPriority:"low",src:null==e?void 0:e.mainCardImage,alt:(null==e?void 0:e.mainCardTitle)||j.getAltText(null==e?void 0:e.mainCardImage),className:"esgFactorsDescCardIcon"})}),m.jsxs("div",{className:"esgFactorsDescCardDescWrap",children:[m.jsx("h5",{className:"esgFactorsDescCardDescTitle",children:null==e?void 0:e.mainCardTitle}),m.jsx("div",{className:"esgFactorsDescPoints",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.mainCardDescription)||""}})]})]})})]})]})})};var ia=Object.freeze({__proto__:null,EsgPracticeSection:it});let is=e=>{let l=(null==e?void 0:e.categoriesHeader)||[],[i,n]=l.map(e=>e.split(" - ")[0]),[t,a]=l.map(e=>e.split(" - ")[1]),s=(null==e?void 0:e.categoriesOptions)||[],o="number"==typeof(null==e?void 0:e.categorySplitIndex)?e.categorySplitIndex:Math.ceil(s.length/2),r=s.slice(0,o),d=s.slice(o),c=768>h.useScreenWidth();return m.jsx("div",{children:m.jsxs("div",{className:"esgMainWrapper",children:[!c&&m.jsxs(m.Fragment,{children:[m.jsx("h4",{className:"esgMeasureMainTitle",children:null==e?void 0:e.title}),m.jsx("h5",{className:"esgMeasureMainSubTitle",children:null==e?void 0:e.subTitle}),m.jsxs("div",{className:"esgMeasureTableWrap",children:[m.jsxs("div",{className:"esgMeasureTableHeader",children:[m.jsx("div",{className:"esgmeasure_th hd-borderR",children:i}),m.jsx("div",{className:"esgmeasure_th",children:n})]}),m.jsxs("div",{className:"esgMeasureBody",children:[m.jsx("div",{className:"esgMeasureSideLabel esgMeasureSideLabelLeft",children:m.jsx("span",{children:t})}),m.jsxs("div",{className:"esgMeasureTableData",children:[null==r?void 0:r.map((e,l)=>m.jsx("div",{className:"esgMeasureTableOption esgMeasureTableOptionDiv
1ider",children:e},"left-".concat(l))),null==d?void 0:d.map((e,l)=>{let i=l===d.length-1;return m.jsx("div",{className:"esgMeasureTableOption ".concat(i?"":"esgMeasureTableOptionDivider"),children:e},"right-".concat(l))})]}),m.jsx("div",{className:"esgMeasureSideLabel esgMeasureSideLabelRight",children:m.jsx("span",{children:a})})]})]})]}),c&&m.jsxs(m.Fragment,{children:[m.jsx("h4",{className:"esgMeasureMainTitle",children:null==e?void 0:e.title}),m.jsx("h5",{className:"esgMeasureMainSubTitle",children:null==e?void 0:e.subTitle}),m.jsx("div",{className:"esgMeasureTableWrap",children:m.jsxs("div",{className:"esgMeasureTableWrapMob",children:[m.jsx("div",{className:"esgMeasureSideLabel esgMeasureSideLabelLeft",children:m.jsx("span",{children:t})}),m.jsxs("div",{className:"esgMeasureTableHeader",children:[m.jsxs("div",{className:"esgMeasureTableHeaderMob",children:[m.jsx("div",{className:"esgmeasure_th hd-borderR",children:i}),m.jsx("div",{className:"esgmeasure_th",children:n})]}),m.jsx("div",{className:"esgMeasureBody",children:m.jsxs("div",{className:"esgMeasureTableData",children:[null==r?void 0:r.map((e,l)=>m.jsx("div",{className:"esgMeasureTableOption",children:e},"left-".concat(l))),null==d?void 0:d.map((e,l)=>(d.length,m.jsx("div",{className:"esgMeasureTableOption",children:e},"right-".concat(l))))]})})]}),m.jsx("div",{className:"esgMeasureSideLabel esgMeasureSideLabelRight",children:m.jsx("span",{children:a})})]})})]})]})})};var io=Object.freeze({__proto__:null,EsgMeasureSection:is});let ir={pan:/^[A-Z]{3}[PCH][A-Z][0-9]{4}[A-Z]$/,mobile:/^[6789]\d{9}$/,userName:/^[A-Za-z\s]+$/,email:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,amount:/^[1-9][0-9]*$/},id=e=>e.replace(/[^0-9]/g,""),ic={DEFAULT_COMMA_SEPARATION:2},iu=["#97144D","#6F2C91","#193661","#F15A22","#ED1164","#005A4B"],iv=e=>{if(!e)return 0;let l=String(e);return(l=l.replace(/[%â¹\s]/g,""),e)?Number(l):0},im=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ic.DEFAULT_COMMA_SEPARATION;return e&&(e=String(e)),0===e?"0."+"0".repeat(l):Number(parseFloat(e).toFixed(l)).toLocaleString("en-IN",{minimumFractionDigits:l})},ih={MAX_AMOUNT:"Please enter a value less than or equal to ",MIN_AMOUNT:"Please enter a value greater than or equal to"},ip={Equity:"Equity",Debt:"Debt",Hybrid:"Hybrid",Etf:"ETFs",Index:"Index",International:"FOF - Overseas",Domestic:"FOF - Domestic",SolutionOriented:"Solution Oriented"},ix={Equity:"equity-funds",Debt:"debt-funds",Hybrid:"hybrid-balance-funds",Etf:"etfs",Index:"index-funds",International:"fof-overseas",Domestic:"fof-domestic",SolutionOriented:"solution-oriented-funds"},ig={strokeColor1:"#2874DB",strokeColor2:"#FFC40F",gradientColor2:"#FFFFFF"},ib=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ic.DEFAULT_COMMA_SEPARATION;return e&&(e=String(e)),0===e?"0."+"0".repeat(l):Number(parseFloat(e).toFixed(l)).toLocaleString("en-IN",{minimumFractionDigits:l})},ij=e=>{if(!e)return"";let l="";switch(e){case ip.Equity:l=ix.Equity;break;case ip.Debt:l=ix.Debt;break;case ip.Hybrid:l=ix.Hybrid;break;case ip.Etf:l=ix.Etf;break;case ip.Index:l=ix.Index;break;case ip.International:l=ix.International;break;case ip.Domestic:l=ix.Domestic;break;case ip.SolutionOriented:l=ix.SolutionOriented;break;default:l=""}return l},iN=async(e,l,i,n,t)=>{var a,s,o,r,d,c,u,m,p,x;if((null!==(s=await v.SessionStorage.instance.cartDpId.get())&&void 0!==s?s:"")&&i&&i.handleDropLinkDispatch&&l==h.UserJourneys.cart&&e&&(null==i?void 0:null===(a=i.droplinkData)||void 0===a?void 0:a.dropLinkMetaData));else if(e){n&&n({[null!==(p=null==e?void 0:e.schemeId)&&void 0!==p?p:""]:!0});let t={stage:"initial",dropLinkType:l,dropLinkMetaData:{...null==i?void 0:null===(o=i.droplinkData)||void 0===o?void 0:o.dropLinkMetaData,isNewFolio:!1,schemes:{schemeDetails:[{schemeId:e.schemeId,schemeCode:e.schemeCode,schemeName:e.schemeTitle,pln:e.planCode,opt:e.optionType,optionCode:e.optionName,investmentBy:(null===(r=e.planType)||void 0===r?void 0:r.toLowerCase())=="regular"?"Distributor":"Self/Direct",planType:e.planType}]}},leadMetaData:{...null==i?void 0:null===(d=i.droplinkData)||void 0===d?void 0:d.leadMetaData,paymentStatus:"false",schemeName:e.schemeTitle,noOfSchemes:1,category:e.fundType}
1,schemes:[null!==(x=null==e?void 0:e.schemeId)&&void 0!==x?x:""]},a=null===(c=h.droplinkHelpers)||void 0===c?void 0:c.dropLinkGenerateToJson(t);null===(m=h.apicommunicator)||void 0===m||null===(u=m.droplink)||void 0===u||u.generate(a,{success:t=>{var a;return iy(t,null!==(a=null==e?void 0:e.schemeId)&&void 0!==a?a:"",l,i,n)},default:l=>{var i;return i_(l,null!==(i=null==e?void 0:e.schemeId)&&void 0!==i?i:"",n)}})}},iy=async(e,l,i,n,t,a)=>{var s,o,r;if(t&&t({[l]:!1}),n.handleDropLinkDispatch){let l=null===(s=h.droplinkHelpers)||void 0===s?void 0:s.dropLinkFromJson(null==e?void 0:e.data);n.handleDropLinkDispatch({type:h.DroplinkActions.default,payload:{...l}})}i==h.UserJourneys.sip&&lc("/quickpay"),i==h.UserJourneys.cart&&(await h.droplinkHelpers.setCartDroplinkJourneyId(null!==(r=null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.dropLinkId)&&void 0!==r?r:""),await v.SessionStorage.instance.userJourneyDropLinkId.set(""))},i_=(e,l,i)=>{i&&i({[l]:!1})},iS=async(e,l,i,n)=>{var t,a,s,o,r,d,c,u,m,p,x,g,f,b;let j=await (null===(a=v.SessionStorage.instance)||void 0===a?void 0:null===(t=a.cartDpId)||void 0===t?void 0:t.get());if(l(!0),j&&e&&e.droplinkData&&e.handleDropLinkDispatch&&e.droplinkData.dropLinkMetaData){let t=null===(d=e.droplinkData)||void 0===d?void 0:null===(r=d.dropLinkMetaData)||void 0===r?void 0:null===(o=r.schemes)||void 0===o?void 0:null===(s=o.schemeDetails)||void 0===s?void 0:s[0],a=(null===(u=e.droplinkData)||void 0===u?void 0:null===(c=u.dropLinkMetaData)||void 0===c?void 0:c.cartDetails)?[...JSON.parse(JSON.stringify(null==e?void 0:null===(p=e.droplinkData)||void 0===p?void 0:null===(m=p.dropLinkMetaData)||void 0===m?void 0:m.cartDetails))]:[];if(t){let e=a.findIndex((e,l)=>e.schemeId==t.schemeId);-1!==e?a[e]={...a[e],isAddedToCart:!0,isCheckedForPayment:n}:a.push({...JSON.parse(JSON.stringify(t)),isAddedToCart:!0,isCheckedForPayment:n})}let v=[{key:"cart",value:{noOfTransaction:1,category:null==a?void 0:a.map(e=>null==e?void 0:e.fundType).filter(e=>e).join(","),type:null==a?void 0:a.map(e=>null==e?void 0:e.planType).filter(e=>e).join(",")}}],N=h.droplinkHelpers.handleDroplinkMetaData(e.droplinkData.dropLinkMetaData,[{key:"cartDetails",value:a}]),y=h.droplinkHelpers.handleDroplinkLeadMetaData(null!==(b=e.droplinkData.leadMetaData)&&void 0!==b?b:{},v),_={...null==e?void 0:e.droplinkData,dropLinkId:j,dropLinkType:h.UserJourneys.cart,dropLinkMetaData:N,leadMetaData:y},S=null===(x=h.droplinkHelpers)||void 0===x?void 0:x.dropLinkUpdateToJson(_);null===(f=h.apicommunicator)||void 0===f||null===(g=f.droplink)||void 0===g||g.update(S,{success:t=>iw(t,e,l,i,n),default:n=>ik(n,e,l,i)})}},iw=(e,l,i,n,t)=>{if(l.handleDropLinkDispatch&&n){var a,s;let o=null===(a=h.droplinkHelpers)||void 0===a?void 0:a.dropLinkFromJson(null==e?void 0:e.data);l.handleDropLinkDispatch({type:h.DroplinkActions.default,payload:{...o}}),l.handleDropLinkDispatch({type:h.DroplinkActions.incrementalId,payload:{incrementalId:null!==(s=e.data.incrementalId)&&void 0!==s?s:1}}),t?(lc("/addtocart"),setTimeout(()=>{n(!1)},1e3)):n(!1),i(!1)}},ik=(e,l,i,n)=>{i(!1),n&&n(!1)};function iC(){var e,l,i;return null!==(i=null===(l=window)||void 0===l?void 0:null===(e=l.location)||void 0===e?void 0:e.pathname)&&void 0!==i?i:""}let iI=()=>{let[e,l]=d.useState(!1);return d.useEffect(()=>{let e=()=>{l(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e},iT=async(e,l)=>{let i=lg.AGGREGATOR_URL+"/droplink-services/v2/droplink/create-lead",n=await lx(),t=await lv(i,n,JSON.stringify(e));(null==t?void 0:t.status)==="success"&&l.success(t)},iM=e=>{let{thankyouMessage:l,image:i}=e;return m.jsx("div",{className:"success-popup",children:m.jsxs("div",{className:"popup-inner",children:[m.jsx(lY,{htmlString:l}),m.jsx("img",{fetchPriority:"low",src:i,alt:"Success"})]})})},iD=async(e,l)=>{let i=lg.AGGREGATOR_URL+"/droplink-services/v2/droplink/quick-call",n=await lx(),t=await lv(i,n,JSON.stringify(l));(null==t?void 0:t.status)==="success"?e.success(t):e.default(t)},iP=e=>{let{htmlString:l}=e;return m.jsx("div",{dangerouslySetInnerHTML:{__html:l||""}})},iA=e=>{let{thankyouMessage1:l,thankyouMessage2:i,image:n}=e;return m.jsx("div",{className:"success-popup",children:m.jsxs("div",{className:"popup-inner",children:[m.jsx("label",{className:"lbl-popup-heading-5",children:"Thank y
1ou "}),m.jsx("label",{className:"lbl-text-thankyou",children:m.jsx(iP,{htmlString:l})}),m.jsx("label",{className:"lbl-text-thankyou",children:m.jsx(iP,{htmlString:i})}),m.jsx("img",{fetchPriority:"low",src:"/assets/authentication_sucess.svg",alt:"Success"})]})})},iL=()=>m.jsxs("div",{className:"readmore-popup",children:["Any use of this information is subject to Axis Asset Management Company Limited's privacy policy available ",m.jsx("a",{style:{color:"#97144D"},href:"/term-of-use/privacy-policy",target:"_blank","aria-label":"Privacy Policy",children:"Privacy Policy"})," and ",m.jsx("a",{style:{color:"#97144D"},href:"/term-of-use",target:"_blank","aria-label":"Terms and Conditions",children:"Terms and Conditions"}),". By clicking on Accept & Submit, I give my consent to Axis Asset Management Company Limited and its agents to contact me over phone, email or any other mode to address my investor awareness related queries irrespective of my blocking preferences with the National Customer Preference Registry. Further, by clicking on Accept & Submit, I give my consent to ",m.jsx("a",{style:{color:"#97144D"},href:"/whatsapp-terms-and-conditions",target:"_blank","aria-label":"WhatsApp Terms and Conditions",children:"WhatsApp Terms and Conditions"}),"."]});(t=o||(o={})).NAME="name",t.MOBILE="mobile",t.EMAIL="email",t.PAN="pan",t.AMOUNT="amount";let iF=e=>{var l,i,n,t,a,s,r,c,x,g,f,b,j,y,_,S;let w=null==e?void 0:e.nfo,k=null==e?void 0:e.iap,[C,I]=d.useState({name:"",mobile:"",email:"",pan:"",amount:""}),[T,M]=d.useState({name:"",mobile:"",email:"",pan:"",amount:""}
1),[D,P]=d.useState(!1),[A,L]=d.useState(!1),[F,E]=d.useState(!0),{droplinkData:O,handleDropLinkDispatch:z}=d.useContext(h.DroplinkContext),B=h.useLoginContextData(),R=h.useInvestNowAction({droplink:{droplinkData:O,handleDropLinkDispatch:z}}),U=B.isUserLoggedIn()||B.isUserSoftLoggedIn()?"post login journey":"pre login journey",H=(e,l)=>e.split("").filter(e=>l.test(e)).join(""),W=h.useRootContextData(),[Y,V]=d.useState(!1),[q,G]=d.useState(!1),[K,J]=d.useState(!1),Z=768>=h.useScreenWidth();function $(e){let{disclaimer:l}=e,[i,n]=d.useState(!1);return m.jsxs(m.Fragment,{children:[m.jsx("label",{className:"horizontal-lead-form-new-index-label",onClick:e=>{let l=e.target;"A"===l.tagName&&"Read more"===l.textContent&&(e.preventDefault(),n(!0))},dangerouslySetInnerHTML:{__html:l}}),i&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content dialog-popup-success",isFloating:!1,onClose:()=>n(!1),content:m.jsx(iL,{})})]})}let X=(e,l)=>{let i=(e,l)=>e.test(l);switch(e){case o.NAME:(i(ir.userName,l)||""===l)&&(I(e=>({...e,name:l})),M(e=>({...e,name:""}))),es(e,l);break;case o.MOBILE:if(l.length<=10){let i=id(l)||"";I(e=>({...e,mobile:i})),M(e=>({...e,mobile:""})),es(e,i)}break;case o.EMAIL:let n=H(l,/[a-zA-Z0-9._@+-]/);I(e=>({...e,email:n})),M(e=>({...e,email:""})),es(e,n);break;case o.PAN:let t=H(l.toUpperCase(),/[A-Z0-9]/);l.length<=10&&(I(e=>({...e,pan:t.toUpperCase()})),M(e=>({...e,pan:""})),es(e,t));break;case o.AMOUNT:(i(ir.amount,l)||""===l)&&(I(e=>({...e,amount:l})),M(e=>({...e,amount:""}))),es(e,l);break;default:return}},Q=()=>{var e,l,i;let n={page_section:null!==(i=iC())&&void 0!==i?i:"",cta_name:"invest_now",flow_name:U};v.GoogleAnalytics.recordEvent(null===(l=v.GoogleAnalyticEvents)||void 0===l?void 0:null===(e=l.SchemeDetails)||void 0===e?void 0:e.LeadFormSubmit(n))},ee=()=>{var l;Q();let i={schemeId:null==e?void 0:e.schemeId,schemeCode:null==e?void 0:e.schemeCode,schemeTitle:null==e?void 0:e.title,amount:null==C?void 0:null===(l=C.amount)||void 0===l?void 0:l.toString()};R.getGenerateDropLink({scheme:i,dropLinkType:h.UserJourneys.sip})},el=()=>{if(B.isPANUserLoggedIn())I({name:"",mobile:"",email:"",pan:""});else{var e;null==B||null===(e=B.triggerLogin)||void 0===e||e.call(B,!0,{successLoginCB:()=>{I({name:"",mobile:"",email:"",pan:""})},prefillUserData:C})}};d.useEffect(()=>{V(et(C))},[C]);let ei=()=>{var e;iD({default:e=>{},success:()=>{}},{category:"",preLoginUser:!1,screenId:new URL(window.location.href).pathname.replace(/^\/+/,""),source:"web",screenStepName:"",campaign:"",name:null==C?void 0:C.name,mobileNumber:null==C?void 0:C.mobile,emailId:null==C?void 0:C.email,pan:null!==(e=null==C?void 0:C.pan)&&void 0!==e?e:"",disableLeadCreation:!1})},en=l=>{let i={name:ir.userName,mobile:ir.mobile,email:ir.email,pan:ir.pan,amount:ir.amount},n={};for(let[o,r]of Object.entries(l)){var t,a,s;if("amount"!==o||r||(null==e?void 0:e.inputs.length)!=4){if(r){if("name"===o&&(r.length<3||r.length>100))n[o]="Username must be between 3 to 100 characters";else if("email"===o){let[e]=r.split("@");e.length<2?n[o]="".concat(ea(o)," must have at least 2 characters before '@'"):e.length>64?n[o]="".concat(ea(o)," must be 64 characters or less"):(null==i?void 0:null===(a=i[o])||void 0===a?void 0:a.test(r))||(n[o]="".concat(ea(o)," is not valid"))}else"amount"===o||""==r||(null==i?void 0:null===(t=i[o])||void 0===t?void 0:t.test(r))?"mobile"!==o||(null==i?void 0:null===(s=i[o])||void 0===s?void 0:s.test(r))||(n[o]="Please enter a valid Mobile Number"):n[o]="".concat(ea(o)," is not valid")}else n[o]="".concat(ea(o)," is required")}}return!(0!=Object.values(n).length&&Object.values(n).every(e=>""!=e))||(M(e=>({...e,...n})),!1)},et=l=>{let i={name:ir.userName,mobile:ir.mobile,email:ir.email,pan:ir.pan,amount:ir.amount},n={};for(let[o,r]of Object.entries(l)){var t,a,s;if("amount"!==o||r||(null==e?void 0:e.inputs.length)!=4){if(r){if("name"===o&&(r.length<3||r.length>100))n[o]="Username must be between 3 to 100 characters";else if("email"===o){let[e]=r.split("@");e.length<2?n[o]="".concat(ea(o)," must have at least 2 characters before '@'"):e.length>64?n[o]="".concat(ea(o)," must be 64 characters or less"):(null==i?void 0:null===(a=i[o])||void 0===a?void 0:a.test(r))||(n[o]="".concat(ea(o)," is not val
1id"))}else"amount"===o||""==r||(null==i?void 0:null===(t=i[o])||void 0===t?void 0:t.test(r))?"mobile"!==o||(null==i?void 0:null===(s=i[o])||void 0===s?void 0:s.test(r))||(n[o]="Please enter a valid Mobile Number"):n[o]="".concat(ea(o)," is not valid")}else n[o]="".concat(ea(o)," is required")}}return 0===Object.keys(n).length},ea=e=>({name:"Username",mobile:"Mobile",email:"Email",pan:"Pan",amount:"Amount"})[e],es=(e,l)=>{let i="";switch(e){case o.NAME:l&&(l.length<3||!ir.userName.test(l))&&(i="Username must be between 3 to 100 characters");break;case o.MOBILE:l&&(10===l.length&&!ir.mobile.test(l)||l.length<10)&&(i="Please enter a valid Mobile Number");break;case o.EMAIL:l&&!ir.email.test(l)&&(i="Please enter a valid Email ID");break;case o.PAN:l&&(10===l.length&&!ir.pan.test(l)||l.length<10)&&(i="Please enter a correct PAN");break;case o.AMOUNT:l&&!ir.amount.test(l)&&(i="Amount is not valid")}M(l=>({...l,[e]:i}))};return m.jsxs("form",{onSubmit:l=>{var i,n,t,a,s;if(l.preventDefault(),!en(C))return;let o={emailId:C.email,pan:C.pan,name:C.name,mobileNumber:C.mobile,category:null!==(t=e.nfoType)&&void 0!==t?t:"",leadType:w?"nfo-lead":"quick-call",preLoginUser:B.isUserLoggedIn(),schemes:null!==(a=e.bannerTitle)&&void 0!==a?a:"",screenId:null===(n=window)||void 0===n?void 0:null===(i=n.location)||void 0===i?void 0:i.href,screenStepName:null!==(s=e.nfoType)&&void 0!==s?s:"",source:"web",campaign:"",amount:C.amount},r=(e,l,i)=>{if("NonIap"!==i&&"Iap"!==i&&iT(e,{default:()=>{},success:l}),"Iap"===i){var n;iD({default:e=>{},success:()=>{}},{category:"",preLoginUser:!1,screenId:new URL(window.location.href).pathname.replace(/^\/+/,""),source:"web",screenStepName:"",campaign:"",name:null==C?void 0:C.name,mobileNumber:null==C?void 0:C.mobile,emailId:null==C?void 0:C.email,pan:null!==(n=null==C?void 0:C.pan)&&void 0!==n?n:"",disableLeadCreation:!1}),"Iap"===i&&(G(!0),I({name:"",mobile:"",email:"",pan:"",amount:""}))}};k?r(o,e=>{J(!1),P(!0),setTimeout(()=>P(!0),0),I({name:"",mobile:"",email:"",pan:""})},"Iap"):w?r(o,e=>{J(!1),ee(),I({name:"",mobile:"",email:"",pan:"",amount:""})},"Nfo"):r(o,e=>{el()},"NonIap")},className:"horizontal-lead-form",children:[m.jsx("div",{className:"horizontal-lead-form-container",children:m.jsxs("div",{className:"horizontal-lead-form-section",children:[m.jsxs("div",{className:"horizontal-lead-form-title-holder",onClick:()=>{window.innerWidth<=768&&E(e=>!e)},children:[m.jsx("label",{className:"lbl-card-title",children:e.title}),m.jsx("img",{fetchPriority:"low",src:F?v.pathChanger("arrow_back_up.svg"):v.pathChanger("arrow_back_down.svg"),alt:"arrow",className:"lead-form-arrow"})]}),F&&m.jsxs("div",{className:"horizontal-lead-form-content-holder-schedule",children:[m.jsxs("div",{className:"row",children:[null==e?void 0:null===(l=e.inputs)||void 0===l?void 0:l.map(e=>"mobile"===e.id?m.jsx(N.MOutlinedTextBox,{className:"moutlined-txtbx-default",disabled:!1,inputMode:"numeric",isError:!!T[e.id],errorMessage:T[e.id],value:C[e.id]||"",label:e.placeholder,onChange:l=>X(e.id,l),type:"mobile"===e.id?"tel":e.type},e.id):m.jsx(N.MOutlinedTextBox,{className:"moutlined-txtbx-default",disabled:!1,isError:!!T[e.id],errorMessage:T[e.id],value:C[e.id]||"",label:e.placeholder,onChange:l=>X(e.id,l),type:"mobile"===e.id?"tel":e.type},e.id)),Z&&m.jsxs("div",{className:"horizontal-lead-consent-disclaimer",children:[!k&&m.jsx("div",{className:"horizontal-lead-form-disclaimer-consent",children:m.jsx("label",{className:"consent-checkbox",children:m.jsx("input",{type:"checkbox",checked:K,onChange:e=>J(e.target.checked)})})}),m.jsx($,{disclaimer:(null==e?void 0:e.disclaimer)||""})]}),!w&&k?m.jsx("div",{className:"horizontal-lead-form-invest-action",children:m.jsx("button",{style:{marginTop:"0px"},id:"horizontal-lead-form-invest-now",type:"submit",className:"btn-primary btn-add",children:"Accept & Submit Now"})}):"",!k&&m.jsx("div",{className:"horizontal-lead-form-invest-action horizontal-form-invest-now",children:m.jsx(u.InvestNowButton,{onClick:()=>{B.isPANUserLoggedIn()&&ei()},buttonText:"INVEST NOW",type:"campaign-button",disabled:!K,isValidated:Y&&K,className:"btn-primary btn-add",uniqueId:null==W?void 0:null===(a=W.globalConfig)||void 0===a?void 0:null===(t=a.defaultScheme)||void 0===t?void 0:null===(n=t.trendingScheme)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i.schemeId,scheme:(null==W?void 0:null===(x=W.globalConfig)||void 0===x?void 0:null===(c=x.defaultScheme)||void 0===c?void 0:null===(r=c.trendingScheme)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:s.schemeId)?null==W?void 0:null===(b=W.globalConfig)||void 0===b?void 0:null===(f=b.defaultScheme)||void 0===f?void 0:null===(g=f.trendingScheme)||void 0===g?void 0:g[0]:null===(y=W.globalState.HOME_PAGE)||void 0===y?void 0:null===(j=y.trending_schemes)||void 0===j?void 0:j[0]})})]}),w?m.jsx("div",{className:"horizontal-lead-form-invest-nfo-action",children:m.jsx("button",{id:"horizontal-lead-form-invest-now",type:"submit",className:"btn-primary btn-add",children:null==e?void 0:e.buttonLabel})}):"",!Z&&m.jsxs("div",{className:"horizontal-lead-consent-disclaimer",children:[!k&&m.jsx("div",{className:"horizontal-lead-form-disclaimer-consent",children:m.jsx("label",{className:"consent-checkbox",children:m.jsx("input",{type:"checkbox",checked:K,onChange:e=>J(e.target.checked)})})}),m.jsx($,{disclaimer:(null==e?void 0:e.disclaimer)||""})]})]})]})}),A&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content read-more-popup",showHeader:!1,isFloating:!1,onClose:()=>L(!1),content:m.jsx("div",{className:"read-more-details",children:"Any use of this information is subject to Axis Asset Management Company Limited's privacy policy available Privacy Policy and Terms and Conditions. By clicking on Accept & Submit, I give my consent to Axis Asset Management Company Limited and its agents to contact me over phone, email or any other mode to address my investment related queries and/or receive communication pertaining to transactions/ non-commercial transactions/ promotional and other communication/ material irrespective of my blocking preferences with the National Customer Preference Registry. Any use of this information is subject to Axis Asset Management Company Limitedâs. Further, by clicking on Accept & Submit, I give my consent to WhatsApp Terms and Conditions."})}),D&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content",isFloating:!0,onClose:()=>{J(!1),P(!1),I({name:"",mobile:"",email:"",pan:""})},content:m.jsx(iM,{thankyouMessage:null==e?void 0:null===(_=e.thankyouDetails)||void 0===_?void 0:_.thankyouMessage,image:null==e?void 0:null===(S=e.thankyouDetails)||void 0===S?void 0:S.image})}),q&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content dialog-popup-success",isFloating:!1,onClose:()=>G(!1),content:m.jsx(iA,{thankyouMessage1:"We have received your request successfully",thankyouMessage2:""})})]})};var iE=Object.freeze({__proto__:null,HorizontalLeadForm:iF});let iO=e=>m.jsxs("div",{className:"shuruaat-sip",children:[m.jsx("h1",{className:"sip-title lbl-card-title-3",children:null==e?void 0:e.title}),m.jsx("p",{className:"lbl-content-heading-3 sip-subtitle",children:null==e?void 0:e.subTitle}),m.jsx("iframe",{className:"sip-video-wrapper",src:null==e?void 0:e.videoUrl,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),m.jsx("div",{className:"sip-disclaimer-text ",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.disclaimer)||""}})]});var iz=Object.freeze({__proto__:null,ShuruaatSIP:iO});let iB=e=>{var l,i,n,t,a,s,o,r,c,u,p,x,g;
1let[f,b]=d.useState(""),N=h.useLoginContextData();d.useEffect(()=>{b("article")},[]);let y=e=>{lc("".concat(v.GLOBAL_CONSTANT.ROUTE_PATHS.KNOWLEDGE_CENTER,"/").concat(f,"s/")+e)},_=()=>{var l,i,n,t,a,s,o,r,d,c,u,m,h,p,x,g,f,b;if((null==e?void 0:null===(n=e.cards)||void 0===n?void 0:n.articleId)&&y(null==e?void 0:null===(t=e.cards)||void 0===t?void 0:t.articleId),(null==e?void 0:null===(a=e.cards)||void 0===a?void 0:a.path)&&lc(null==e?void 0:null===(s=e.cards)||void 0===s?void 0:s.path),null==e?void 0:e.articleId){let l={cta_name:"article",article_name:null!==(d=null==e?void 0:null===(o=e.cards)||void 0===o?void 0:o.title)&&void 0!==d?d:"NA",page_section:null!==(c=iC())&&void 0!==c?c:"",page_sub_section:"money_iq",category:"article_library",flow_name:(null==N?void 0:N.isUserLoggedIn())?"post login journey":"pre login journey",user_type:null!==(u=null==N?void 0:N.loggedInUserDetails.user_type)&&void 0!==u?u:"NA",label:null!==(m=null==e?void 0:null===(r=e.cards)||void 0===r?void 0:r.title)&&void 0!==m?m:"NA"};v.GoogleAnalytics.recordEvent(v.GoogleAnalyticEvents.KnowledgeCentre.ArticleClick(l))}if((null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.articleId)||(null==e?void 0:null===(i=e.cards)||void 0===i?void 0:i.path)){let l={cta_name:"article",article_name:null!==(x=null==e?void 0:null===(h=e.cards)||void 0===h?void 0:h.title)&&void 0!==x?x:"NA",page_section:null!==(g=iC())&&void 0!==g?g:"",page_sub_section:"money_iq",category:"article_library",flow_name:N.isUserLoggedIn()?"post login journey":"pre login journey",user_type:null!==(f=N.loggedInUserDetails.user_type)&&void 0!==f?f:"NA",label:null!==(b=null==e?void 0:null===(p=e.cards)||void 0===p?void 0:p.title)&&void 0!==b?b:"NA"};v.GoogleAnalytics.recordEvent(v.GoogleAnalyticEvents.KnowledgeCentre.ArticleClick(l))}},S=()=>{_()};return m.jsxs("div",{className:"money-iq-cardss",onClick:()=>{_()},children:[m.jsxs("div",{className:"card-image-container-cp",children:[m.jsx("img",{fetchPriority:"low",src:null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.image,alt:"cardimage"}),m.jsxs("div",{className:"view-like-container-cp",children:[(null==e?void 0:null===(i=e.cards)||void 0===i?void 0:i.views)?m.jsxs("div",{className:"view-container-cp",children:[m.jsx("img",{fetchPriority:"low",src:v.pathChanger("outline-eye.svg"),alt:"view"}),m.jsx("label",{htmlFor:"",className:"lbl-txt-info-28",children:null==e?void 0:null===(n=e.cards)||void 0===n?void 0:n.views})]}):"",(null==e?void 0:null===(t=e.cards)||void 0===t?void 0:t.likes)?m.jsxs("div",{className:"like-container-cp",children:[m.jsx("img",{fetchPriority:"low",src:v.pathChanger("outline-like.svg"),alt:"like"}),m.jsx("label",{htmlFor:"",className:"lbl-txt-info-28",children:null==e?void 0:null===(a=e.cards)||void 0===a?void 0:a.likes})]}):""]})]}),m.jsxs("div",{className:"money-iq-card-content-section",children:[m.jsx("h3",{className:"lbl-info4 title",children:null==e?void 0:null===(s=e.cards)||void 0===s?void 0:s.title}),m.jsx("div",{className:"desc-holder",onClick:e=>{e.stopPropagation(),S()},children:m.jsx("div",{className:"desc custom_desc",dangerouslySetInnerHTML:{__html:(null==e?void 0:null===(o=e.cards)||void 0===o?void 0:o.description)?e.cards.description.substring(0,145)+" ...":""}})}),"money_iq_section_two"!==e.componentId&&m.jsx("div",{children:(null==e?void 0:null===(r=e.cards)||void 0===r?void 0:r.articleId)&&m.jsx("a",{className:"learn-more-holder",href:"/mutual-fund-knowledge-centre/articles/".concat(null==e?void 0:null===(c=e.cards)||void 0===c?void 0:c.articleId),"aria-label":j.getAriaLabelFromUrl("/mutual-fund-knowledge-centre/articles/".concat(null==e?void 0:null===(u=e.cards)||void 0===u?void 0:u.articleId),"Learn More about this article"),onClick:e=>e.stopPropagation(),children:"Learn More"})}),m.jsxs("div",{className:"bottom-holder",children:[m.jsx("label",{className:"lbl-fs-10 author-name",children:null==e?void 0:null===(p=e.cards)||void 0===p?void 0:p.fundType}),(null==e?void 0:null===(x=e.cards)||void 0===x?void 0:x.date)?m.jsxs("label",{className:"lbl-fs-10 date",children:[" | ",new Date(null==e?void 0:null===(g=e.cards)||void 0===g?void 0:g.date).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"})]}):""]})]})]})},iR=e=>{var l,i,n,t,a;let[s,o]=d.useState(0),r=null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.length,c=768>h.useScreenWidth(),u=c?r:3,[v,p]=d.useState(0),[x,g]=d.useState(0);null==e||null===(i=e.cards)||void 0===i||i.length;let f=()=>{var l;s+u<(null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.length)&&o(s+u)},b=()=>{s-u>=0&&o(s-u)},j=()=>{var l;s<(null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.length)-1&&o(s+1)},N=()=>{s>0&&o(s-1)};return m.jsx("div",{className:"money-iq-section",children:m.jsxs("div",{className:"money-iq-section-content",children:[m.jsxs("div",{className:"money-iq-header-holder",children:[m.jsx("h2",{className:"lbl-card-title-21",children:null!==(a=null==e?void 0:e.title)&&void 0!==a?a:"Related Articles"}),m.jsxs("div",{className:"img-container",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===s?"dimmed":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:b}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(s+3>=(null==e?void 0:null===(n=e.cards)||void 0===n?void 0:n.length)?"dimmed":""),src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:f})]}),m.jsxs("div",{className:"img-container-mobile",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===s?"dimmed":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:N}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(s>=(null==e?void 0:null===(t=e.cards)||void 0===t?void 0:t.length)-1?"dimmed":""),src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:j})]})]}),m.jsx("div",{className:"money-iq-card-holder",onTouchStart:e=>{c&&p(e.changedTouches[0].clientX)},onTouchMove:e=>{c&&g(e.changedTouches[0].clientX)},onTouchEnd:()=>
1{if(!c)return;let e=v-x;e>50?c?j():f():e<-50&&(c?N():b())},children:e.cards.slice(s,s+u).map((l,i)=>m.jsx(iB,{cards:l,componentId:null==e?void 0:e.componentId},i))})]})})};var iU=Object.freeze({__proto__:null,MoneyIQSection:iR});let iH={inv_amt:"inv_amt",exp_rpa:"exp_rpa",tenure_yrs:"tenure_yrs",inf:"inf",invested_amount:"invested_amount",estimated_returns:"estimated_returns",output_one:"output_one",output_two:"output_two",output_three:"output_three",output_four:"output_four"},iW={goal:{calculatorId:"1",fieldMapping:iH,chartData:{primaryField:"output_three",secondaryField:"output_four",labels:{primary:"Target Amount",secondary:"Invested Amount"}}},invest:{calculatorId:"2",fieldMapping:{...iH},chartData:{primaryField:"output_two",secondaryField:"output_three",labels:{primary:"Estimated Returns",secondary:"Invested Amount"}}}},iY=e=>{var l,i,n,t,a,s,o,r,c,v,p,x,g,f,b;let j=iI(),N=d.useRef({}),[S,w]=d.useState({}),[k,C]=d.useState("goal"),[I,T]=d.useState(0),[M,D]=d.useState({seriesName:"SIP Series",data:[{name:"Target Amount",value:0,sliceSettings:{fill:"#f0f0f0",stroke:"#f0f0f0"}},{name:"Invested Amount",value:0,sliceSettings:{fill:"#3BB865",stroke:"#3BB865"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:70,fontSize:12,maxWidth:500,enableAnimation:!0,enableLegend:!1,enableSliceClick:!1}),P=h.useRootContextData(),A=d.useMemo(()=>iW[k],[k]),L=d.useMemo(()=>"goal"===k?null==e?void 0:e.calculatorDetailsOne:"invest"===k?null==e?void 0:e.calculatorDetailsTwo:null,[k,e]);d.useEffect(()=>{L&&z()},[L]);let F=e=>{let l=RegExp("\\b(".concat("function|if|else|return|var|let|const|for|while|forEach|map|script|eval|constructor|prototype|toString|valueOf|alert|prompt|confirm|console|delete|window|document",")\\b"),"gi");return e.replace(l,"")},E=e=>{let l=F(e);return Function("values","return ".concat(l,";"))},O=e=>{var l;N.current={},null==e||null===(l=e.outputs)||void 0===l||l.forEach(e=>{N.current[e.id]=E(e.formula)})},z=()=>{var e;if(!L)return;O(L);let l={};if(null==L||null===(e=L.inputs)||void 0===e||e.forEach(e=>{l[e.id]=e.defaultValue||0}),[iH.output_one,iH.output_two,iH.output_three,iH.output_four].forEach(e=>{l[e]=B(e,l)}),"invest"===k){let e=l[iH.output_three]||0,i=l[iH.output_one]||0;l[iH.output_two]=Math.abs(e-i)}U(l),w(l)},B=(e,l)=>{try{var i,n;let t=null===(i=(n=N.current)[e])||void 0===i?void 0:i.call(n,l);return isNaN(t)?0:t}catch(e){return 0}},R=(e,l)=>{let i=parseInt(l,10),n={...S,[e]:isNaN(i)?0:i};if([iH.output_one,iH.output_two,iH.output_three,iH.output_four].forEach(e=>{n[e]=B(e,n)}),"invest"===k){let e=n[iH.output_three]||0,l=n[iH.output_one]||0;n[iH.output_two]=Math.abs(e-l)}U(n),w(n)},U=e=>{if(!A)return;let{chartData:l}=A,i=0,n=0;"formula"in l&&l.formula?[i,n]=l.formula(e):"secondaryField"in l&&l.secondaryField&&(i=e[l.primaryField]||0,n=e[l.secondaryField]||0),isNaN(i)||isNaN(n)||D(e=>({...e,data:[{name:l.labels.primary,value:i,sliceSettings:{fill:"#f0f0f0",stroke:"#f0f0f0"}},{name:l.labels.secondary,value:n,sliceSettings:{fill:"#3BB865",stroke:"#3BB865"}}]}))},H=e=>{C(e)},W=(e,l,i)=>{let n="tenure_yrs"===e.id?Math.floor(l[null==e?void 0:e.id]||0):"no_of_years_of_withdrawal"===e.id?l[null==e?void 0:e.id]||0:im(l[null==e?void 0:e.id],1)||0,t=e.sufix?" ".concat(e.sufix):"";return"".concat("").concat(n).concat(t)};return m.jsx("div",{className:"iap-sip-calculator",children:m.jsxs("div",{className:"iap-sip-calculator-content-holder",children:[m.jsxs("div",{className:"iap-sip-calculator-header-holder",children:[m.jsx("h2",{className:"lbl-card-title-3",children:"goal"===k?null==e?void 0:e.calculatorOneTitle:null==e?void 0:e.calculatorTwoTitle}),(null==e?void 0:e.calculatorOneSubTitle)&&m.jsx("div",{className:"lbl-primary-txt-content3",dangerouslySetInnerHTML:{__html:"goal"===k?null==e?void 0:e.calculatorOneSubTitle:null==e?void 0:e.calculatorTwoSubTitle}}),m.jsxs("div",{className:"iap-sip-calculator-btn-holder",children:[m.jsx("button",{className:"btn ".concat("goal"===k?"btn-primary":"btn-outline-primary"),onClick:()=>H("goal"),children:"I Know My Goal"}),m.jsx("button",{className:"btn ".concat("invest"===k?"btn-primary":"btn-outline-primary"),onClick:()=>H("invest"),children:"I Want to Invest"})]})]}),m.jsxs("div",{className:"sip-calculator-main",children:[m.jsxs("div",{className:"sip-calculator-container",children:[m.jsx("div",{className:"sip-calculator-card1",children:m.jsx("div",{className:"sip-calculator-input-section",children:null==L?void 0:null===(l=L.inputs)||void 0===l?void 0:l.filter(e=>"Inflation Rate per Annum (%)"!==e.fieldName).map(l=>{var i,n,t,a,s;let o;return m.jsx("div",{className:"sip-calculator-input-group",children:m.jsxs("div",{className:"sip-calculator-input-wrapper",children:[m.jsxs("div",{className:"sip-calculator-label-wrapper",children:[m.jsx("label",{className:"sip-calculator-label",children:l.fieldName}),m.jsx("div",{className:"sip-calculator-input-container",children:m.jsx("input",{id:l.id,className:"sip-calculator-input",type:"text",min:l.minValue,max:l.maxValue,defaultValue:null!==(i=l.defaultValue)&&void 0!==i?i:"",value:((""===(o=null!==(t=null!==(n=null==S?void 0:S[l.id])&&void 0!==n?n:l.defaultValue)&&void 0!==t?t:"0")||null==o)&&(o=null!==(a=l.defaultValue)&&void 0!==a?a:"0"),"loan_intt"===l.id||"portfolio_beta"===l.id||"inv_amt"===l.id)?"".concat(l.prefix||"").concat(o," ").concat(l.sufix||"").trim():"".concat(l.prefix||"").concat(null==(s=o)||isNaN(s)?"":new Intl.NumberFormat("en-IN",{maximumFractionDigits:2}).format(s)," ").concat(l.sufix||"").trim(),onChange:e=>{let i=e.target.value;if(l.prefix&&(i=i.replace(l.prefix,"")),l.sufix&&(i=i.replace(" ".concat(l.sufix),"").trim()),"loan_intt"===l.id||"portfolio_beta"===l.id){((i=i.replace(/[^0-9.]/g,"")).match(/\./g)||[]).length>1&&(i=i.slice(0,i.lastIndexOf(".")));let[e,l]=i.split(".");l&&l.length>2&&(i="".concat(e,".").concat(l.slice(0,2)))}else i=i.replace(/[^0-9]/g,"");+i<l.minValue&&P.triggerToast({message:ih.MIN_AMOUNT+" "+l.minValue,toastType:"error"}),""==i?(i="0",P.triggerToast({message:ih.MIN_AMOUNT+" "+l.minValue,toastType:"error"})):i=i.replace(/^0+(\d)/,"$1"),+i>l.maxValue&&(i=l.maxValue.toString(),P.triggerToast({message:ih.MAX_AMOUNT+" "+l.maxValue,toastType:"error"}),T(e=>e+1)),R(l.id,i),setTimeout(()=>{let i=e.target,n=i.value.length;l.sufix&&(n-=l.sufix.length+1),i.setSelectionRange(n,n)},0)},onBlur:e=>{let i=e.target.value.trim();if(!i){R(l.id,"");return}l.sufix&&(i=i.replace(" ".concat(l.sufix),"").trim()),(i=i.replace(/[^0-9.]/g,"").replace(/^0+/,"")).endsWith(".")&&(i=i.slice(0,-1));let n=i;+i<l.minValue?(n=l.minValue.toString(),P.triggerToast({message:ih.MIN_AMOUNT+" "+l.minValue,toastType:"error"}),T(e=>e+1)):+i>l.maxValue&&(n=l.maxValue.toString(),P.triggerToast({message:ih.MAX_AMOUNT+" "+l.maxValue,toastType:"error"}),T(e=>e+1)),R(l.id,n)}})})]}),m.jsxs("div",{className:"sip-calculator-range-slider-wrapper",children:[m.jsx(y.RangeSlider,{className:"mf-range-slider-default range-slider",min:l.minValue,max:l.maxValue,value:(null==S?void 0:S[l.id])||"",steps:1,trackStep:10,onChange:e=>R(l.id,e),id:iH.invested_amount+e.calculatorType}),m.jsxs("div",{className:"slider-input-range-label",children:[m.jsx("span",{className:"lbl-txt-content",children:(l.prefix?l.prefix:"")+l.minValue+(l.sufix?l.suf
1ix:"")}),m.jsx("span",{className:"lbl-txt-content",children:(l.prefix?l.prefix:"")+l.maxValue+(l.sufix?l.sufix:"")})]})]})]})},l.id)})})}),m.jsxs("div",{className:"sip-calculator-card2",children:["goal"===k&&L.outputs.filter(e=>"output_two"===e.id).map((e,l)=>{let i=W(e,S),[n,t]=e.fieldName.split("B9"),a=n.replace(/â¹\s*/g,"");return m.jsx("div",{className:"lumsum-card-hrph",style:{textAlign:"center",marginBottom:j?"0px":"50px"},children:m.jsxs("span",{className:"lbl-card-title-new",children:[a,m.jsxs("span",{className:"highlight-value",children:["â¹",i]}),t]})},e.id||l)}),"invest"===k&&L.outputs.filter(e=>"output_one"===e.id).map((e,l)=>{var i,n,t;let a=new Intl.NumberFormat("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2}),s=a.format(null!==(i=S.inv_amt)&&void 0!==i?i:0),o=null!==(n=S.tenure_yrs)&&void 0!==n?n:0,r=a.format(null!==(t=S.output_one)&&void 0!==t?t:0),c=e.fieldName.replace(/â¹\s*/g,"").split(/(B2|B4|B9)/g),u=e=>"B2"===e?m.jsxs("span",{className:"highlight-value",children:["â¹",s]},"b2"):"B4"===e?m.jsx("span",{className:"highlight-value",children:o},"b4"):"B9"===e?m.jsxs("span",{className:"highlight-value",children:["â¹",r]},"b9"):e;return m.jsx("div",{className:"lumsum-card-hrph",style:{textAlign:"center",marginBottom:j?"0px":"50px"},children:m.jsx("span",{className:"lbl-card-title-new",children:c.map((e,l)=>m.jsx(d.Fragment,{children:u(e)},l))})},l)}),m.jsxs("div",{className:"sip-calculator-donut-chart",children:[m.jsx("div",{className:"donut-chart-container",children:m.jsx("div",{className:"donut-chart-draw-area donutContent1",children:m.jsx(_.DonutChart,{seriesName:M.seriesName,data:M.data,chartCategoryField:M.chartCategoryField,chartValueField:M.chartValueField,radius:M.radius,innerRadius:M.innerRadius,fontSize:M.fontSize,maxWidth:M.maxWidth,enableAnimation:M.enableAnimation,enableLegend:M.enableLegend})})}),m.jsx("div",{className:"output-container",children:m.jsx("div",{className:"sip-text-Containers",children:m.jsx("div",{className:"sip-calculator-output-container",children:m.jsx("ul",{children:null==L?void 0:null===(i=L.outputs.filter(e=>"goal"===k?"output_two"!==e.id:"invest"!==k||"output_one"!==e.id))||void 0===i?void 0:i.map((e,l)=>{var i;return m.jsxs("li",{children:[m.jsx("span",{className:"dot ".concat("output_one"===e.id?"estimated_val":"output_two"===e.id?"default_val":"output_four"===e.id?"green_dot":"invested_val")}),m.jsxs("span",{className:"lbl-card-title-1",children:[(null==e?void 0:null===(i=e.fieldName)||void 0===i?void 0:i.includes("values.tenure_yrs"))?e.fieldName.replace("values.tenure_yrs",(null==S?void 0:S.tenure_yrs)||0):null==e?void 0:e.fieldName,m.jsx("div",{className:"label-text-content",children:m.jsxs("h2",{className:"lbl-banner-sub-heading2 ",children:[["Sharpe Ratio > 3 => Exceptional Risk-Adjusted Return","Sharpe Ratio > 2 => Strong Portfolio Return","Sharpe Ratio > 1 => Acceptable Portfolio Return","Sharpe Ratio < 1 => Sub-par Portfolio Return","+ve alpha => The return on investment outperformed the benchmark rate on a risk adjusted basis","-ve alpha => The return on investment underperformed compared to the benchmark index","The higher the Sortino ratio, the greater the expected risk-adjusted returns â all else being equal.","A higher Sortino ratio signifies a higher return per unit of downside risk, while a lower ratio indicates lower returns per unit of negative risk.","Invest in ELSS Mutual Funds and save tax upto â¹46,800 under 80C as per the old tax regime","Allocation for you across different asset classes based on your level of age, risk appetite and investment horizon","Step up SIP is different from conventional SIP because in the step up SIP the investment amount increases periodically. Whereas, in conventional SIP the investment amount remains fixed throughout the tenure.","The Treynor ratio is mainly used to measure the amount of return you are getting by taking on an extra unit of systematic risk.","Invest in ELSS Mutual Funds and save tax upto 46,800Rs under 80C as per old tax regime","Inflation reduces the purchasing power of your savings over time, meaning the same amount of funds will buy fewer goods and services. To maintain the value of your savings, its crucial to invest in assets that help to protect savings from inflation."].includes(e.fieldName)?"":(e.prefix||"")+("tenure_yrs"==e.id?Math.floor(S[null==e?void 0:e.id]||0):"no_of_years_of_withdrawal"===e.id?S[null==e?void 0:e.id]||0:im(S[null==e?void 0:e.id])||0),e.sufix?e.suf
1ix:""]})})]})]},l)})})})})})]}),m.jsx(u.InvestNowButton,{buttonText:"Start SIP",type:"campaign-button",className:"btn-primary btn-start-sip",uniqueId:null==P?void 0:null===(s=P.globalConfig)||void 0===s?void 0:null===(a=s.defaultScheme)||void 0===a?void 0:null===(t=a.trendingScheme)||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.schemeId,scheme:(null==P?void 0:null===(v=P.globalConfig)||void 0===v?void 0:null===(c=v.defaultScheme)||void 0===c?void 0:null===(r=c.trendingScheme)||void 0===r?void 0:null===(o=r[0])||void 0===o?void 0:o.schemeId)?null==P?void 0:null===(g=P.globalConfig)||void 0===g?void 0:null===(x=g.defaultScheme)||void 0===x?void 0:null===(p=x.trendingScheme)||void 0===p?void 0:p[0]:null===(b=P.globalState.HOME_PAGE)||void 0===b?void 0:null===(f=b.trending_schemes)||void 0===f?void 0:f[0]})]})]}),m.jsx("div",{className:"calculator-disclaimer",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.disclaimer)||""}})]})]})})};var iV=Object.freeze({__proto__:null,IAPSIPCalculator:iY});let iq=e=>{var l;return m.jsxs("div",{className:"esgTopSectionContainer",children:[m.jsxs("div",{className:"esgTopLeftWrap",children:[m.jsx("h2",{className:"esgTopMainTitle",children:null==e?void 0:e.title}),m.jsxs("div",{className:"esgTopDescWrap",children:[m.jsx("div",{className:"esgTopDescSubtitle",children:"Businesses are getting increasingly impacted by non-ï¬nancial factors"}),m.jsx("div",{className:"esgTopDesc",children:null==e?void 0:e.description})]}),m.jsx("div",{className:"esgTopCardWrap",children:null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"esgTopCardBox",children:[m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"esgTopCardImg"}),m.jsx("div",{className:"esgTopCardTitle",children:e.title})]},l))})]}),m.jsx("div",{className:"esgTopRightWrap",children:m.jsx("img",{fetchPriority:"low",src:null==e?void 0:e.image,alt:(null==e?void 0:e.title)||j.getAltText(null==e?void 0:e.image),className:"esgTopRightImg"})})]})};var iG=Object.freeze({__proto__:null,EsgTopSection:iq});let iK=e=>{var l;return m.jsx("div",{children:m.jsxs("div",{className:"esgMainWrapper",children:[m.jsx("div",{className:"esgMainTitleWrap",children:m.jsx("div",{className:"esgMainTitle",children:null==e?void 0:e.title})}),m.jsx("div",{className:"bpsCardWrap",children:null==e?void 0:null===(l=e.bullets)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"bpsCardBox",children:[m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"bpsCardIcon"}),m.jsx("div",{className:"bpsCardTitle",children:e.title})]},l))})]})})};var iJ=Object.freeze({__proto__:null,BulletPointSection:iK});let iZ=["UPI","Lumpsum Investments","Set up SIP","Moneyplex","SIP at Rs 100"],i$=e=>{var l;let{title:i,cards:n,features:t}=e,a=null!==(l=null!=n?n:t)&&void 0!==l?l:[];return m.jsx("div",{children:m.jsxs("div",{className:"featureSectionContainer",children:[m.jsx("div",{className:"featureSectionTitle",children:i}),m.jsx("div",{className:"featureSectionCardWrap",children:null==a?void 0:a.map((e,l)=>(iZ.includes(e.title),m.jsx("div",{children:m.jsx("div",{className:"featureSectionButton",children:e.title})},l)))})]})})};var iX=Object.freeze({__proto__:null,FeatureSection:i$});let iQ=e=>{var l,i;let[n,t]=d.useState("SI"),[a,s]=d.useState(0),[o,r]=d.useState(!1),[c,h]=d.useState(!1),p=Math.ceil(((null==e?void 0:null===(l=e.schemes)||void 0===l?void 0:l.length)||0)/7),g=["SI","1Y","3Y","5Y"],f=()=>{let e=(g.indexOf(n)+1)%g.length;t(g[e])},b=e=>{var l,i;let t=o?null==e?void 0:null===(i=e.cagrBenchmark)||void 0===i?void 0:i.worthOfInvestmentItemsLumpsum:null==e?void 0:null===(l=e.cagrBenchmark)||void 0===l?void 0:l.worthOfInvestmentItemsSip,a=null==t?void 0:t.find(e=>(null==e?void 0:e.period)===n);return a?a.value:"N/A"},N=e=>{s(e)},y=e=>{let l=null==e?void 0:e.find(e=>(null==e?void 0:e.period)===n);return l?l.value:"N/A"},_=e=>{let l=null==e?void 0:e.find(e=>(null==e?void 0:e.period)===n);return l?l.value:"N/A"},S=null==e?void 0:null===(i=e.schemes)||void 0===i?void 0:i.filter(e=>"1"!==e.nfoFlag),w=c?S:null==S?void 0:S.slice(0,2),k=null==S?void 0:S.slice(7*a,(a+1)*7);return m.jsx("div",{className:"scheme-finder-section",children:m.jsxs("div",{className:"scheme-finder-section-holder",children:[m.jsxs("div",{className:"scheme-finder-section-header",children:[m.jsx("label",{className:"lbl-card-title-21",children:null==e?void 0:e.title}),m.jsxs("div",{className:"scheme-finder-header-image-section",children:[m.jsx("label",{className:"lbl-content-heading-3",children:null==e?void 0:e.subt
1itleOne}),m.jsxs("div",{className:"img-container",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===a?"dimmed":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:()=>{a>0&&s(a-1)}}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(a+1===p?"dimmed":""),src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:a+1<p?()=>{a+1<p&&s(a+1)}:void 0})]})]})]}),m.jsx("div",{className:"table-holder",children:m.jsxs("table",{children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{className:"lbl-txt-content title-txt",children:m.jsx("span",{className:"tt-span",children:"Fund Name"})}),m.jsx("th",{className:"lbl-txt-content",children:m.jsx("span",{className:"tt-span",children:"AUM"})}),m.jsxs("th",{className:"lbl-txt-content",children:[m.jsx("span",{className:"tt-span",children:"Min"}),m.jsx("br",{})," ",m.jsx("span",{className:"tt-span",children:"Investment"})]}),m.jsxs("th",{className:"lbl-txt-content investment-txt",children:[m.jsx("span",{className:"tt-span",children:"This Fund / Benchmark"})," ",m.jsx("br",{}),m.jsxs("span",{className:"lbl-txt-info span-txt tt-span",onClick:f,children:["SI"===n?"Since Inception":n,m.jsx("img",{fetchPriority:"low",className:"expand_img",src:"/assets/expand_all_icon.svg",alt:"Back"})]})]}),m.jsxs("th",{className:"lbl-txt-content worth-txt",children:[m.jsxs("label",{className:"lbl-txt-content",children:["Worth of Investment",m.jsx("br",{})," (â¹ 10,000)"]}),m.jsxs("span",{className:"lbl-txt-info span-txt tt-span",onClick:()=>{r(!o)},children:[o?"Lumpsum":"SIP",m.jsx("img",{fetchPriority:"low",className:"expand_img",src:"/assets/expand_all_icon.svg",alt:"Back"})]})]}),m.jsx("th",{className:"lbl-txt-content expense-txt tt-span",children:"Expense Ratio"})]})}),m.jsx("tbody",{children:null==k?void 0:k.map(l=>{var i,n,t,a,s,o,r,d,c;let h=ij(null==l?void 0:l.fundType),p=null!==(o=null==l?void 0:null===(i=l.schemeTitle)||void 0===i?void 0:i.replace(/\s/g,"-"))&&void 0!==o?o:"";"".concat(null==l?void 0:l.schemeCode,"-").concat(null==l?void 0:l.planCode);let g=x.generateSchemeUrl({schemeName:p||"",schemeCode:(null==l?void 0:l.schemeCode)||"",planCode:(null==l?void 0:l.planCode)||"",planType:(null==l?void 0:l.planType)||"",schemeType:h||"",basePath:v.GLOBAL_CONSTANT.ROUTE_PATHS.MUTUAL_FUNDS.replace(/^\/+/,"")}),f=y(null!==(r=null==l?void 0:null===(n=l.cagrBenchmark)||void 0===n?void 0:n.benchmark)&&void 0!==r?r:[]),j=_(null!==(d=null==l?void 0:null===(t=l.cagrBenchmark)||void 0===t?void 0:t.cagr)&&void 0!==d?d:[]);return m.jsxs("tr",{children:[m.jsxs("td",{className:"lbl-card-title-1 scheme-title-txt",children:[m.jsx("span",{onClick:()=>{lc(g),window.location.href=g},className:"lbl-card-title-1 scheme-title-holder",children:null==l?void 0:l.schemeTitle}),m.jsx("span",{className:"fund-type-txt",children:null==l?void 0:l.fundType})," ",m.jsx("br",{}),m.jsx("div",{className:"most-bought-background ".concat((null==l?void 0:l.mostBought)?"blue":"grey"),children:(null==l?void 0:l.mostBought)&&m.jsx("span",{className:"lbl-page-heading most-bought-text",children:null==l?void 0:l.mostBoughtLabel})})]}),m.jsx("td",{className:"lbl-card-title-1 aum-value",children:(null==l?void 0:l.aum)==="N/A"?null==l?void 0:l.aum:"â¹".concat(ib(null==l?void 0:l.aum,2))}),m.jsxs("td",{className:"lbl-card-title-1",children:["â¹",null==l?void 0:l.minAmount]}),m.jsx("td",{className:"lbl-card-title-1 percentage-lbl",children:m.jsxs("div",{className:"percentage-container",children:[m.jsx("span",{className:"percentage-txt left-align ".concat("N/A"===f?"black":Number(f)>0?"green":"red"),children:"N/A"!==j&&j?"".concat(j,"%"):"N/A"}),m.jsx("span",{className:"division",children:"/"}),m.jsx("span",{className:"percentage-txt right-align ".concat("N/A"===f?"black":Number(f)>0?"green":"red"),children:"N/A"!==f&&f?"(".concat(f,"%)"):"N/A"})]})}),m.jsxs("td",{className:"lbl-card-title-1 investment-txt",children:["N/A"!==b(l)&&"â¹"," ","N/A"!==b(l)?ib(b(l),0):"N/A"]}),m.jsxs("td",{className:"lbl-card-title-1 expense-txt",children:[null!==(c=null==l?void 0:null===(s=l.cards)||void 0===s?void 0:null===(a=s.find(e=>(null==e?void 0:e.title)==="Expense Ratio"))||void 0===a?void 0:a.value)&&void 0!==c?c:"N/A",(null==l?void 0:l.investNow)&&m.jsx(u.InvestNowButton,{uniqueId:"invest-now-".concat(null==l?void 0:l.schemeId),scheme:l,className:"invest-btn",disableDroplink:null==e?void 0:e.isEtfFund,onClick:()=>{var i;return null==e?void 0:null===(i=e.handleClick)||void 0===i?void 0:i.call(e,null==l?void 0:l.schemeId)}})]})]},null==l?void 0:l.schemeId)})})]})}),m.jsx("div",{className:"pagination-dots ",children:Array.from({length:p}).map((e,l)=>m.jsx("span",{className:"dot ".concat(l===a?"active":""),onClick:()=>N(l)},l))}),m.jsxs("div",{className:"scheme-details-list-for-mobile",children:[m.jsxs("div",{className:"header-holder",children:[m.jsx("label",{className:"lbl-input-heading",children:"Fund Name"}),m.jsxs("label",{onClick:f,className:"lbl-txt-info return-txt",children:[m.jsx("img",{fetchPriority:"low",className:"expand-img-icon",src:"\\assets\\expand_all.svg",alt:"exapndall"})," ",n]})]}),m.jsxs("div",{className:"scheme-mobile-list",children:[null==w?void 0:w.map((l,i)=>{var n,t,a,s;let o=y(null!==(a=null==l?void 0:null===(n=l.cagrBenchmark)||void 0===n?void 0:n.benchmark)&&void 0!==a?a:[]),r=ij(null==l?void 0:l.fundType),d=null!==(s=null==l?void 0:null===(t=l.schemeTitle)||void 0===t?void 0:t.replace(/\s/g,"-"))&&void 0!==s?s:"";"".concat(null==l?void 0:l.schemeCode,"-").concat(null==l?void 0:l.planCode);let c=x.generateSchemeUrl({schemeName:d||"",schemeCode:(null==l?void 0:l.schemeCode)||"",planCode:(null==l?void 0:l.planCode)||"",planType:(null==l?void 0:l.planType)||"",schemeType:r||"",basePath:v.GLOBAL_CONSTANT.ROUTE_PATHS.MUTUAL_FUNDS.replace(/^\/+/,"")});return m.jsxs("div",{className:"scheme-detail-list",children:[m.jsxs("div",{className:"scheme-list",children:[m.jsx("a",{href:c,className:"scheme-title","aria-label":(null==l?void 0:l.schemeTitle)||j.getAriaLabelFromUrl(c),children:m.jsxs("label",{className:"lbl-txt-title title-txt",children:[null==l?void 0:l.schemeTitle," ",m.jsx("span",{className:"equity-txt",children:null==l?void 0:l.fundType})]})}),m.jsx("label",{className:"percentage-txt ".concat("N/A"===o?"black":Number(o)>0?"green":"red"),children:"N/A"!==o&&o?"".concat(o,"%"):"N/A"})]}),m.jsx("div",{className:"most-bought-background ".concat((null==l?void 0:l.mostBought)?"blue":""),children:(null==l?void 0:l.mostBought)?m.jsx("span",{className:"most-bought-text",children:null==l?void 0:l.mostBoughtLabel}):""}),m.jsxs("div",{children:[m.jsx(u.InvestNowButton,{uniqueId:"invest-now-".concat(null==l?void 0:l.schemeId),scheme:l,className:"invest-btn",disableDroplink:null==e?void 0:e.isEtfFund,onClick:()=>{var i;return null==e?void 0:null===(i=e.handleClick)||void 0===i?void 0:i.call(e,null==l?void 0:l.schemeId)}}),m.jsx("img",{fetchPriority:"low",src:"/assets/arrow_right.svg",alt:"arrow"})]})]},i)}),m.jsxs("div",{className:"lbl-txt-content5 scheme-list-learn-more",onClick:()=>{h(!c)},children:[c?"Learn Less":"Learn More",m.jsx("img",{fetchPriority:"low",src:"/assets/down_arrow.svg",alt:"arrow"})]})]})]}),(null==e?void 0:e.aumDate)&&m.jsx("div",{children:null==e?void 0:e.aumDate}),m.jsx("div",{className:"disclaimer",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.disclaimer)||""}})]})})};var i0=Object.freeze({__proto__:null,SchemeFinderSection:iQ});let i1=e=>{var l,i,n,t,a,s,o,r,c,x,g;
1let[f,b]=d.useState(0),[j,N]=d.useState(3),[y,_]=d.useState(!1),[w,k]=d.useState({}),C=h.useLoginContextData(),I=C.isUserLoggedIn()||C.isUserLoggedIn()?"post login journey":"pre login journey",T=null!==(c=null===(l=C.loggedInUserDetails)||void 0===l?void 0:l.user_type)&&void 0!==c?c:"na",[M,D]=d.useState(!1),[P,A]=d.useState(0),[L,F]=d.useState(0),E=h.useScreenWidth(),[O,z]=d.useState(!1);d.useEffect(()=>{z(!0)},[]);let B=!!O&&E<768,R=(null==e?void 0:null===(i=e.schemeDetails)||void 0===i?void 0:i.length)||0,{droplinkData:U,handleDropLinkDispatch:H}=d.useContext(h.DroplinkContext);d.useEffect(()=>(W(),window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}),[]);let W=()=>{window.innerWidth<=768?N(1):(window.innerWidth>768&&window.innerWidth,N(3))};d.useRef(null);let Y=l=>{if(null==e?void 0:e.schemeDetails.find(e=>e.fundType===ip.Etf))V(l);else if(C.isPANUserLoggedIn())q(l);else{var i;null==C||null===(i=C.triggerLogin)||void 0===i||i.call(C,!0,{successLoginCB:()=>{q(l)}})}},V=l=>{var i,n,t,a;let s=null==e?void 0:e.schemeDetails.find(e=>e.schemeId===l);if(!s)return;D(!M);let o={cta_name:"invest now",page_section:null!==(i=iC())&&void 0!==i?i:"",flow_name:I,user_type:T,scheme_name:null==s?void 0:s.schemeTitle,scheme_category:null!==(n=null==s?void 0:s.fundType)&&void 0!==n?n:"",scheme_sub_category:null!==(t=null==s?void 0:s.planType)&&void 0!==t?t:"",investment_type:"",plan_option:null!==(a=null==s?void 0:s.optionName)&&void 0!==a?a:""};v.GoogleAnalytics.recordEvent(v.GoogleAnalyticEvents.Etf.AddtoCartInvestNowCtaClick(o))},q=l=>{var i,n,t,a;let s=null==e?void 0:null===(i=e.schemeDetails)||void 0===i?void 0:i.find(e=>e.schemeId===l);if(!s)return;let o={path:null!==(t=null===(n=window)||void 0===n?void 0:n.location.href)&&void 0!==t?t:"",schemetitle:null!==(a=s.schemeTitle)&&void 0!==a?a:"",flow_name:I};v.GoogleAnalytics.recordEvent(v.GoogleAnalyticEvents.SchemeList.SchemeCtaClick(o)),iN(s,h.UserJourneys.sip,{droplinkData:U,handleDropLinkDispatch:H},$)},G=async e=>{},K=e=>_(e),J=e=>k(l=>({...l,isPrimaryActionLoading:e})),Z=e=>k(l=>({...l,isSecondaryActionLoading:e})),$=e=>k(l=>({...l,investNowLoading:{...l.investNowLoading,...e}}));return m.jsx("div",{className:"scheme-for-you",children:m.jsxs("div",{className:"scheme-for-you-content",children:[m.jsxs("div",{className:"scheme-for-you-header-holder",children:[m.jsx("h2",{className:"lbl-card-title-3",children:null==e?void 0:e.title}),m.jsxs("div",{className:"img-container-web",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===f?"disabled":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:()=>{f>=0&&(b(f-j),F(L-1))}}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(f+j>=(null==e?void 0:null===(n=e.schemeDetails)||void 0===n?void 0:n.length)?"disabled":""),src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:()=>{f+j<R&&(b(f+j),F(L+1))}})]}),m.jsxs("div",{className:"img-container-mobile",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===P?"dimmed":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:()=>{P-1>=0&&A(P-1)}}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(P+1>=(null==e?void 0:null===(t=e.schemeDetails)||void 0===t?void 0:t.length)?"dimmed":""),src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:()=>{var l;P+1<(null==e?void 0:null===(l=e.schemeDetails)||void 0===l?void 0:l.length)&&A(P+1)}})]})]}),m.jsxs("div",{className:"grid-card-container",children:[!B&&(null==e?void 0:null===(s=e.schemeDetails)||void 0===s?void 0:null===(a=s.slice(f,f+j))||void 0===a?void 0:a.map((e,l)=>m.jsx("div",{className:"grid-card-details",children:m.jsx(S.SchemeDetailsGridCard,{id:l,scheme:e,schemeFundType:null==e?void 0:e.fundType,handleClick:Y,handleAddToCart:G,isEtfFund:(null==e?void 0:e.fundType)===ip.Etf,isFromDashBord:!1})},"d-".concat(l)))),!B&&(null==e?void 0:null===(o=e.schemeDetails)||void 0===o?void 0:o.map((e,l)=>m.jsx("div",{className:"grid-card-details-hidden",children:m.jsx(S.SchemeDetailsGridCard,{id:l,scheme:e,schemeFundType:null==e?void 0:e.fundType,handleClick:Y,handleAddToCart:G,isEtfFund:(null==e?void 0:e.fundType)===ip.Etf,isFromDashBord:!1})},"d-".concat(l)))),B&&(null==e?void 0:null===(r=e.schemeDetails)||void 0===r?void 0:r.slice(P,P+1).map((e,l)=>
1m.jsx("div",{className:"grid-card-details-mobile",children:m.jsx(S.SchemeDetailsGridCard,{id:l,scheme:e,schemeFundType:null==e?void 0:e.fundType,handleClick:Y,handleAddToCart:G,isEtfFund:(null==e?void 0:e.fundType)===ip.Etf,isFromDashBord:!1})},"m-".concat(l))))]}),m.jsx("div",{className:"carousel-dots",children:Array.from({length:Math.ceil(R/j)}).map((e,l)=>m.jsx("div",{className:"dot ".concat(L===l?"active-dot":""),onClick:()=>{F(l),b(l*j)}},l))}),y&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content m-full-screen add-to-cart-popup-content add-to-cart-module",showHeader:!1,isFloating:!1,onClose:()=>K(!1),content:m.jsx(u.AddToCartDialog,{handlePrimaryAction:()=>{iS({droplinkData:U,handleDropLinkDispatch:H},J,K)},handleSecondaryAction:()=>{iS({droplinkData:U,handleDropLinkDispatch:H},Z,K,!0)},isPrimaryActionLoading:null!==(x=w.isPrimaryActionLoading)&&void 0!==x&&x,isSecondaryActionLoading:null!==(g=w.isSecondaryActionLoading)&&void 0!==g&&g})})]})})};var i2=Object.freeze({__proto__:null,SchemeForYou:i1});let i3=e=>{var l,i,n,t,a,s,o,r,d,c;return m.jsx("div",{className:"regulatory-section",children:m.jsxs("div",{className:"regulatory-section-content",children:[m.jsxs("div",{className:"regulatory-left-section",children:[m.jsx("h2",{className:"lbl-card-title-3",children:null==e?void 0:e.title}),m.jsx("h2",{className:"lbl-popup-content",children:null==e?void 0:e.fund}),m.jsx("div",{className:"lbl-menu-item",dangerouslySetInnerHTML:{__html:e.description||""}}),m.jsx("label",{className:"lbl-banner-sub-heading",children:null==e?void 0:e.disclaimer})]}),m.jsxs("div",{className:"regulatory-right-section",children:[m.jsxs("div",{className:"risk-list",children:[m.jsx("label",{className:"lbl-txt-content6",children:null==e?void 0:e.riskoMeterCardTitle}),m.jsx("div",{className:"lbl-txt-content",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.riskoMeterCardDesc)||""}})]}),m.jsxs("div",{className:"risk-image-container",children:[m.jsx("div",{className:"lbl-banner-sub-heading-9",children:null==e?void 0:e.riskoMeterTitle}),m.jsxs("div",{className:"risk-image-content",children:[(null==e?void 0:null===(i=e.risokMeters)||void 0===i?void 0:null===(l=i.at(0))||void 0===l?void 0:l.image)&&m.jsxs("div",{className:"risk-image",children:[m.jsx("img",{fetchPriority:"low",src:null==e?void 0:null===(n=e.risokMeters[0])||void 0===n?void 0:n.image,alt:"riskometer"}),m.jsx("label",{className:"lbl-popup-menu-info-rs-t",children:null==e?void 0:null===(t=e.risokMeters[0])||void 0===t?void 0:t.title}),m.jsx("label",{className:"lbl-popup-menu-info lbl-popup-menu-info-rs-d",children:null==e?void 0:null===(a=e.risokMeters[0])||void 0===a?void 0:a.description})]}),(null==e?void 0:null===(o=e.risokMeters)||void 0===o?void 0:null===(s=o.at(1))||void 0===s?void 0:s.image)&&m.jsxs("div",{className:"risk-image",children:[m.jsx("img",{fetchPriority:"low",src:null==e?void 0:null===(r=e.risokMeters[1])||void 0===r?void 0:r.image,alt:"riskometer"}),m.jsx("label",{className:"lbl-popup-menu-info-rs-t",children:null==e?void 0:null===(d=e.risokMeters[1])||void 0===d?void 0:d.title}),m.jsx("label",{className:"lbl-popup-menu-info lbl-popup-menu-info-rs-d",children:null==e?void 0:null===(c=e.risokMeters[1])||void 0===c?void 0:c.description})]})]})]})]})]})})};var i5=Object.freeze({__proto__:null,RegulatorySection:i3});let i9=e=>{let[l,i]=d.useState(0);return m.jsx("div",{className:"outlook-section",children:m.jsxs("div",{className:"outlook-section-content-holder",children:[m.jsxs("div",{className:"outlook-section-header-holder",children:[m.jsx("label",{className:"lbl-card-title-3",children:null==e?void 0:e.title}),m.jsxs("div",{className:"img-container",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===l?"dimmed":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:()=>{l-3>=0&&i(l-3)}}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ? 'dimmed' : ''}",src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:()=>{l+3<e&&i(l+3)}})]})]}),m.jsxs("div",{className:"outlook-section-content",children:[m.jsx("div",{className:"outlook-section-content-holder",children:m.jsx("img",{fetchPriority:"low",className:"outlook-img",src:null==e?void 0:e.image,alt:"outlookimg"})}),m.jsxs("div",{className:"download-button-holder",children:[m.jsx("img",{fetchPriority:"low",src:"/assets/download_icon.svg",alt:"download"}
1),m.jsx("label",{className:"lbl-fs-14px scheme-text",onClick:()=>{window&&window.open(null==e?void 0:e.buttonLink,"_blank")},children:"Download"})]})]})]})})};var i4=Object.freeze({__proto__:null,OutlookSection:i9});let i6=e=>{var l;let i=null!==(l=null==e?void 0:e.cards)&&void 0!==l?l:e.features;return m.jsx("div",{children:m.jsxs("div",{className:"esgMainWrapper",children:[m.jsx("div",{className:"esgMainTitleWrap",children:m.jsx("h2",{className:"esgMainTitle",children:null==e?void 0:e.title})}),m.jsx("div",{className:"advsecCardContainer",children:i.map((e,l)=>m.jsxs("div",{className:"advsecCardWrap",children:[m.jsx("div",{className:"advsecCardIconWrap",children:m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"advsecCardIcon"})}),m.jsxs("div",{className:"advsecCardDescWrap",children:[m.jsx("h3",{className:"advsecCardDescTitle",children:e.title}),m.jsx(lY,{htmlString:e.description})]})]},l))})]})})};var i7=Object.freeze({__proto__:null,BenefitSection:i6});let i8=e=>{var l;return m.jsx("div",{children:m.jsxs("div",{className:"esgMainWrapperFCS",children:[m.jsx("h4",{className:"cwiTitle",children:e.title}),m.jsx("div",{className:"featureCardsContainer",children:null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"featureCardBox",children:[m.jsx("div",{className:"featCardIconWrap",children:m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"featCardIcon"})}),m.jsxs("div",{className:"featCardDescWrap",children:[m.jsx("h5",{className:"featCardDescTitle",children:e.title}),m.jsx("p",{className:"featCardDescInfo",dangerouslySetInnerHTML:{__html:e.description}})]})]},l))})]})})};var ne=Object.freeze({__proto__:null,FeatureCardSection:i8});let nl=e=>{var l;return m.jsx("div",{children:m.jsx("div",{className:"longContMainContainer",children:null==e?void 0:null===(l=e.contentLongs)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{children:[m.jsx("h2",{className:"longContTitle",children:null==e?void 0:e.title}),m.jsx("div",{className:"longContDesc",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.description)||""}})]},l))})})};var ni=Object.freeze({__proto__:null,LongContent:nl});let nn=e=>{var l;return m.jsx("div",{className:"document-section",children:m.jsxs("div",{className:"document-section-content",children:[m.jsx("h2",{className:"lbl-card-title-3",children:null==e?void 0:e.title}),m.jsx("div",{className:"document-cards-container",children:null==e?void 0:null===(l=e.documents)||void 0===l?void 0:l.map((e,l)=>m.jsx(w.SchemeDocumentCard,{title:e.documentName,link:e.documentUrl},String(l)))})]})})};var nt=Object.freeze({__proto__:null,DocumentSection:nn});let na=e=>{var l,i,n,t,a,s,o,r,d,c,u,v,h,p,x,g,f,b,j,N,y,_,S,w,k,C,I,T,M,D,P,A,L,F,E,O,z,B,R,U,H,W,Y,V,q,G,K,J,Z,$,X,Q,ee,el,ei,en,et,ea,es,eo,er,ed,ec,eu,ev,em,eh,ep,ex,eg,ef,eb,ej,eN,ey,e_,eS,ew;let ek={sinceInception:{title:"Since Inception",date:(null==e?void 0:null===(l=e.returnsData)||void 0===l?void 0:l.sinceInceptionDate)||"N/A",invest_annualized:null==e?void 0:null===(t=e.returnsData)||void 0===t?void 0:null===(n=t.invested)||void 0===n?void 0:null===(i=n.annualized)||void 0===i?void 0:i.sinceInception,invest_benchmark:null==e?void 0:null===(o=e.returnsData)||void 0===o?void 0:null===(s=o.invested)||void 0===s?void 0:null===(a=s.benchmark)||void 0===a?void 0:a.sinceInception,invest_additionalbenchmark:null==e?void 0:null===(c=e.returnsData)||void 0===c?void 0:null===(d=c.invested)||void 0===d?void 0:null===(r=d.additionalBenchmark)||void 0===r?void 0:r.sinceInception,invested_10000_annualized:null==e?void 0:null===(h=e.returnsData)||void 0===h?void 0:null===(v=h.invested10000)||void 0===v?void 0:null===(u=v.annualized)||void 0===u?void 0:u.sinceInception,invested_10000_benchmark:null==e?void 0:null===(g=e.returnsData)||void 0===g?void 0:null===(x=g.invested10000)||void 0===x?void 0:null===(p=x.benchmark)||void 0===p?void 0:p.sinceInception,invested_10000_additionalbenchmark:null==e?void 0:null===(j=e.returnsData)||void 0===j?void 0:null===(b=j.invested10000)||void 0===b?void 0:null===(f=b.additionalBenchmark)||void 0===f?void 0:f.sinceInception},"5Years":{title:"5 Years",invest_annualized:null==e?void 0:null===(_=e.returnsData)||void 0===_?void 0:null===(y=_.invested)||void 0===y?void 0:null===(N=y.annualized)||void 0===N?void 0:N.fiveYear,invest_benchmark:null==e?void 0:null===(k=e.returnsData)||void 0===k?void 0:null===(w=k.invested)||void 0===w?void 0:null===(S=w.benchmark)||void 0===S?void 0:S.fiveYear,invest_additionalbenchmark:null==e?void 0:null===(T=e.returnsData)||void 0===T?void 0:null===(I=T.invested)||void 0===I?void 0:null===(C=I.additionalBenchmark)||void 0===C?void 0:C.fiveYear,invested_10000_annualized:null==e?void 0:null===(P=e.returnsData)||void 0===P?void 0:null===(D=P.invested10000)||void 0===D?void 0:null===(M=D.annualized)||void 0===M?void 0:M.fiveYear,invested_10000_benchmark:null==e?void 0:null===(F=e.returnsData)||void 0===F?void 0:null===(L=F.invested10000)||void 0===L?void 0:null===(A=L.benchmark)||void 0===A?void 0:A.fiveYear,invested_10000_additionalbenchmark:null==e?void 0:null===(z=e.returnsData)||void 0===z?void 0:null===(O=z.invested10000)||void 0===O?void 0:null===(E=O.additionalBenchmark)||void 0===E?void 0:E.fiveYear},"3Years":{title:"3 Years",invest_annualized:null==e?void 0:null===(U=e.returnsData)||void 0===U?void 0:null===(R=U.invested)||void 0===R?void 0:null===(B=R.annualized)||void 0===B?void 0:B.threeYear,invest_benchmark:null==e?void 0:null===(Y=e.returnsData)||void 0===Y?void 0:null===(W=Y.invested)||void 0===W?void 0:null===(H=W.benchmark)||void 0===H?void 0:H.threeYear,invest_additionalbenchmark:null==e?void 0:null===(G=e.returnsData)||void 0===G?void 0:null===(q=G.invested)||void 0===q?void 0:null===(V=q.additionalBenchmark)||void 0===V?void 0:V.threeYear,invested_10000_annualized:null==e?void 0:null===(Z=e.returnsData)||void 0===Z?void 0:null===(J=Z.invested10000)||void 0===J?void 0:null===(K=J.annualized)||void 0===K?void 0:K.threeYear,invested_10000_benchmark:null==e?void 0:null===(Q=e.returnsData)||void 0===Q?void 0:null===(X=Q.invested10000)||void 0===X?void 0:null===($=X.benchmark)||void 0===$?void 0:$.threeYear,invested_10000_additionalbenchmark:null==e?void 0:null===(ei=e.returnsData)||void 0===ei?void 0:null===(el=ei.invested10000)||void 0===el?void 0:null===(ee=el.additionalBenchmark)||void 0===ee?void 0:ee.threeYear},"1Year":{title:"1 Year",invest_annualized:null==e?void 0:null===(ea=e.returnsData)||void 0===ea?void 0:null===(et=ea.invested)||void 0===et?void 0:null===(en=et.annualized)||void 0===en?void 0:en.oneYear,invest_benchmark:null==e?void 0:null===(er=e.returnsData)||void 0===er?void 0:null===(eo=er.invested)||void 0===eo?void 0:null===(es=eo.benchmark)||void 0===es?void 0:es.oneYear,invest_additionalbenchmark:null==e?void 0:null===(eu=e.returnsData)||void 0===eu?void 0:null===(ec=eu.invested)||void 0===ec?void 0:null===(ed=ec.additionalBenchmark)||void 0===ed?void 0:ed.oneYear,invested_10000_annualized:null==e?void 0:null===(eh=e.returnsData)||void 0===eh?void 0:null===(em=eh.invested10000)||void 0===em?void 0:null===(ev=em.annualized)||void 0===ev?void 0:ev.oneYear,invested_10000_benchmark:null==e?void 0:null===(eg=e.returnsData)||void 0===eg?void 0:null===(ex=eg.invested10000)||void 0===ex?void 0:null===(ep=ex.benchmark)||void 0===ep?void 0:ep.oneYear,invested_10000_additionalbenchmark:null==e?void 0:null===(ej=e.returnsData)||void 0===ej?void 0:null===(eb=ej.invested10000)||void 0===eb?void 0:null===(ef=eb.additionalBenchmark)||void 0===ef?void 0:ef.oneYear}};return m.jsx("div",{className:"detailed-return-section",children:m.jsxs("div",{className:"detailed-return-content-section",children:[m.jsx("div",{className:"detailed-return-header-holder",children:m.jsxs("label",{className:"lbl-popup-content",children:[null==e?void 0:e.title,m.jsx("span",{children:m.jsx("img",{fetchPriority:"low",src:"/assets/infoicon.svg",alt:"info",className:"info-icon"})})]})}),m.jsx("div",{className:"table-holder",children:m.jsxs("table",{className:"performance-table",children:[m.jsxs("thead",{children:[m.jsxs("tr",{children:[m.jsx("th",{className:"border-right-section",colSpan:4}),m.jsx("th",{className:"border-right",colSpan:3,children:null==e?void 0:null===(eN=e.returnsData)||void 0===eN?void 0:eN.currentValue})]}),m.jsxs("tr",{children:[m.jsx("th",{}),m.jsx("th",{className:"lbl-banner-sub-heading",children:"Annualised(%)"}),m.jsxs("th",{className:"debt-txt",children:[null==e?void 0:null===(ey=e.returnsData)||void 0===ey?void 0:ey.benchmarkScheme,m.jsx("br",{}),m.jsx("span",{className:"retrun-table-span",children:"Benchmark(%)"})]}),m.jsxs("th",{className:"border-right",children:[null==e?void 0:null===(e_=e.returnsData)||void 0===e_?void 0:e_.additionalBenchmarkScheme,m.jsx("br",{}),m.jsxs("span",{className:"retrun-table-span",children:["Additional Benchmark(%)",m.jsx("br",{})]})]}),m.jsx("th",{children:"Annualised(%)"}),m.jsxs("th",{className:"debt-txt",children:[null==e?void 0:null===(eS=e.returnsData)||void 0===eS?void 0:eS.benchmarkScheme,m.jsx("br",{}),m.jsx("span",{className:"retrun-table-span",children:"Benchmark(%)"})]}),m.jsxs("th",{className:"border-right-1",children:[null==e?void 0:null===(ew=e.returnsData)||void 0===ew?void 0:e
1w.additionalBenchmarkScheme,m.jsx("br",{}),m.jsx("span",{className:"retrun-table-span",children:"Additional Benchmark(%)"})]})]})]}),m.jsx("tbody",{children:Object.entries(ek).map(e=>{let[l,i]=e;return m.jsxs("tr",{children:[m.jsxs("td",{className:"performance-key",children:[i.title,m.jsx("br",{}),i.date&&m.jsx("span",{children:i.date})]}),m.jsx("td",{children:i.invest_annualized?"".concat(i.invest_annualized,"%"):"-"}),m.jsx("td",{children:i.invest_benchmark?"".concat(i.invest_benchmark,"%"):"-"}),m.jsx("td",{className:"border-right",children:i.invest_additionalbenchmark?"".concat(i.invest_additionalbenchmark,"%"):"-"}),m.jsx("td",{children:i.invested_10000_annualized?im(i.invested_10000_annualized):"-"}),m.jsx("td",{children:i.invested_10000_benchmark?im(i.invested_10000_benchmark):"-"}),m.jsx("td",{children:i.invested_10000_additionalbenchmark?im(i.invested_10000_additionalbenchmark):"-"})]},l)})})]})}),m.jsx("div",{className:"disclaimer",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.disclaimer)||""}})]})})};var ns=Object.freeze({__proto__:null,DetailedReturnSection:na});let no=e=>{var l,i,n,t,a,s,o,r,c,u,v,h,p,x,g,f,b,j,N,y,S,w,C,I,T,M,D;let[P,A]=d.useState(!1),L=null==e?void 0:null===(n=e.portfolioDetails)||void 0===n?void 0:null===(i=n.cardOne)||void 0===i?void 0:null===(l=i.details)||void 0===l?void 0:l.map((e,l)=>({name:e.title,value:e.value,color:iu[l%iu.length]})),F={seriesName:null==e?void 0:null===(a=e.portfolioDetails)||void 0===a?void 0:null===(t=a.cardOne)||void 0===t?void 0:t.title,data:null==L?void 0:L.map(e=>({name:e.name,value:e.value,sliceSettings:{fill:e.color||"#000000",stroke:"#FFFFFF"}})),chartCategoryField:"name",chartValueField:"value",radius:60,innerRadius:70,fontSize:12,maxWidth:300,enableAnimation:!0,enableLegend:!1},E=null==e?void 0:null===(r=e.portfolioDetails)||void 0===r?void 0:null===(o=r.cardTwo)||void 0===o?void 0:null===(s=o.details)||void 0===s?void 0:s.map((e,l)=>({name:e.title,value:e.value,color:iu[l%iu.length]})),O={seriesName:null==e?void 0:null===(u=e.portfolioDetails)||void 0===u?void 0:null===(c=u.cardTwo)||void 0===c?void 0:c.title,data:null==E?void 0:E.map(e=>({name:e.name,value:e.value,sliceSettings:{fill:e.color||"#000000",stroke:"#FFFFFF"}})),chartCategoryField:"name",chartValueField:"value",radius:60,innerRadius:70,fontSize:12,maxWidth:300,enableAnimation:!0,enableLegend:!1};return m.jsx("div",{className:"fund-portfolio-section",children:m.jsxs("div",{className:"fund-portfolio-content-section",children:[m.jsx("label",{className:"lbl-card-title-3",children:null==e?void 0:e.title}),m.jsx("div",{className:"fund-portfolio-progrss-bar",children:(null==e?void 0:null===(h=e.portfolioDetails)||void 0===h?void 0:null===(v=h.assetCapDetails)||void 0===v?void 0:v.length)>0||(null==e?void 0:null===(x=e.portfolioDetails)||void 0===x?void 0:null===(p=x.portfolioSummary)||void 0===p?void 0:p.length)>0||(null==F?void 0:null===(g=F.data)||void 0===g?void 0:g.length)>0?m.jsx("div",{className:"content-holder",children:m.jsxs("div",{className:"chart-container",children:[(null==e?void 0:null===(b=e.portfolioDetails)||void 0===b?void 0:null===(f=b.assetCapDetails)||void 0===f?void 0:f.length)>0?m.jsxs("div",{className:"asset-alloc-holder",children:[m.jsx("label",{className:"lbl-card-title-2",children:"Asset Allocation"}),m.jsx("div",{className:"asset-alloc-list",children:null==e?void 0:null===(N=e.portfolioDetails)||void 0===N?void 0:null===(j=N.assetCapDetails)||void 0===j?void 0:j.map((e,l)=>{let i=iv(null==e?void 0:e.assetPercentage);return m.jsxs("div",{className:"asset-alloc-section",children:[m.jsx(k.CircularProgressBar,{className:"circular-progress-bar-default",radius:"20px",strokeWidth:"5px",indeterminate:!1,completedPercentage:i}),m.jsxs("div",{className:"asset-section",children:[m.jsx("label",{className:"lbl-popup-content asset-title",children:null==e?void 0:e.assetType}),m.jsxs("label",{className:"asset-value",children:[null==e?void 0:e.assetPercentage,"%"]})]})]},l)})})]}):"",(null==F?void 0:null===(y=F.data)||void 0===y?void 0:y.length)>0?m.jsxs("div",{className:"sector-alloc-holder",children:[m.jsxs("div",{className:"market-cap-section",children:[m.jsx("label",{className:"lbl-banner-heading",children:F.seriesName}),m.jsxs("div",{className:"chart-holder",children:[m.jsx(_.DonutChart,{...F}
1),m.jsx("ul",{className:"market-cap-list",children:null==F?void 0:null===(S=F.data)||void 0===S?void 0:S.map((e,l)=>m.jsxs("li",{children:[m.jsx("div",{className:"fund-color-indicator",style:{backgroundColor:iu[l%iu.length]}}),m.jsxs("div",{className:"sector-name-value",children:[m.jsx("label",{className:"lbl-banner-sub-heading",children:e.name}),m.jsx("label",{className:"lbl-banner-sub-heading",children:e.value+"%"})]})]},l))})]})]}),(null==O?void 0:null===(w=O.data)||void 0===w?void 0:w.length)>0?m.jsxs("div",{className:"sector-section",children:[m.jsx("label",{className:"lbl-banner-heading",children:O.seriesName}),m.jsxs("div",{className:"chart-holder",children:[m.jsx(_.DonutChart,{className:"chart",...O}),m.jsx("ul",{className:"sector-list",children:null==O?void 0:null===(C=O.data)||void 0===C?void 0:C.map((e,l)=>m.jsxs("li",{children:[m.jsx("div",{className:"fund-color-indicator",style:{backgroundColor:iu[l%iu.length]}}),m.jsxs("div",{className:"sector-name-value",children:[m.jsx("label",{className:"lbl-banner-sub-heading",children:e.name}),m.jsx("label",{className:"lbl-banner-sub-heading",children:e.value+"%"})]})]},l))})]})]}):""]}):" "]})}):""}),m.jsxs("div",{className:"issuers",children:[m.jsx("div",{className:"title-holder",children:m.jsx("label",{className:"lbl-title",children:"Issuers"})}),m.jsx("div",{className:"table-holder",children:m.jsxs("table",{className:"table",cellSpacing:"0",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{children:"Stocks"}),m.jsx("th",{children:"Sectors"}),m.jsx("th",{children:"% of holdings"}),m.jsx("th",{children:"Value in (Cr)"}),m.jsx("th",{children:"3M"}),m.jsx("th",{children:"5M"}),m.jsx("th",{children:"1Y"})]})}),m.jsx("tbody",{children:null==e?void 0:null===(D=e.portfolioDetails)||void 0===D?void 0:null===(M=D.holdings)||void 0===M?void 0:M.slice(0,P?null==e?void 0:null===(T=e.portfolioDetails)||void 0===T?void 0:null===(I=T.holdings)||void 0===I?void 0:I.length:5).map((l,i)=>{var n;return m.jsxs("tr",{className:i===(null==e?void 0:null===(n=e.portfolioDetails)||void 0===n?void 0:n.holdings.length)-1?"last-row":"",children:[m.jsx("td",{children:null==l?void 0:l.stockName}),m.jsx("td",{children:l.sector}),m.jsx("td",{children:l.holdingPercentage}),m.jsx("td",{children:l.valueInCr}),m.jsxs("td",{children:[l.threeMonths,"%"]}),m.jsxs("td",{children:[l.fiveMonths,"%"]}),m.jsxs("td",{children:[l.oneYear,"%"]})]},i)})})]})}),m.jsx("div",{className:"lbl-primary-banner-title-4",onClick:()=>{A(e=>!e)},children:P?"Show Less":"Show 5 more"})]})]})})};var nr=Object.freeze({__proto__:null,FundPortfolioSection:no});let nd=e=>{var l,i,n,t,a,s;return m.jsxs("div",{className:"learn-more-card",children:[m.jsx("img",{fetchPriority:"low",src:null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.image,alt:"cardsimage"}),m.jsxs("div",{className:"learn-more-card-content-section",children:[m.jsx("label",{className:"lbl-info4 title",children:null==e?void 0:null===(i=e.cards)||void 0===i?void 0:i.title}),m.jsx("div",{className:"desc-holder",children:m.jsx("div",{className:"lbl-txt-info-22 desc",dangerouslySetInnerHTML:{__html:(null==e?void 0:null===(n=e.cards)||void 0===n?void 0:n.description)||""}})}),m.jsxs("div",{className:"bottom-holder",children:[m.jsx("label",{className:"lbl-fs-12 author-name",children:null==e?void 0:null===(t=e.cards)||void 0===t?void 0:t.fundType}),(null==e?void 0:null===(a=e.cards)||void 0===a?void 0:a.date)?m.jsxs("label",{className:"lbl-fs-12 date",children:[" | ",null==e?void 0:null===(s=e.cards)||void 0===s?void 0:s.date]}):""]})]})]})},nc=e=>{let l=e||{},i=Array.isArray(null==l?void 0:l.cards)?l.cards:[],[n,t]=d.useState(0),a=i.length||0;return d.useEffect(()=>{i.length<=n&&t(0)},[i,n]),m.jsx("div",{className:"learn-more-section",children:m.jsxs("div",{className:"learn-more-section-content",children:[m.jsxs("div",{className:"learn-more-header-holder",children:[m.jsx("label",{className:"lbl-card-title-21",children:(null==l?void 0:l.title)||"Learn More"}),m.jsxs("div",{className:"img-container",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===n?"dimmed":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:()=>{n-1>=0&&t(n-1)}}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(n+1>=i.length?"dimmed":""),src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:()=>{n+1<a&&t(n+1)}})]})]}),m.jsx("div",{className:"learn-more-card-holder",children:(null==i?void 0:i.length)>0?i.slice(n,n+3).map((e,l)=>m.jsx(nd,{cards:e},l)):m.jsx("div",{children:"No cards available"})})]})})};var nu=Object.freeze({__proto__:null,LearnMoreSection:nc});let nv=e=>{var l,i,n,t;let a=null==e?void 0:e.goalSelector,[s,o]=d.useState(),[r,c]=d.use
1State(),u=null==a?void 0:null===(l=a.goals)||void 0===l?void 0:l.find(e=>"Select Goal"===e.title),v=null==a?void 0:null===(i=a.goals)||void 0===i?void 0:i.find(e=>"Select Life-Stage"===e.title),h=(e,l)=>{var i,n,t;return e&&l&&null!==(t=null==e?void 0:null===(n=e.points)||void 0===n?void 0:null===(i=n.find(e=>e.item===l))||void 0===i?void 0:i.optionList)&&void 0!==t?t:[]},p=d.useMemo(()=>{var e,l;return null!==(l=null==u?void 0:null===(e=u.points)||void 0===e?void 0:e.map(e=>e.item))&&void 0!==l?l:[]},[u]),x=d.useMemo(()=>{var e,l;return null!==(l=null==v?void 0:null===(e=v.points)||void 0===e?void 0:e.map(e=>e.item))&&void 0!==l?l:[]},[v]),g=d.useMemo(()=>h(v,r),[v,r]),f=d.useMemo(()=>h(u,s),[u,s]),b=d.useMemo(()=>r?g:p,[r,g,p]),j=d.useMemo(()=>s?f:x,[s,f,x]),N=async()=>{void 0!=s&&lc("Vacation"===s?"/campaign/mygoals-vacation":"/campaign/".concat(s.toLowerCase().replace(/\s+/g,"-")))};return null===(n=(null!==(t=null==u?void 0:u.points)&&void 0!==t?t:[]).find(e=>e.item===s))||void 0===n||n.optionList,m.jsx("div",{className:"goal-selector-popup",children:m.jsxs("div",{className:"modal-content",children:[m.jsx("label",{className:"lbl-card-title",children:null==a?void 0:a.title}),m.jsx("div",{className:"form-group-container",children:m.jsx(C.DefaultDropdown,{className:"material-outlined-dropdown input-field",optionList:b,label:"Select Goal",selectedOption:s,dialogLabel:"Select Goal",onSelectCB:e=>{o(e);let l=h(u,e);r&&!l.includes(r)&&c("")}})}),m.jsx("div",{className:"form-group-container",children:m.jsx(C.DefaultDropdown,{className:"material-outlined-dropdown input-field",optionList:j,label:"Select Life-Stage",selectedOption:r,dialogLabel:"Select Life-stage",onSelectCB:e=>{c(e);let l=h(v,e);s&&!l.includes(s)&&o("")}})}),m.jsx("div",{className:"button-container",children:m.jsx("button",{id:"goal-accept-btn",onClick:N,className:"btn-primary accept-btn",children:null==a?void 0:a.buttonLabel})})]})})},nm=e=>{let{bannerRef:l,...i}=e,[n,t]=d.useState(!1),[a,s]=d.useState(!1);return m.jsxs("div",{className:"floater-section",children:[m.jsxs("button",{className:"button get-in-touch",onClick:()=>{if((null==i?void 0:i.labelOne)==="Index Fund calculator"){let e=document.getElementById("calculator");e&&e.scrollIntoView({behavior:"smooth",block:"start"});return}if((null==i?void 0:i.labelOne)==="Get in touch"){let e=document.getElementById("banner-lead-form-scroll");e&&e.scrollIntoView({behavior:"smooth",block:"start"});return}"function"==typeof(null==i?void 0:i.linkOne)&&i.linkOne()},children:[m.jsx("img",{fetchPriority:"low",className:"icon",src:null==i?void 0:i.iconOne,alt:"iconone"})," ",null==i?void 0:i.labelOne]}),(null==i?void 0:i.linkTwo)==="popup"&&m.jsxs("button",{className:"button customize-goal ".concat(a?"clicked":""),onClick:(null==i?void 0:i.linkTwo)==="popup"?()=>{t(!0),s(!0)}:null==i?void 0:i.linkTwo,style:{backgroundColor:a?"white":"",color:a?"var(--color-primary)":""},children:[m.jsx("img",{fetchPriority:"low",className:"icon",src:null==i?void 0:i.iconTwo,alt:"iconTwo"})," ",null==i?void 0:i.labelTwo]}),(null==i?void 0:i.linkTwo)!=="popup"&&m.jsxs("button",{className:"button customize-goal ".concat(a?"clicked":""),children:[m.jsx("img",{fetchPriority:"low",className:"icon",src:null==i?void 0:i.iconTwo,alt:"iconTwo"}),m.jsx(u.InvestNowButton,{buttonText:null==i?void 0:i.labelTwo,className:"invest-now-button-wrap",scheme:{schemeId:"N5-DG-G",schemeTitle:"Axis NIFTY 50 Index Fund",amount:5e3,investmentMode:"SIP"}})]}),n?m.jsx(p.OverlayPopup,{className:"dialog-popup-content",showHeader:!1,isFloating:!1,onClose:()=>t(!1),content:m.jsx(nv,{goalSelector:null==i?void 0:i.goalSelector,onClose:()=>t(!1)})}):null]})};var nh=Object.freeze({__proto__:null,FloaterSection:nm});let np=e=>m.jsx("div",{children:m.jsxs("div",{className:"longContMainContainer",children:[m.jsx("div",{className:"longContTitle",children:null==e?void 0:e.title}),m.jsxs("div",{className:"contWithImgPlWrapper",children:[m.jsx("div",{className:"contWithImgPlBox",children:m.jsx("img",{fetchPriority:"low",src:null==e?void 0:e.image,alt:e.title||j.getAltText(null==e?void 0:e.image),className:"cwPlImage"})}),m.jsx("div",{className:"contWithImgPlDesc",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.description)||""}}),m.jsx("div",{className:"contWithImgDataasof",children:null==e?void 0:e.asOnDescription})]})]})});var nx=Object.freeze({__proto__:null,ContentWithImagePlaceholder:np});let ng=e=>{var l;return m.jsx("div",{children:m.jsxs("div",{className:"esgMainWrapper",children:[m.jsxs("div",{className:"nfsTitleWrap",children:[m.jsx("div",{className:"nfsMainTitle",children:null==e?void 0:e.title}),m.jsx("div",{className:"nfsMainSubtitle",children:null==e?void 0:e.subTitle})]}),m.jsx("div",{className:"nfsCardWrap",children:null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"nfsCardBox",children:[m.jsx("div",{className:"nfsCardBadgeWrap",children:m.jsx("span",{className:"nfsCardBadge",children:e.title})}),m.jsxs("div",{className:"nfsCardBoxInfoWrap",children:[m.jsx("div",{className:"nfsCardTimesText",children:e.count}),m.jsxs("div",{className:"nfsCardCagrInr",children:[m.jsx("p",{children:e.cagr}),m.jsx("p",{children:e.amount})]})]})]},l))}),m.jsx("div",{className:"nifty-source-title",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.disclaimer)||""}})]})})};var nf=Object.freeze({__proto__:null,NiftyFiftySection:ng});let nb=e=>
1{let l=d.useRef(null),[i,n]=d.useState({}),t=e=>n(l=>({...l,[e]:!0})),{videos:a=[]}=e||{},[s,o]=d.useState(0),[r,c]=d.useState(new Set),u=e=>{c(l=>new Set(l).add(e))},v=e=>!!e&&(/^https?:\/\/(www\.)?youtube\.com\/embed\/[a-zA-Z0-9_-]+/.test(e)||/^https?:\/\/youtu\.be\/[a-zA-Z0-9_-]+/.test(e)),h=e=>{if(!e)return null;let l=e.match(/youtube\.com\/embed\/([a-zA-Z0-9_-]+)/);if(l)return l[1];let i=e.match(/youtu\.be\/([a-zA-Z0-9_-]+)/);if(i)return i[1];let n=e.match(/youtube\.com\/watch\?v=([a-zA-Z0-9_-]+)/);return n?n[1]:null},p=(e,l)=>{try{let i=h(e),n=new URL(i?"https://www.youtube.com/embed/".concat(i):e);return n.searchParams.set("mute","1"),n.searchParams.set("playsinline","1"),l&&n.searchParams.set("autoplay","1"),n.toString()}catch(n){let i=e.includes("?")?"&":"?";return"".concat(e).concat(i).concat(l?"autoplay=1&":"","mute=1&playsinline=1")}},x=(e,l)=>{if(l&&l!==F.SERVICE_URL)return l;let i=h(e);return i?"https://img.youtube.com/vi/".concat(i,"/hqdefault.jpg"):""},g=(e,l,n,a,s)=>{let o=n.startsWith("main-"),d=x(e,a);if(!i[n])return m.jsxs("div",{className:"yt-thumb",onClick:e=>{e.stopPropagation(),o?t(n):null==s||s()},role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation(),o?t(n):null==s||s())},children:[d?m.jsx("img",{fetchPriority:"low",src:d,alt:l||j.getAltText(d)}):m.jsx("div",{className:"iframe-fallback",children:m.jsx("span",{children:"Video unavailable"})}),m.jsx("div",{className:"yt-play-btn",children:m.jsx("div",{className:"yt-play-icon"})})]});if(r.has(n))return m.jsx("div",{className:"iframe-fallback",children:m.jsx("span",{children:"Video unavailable"})});if(!v(e)){let l=h(e);if(!l)return m.jsx("div",{className:"iframe-fallback",children:m.jsx("span",{children:"Invalid video URL"})});e="https://www.youtube.com/embed/".concat(l)}let c=p(e,o&&!!i[n]);return m.jsx("iframe",{src:c,title:l,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,onError:()=>u(n),onLoad:e=>{try{var l;let i=e.target;(null===(l=i.contentWindow)||void 0===l?void 0:l.location.href)||u(n)}catch(e){}}})},[f,b]=d.useState(!0),[N,y]=d.useState(!1),_=()=>{if(!l.current)return;let{scrollTop:e,scrollHeight:i,clientHeight:n}=l.current;b(0===e),y(e+n>=i-1)},[S,w]=d.useState((null==a?void 0:a[0])||null),k=d.useMemo(()=>S?a.filter(e=>e.order!==S.order):a,[a,S]),C=k.slice(s,s+1);d.useEffect(()=>{let e=l.current;if(e)return _(),e.addEventListener("scroll",_),()=>e.removeEventListener("scroll",_)},[]),d.useEffect(()=>{(null==a?void 0:a.length)>0?w(e=>e&&a.find(l=>l.order===e.order)||a[0]):w(null)},[a]),d.useEffect(()=>{s>=k.length&&o(0)},[k.length,s]);let I=e=>{w(e),t("main-".concat(e.order)),requestAnimationFrame(()=>{var e;null===(e=l.current)||void 0===e||e.scrollTo({top:0,behavior:"smooth"})})};return(null==a?void 0:a.length)&&S?m.jsx("div",{className:"youtube-section",children:m.jsxs("div",{className:"video-gallery",children:[m.jsx("h4",{children:null==e?void 0:e.title}),m.jsxs("div",{className:"video-layout",children:[m.jsx("div",{className:"main-video",children:g(S.cta,"Main Video ".concat(S.order),"main-".concat(S.order),S.thumbnail)}),m.jsxs("div",{className:"thumbnail-section",children:[m.jsx("img",{fetchPriority:"low",className:"scroll-button up ".concat(f?"disabled":""),onClick:()=>{var e;f||null===(e=l.current)||void 0===e||e.scrollBy({top:-100,behavior:"smooth"})},src:"/assets/up_arrow.svg",alt:"up_arrow"}),m.jsxs("div",{className:"related-video-details",children:[m.jsx("label",{children:"Related video"}),m.jsxs("div",{className:"carousel-navigation",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===s?"dimmed":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:()=>{s-1>=0&&o(s-1)}}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(s+1>=k.length?"dimmed":""),src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:()=>{s+1<k.length&&o(s+1)}})]})]}),m.jsxs("div",{className:"thumbnail-container",ref:l,children:[k.map(e=>m.jsx("div",{className:"thumbnail-card",onClick:()=>I(e),role:"button",tabIndex:0,onKeyDown:l=>
1{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),I(e))},children:g(e.cta,"Thumbnail Video ".concat(e.order),"thumb-".concat(e.order),e.thumbnail,()=>I(e))},e.order)),C.map(e=>m.jsx("div",{className:"thumbnail-mobile-card",onClick:()=>I(e),role:"button",tabIndex:0,onKeyDown:l=>{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),I(e))},children:g(e.cta,"Thumbnail Video ".concat(e.order),"mobile-".concat(e.order),e.thumbnail,()=>I(e))},e.order))]}),m.jsx("img",{fetchPriority:"low",className:"scroll-button down ".concat(N?"disabled":""),src:"/assets/accordion_icon.svg",alt:"accordian",onClick:()=>{var e;N||null===(e=l.current)||void 0===e||e.scrollBy({top:100,behavior:"smooth"})}})]})]}),(null==e?void 0:e.disclaimer)&&m.jsx("div",{className:"youtube_section_disclaimer",dangerouslySetInnerHTML:{__html:null==e?void 0:e.disclaimer}})]})}):null};var nj=Object.freeze({__proto__:null,YoutubeSection:nb});let nN=e=>{let{copyTitle:l,copyContent:i}=e,n=(null==l?void 0:l.trim())&&(null==i?void 0:i.trim());return m.jsxs("div",{className:"kyc-redirection-popup-sc",children:[m.jsxs("div",{className:"success-popup-window",children:[m.jsx("div",{className:"icon-container",children:m.jsx("img",{fetchPriority:"low",className:"success-icon",src:v.pathChanger("file_icon_kc.png"),alt:"success"})}),m.jsx("div",{className:"title",children:e.title}),m.jsx("div",{className:"subtitle-text",children:null==e?void 0:e.subTitle})]}),n&&m.jsxs("div",{className:"ticket-container",children:[m.jsx("span",{className:"ticket-label",children:e.copyTitle}),m.jsxs("div",{className:"ticket-details",children:[e.copyContent,m.jsx("button",{className:"copy-button",onClick:()=>{if(i){var e;null===(e=navigator)||void 0===e||e.clipboard.writeText(i).then(()=>{}).catch(e=>{console.error("Failed to copy: ",e)})}},children:m.jsx("img",{fetchPriority:"low",src:v.pathChanger("copyicon.svg"),alt:"Copy"})})]})]}),n&&m.jsx("button",{className:"secondary-button-text",onClick:e.onClickSecondaryButton,style:{width:"100%"},children:e.secondaryButtonText}),(null==e?void 0:e.shouldShowButtons)&&m.jsxs("div",{className:"button-container",children:[e.primaryButtonText?m.jsx("button",{className:"primary-button-text",onClick:e.onClickPrimaryButton,children:e.primaryButtonText}):"",e.secondaryButtonText?m.jsx("button",{className:"secondary-button-text",onClick:e.onClickSecondaryButton,children:e.secondaryButtonText}):""]})]})};(a=r||(r={})).NAME="name",a.MOBILE="mobile",a.EMAIL="email",a.PAN="pan",a.AMOUNT="amount";let ny=d.forwardRef((e,l)=>{var i,n,t,a,s,o,c,x,g,f,j,y,_,S,w,k,C,T,M,D,P,A,L,F,E,O,z,B,R,U,H,W,Y,V,q,G,K,J,Z,$,X,Q,ee,el,ei,en,et,ea,es,eo,er,ed,ec,eu,ev,em,eh,ep,ex,eg,ef,eb,ej,eN,ey,e_,eS,ew,ek,eC,eI,eT,eM,eD,eP,eA,eL,eF,eE,eO,ez,eB,eR,eU,eH,eW,eY,eV,eq,eG;let{activeIndex:eK=0}=e,eJ=null==e?void 0:null===(i=e.form)||void 0===i?void 0:i.nfo,eZ=null==e?void 0:null===(n=e.form)||void 0===n?void 0:n.iap,[e$,eX]=d.useState(!1),[eQ,e0]=d.useState(!1),[e1,e2]=d.useState(!1),[e3,e5]=d.useState(!1),[e9,e4]=d.useState({name:"",mobile:"",email:"",pan:"",amount:""}),[e6,e7]=d.useState({name:"",mobile:"",email:"",pan:"",amount:""}),[e8,le]=d.useState(!1),[ll,li]=d.useState(!1),[ln,lt]=d.useState(!1),[la,ls]=d.useState(!1),[lo,lr]=d.useState(!1),[ld,lu]=d.useState(!1),lv=d.useRef(!1),lm=d.useMemo(()=>{var l;return(null!==(l=null==e?void 0:e.banner)&&void 0!==l?l:[]).map((e,l)=>{var i;return{...e,order:null!==(i=null==e?void 0:e.order)&&void 0!==i?i:l+1}})},[null==e?void 0:e.banner]),lh=d.useMemo(()=>lm.length>1,[lm]);d.useEffect(()=>{lj(lD(e9))},[e9]),d.useEffect(()=>{lv.current=!1},[e9.name,e9.mobile,e9.email,e9.pan]);let{droplinkData:lp,handleDropLinkDispatch:lx}=d.useContext(h.DroplinkContext),lg=h.useLoginContextData(),lf=h.useRootContextData(),[lb,lj]=d.useState(!1),[lN,ly]=d.useState(!1),l_=lg.isUserLoggedIn()||lg.isUserSoftLoggedIn()?"post login journey":"pre login journey",lS=(e,l)=>e.split("").filter(e=>l.test(e)).join(""),lw=(l,i)=>{var n,t,a,s,o,d,c,u,v,m,h,p,x,g,f,b;l===r.EMAIL&&e0(!1);let j="";switch(l){case r.NAME:i&&(i.length<3||!ir.userName.test(i))&&(j=null!==(s=null==e?void 0:null===(a=e.form)||void 0===a?void 0:null===(t=a.errorMessages)||void 0===t?void 0:null===(n=t.invali
1dFieldsErrorMessages)||void 0===n?void 0:n.Name)&&void 0!==s?s:"Name must be at least 3 characters long.");break;case r.MOBILE:i&&(i.length<10||!ir.mobile.test(i))&&(j=null!==(u=null==e?void 0:null===(c=e.form)||void 0===c?void 0:null===(d=c.errorMessages)||void 0===d?void 0:null===(o=d.invalidFieldsErrorMessages)||void 0===o?void 0:o.Mobile)&&void 0!==u?u:"Please enter a valid Mobile Number");break;case r.EMAIL:i&&!ir.email.test(i)&&(j=null!==(p=null==e?void 0:null===(h=e.form)||void 0===h?void 0:null===(m=h.errorMessages)||void 0===m?void 0:null===(v=m.invalidFieldsErrorMessages)||void 0===v?void 0:v.Email)&&void 0!==p?p:"Please enter a valid Email ID");break;case r.PAN:i&&(i.length<10||!ir.pan.test(i))&&(j=null!==(b=null==e?void 0:null===(f=e.form)||void 0===f?void 0:null===(g=f.errorMessages)||void 0===g?void 0:null===(x=g.invalidFieldsErrorMessages)||void 0===x?void 0:x.PAN)&&void 0!==b?b:"Please enter a correct PAN");break;case r.AMOUNT:i&&!ir.amount.test(i)&&(j="Amount is not valid")}e7(e=>({...e,[l]:j}))},lk=(e,l)=>{e===r.EMAIL&&e0(!1);let i=(e,l)=>e.test(l);switch(e){case r.NAME:(i(ir.userName,l)||""===l)&&(e4(e=>({...e,name:l})),lw(e,l));break;case r.MOBILE:if(l.length<=10){let i=id(l)||"";e4(e=>({...e,mobile:i})),lw(e,i)}break;case r.EMAIL:let n=lS(l,/[a-zA-Z0-9._@+-]/);e4(e=>({...e,email:n})),lw(e,n);break;case r.PAN:let t=lS(l.toUpperCase(),/[A-Z0-9]/);l.length<=10&&(e4(e=>({...e,pan:t.toUpperCase()})),lw(e,t));break;case r.AMOUNT:(i(ir.amount,l)||""===l)&&(e4(e=>({...e,amount:l})),lw(e,l));break;default:return}},lC=()=>{var e,l,i;let n={page_section:null!==(i=iC())&&void 0!==i?i:"",cta_name:"invest_now",flow_name:l_};v.GoogleAnalytics.recordEvent(null===(l=v.GoogleAnalyticEvents)||void 0===l?void 0:null===(e=l.SchemeDetails)||void 0===e?void 0:e.LeadFormSubmit(n))},lI=()=>{lC(),iN({schemeId:null==e?void 0:e.schemeId,schemeCode:null==e?void 0:e.schemeCode,schemeTitle:null==e?void 0:e.title},h.UserJourneys.sip,{droplinkData:lp,handleDropLinkDispatch:lx})},lT=()=>{var l;if((null==e?void 0:null===(l=e.banner[0])||void 0===l?void 0:l.redirectLink)==="/micro-investing"){let e=document.getElementById("micro_investing");if(!e)return;e.scrollIntoView({behavior:"smooth",block:"start"}),window.setTimeout(()=>{try{e.focus({preventScroll:!0})}catch(l){e.focus()}},350)}else{let e=document.getElementById("micro_investing_outlook");if(!e)return;e.scrollIntoView({behavior:"smooth",block:"start"}),window.setTimeout(()=>{try{e.focus({preventScroll:!0})}catch(l){e.focus()}},350)}},lM=l=>{let i={name:ir.userName,mobile:ir.mobile,email:ir.email,pan:ir.pan,amount:ir.amount},n={};for(let[V,q]of Object.entries(l)){var t,a,s,o,r,d,c,u,v,m,h,p,x,g,f,b,j,N,y,_,S,w,k,C,I,T,M,D,P,A,L,F,E,O,z,B,R,U,H,W,Y;if("Email"===V&&e0(!1),"amount"!==V||q||(null==e?void 0:null===(t=e.form)||void 0===t?void 0:t.inputs.length)!=4){if(q){if("name"===V&&(q.length<2||q.length>100))n[V]=null!==(C=null==e?void 0:null===(k=e.form)||void 0===k?void 0:null===(w=k.errorMessages)||void 0===w?void 0:null===(S=w.invalidFieldsErrorMessagesTwo)||void 0===S?void 0:S.Name)&&void 0!==C?C:"".concat(lP(V)," must be between 3 to 100 characters");else if("email"===V){let[l]=q.split("@");l.length<2?(n[V]=null!==(P=null==e?void 0:null===(D=e.form)||void 0===D?void 0:null===(M=D.errorMessages)||void 0===M?void 0:null===(T=M.invalidFieldsErrorMessagesThree)||void 0===T?void 0:T.Email)&&void 0!==P?P:"".concat(lP(V)," must have at least 2 characters before '@'"),e0(!0)):l.length>64?n[V]="".concat(lP(V)," must be 64 characters or less"):(null==i?void 0:null===(I=i[V])||void 0===I?void 0:I.test(q))||(n[V]=null!==(E=null==e?void 0:null===(F=e.form)||void 0===F?void 0:null===(L=F.errorMessages)||void 0===L?void 0:null===(A=L.invalidFieldsErrorMessagesTwo)||void 0===A?void 0:A.Email)&&void 0!==E?E:"".concat(lP(V)," is not valid"))}else"mobile"!==V||""==q||(null==i?void 0:null===(a=i[V])||void 0===a?void 0:a.test(q))?"pan"!==V||""==q||(null==i?void 0:null===(s=i[V])||void 0===s?void 0:s.test(q))?"amount"===V||""==q||(null==i?void 0:null===(o=i[V])||void 0===o?void 0:o.test(q))||(n[V]="".concat(lP(V)," is not val
1id")):n[V]=null!==(Y=null==e?void 0:null===(W=e.form)||void 0===W?void 0:null===(H=W.errorMessages)||void 0===H?void 0:null===(U=H.invalidFieldsErrorMessagesTwo)||void 0===U?void 0:U.PAN)&&void 0!==Y?Y:"".concat(lP(V)," is not valid"):n[V]=null!==(R=null==e?void 0:null===(B=e.form)||void 0===B?void 0:null===(z=B.errorMessages)||void 0===z?void 0:null===(O=z.invalidFieldsErrorMessagesTwo)||void 0===O?void 0:O.Mobile)&&void 0!==R?R:"".concat(lP(V)," is not valid")}else"Username"===lP(V)&&(n[V]=null!==(u=null==e?void 0:null===(c=e.form)||void 0===c?void 0:null===(d=c.errorMessages)||void 0===d?void 0:null===(r=d.emptyFieldsErrorMessages)||void 0===r?void 0:r.Name)&&void 0!==u?u:"".concat(lP(V)," is required")),"Mobile"===lP(V)&&(n[V]=null!==(p=null==e?void 0:null===(h=e.form)||void 0===h?void 0:null===(m=h.errorMessages)||void 0===m?void 0:null===(v=m.emptyFieldsErrorMessages)||void 0===v?void 0:v.Mobile)&&void 0!==p?p:"".concat(lP(V)," is required")),"Email"===lP(V)&&(n[V]=null!==(b=null==e?void 0:null===(f=e.form)||void 0===f?void 0:null===(g=f.errorMessages)||void 0===g?void 0:null===(x=g.emptyFieldsErrorMessages)||void 0===x?void 0:x.Email)&&void 0!==b?b:"".concat(lP(V)," is required")),"Pan"===lP(V)&&(n[V]=null!==(_=null==e?void 0:null===(y=e.form)||void 0===y?void 0:null===(N=y.errorMessages)||void 0===N?void 0:null===(j=N.emptyFieldsErrorMessages)||void 0===j?void 0:j.PAN)&&void 0!==_?_:"".concat(lP(V)," is required"))}}return!(0!=Object.values(n).length&&Object.values(n).every(e=>""!=e))||(e7(e=>({...e,...n})),!1)},lD=l=>{let i={name:ir.userName,mobile:ir.mobile,email:ir.email,pan:ir.pan,amount:ir.amount},n={};for(let[k,C]of Object.entries(l)){var t,a,s,o,r,d,c,u,v,m,h,p,x,g,f,b,j,N,y,_,S,w;if("Email"===k&&e0(!1),"amount"!==k||C||(null==e?void 0:null===(t=e.form)||void 0===t?void 0:t.inputs.length)!=4){if(C){if("name"===k&&(C.length<3||C.length>100))n[k]="".concat(lP(k)," Name must be at least 3 characters long.");else if("email"===k){let[l]=C.split("@");l.length<2?n[k]=null!==(v=null==e?void 0:null===(u=e.form)||void 0===u?void 0:null===(c=u.errorMessages)||void 0===c?void 0:null===(d=c.invalidFieldsErrorMessagesThree)||void 0===d?void 0:d.Email)&&void 0!==v?v:"".concat(lP(k)," must have at least 2 characters before '@'"):l.length>64?n[k]="".concat(lP(k)," must be 64 characters or less"):(null==i?void 0:null===(r=i[k])||void 0===r?void 0:r.test(C))||(n[k]=null!==(x=null==e?void 0:null===(p=e.form)||void 0===p?void 0:null===(h=p.errorMessages)||void 0===h?void 0:null===(m=h.invalidFieldsErrorMessagesTwo)||void 0===m?void 0:m.Email)&&void 0!==x?x:"".concat(lP(k)," is not valid"))}else"mobile"!==k||""==C||(null==i?void 0:null===(a=i[k])||void 0===a?void 0:a.test(C))?"pan"!==k||""==C||(null==i?void 0:null===(s=i[k])||void 0===s?void 0:s.test(C))?"amount"===k||""==C||(null==i?void 0:null===(o=i[k])||void 0===o?void 0:o.test(C))?"mobile"!==k||(null==i?void 0:null===(w=i[k])||void 0===w?void 0:w.test(C))||(n[k]="Please enter a valid Mobile Number"):n[k]="".concat(lP(k)," is not valid"):n[k]=null!==(S=null==e?void 0:null===(_=e.form)||void 0===_?void 0:null===(y=_.errorMessages)||void 0===y?void 0:null===(N=y.invalidFieldsErrorMessagesTwo)||void 0===N?void 0:N.PAN)&&void 0!==S?S:"".concat(lP(k)," is not valid"):n[k]=null!==(j=null==e?void 0:null===(b=e.form)||void 0===b?void 0:null===(f=b.errorMessages)||void 0===f?void 0:null===(g=f.invalidFieldsErrorMessagesTwo)||void 0===g?void 0:g.Mobile)&&void 0!==j?j:"".concat(lP(k)," is not valid")}else n[k]="".concat(lP(k)," is required")}}return 0===Object.keys(n).length},lP=e=>({name:"Username",mobile:"Mobile",email:"Email",pan:"Pan",amount:"Amount"})[e],lA=e=>{var l;lv.current&&"investNow"===e||("formSubmit"===e&&(lv.current=!0),iD({default:e=>{},success:()=>{}},{category:"",preLoginUser:!1,screenId:new URL(window.location.href).pathname.replace(/^\/+/,""),source:"web",screenStepName:"",campaign:"",name:null==e9?void 0:e9.name,mobileNumber:null==e9?void 0:e9.mobile,emailId:null==e9?void 0:e9.email,pan:null!==(l=null==e9?void 0:e9.pan)&&void 0!==l?l:"",disableLeadCreation:!1}))},lL=()=>{e5(!0)};return m.jsxs("div",{ref:l,className:"banner-lead-form",id:"banner-lead-form-scroll",children:[m.jsx("div",{className:"left-section ".concat((null==e?void 0:null===(t=e.banner[0])||void 0===t?void 0:t.redirectLink)==="/Multicap"?"left-section-cursor-default":""),children:m.jsx(b.CustomComponentCarousel,{className:"custom-component-carou
1sel-default banner-screen",list:lm,isSnap:!0,component:e=>{let{item:l}=e;return m.jsx("div",{className:"carousel-item-wrapper",children:m.jsx("a",{children:m.jsx("img",{fetchPriority:"low",className:"fullscreen-banner",src:0===eK?null==l?void 0:l.image:(null==l?void 0:l.imageTwoWeb)||(null==l?void 0:l.image),alt:"Banner",onClick:e=>{var i,n,t,a;if((null==l?void 0:l.redirectLink)==="/quickpay"&&(e.preventDefault(),e.stopPropagation(),null===(i=document.getElementById("banner-invest-btn-cz"))||void 0===i||i.click()),(null==l?void 0:l.redirectLink)==="/micro-investing"&&(null===(n=document.getElementById("micro_investing"))||void 0===n||n.scrollIntoView({behavior:"smooth",block:"start"})),(null==l?void 0:l.redirectLink)==="/value-funds"&&(lc("/mutual-funds/equity-funds/axis-value-fund/vf-dg/direct"),window.location.href="/mutual-funds/equity-funds/axis-value-fund/vf-dg/direct"),(null==l?void 0:l.redirectLink)==="/mutual-funds/index-funds"&&(lc(null==l?void 0:l.redirectLink),window.location.href=null==l?void 0:l.redirectLink),(null==l?void 0:l.redirectLink)==="/axis-gold-and-silver-fund"&&(null===(t=document.getElementById("gold_main_scroll"))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"})),(null==l?void 0:l.redirectLink)==="/debtfunds")null===(a=document.getElementById("content_with_icons"))||void 0===a||a.scrollIntoView({behavior:"smooth",block:"start"});else if(null==l?void 0:l.redirectLink)try{new URL(null==l?void 0:l.redirectLink),window.open(null==l?void 0:l.redirectLink,"_blank")}catch(e){lc(null==l?void 0:l.redirectLink),window.location.href=null==l?void 0:l.redirectLink}}})})})},leftArrowImage:"/assets/carousal_arrow_left.svg",rightArrowImage:"/assets/carousal_arrow_right.svg",showArrows:lh,idPath:"order",showDots:lh,isInfiniteScroll:!0,autoScroll:lh,scrollInterval:4e3},"banner-carousel-".concat(eK))}),m.jsx("div",{className:"right-section",children:ln?m.jsxs("div",{className:"kyc-not-verified-iap-card",children:[m.jsx("h3",{className:"kyc-not-verified-iap-title",children:"It Seems Like you are not KYC-Verified"}),m.jsxs("div",{className:"kyc-not-verified-iap-action-box",children:[m.jsx("img",{src:v.pathChanger("customer.svg"),alt:"customer icon",className:"kyc-not-verified-iap-customer-img"}),m.jsx("button",{type:"button",className:"kyc-card-btn",onClick:lL,children:"Start your KYC"})]}),m.jsxs("div",{className:"kyc-not-verified-iap-note-box",children:[m.jsxs("div",{className:"kyc-not-verified-iap-note-title",children:[m.jsx("img",{src:v.pathChanger("Monthly-Calender.png"),alt:"note icon",className:"kyc-not-verified-iap-note-img"}),m.jsx("span",{children:"Note"})]}),m.jsx("p",{className:"kyc-not-verified-iap-note-text",children:"It is mandatory to be KYC verified to invest in mutual fund units."})]})]}):la?m.jsxs("div",{className:"kyc-verified-iap-card",children:[m.jsx("h3",{className:"kyc-verified-iap-title",children:"Congratulations you are KYC verified."}),m.jsxs("div",{className:"kyc-verified-iap-action-box",children:[m.jsx("img",{src:v.pathChanger("rocket_icon_3.png"),alt:"rocket icon",className:"kyc-verified-iap-customer-img"}),m.jsx("button",{type:"button",className:"kyc-card-btn",onClick:lL,children:"Explore Other Sections"})]})]}):ll?m.jsxs("div",{className:"kyc-card",children:[m.jsx("div",{className:"kyc-card-text",children:null!==(eq=null==e?void 0:null===(o=e.form)||void 0===o?void 0:null===(s=o.errorMessages)||void 0===s?void 0:null===(a=s.kycLabels)||void 0===a?void 0:a.notVerifiedLabel)&&void 0!==eq?eq:"Seems like you are not KYC verified."}),m.jsx("button",{type:"button",className:"kyc-card-btn",onClick:()=>{var e;null==lg||null===(e=lg.triggerLogin)||void 0===e||e.call(lg,!0,{successLoginCB:async()=>{lc(v.GLOBAL_CONSTANT.ROUTE_PATHS.DASHBOARD)},prefillUserData:e9})},children:null!==(eG=null==e?void 0:null===(g=e.form)||void 0===g?void 0:null===(x=g.errorMessages)||void 0===x?void 0:null===(c=x.kycLabels)||void 0===c?void 0:c.registerLabel)&&void 0!==eG?eG:"Click here to Register"})]}):m.jsxs("form",{onSubmit:l=>{var i,n,t;if(l.preventDefault(),!lM(e9))return;e9.email,e9.pan,e9.name,e9.mobile,i=e.nfoType,lg.isUserLoggedIn(),n=e.bannerTitle,t=e.nfoType;let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null==e9?void 0:e9.pan;{var l,i;lu(!0);let n=await h.apicommunicator.login.placeValidatePAN({pan:null!=e?e:"",pageURL:window.location.href});(null==n?void 0:null===(i=n.success)||void 0===i?void 0:null===(l=i.data)||void 0===l?void 0:l.kycStatus)==="verified"?(lr(!0),lt(!1),ls(!0),le(!1),e7({name:"",mobile:"",email:"",pan:"",amount:""})):(lr(!1),lt(!0),ls(!1)),lu(!1)}},s=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null==e9?void 0:e9.pan;{var l,i;lu(!0);let n=await h.apicommunicator.login.placeValidatePAN({pan:null!=e?e:"",pageURL:window.location.href});(null==n?void 0:null===(i=n.success)||void 0===i?void 0:null===(l=i.data)||void 0===l?void 0:l.kycStatus)==="verified"?(li(!1),le(!1),e4({name:"",mobile:"",email:"",pan:"",amount:""}),e7({name:"",mobile:"",email:"",pan:"",amount:""}),lT()):li(!0),lu(!1)}};(eZ?e=>{a()}:eJ?e=>{lI(),e4({name:"",mobile:"",email:"",pan:"",amount:""})}:l=>{var i,n,t,a,o,r;lA("formSubmit"),((null==e?void 0:null===(i=e.form)||void 0===i?void 0:i.buttonLabel)==="Check Your KYC Status"||(null==e?void 0:null===(n=e.form)||void 0===n?void 0:n.buttonLabel)==="à¤
पना à¤à¥à¤µà¤¾à¤à¤¸à¥ सà¥à¤¥à¤¿à¤¤à¤¿ à¤à¤¾à¤à¤à¥à¤"||(null==e?void 0:null===(t=e.form)||void 0===t?void 0:t.buttonLabel)==="à¤
पना KYC सà¥à¤à¥à¤à¤¸ à¤à¥à¤ à¤à¤°à¥à¤"||(null==e?void 0:null===(a=e.banner[0])||void 0===a?void 0:a.redirectLink)==="/micro-investing"||(null==e?void 0:null===(r=e.form)||void 0===r?void 0:null===(o=r.buttonLabel)||void 0===o?void 0:o.includes("à®à®à¯à®à®³à¯ KYC நிலà¯à®¯à¯ à®à®°à®¿à®ªà®¾à®°à¯à®à¯à®à®µà¯à®®à¯")))&&s()})()},onKeyDown:(null==e?void 0:null===(f=e.banner[0])||void 0===f?void 0:f.redirectLink)==="/axis-gold-and-silver-fund"?e=>{"Enter"===e.key&&e.target instanceof HTMLInputElement&&(e.preventDefault(),lM(e9))}:void 0,className:"vertical-lead-form",children:[m.jsxs("div",{className:"vertical-lead-form-container",children:[m.jsxs("div",{className:"vertical-lead-form-section",children:[m.jsx("div",{className:"vertical-lead-form-title-holder",children:m.jsx("label",{className:"lbl-card-title",children:null==e?void 0:null===(j=e.form)||void 0===j?void 0:j.title})}),m.jsx("div",{className:"vertical-lead-form-content-holder",children:m.jsx("div",{className:"row",children:null==e?void 0:null===(_=e.form)||void 0===_?void 0:null===(y=_.inputs)||void 0===y?void 0:y.map((l,i)=>m.jsx(N.MOutlinedTextBox,{className:"moutlined-txtbx-default ".concat("name"===l.id&&(null==e?void 0:e.language)==="tam"&&("பà¯à®¯à®°à¯ à®à¯
1à®±à¯à®¨à¯à®¤à®ªà®à¯à®à®®à¯ 3 à®à®´à¯à®¤à¯à®¤à¯à®à¯à®à®³à¯ à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯."===e6.name||"பயனர௠பà¯à®¯à®°à¯ 3 à®®à¯à®¤à®²à¯ 100 à®à®´à¯à®¤à¯à®¤à¯à®à¯à®à®³à¯à®à¯à®à¯à®³à¯ à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯."===e6.name)?"moutlined-txtbx-name-tam":""," ").concat("email"===l.id&&((null==e?void 0:e.language)==="tam"&&"மினà¯à®©à®à¯à®à®²à¯ à®®à¯à®à®µà®°à®¿à®¯à®¿à®²à¯ '@'-à®à¯à®à¯ à®®à¯à®©à¯à®©à®¾à®²à¯ à®à¯à®±à¯à®¨à¯à®¤à®¤à¯ 2 à®à®´à¯à®¤à¯à®¤à¯à®à¯à®à®³à¯ à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"===e6.email||!0===eQ&&(null==e?void 0:e.language)==="mar")?"moutlined-txtbx-email-tam":""),disabled:!1,isError:!!e6[l.id],errorMessage:e6[l.id],value:e9[l.id]||"",label:l.placeholder,onChange:e=>lk(l.id,e),type:l.type},i))})}),m.jsx("div",{className:"vertical-lead-form-policy",children:m.jsxs("div",{className:"vertical-lead-consent-disclaimer",children:[!eZ&&(null==e?void 0:null===(S=e.form)||void 0===S?void 0:S.buttonLabel)!=="Check Your KYC Status"&&(null==e?void 0:null===(w=e.form)||void 0===w?void 0:w.buttonLabel)!=="à¤
पना à¤à¥à¤µà¤¾à¤à¤¸à¥ सà¥à¤¥à¤¿à¤¤à¤¿ à¤à¤¾à¤à¤à¥à¤"&&(null==e?void 0:null===(k=e.form)||void 0===k?void 0:k.buttonLabel)!=="à¤
पना KYC सà¥à¤à¥à¤à¤¸ à¤à¥à¤ à¤à¤°à¥à¤"&&(null==e?void 0:null===(C=e.banner[0])||void 0===C?void 0:C.redirectLink)!=="/micro-investing"&&!(null==e?void 0:null===(M=e.form)||void 0===M?void 0:null===(T=M.buttonLabel)||void 0===T?void 0:T.includes("à®à®à¯à®à®³à¯ KYC நிலà¯à®¯à¯ à®à®°à®¿à®ªà®¾à®°à¯à®à¯à®à®µà¯à®®à¯"))&&m.jsx("div",{className:"vertical-lead-form-disclaimer-consent",children:m.jsx("label",{className:"consent-checkbox",children:m.jsx("input",{type:"checkbox",checked:lN,onChange:e=>ly(e.target.checked)})})}),m.jsx(function(l){var i;let{disclaimer:n}=l,[t,a]=d.useState(!1);return m.jsxs(m.Fragment,{children:[m.jsx("label",{className:"horizontal-lead-form-new-index-label",onClick:e=>{let l=e.target;"A"===l.tagName&&("Read more"===l.textContent||"à¤à¤° पढ़à¥à¤"===l.textContent||"à¤à¤° पà¥à¥à¤"===l.textContent||l.classList.contains("read-more-link-text"))&&(e.preventDefault(),a(!0))},dangerouslySetInnerHTML:{__html:n}}),t&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content dialog-popup-success",isFloating:!1,onClose:()=>a(!1),content:m.jsx("div",{className:"readmore-popup",dangerouslySetInnerHTML:{__html:null==e?void 0:null===(i=e.form)||void 0===i?void 0:i.disclaimer}})})]})},{disclaimer:(null==e?void 0:e.disclaimer)||(null==e?void 0:null===(D=e.form)||void 0===D?void 0:D.disclaimer)||""})]})})]}),m.jsxs("div",{className:"vertical-lead-form-invest-action",children:[eZ&&m.jsx(I.ButtonWithLoader,{id:"horizontal-lead-form-invest-now",type:"submit",isLoading:ld,disabled:!1,className:"btn-primary btn-add",value:"Submit",onClick:()=>lA("investNow")}),((null==e?void 0:null===(P=e.form)||void 0===P?void 0:P.buttonLabel)==="Check Your KYC Status"||(null==e?void 0:null===(A=e.form)||void 0===A?void 0:A.buttonLabel)==="à¤
पना à¤à¥à¤µà¤¾à¤à¤¸à¥ सà¥à¤¥à¤¿à¤¤à¤¿ à¤à¤¾à¤à¤à¥à¤"||(null==e?void 0:null===(L=e.form)||void 0===L?void 0:L.buttonLabel)==="à¤
पना KYC सà¥à¤à¥à¤à¤¸ à¤à¥à¤ à¤à¤°à¥à¤"||(null==e?void 0:null===(F=e.banner[0])||void 0===F?void 0:F.redirectLink)==="/micro-investing"||(null==e?void 0:null===(O=e.form)||void 0===O?void 0:null===(E=O.buttonLabel)||void 0===E?void 0:E.includes("à®à®à¯à®à®³à¯ KYC நிலà¯à®¯à¯ à®à®°à®¿à®ªà®¾à®°à¯à®à¯à®à®µà¯à®®à¯")))&&m.jsx(I.ButtonWithLoader,{id:"horizontal-lead-form-invest-now",type:"submit",isLoading:ld,disabled:!1,className:"btn-primary btn-add",value:null==e?void 0:null===(z=e.form)||void 0===z?void 0:z.buttonLabel}),!eZ&&(null==e?void 0:null===(B=e.form)||void 0===B?void 0:B.buttonLabel)!=="Check Your KYC Status"&&(null==e?void 0:null===(R=e.form)||void 0===R?void 0:R.buttonLabel)!=="à¤
पना à¤à¥à¤µà¤¾à¤à¤¸à¥ सà¥à¤¥à¤¿à¤¤à¤¿ à¤à¤¾à¤à¤à¥à¤"&&(null==e?void 0:null===(U=e.form)||void 0===U?void 0:U.buttonLabel)!=="à¤
पना KYC सà¥à¤à¥à¤à¤¸ à¤à¥à¤ à¤à¤°à¥à¤"&&(null==e?void 0:null===(H=e.banner[0])||void 0===H?void 0:H.redirectLink)!=="/micro-investing"&&!(null==e?void 0:null===(Y=e.form)||void 0===Y?void 0:null===(W=Y.buttonLabel)||void 0===W?void 0:W.includes("à®à®à¯à®à®³à¯ KYC நிலà¯à®¯à¯ à®à®°à®¿à®ªà®¾à®°à¯à®à¯à®à®µà¯à®®à¯"))&&m.jsxs("div",{className:"vertical-lead-form-invest-action vertical-form-invest-now ".concat((null==e?void 0:e.language)==="tam"?"vertical-form-invest-now-tam":""),children:[(null==e?void 0:null===(V=e.banner[0])||void 0===V?void 0:V.redirectLink)!=="/value-funds"&&(null==e?void 0:null===(q=e.banner[0])||void 0===q?void 0:q.redirectLink)!=="/axis-gold-and-silver-fund"&&m.jsx(u.InvestNowButton,{onClick:()=>{lg.isPANUserLoggedIn()&&lA("investNow")},buttonText:"INVEST NOW",type:"campaign-button",disabled:!lN,isValidated:lb&&lN,className:"btn-primary btn-add",uniqueId:null==lf?void 0:null===(Z=lf.globalConfig)||void 0===Z?void 0:null===(J=Z.defaultScheme)||void 0===J?void 0:null===(K=J.trendingScheme)||void 0===K?void 0:null===(G=K[0])||void 0===G?void 0:G.schemeId,scheme:(null==lf?void 0:null===(ee=lf.globalConfig)||void 0===ee?void 0:null===(Q=ee.defaultScheme)||void 0===Q?void 0:null===(X=Q.trendingScheme)||void 0===X?void 0:null===($=X[0])||void 0===$?void 0:$.schemeId)?null==lf?void 0:null===(en=lf.globalConfig)||void 0===en?void 0:null===(ei=en.defaultScheme)||void 0===ei?void 0:null===(el=ei.trendingScheme)||void 0===el?void 0:el[0]:null===(ea=lf.globalState.HOME_PAGE)||void 0===ea?void 0:null===(et=ea.trending_schemes)||void 0===et?void 0:et[0]}),(null==e?void 0:null===(es=e.banner[0])||void 0===es?void 0:es.redirectLink)==="/value-funds"&&m.jsx(u.InvestNowButton,{onClick:()=>{lg.isPANUserLoggedIn()&&lA("investNow")},buttonText:"INVEST NOW",type:"campaign-button",disabled:!lN,isValidated:lb&&lN,className:"btn-primary btn-add",uniqueId:null==lf?void 0:null===(ec=lf.globalConfig)||void 0===ec?void 0:null===(ed=ec.defaultScheme)||void 0===ed?void 0:null===(er=ed.trendingScheme)||void 0===er?void 0:null===(eo=er[0])||void 0===eo?void 0:eo.schemeId,scheme:{...(null==lf?void 0:null===(eh=lf.globalConfig)||void 0===eh?void 0:null===(em=eh.defaultScheme)||void 0===em?void 0:null===(ev=em.trendingScheme)||void 0===ev?void 0:null===(eu=ev[0])||void 0===eu?void 0:eu.schemeId)?null==lf?void 0:null===(eg=lf.globalConfig)||void 0===eg?void 0:null===(ex=eg.defaultScheme)||void 0===ex?void 0:null===(ep=ex.trendingScheme)||void 0===ep?void 0:ep[0]:null===(eb=lf.globalState.HOME_PAGE)||void 0===eb?void 0:null===(ef=eb.trending_schemes)||void 0===ef?void 0:ef[0],schemeCode:"VF",schemeTitle:"Axis Value Fund",schemeId:"VF-DG-G",investmentMode:"S
1IP"}}),(null==e?void 0:null===(ej=e.banner[0])||void 0===ej?void 0:ej.redirectLink)==="/axis-gold-and-silver-fund"&&m.jsx(u.InvestNowButton,{onClick:()=>{lg.isPANUserLoggedIn()&&lA("investNow")},buttonText:(null==e?void 0:null===(eN=e.form)||void 0===eN?void 0:eN.buttonLabel)||"INVEST NOW",type:"campaign-button",disabled:!lN,isValidated:lb&&lN,className:"btn-primary btn-add",uniqueId:null==lf?void 0:null===(ew=lf.globalConfig)||void 0===ew?void 0:null===(eS=ew.defaultScheme)||void 0===eS?void 0:null===(e_=eS.trendingScheme)||void 0===e_?void 0:null===(ey=e_[0])||void 0===ey?void 0:ey.schemeId,scheme:{...(null==lf?void 0:null===(eT=lf.globalConfig)||void 0===eT?void 0:null===(eI=eT.defaultScheme)||void 0===eI?void 0:null===(eC=eI.trendingScheme)||void 0===eC?void 0:null===(ek=eC[0])||void 0===ek?void 0:ek.schemeId)?null==lf?void 0:null===(eP=lf.globalConfig)||void 0===eP?void 0:null===(eD=eP.defaultScheme)||void 0===eD?void 0:null===(eM=eD.trendingScheme)||void 0===eM?void 0:eM[0]:null===(eL=lf.globalState.HOME_PAGE)||void 0===eL?void 0:null===(eA=eL.trending_schemes)||void 0===eA?void 0:eA[0],schemeCode:"GO",schemeTitle:"Axis Gold Fund",schemeId:"GO-DG-G",investmentMode:"SIP"}})]})]})]}),e$?m.jsx(p.OverlayPopup,{className:"dialog-popup-content read-more-popup",showHeader:!1,isFloating:!1,onClose:()=>eX(!1),content:m.jsx("div",{className:"read-more-details",children:"Any use of this information is subject to Axis Asset Management Company Limited's privacy policy available Privacy Policy and Terms and Conditions. By clicking on Accept & Submit, I give my consent to Axis Asset Management Company Limited and its agents to contact me over phone, email or any other mode to address my investment related queries and/or receive communication pertaining to transactions/ non-commercial transactions/ promotional and other communication/ material irrespective of my blocking preferences with the National Customer Preference Registry. Any use of this information is subject to Axis Asset Management Company Limitedâs. Further, by clicking on Accept & Submit, I give my consent to WhatsApp Terms and Conditions."})}):""]})}),e1&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content",isFloating:!1,onClose:()=>{e2(!1),e4({name:"",mobile:"",email:"",pan:""})},content:m.jsx(iM,{thankyouMessage:null==e?void 0:null===(eF=e.thankyouDetails)||void 0===eF?void 0:eF.thankyouMessage,image:null==e?void 0:null===(eE=e.thankyouDetails)||void 0===eE?void 0:eE.image})}),e3&&m.jsx(p.OverlayPopup,{title:"Redirection",isFloating:!0,showHeader:!0,showCloseOption:!1,className:"dialog-popup-content",onClose:()=>e5(!1),content:m.jsx(nN,{title:"You are being redirected away from Investor Awareness Program Page.",shouldShowButtons:!0,primaryButtonText:"Cancel",secondaryButtonText:"Continue",onClickPrimaryButton:()=>{e5(!1)},onClickSecondaryButton:()=>{if(!0===lo)window.location.href="/sip";else{var e;null===(e=lg.triggerLogin)||void 0===e||e.call(lg,!0,{stage:"PAN INPUT",prefillUserData:e9})}}})}),e8&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content dialog-popup-success",isFloating:!1,onClose:()=>le(!1),content:m.jsx(iA,{thankyouMessage1:"We have received your request successfully",thankyouMessage2:""})}),m.jsx(u.InvestNowButton,{buttonText:"start Investing",className:"start-invest-cz",uniqueId:"banner-invest-btn-cz",scheme:(null==lf?void 0:null===(eR=lf.globalConfig)||void 0===eR?void 0:null===(eB=eR.defaultScheme)||void 0===eB?void 0:null===(ez=eB.trendingScheme)||void 0===ez?void 0:null===(eO=ez[0])||void 0===eO?void 0:eO.schemeId)?null==lf?void 0:null===(eW=lf.globalConfig)||void 0===eW?void 0:null===(eH=eW.defaultScheme)||void 0===eH?void 0:null===(eU=eH.trendingScheme)||void 0===eU?void 0:eU[0]:null===(eV=lf.globalState.HOME_PAGE)||void 0===eV?void 0:null===(eY=eV.trending_schemes)||void 0===eY?void 0:eY[0]})]})});var n_=Object.freeze({__proto__:null,BannerLeadForm:ny});let nS=e=>{let l=h.useScreenWidth();return m.jsx("div",{children:m.jsxs("div",{className:"longContMainContainer",children:[m.jsx("div",{className:"esgMainTitleWrap",children:m.jsx("h2",{className:"esgMainTitle",children:null==e?void 0:e.title})}),m.jsxs("div",{className:"learnMoretwoWrapper",children:[m.jsxs("div",{children:[m.jsx("img",{fetchPriority:"low",src:l<768&&(null==e?void 0:e.mobileImage)?null==e?void 0:e.mobileImage:null==e?void 0:e.image,alt:e.title,className:"cwPlImage"}),m.jsx("p",{className:"learnMoretwoDesclaimer",children:null==e?void 0:e.disclaimer})]}),m.jsx("div",{className:"learnMoretwoDescTitle",children:e.descriptionTitle}),m.jsx("div",{className:"learnMoretwoDescription",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.description)||""}})]})]})})};var nw=Object.freeze({__proto__:null,LearnMoreSectionTwo:nS});let nk=e=>m.jsx("div",{children:m.jsxs("div",{className:"longContMainContainerSh",children:[(null==e?void 0:e.image)!==null&&m.jsx("div",{className:"esgMainImage",children:(null==e?void 0:e.image)!==null&&m.jsx("img",{fetchPriority:"low",src:null==e?void 0:e.image,alt:e.title||j.getAltText(null==e?void 0:e.image),className:"cwPlImage"})}),m.jsxs("div",{className:"esgMainTitleDescription",children:[m.jsx("div",{className:"esgMainTitleWrap",children:m.jsx("div",{className:"esgMainTitle",children:null==e?void 0:e.title})}),m.jsxs("div",{className:"learnMoretwoWrapper",children:[e.descriptionTitle&&m.jsx("div",{className:"learnMoretwoDescTitle",children:e.descriptionTitle}),m.jsx("div",{className:"learnMoretwoDescription",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.description)||""}})]})]})]})});var nC=Object.freeze({__proto__:null,ShortInfoSection:nk});let nI=e=>{let l=d.useRef(null),i=h.useScreenWidth(),n=[{navDate:"1987-01-01",nav:283.75},{navDate:"1988-01-01",nav:299.65},{navDate:"1989-01-01",nav:301.23},{navDate:"1990-01-01",nav:326.61},{navDate:"1991-01-01",nav:274.84},{navDate:"1992-01-01",nav:293.26},{navDate:"1993-01-01",nav:284.19},{navDate:"1994-01-01",nav:333.01},{navDate:"1995-01-01",nav:366.6},{navDate:"1996-01-01",nav:399.79},{navDate:"1997-01-01",nav:423.19},{navDate:"1998-01-01",nav:428.77},{navDate:"1999-01-01",nav:466.87},{navDate:"2000-01-01",nav:476.61},{navDate:"2001-01-01",nav:493.95},{navDate:"2002-01-01",nav:523.97},{navDate:"2003-01-01",nav:618.36},{navDate:"2004-01-01",nav:721.59},{navDate:"2005-01-01",nav:834.22},{navDate:"2006-01-01",nav:949.12},{navDate:"2007-01-01",nav:1238.7},{navDate:"2008-01-01",nav:1224.1},{navDate:"2009-01-01",nav:1365.37},{navDate:"2010-01-01",nav:1708.46},{navDate:"2011-01-01",nav:1823.05},{navDate:"2012-01-01",nav:1827.64},{navDate:"2013-01-01",nav:1856.72},{navDate:"2014-01-01",nav:2039.13},{navDate:"2015-01-01",nav:2103.59},{navDate:"2016-01-01",nav:2294.8},{navDate:"2017-01-01",nav:2651.47},{navDate:"2018-01-01",nav:2702.93},{navDate:"2019-01-01",nav:2835.61},{navDate:"2020-01-01",nav:2674.85},{navDate:"2021-01-01",nav:3167.27},{navDate:"2022-01-01",nav:3353.47},{navDate:"2023-12-31",nav:3572.08}],t=[];return m.jsx("div",{className:"growth-story-graph",children:m.jsxs("div",{className:"graph-container",children:[m.jsx("h3",{children:"Bharat Growth Story"}),m.jsx("div",{className:"lbl-popup-heading",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.description)||""}}),m.jsxs("div",{className:"arealabel-scheme-chart",children:[m.jsx("label",{className:"lbl-card-title-1 vertical-txt",children:null==e?void 0:e.verticalTitle}),n.length>0?m.jsx(T.AreaLabelChart,{ref:l,seriesName:"NavHistory",dataLine1:n,xLableDirection:"vertical",graphType:i<768?"bharat-campaign":"bharat-campaign-web",xMultiLable:!0,strokeColor:ig.strokeColor1,gradient1:[{color:ig.strokeColor1,offset:0},{color:ig.gradientColor2,offset:1}],...t.length>0&&{dataLine2:t,strokeColor2:ig.strokeColor2,gradient2:[{color:ig.strokeColor2,offset:0},{color:ig.gradientColor2,offset:1}]},width:"100%",height:"400px"}):m.jsx("div",{className:"graph-no-data",children:"No Data..."}),m.jsx("label",{className:"lbl-card-title-1 horizontal-txt",children:null==e?void 0:e.horizontalTitle}),m.jsx("label",{className:"graph-data-source",children:"Source: IMF Statista 2024"})]})]})})};var nT=Object.freeze({__proto__:null,BharatGrowthStoryGraph:nI});let nM=e=>{var l,i,n,t;
1let[a,s]=d.useState(!1),[o,r]=d.useState("Max"),[c,u]=d.useState("DD-MM-YYYY"),[v,h]=d.useState("DD-MM-YYYY"),p=d.useRef(null),[x,g]=d.useState([]),[f,b]=d.useState([]);d.useEffect(()=>{if(o){let{startDate:e,endDate:l}=_(o);u(e),h(l)}},[o]),d.useEffect(()=>{},[c,v]);let j=(e=>{let l=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear();return"".concat(l,"-").concat(i,"-").concat(n)})(new Date),N=(null==e?void 0:null===(i=e.navDetails)||void 0===i?void 0:null===(l=i.navHistoryData)||void 0===l?void 0:l.map(e=>{let[l,i,n]=e.navDate.split("-").map(Number);return{date:new Date(l,i-1,n).getTime()||new Date().getTime(),value1:e.nav}}))||[],y=(null==e?void 0:null===(t=e.navDetails)||void 0===t?void 0:null===(n=t.benchmarkHistoryData)||void 0===n?void 0:n.map(e=>({date:new Date(e.benchDate).getTime()||new Date().getTime(),value2:e.bench})))||[],_=e=>{let l,i;let n=new Date,t=new Date;switch(e){case"1M":t.setMonth(n.getMonth()-1),i=S(t);break;case"6M":t.setMonth(n.getMonth()-6),i=S(t);break;case"YTD":i=S(t=new Date(n.getFullYear(),0,1));break;case"1Y":(l=new Date(n)).setFullYear(n.getFullYear()-1),i=S(t=l);break;case"5Y":(l=new Date(n)).setFullYear(n.getFullYear()-5),i=S(t=l);break;case"Max":i=S(t=new Date(2009,0,1));break;case"DateSelected":return{startDate:c,endDate:v};default:return{startDate:"",endDate:""}}return{startDate:i,endDate:S(n)}},S=e=>{let l=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear();return"".concat(l,"-").concat(i,"-").concat(n)},w=new Date(null==e?void 0:e.date).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"2-digit"}).replace(",","");return m.jsxs("div",{className:"performance-value",children:[m.jsx("div",{className:"performance-value-title",children:m.jsxs("label",{className:"lbl-card-tag-8 ",children:[null==e?void 0:e.title," ",m.jsx("span",{children:m.jsx("img",{fetchPriority:"low",src:"/assets/infoicon.svg",alt:"info",className:"info-icon"})})]})}),m.jsxs("div",{className:"nav-lumpsum-details",children:[m.jsxs("div",{className:"value-details",children:[m.jsxs("div",{className:"nav-lumpsum-holder",children:[m.jsxs("div",{className:"nav-details",children:[m.jsx("label",{className:"lbl-banner-title",children:w}),m.jsxs("label",{className:"percentage-green-txt",children:[null==e?void 0:e.amount," (",null==e?void 0:e.percentage,")"]})]}),m.jsxs("label",{className:"lbl-banner-title nav-lapsum-toggle-btn",children:[m.jsx("span",{className:a?"lbl-txt-info-13 ":"",children:"NAV"}
1),m.jsx(P.ToggleSwitch,{id:"summary-toggle",onChange:()=>{s(e=>!e)},isactive:!a}),m.jsx("span",{className:a?"lbl-txt-info-13 ":"",children:"Lumpsum"})]})]}),!a&&m.jsxs("div",{className:" lbl-txt-info-13 extra-lumpsum-info",children:[m.jsx("label",{className:"lbl-txt-info-13",children:"Investment Amount:"}),m.jsx("input",{})]}),m.jsxs("div",{className:"date-details",children:[m.jsx("label",{className:"lbl-txt-info-13",children:"Select Date"}),m.jsxs("div",{className:"from-to-date",children:[m.jsxs("div",{className:"from-date",children:[m.jsx("label",{className:"lbl-txt-info-13",children:"From:"}),m.jsx(D.MOutlinedCustomDatepicker,{className:"date-picker-default input-field",allowUserInput:!0,dateFrom:c,dateTill:v,dateSeparator:"-",dateFormat:"DD-MM-YYYY",minYear:new Date().getFullYear()-5,maxYear:new Date().getFullYear(),defaultDate:"DD-MM-YYYY"===c?c:"DD-MM-YYYY",label:"From",highlightToday:!0,onComplete:e=>{u(e)}})]}),m.jsxs("div",{className:"to-date",children:[m.jsx("label",{className:"lbl-txt-info-13",children:"To:"}),m.jsx(D.MOutlinedCustomDatepicker,{className:"date-picker-default input-field",allowUserInput:!0,dateFrom:c,dateTill:v,dateSeparator:"-",dateFormat:"DD-MM-YYYY",minYear:new Date().getFullYear()-5,maxYear:new Date().getFullYear(),defaultDate:"DD-MM-YYYY"===j?"DD-MM-YYYY":w,label:"To",highlightToday:!0,onComplete:e=>{h(e)}})]})]}),m.jsx("button",{className:"btn-primary",onClick:()=>{if(!c||!v)return;let e=N.filter(e=>e.date>=new Date(c).getTime()&&e.date<=new Date(v).getTime()),l=y.filter(e=>e.date>=new Date(c).getTime()&&e.date<=new Date(v).getTime());g(e),b(l)},children:"Apply"})]})]}),m.jsxs("div",{className:"performance-nav-history-graph",children:[m.jsx(M.AreaChart,{seriesName:"NavHistory",dataLine1:a?f.length?f:y:x.length?x:N,dataLine2:a?[]:f.length?f:y,ref:p,visible:!1,strokeColor1:ig.strokeColor1,strokeColor2:ig.strokeColor2,gradient1:[{color:ig.strokeColor1,offset:0},{color:ig.gradientColor2,offset:1}],gradient2:[{color:ig.strokeColor2,offset:0},{color:ig.gradientColor2,offset:1}],width:"100%",height:"300px",chartType:"year"}),!a&&m.jsx("div",{className:"extra-lumpsum-info",children:m.jsxs("div",{className:"chart-labels",children:[m.jsxs("div",{className:"investment-amount",children:[m.jsx("span",{className:"dot blue-dot"}),m.jsx("label",{className:"investment-label",children:"Invested Amount"})]}),m.jsxs("div",{className:"estimated-returns",children:[m.jsx("span",{className:"dot yellow-dot"}),m.jsx("label",{className:"returns-label",children:"Estimated Returns"})]})]})})]})]}),m.jsxs("div",{className:"performance-graph-btn",children:[m.jsx("div",{className:"time-period-buttons",children:["1M","6M","YTD","1Y","5Y","Max"].map(e=>m.jsx(I.ButtonWithLoader,{isLoading:!1,className:"btn-area-chart ".concat(o===e?"selected":""),type:"button",value:e,onClick:()=>r(e)},e))}),m.jsxs("div",{className:"zoom-controls",children:[m.jsx("div",{id:"zoomin",onClick:()=>{p.current&&p.current.zoomIn()},children:m.jsx("img",{fetchPriority:"low",src:"/assets/zoomin_grey.svg",alt:"zoomin"})}),m.jsx("div",{id:"zoomout",onClick:()=>{p.current&&p.current.zoomOut()},children:m.jsx("img",{fetchPriority:"low",src:"/assets/zoomout_grey.svg",alt:"zoomout"})}),m.jsx("div",{id:"resetzoom",onClick:()=>{p.current&&p.current.resetZoom()},children:m.jsx("img",{fetchPriority:"low",src:"/assets/reset_grey.svg",alt:"reset"})})]})]}),m.jsx(lY,{htmlString:null==e?void 0:e.description})]})};var nD=Object.freeze({__proto__:null,PerformanceValue:nM});let nP=e=>{let{banners:l,currentIndex:i,onDotClick:n,handleUrl:t,handleOnclick:a}=e,s=l.length,o=e=>e===i?"center":e===(0===i?s-1:i-1)?"left":e===(i+1)%s?"right":"hidden";return m.jsxs("div",{className:"banner-carousel-holder",children:[m.jsx("div",{className:"banner-carousel",children:l.map((e,l)=>m.jsx("div",{className:"carousel-card ".concat(o(l)),onClick:n=>{l===i?t(e.link,e.target):n.stopPropagation()},children:m.jsx("div",{className:"banner-image-card",onClick:n=>{l===i?a(e):n.stopPropagation()},children:m.jsx("img",{fetchPriority:"low",className:"banner-image",src:l===i?e.image:e.backImage,alt:"banner-img",loading:"eager",fetchPriority:"high",width:550,height:300})})},l))}),m.jsx("div",{className:"carousel-indicators",children:l.map((e,l)=>m.jsx("span",{className:"dot ".concat(l===i?"active":""),onClick:()=>n(l)},l))})]})},nA=e=>{let{bannersList:l=[],title:i}
1=e,[n,t]=d.useState(0),[a,s]=d.useState(null),o=l.length,r=()=>{a&&clearInterval(a),s(setInterval(()=>{t(e=>e<o-1?e+1:0)},5e3))};d.useEffect(()=>(r(),()=>{a&&clearInterval(a)}),[n]);let c=()=>{t(e=>e<o-1?e+1:0),r()},u=()=>{t(e=>e>0?e-1:o-1),r()};return 0===o?null:m.jsx("div",{className:"our-index-mutual-fund",children:m.jsxs("div",{className:"our-index-mutualfunds-content-holder",children:[m.jsxs("div",{className:"our-index-mutualfunds-header-holder",children:[m.jsx("label",{className:"lbl-card-title-21",children:i}),m.jsxs("div",{className:"img-container",children:[m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(0===n?"dimmed":""),src:"/assets/arrow_drop_down_circle_right.svg",alt:"Previous",onClick:u,style:{opacity:0===n?.5:1,pointerEvents:0===n?"none":"auto"}}),m.jsx("img",{fetchPriority:"low",className:"arrow-img ".concat(n===o-1?"dimmed":""),src:"/assets/arrow_drop_down_circle_left.svg",alt:"Next",onClick:c,style:{opacity:n===o-1?.5:1,pointerEvents:n===o-1?"none":"auto"}})]})]}),m.jsx("div",{className:"outlook-section-content",children:m.jsx(nP,{banners:l,currentIndex:n,onPrev:u,onNext:c,onDotClick:e=>{t(e),r()},handleUrl:(e,l)=>{e&&(l?window.open(e,"_blank"):window.location.href=e)},handleOnclick:e=>{}})})]})})};var nL=Object.freeze({__proto__:null,OurIndexMutualFunds:nA});let nF=e=>{let{title:l,headers:i,rows:n,disclaimer:t}=e;return m.jsx("div",{className:"market-updates",children:m.jsx("div",{className:"market-updates-content-holder",children:m.jsxs("div",{className:"issuers",children:[m.jsxs("label",{className:"lbl-popup-content",children:[l,m.jsx("span",{children:m.jsx("img",{fetchPriority:"low",src:"/assets/infoicon.svg",alt:"info",className:"info-icon"})})]}),m.jsx("div",{className:"table-holder",children:m.jsxs("table",{className:"table",cellSpacing:"0",children:[m.jsx("thead",{children:m.jsx("tr",{children:i.map((e,l)=>m.jsx("th",{children:e},l))})}),m.jsx("tbody",{children:n.map((e,l)=>m.jsx("tr",{children:e.map((e,l)=>m.jsx("td",{children:e},l))},l))})]})}),m.jsx("div",{className:"lbl-txt-info-22 desc",dangerouslySetInnerHTML:{__html:t||""}})]})})})};var nE=Object.freeze({__proto__:null,MarketUpdates:nF});let nO=e=>{let l=e=>{e.schemename.replace(/\s/g,"-").toLowerCase(),e.plantype.toLowerCase();let l=(null==e?void 0:e.schemeid).split("-");l[0],l[1];let i=l[0],n=l[1],t=x.generateSchemeUrl({schemeName:e.schemename||"",schemeCode:i||"",planCode:n||"",planType:e.plantype||"",schemeType:"index-funds",basePath:v.GLOBAL_CONSTANT.ROUTE_PATHS.MUTUAL_FUNDS.replace(/^\/+/,"")}),a=window.location.pathname,s=t.startsWith("/")?t:"/".concat(t);a.includes(v.GLOBAL_CONSTANT.ROUTE_PATHS.MUTUAL_FUNDS)?(lc(s),window.location.href=s):(lc(t),window.location.href=t)};return m.jsx("div",{className:"nafty-comp",children:m.jsx("div",{className:"nafty-comp-content-holder",children:m.jsx("ul",{children:e.cards.map(e=>m.jsxs("li",{id:"tab-".concat(e.title),onClick:()=>l(e),children:[m.jsx("img",{fetchPriority:"low",src:null==e?void 0:e.icon,alt:e.title||j.getAltText(null==e?void 0:e.icon)}),m.jsx("label",{className:"lbl-banner-title-1",children:e.title})]},e.schemeid))})})})};var nz=Object.freeze({__proto__:null,NiftyComp:nO});let nB=e=>{let{cards:l}=e;if(!l||0===l.length)return null;let i=l[0];return m.jsxs("div",{className:"systematic-investment-plan",children:[m.jsxs("div",{className:"systematic-investment-content-holder",children:[m.jsx("label",{className:"lbl-popup-content",children:(null==i?void 0:i.title)||"Systematic Investment Plan"}),m.jsxs("div",{className:"systematic-plan-data",children:[(null==i?void 0:i.icon)&&m.jsx("img",{fetchPriority:"low",src:i.icon,alt:"Systematic Investment Icon"}),(null==i?void 0:i.description)&&m.jsx("div",{className:"lbl-card-title3 description",dangerouslySetInnerHTML:{__html:i.description}})]})]}),m.jsxs("div",{className:"systematic-investment-content-holder-formobile",children:[(null==i?void 0:i.icon)&&m.jsx("img",{fetchPriority:"low",src:i.icon,alt:"Systematic Investment Icon"}),m.jsxs("div",{className:"systematic-plan-data",children:[m.jsx("label",{className:"lbl-popup-content",children:(null==i?void 0:i.title)||"Systematic Investment Plan"}),(null==i?void 0:i.description)&&m.jsx("div",{className:"lbl-card-title3 description",dangerouslySetInnerHTML:{__html:i.description}})]})]})]})};var nR=Object.freeze({__proto__:null,SystematicInvestmentPlan:nB});let nU=e=>{let{headers:l,rows:i}=e;return m.jsx("div",{className:"frequency-under-sip-facility",children:m.jsx("div",{className:"frequency-under-sip-facility-content-holder",children:m.jsx("div",{className:"table-holder",children:m.jsxs("table",{className:"table",cellSpacing:"0",children:[m.jsx("thead",{children:m.jsx("tr",{children:null==l?void 0:l.map((e,l)=>m.jsx("th",{children:e},l))})}),m.jsx("tbody",{children:null==i?void 0:i.map((e,l)=>m.jsx("tr",{children:null==e?void 0:e.map((e,l)=>m.jsx("td",{children:e},l))},l))})]})})})})};var nH=Object.freeze({__proto__:null,FrequencyUnderSIPFacility:nU});let nW=e=>{let{title:l,headers:i,rows:n}=e;return m.jsx("div",{className:"explore-current-funds",children:m.jsxs("div",{className:"explore-current-funds-content-holder",children:[m.jsx("label",{className:"lbl-popup-content",children:l}),m.jsx("div",{className:"table-holder",children:m.jsxs("table",{className:"table",cellSpacing:"0",children:[m.jsx("thead",{children:m.jsx("tr",{children:i.map((e,l)=>m.jsx("th",{children:e},l))})}),m.jsx("tbody",{children:n.map((e,l)=>m.jsx("tr",{children:e.map((e,l)=>m.jsx("td",{className:"table-data-value",children:e},l))},l))})]})})]})})};var nY=Object.freeze({__proto__:null,ExploreCurrentFunds:nW});let nV="output_one",nq=e=>{var l,i,n,t;
1let[a,s]=d.useState({}),o=d.useRef({}),r=e.calculatorDetails.inputs,c=h.useRootContextData();d.useEffect(()=>{let e={};null==r||r.forEach(l=>{e[l.id]=l.defaultValue?parseFloat(l.defaultValue):0}),s(e)},[r]),d.useEffect(()=>{e&&(f(),b())},[e]);let u=e=>{if(!e)return"";let l=parseFloat(e).toFixed(2).split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")},[v,p]=d.useState({seriesName:"SIP Series",data:[{name:"Invested Amount",value:0,sliceSettings:{fill:"#f0f0f0",stroke:"#f0f0f0"}},{name:"Estimated Amount",value:0,sliceSettings:{fill:"#3BB865",stroke:"#3BB865"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:70,fontSize:12,maxWidth:500,enableAnimation:!0,enableLegend:!1,enableSliceClick:!1}),x=e=>{let l=RegExp("\\b(".concat("function|if|else|return|var|let|const|for|while|forEach|map|script|eval|constructor|prototype|toString|valueOf|alert|prompt|confirm|console|delete|window|document",")\\b"),"gi");return e.replace(l,"")},g=e=>{let l=x(e);return Function("values","return ".concat(l))},f=()=>{var l,i,n;null==e||null===(n=e.calculatorDetails)||void 0===n||null===(i=n.output)||void 0===i||null===(l=i.formulas)||void 0===l||l.forEach(e=>{o.current[null==e?void 0:e.id]=g(null==e?void 0:e.formula)})},b=()=>{var l,i;let n={};null===(i=e.calculatorDetails)||void 0===i||null===(l=i.inputs)||void 0===l||l.forEach(e=>{n[e.id]=e.defaultValue||0}),n[nV]=j(nV,n),s(n)},j=(e,l)=>{try{var i,n;let t=null===(i=(n=o.current)[e])||void 0===i?void 0:i.call(n,l);return isNaN(t)?0:t}catch(e){return 0}},N=(e,l)=>{let i={...a};i[e]=l?parseFloat(l).toFixed(2):"0.00";let n=function(e){let{taxable_income:l,annual_elss_investment:i}=e;function n(e){let l=0;e>1e6?l+=(e-1e6)*.3+1e5:e>5e5?l+=(e-5e5)*.2+12500:e>25e4&&(l+=(e-25e4)*.05);let i=.04*l;return l+i}function t(e,l){let i=Math.max(e-l,0),n=0;i>1e6?n+=(i-1e6)*.3+1e5:i>5e5?n+=(i-5e5)*.2+12500:i>25e4&&(n+=(i-25e4)*.05);let t=.04*n;return n+t}return{payable_tax:n(l),tax_after_investment:t(l,i),tax_savings:n(l)-t(l,i)}}(i);s(i={...i,...n}),_(i.invested_amount,i.estimated_returns)},_=(e,l)=>{isNaN(e)||isNaN(l)||p({seriesName:"SIP Series",data:[{name:"Invested Amount",value:e,sliceSettings:{fill:"#f0f0f0",stroke:"#f0f0f0"}},{name:"Estimated Amount",value:l,sliceSettings:{fill:"#3BB865",stroke:"#3BB865"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:70,fontSize:12,maxWidth:500,enableAnimation:!0,enableLegend:!1,enableSliceClick:!1})};return m.jsx("div",{className:"elss-calculator",children:m.jsxs("div",{className:"elss-calculator-holder",children:[m.jsx("label",{className:"lbl-card-title-3",children:"ELSS = Save Tax + Wealth Creation"}),m.jsxs("div",{className:"elss-calculator-content-holder",children:[m.jsxs("div",{className:"elss-calculator-input",children:[m.jsx("div",{className:"sip-calculator-input-section",children:null==e?void 0:null===(i=e.calculatorDetails)||void 0===i?void 0:null===(l=i.inputs)||void 0===l?void 0:l.map(e=>{var l;return m.jsx("div",{className:"sip-calculator-input-group",children:m.jsxs("div",{className:"sip-calculator-input-wrapper",children:[m.jsxs("div",{className:"sip-calculator-label-wrapper",children:[m.jsx("label",{className:"sip-calculator-label",children:e.fieldName}),m.jsx("div",{className:"sip-calculator-input-container",children:m.jsx("input",{id:e.id,className:"sip-calculator-input",type:"text",value:(e.prefix?e.prefix:"")+u((null==a?void 0:null===(l=a[e.id])||void 0===l?void 0:l.toString())||""),onChange:l=>{let i=l.target.value.replace(/[^0-9.]/g,"");""===i.trim()?(i="0",c.triggerToast({message:ih.MIN_AMOUNT+" 0",toastType:"default"})):(""===(i=i.replace(/^0+/,""))&&(i="0"),"integer"===e.type?i=i.replace(/\./g,""):"float"===e.type&&(i=i.replace(/^(\d*\.\d{0,2})\d*$/,"$1")),(i.match(/\./g)||[]).length>1&&(i=i.substring(0,i.lastIndexOf("."))),["exp_rpa","sip_topup_percent","inf","market_rate_of_return","expected_annual_return"].includes(e.id)?(0>=+i&&(i="0",c.triggerToast({message:ih.MIN_AMOUNT+" 0",toastType:"default"})),+i>e.maxValue&&(i=e.maxValue.toString(),c.triggerToast({message:ih.MAX_AMOUNT+e.maxValue,toastType:"default"}))):+i>e.maxValue?(i=e.maxValue.toString(),c.triggerToast({message:ih.MAX_AMOUNT+e.maxValue,toastType:"default"})):+i<e.minValue&&(i=e.minValue.toString(),c.triggerToast({message:ih.MIN_AMOUNT+e.minValue,toastType:"default"}))),N(e.id,i)},min:e.minValue,max:e.maxValue,defaultValue:e.defaultValue})})]}),m.jsxs("div",{className:"sip-calculator-range-slider-wrapper",children:[m.jsx(y.RangeSlider,{className:"mf-range-slider-default range-slider",min:e.minValue,max:e.maxValue,value:(null==a?void 0:a[e.id])||"",steps:1,trackStep:10,defaultValue:e.defaultValue,onChange:l=>N(e.id,l)}),m.jsxs("div",{className:"slider-input-range-label",children:[m.jsx("span",{className:"lbl-txt-content",children:(e.prefix?e.prefix:"")+e.minValue+(e.sufix?e.suf
1ix:"")}),m.jsx("span",{className:"lbl-txt-content",children:(e.prefix?e.prefix:"")+e.maxValue+(e.sufix?e.sufix:"")})]})]})]})},e.id)})}),m.jsx("div",{className:"elss-amount-container",children:null===(t=e.calculatorDetails)||void 0===t?void 0:null===(n=t.outputs)||void 0===n?void 0:n.slice(0,2).map((l,i)=>m.jsx("label",{className:"".concat("Sharpe Ratio"===l.fieldName||"12"===e.calculatorId?"text-align-centered":"text-left-aligned"," label-index-").concat(i),children:m.jsxs("span",{className:"lbl-card-title-2",children:[l.fieldName,m.jsx("br",{}),m.jsxs("span",{className:"lbl-card-tag-7",children:["â¹",(null==l?void 0:l.id)==="payable_tax"&&u((null==a?void 0:a.payable_tax)||0),(null==l?void 0:l.id)==="tax_after_investment"&&u(null==a?void 0:a.tax_after_investment)||0]})]})},i))})]}),m.jsxs("div",{className:"elss-calculator-image",children:[m.jsx("img",{fetchPriority:"low",src:"./assets/hand_money.svg",alt:"hand_money"}),m.jsx("label",{className:"lbl-card-tag-7",children:"You Save"}),m.jsxs("label",{className:"lbl-card-tag-7",children:["â¹",u(null==a?void 0:a.tax_savings)||0]})]})]}),m.jsx("div",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.disclaimer)||""}})]})})};var nG=Object.freeze({__proto__:null,ELSSCalculator:nq});let nK=e=>{var l,i;let[n,t]=d.useState("goal"),a=e=>{t(e)};return m.jsx("div",{className:"elss-calculator2",children:m.jsxs("div",{className:"elss-calculator2-holder",children:[m.jsx("label",{className:"lbl-card-title-3",children:null==e?void 0:e.title}),m.jsxs("div",{className:"elss-calculator2-btn-holder",children:[m.jsx("button",{className:"btn ".concat("goal"===n?"btn-primary":"btn-outline-primary"),onClick:()=>a("goal"),children:null==e?void 0:e.titleOne}),m.jsx("button",{className:"btn ".concat("invest"===n?"btn-primary":"btn-outline-primary"),onClick:()=>a("invest"),children:null==e?void 0:e.titleTwo})]}),m.jsx("div",{className:"elss-calculator2-content-holder",children:"goal"===n?m.jsx("div",{className:"session1",children:null==e?void 0:null===(l=e.investedSection)||void 0===l?void 0:l.map(e=>m.jsxs("div",{className:"calc-detail-card",children:[m.jsx("div",{className:"card-item-duration",children:null==e?void 0:e.main_title}),m.jsxs("div",{className:"card-items",children:[m.jsxs("div",{className:"card-item-values",children:[m.jsx("label",{className:"lbl-card-title-10",children:null==e?void 0:e.title_one}),m.jsx("label",{className:"lbl-card-tag-7",children:null==e?void 0:e.amount_one})]}),m.jsxs("div",{className:"card-item-values",children:[m.jsx("label",{className:"lbl-card-title-10",children:null==e?void 0:e.title_two}),m.jsx("label",{className:"lbl-card-tag-7",children:null==e?void 0:e.amount_two})]})]})]}))}):m.jsx("div",{className:"session2",children:null==e?void 0:null===(i=e.performanceSection)||void 0===i?void 0:i.map((e,l)=>m.jsxs("div",{className:"session2-card",children:[m.jsx("div",{className:"card-item-duration",children:null==e?void 0:e.main_title}),m.jsxs("div",{className:"session2-card-details",children:[m.jsx("label",{className:"lbl-card-title-10",children:null==e?void 0:e.title_one}),m.jsx("label",{className:"lbl-card-tag-7",children:null==e?void 0:e.amount_one})]})]},l))})}),m.jsxs("div",{className:"elss-two-description",children:[m.jsx("label",{className:"lbl-input-heading-1",children:null==e?void 0:e.descriptionOne}),m.jsx("label",{className:"lbl-txt-info-16",children:null==e?void 0:e.descriptionTwo})]}),m.jsx("div",{})]})})};var nJ=Object.freeze({__proto__:null,ElssCalculator2:nK});let nZ=e=>{var l;return m.jsxs("div",{className:"featuresofvaluemf",children:[m.jsx("h1",{className:"valuemftitle lbl-card-title-21",children:null==e?void 0:e.title}),m.jsx("div",{className:"card-container1",children:null==e?void 0:null===(l=e.features)||void 0===l?void 0:l.map((e,l)=>m.jsxs("div",{className:"feature-card",children:[m.jsx("label",{className:"lbl-card-title-21",children:e.title}),m.jsx("label",{className:"lbl-txt-info-22",children:e.description})]},l))})]})};var n$=Object.freeze({__proto__:null,FeaturesOfValueMF:nZ});let nX=async()=>{let e=lg.SERVICE_URL+"/cms/risk-profiler",l=await lv(e,{"Content-Type":"application/json"},"");return!l||(null==l?void 0:l.errortype)?{}:(null==l?void 0:l.status)==="success"?l:{}},nQ=e=>{var l;let{onCancel:i,stepsData:n,riskData:t}
1=e,[a,s]=d.useState(1),[o,r]=d.useState(null),[c,u]=d.useState([]),[v,x]=d.useState(null),[g,f]=d.useState(!1),[b,j]=d.useState(!1),[N,y]=d.useState(!1),_=1===a,[S,w]=d.useState([]),k=h.useLoginContextData(),[C,I]=d.useState(!1),[T,M]=d.useState(!1),[D,P]=d.useState(!0),F=(e,l)=>{r(e),x(l)},[E,O]=d.useState(),z=d.useMemo(()=>{var e,l;return null!==(l=null==E?void 0:null===(e=E.data)||void 0===e?void 0:e.qAndA)&&void 0!==l?l:[]},[E]),B=z.length,[R,U]=d.useState(0),H=function(e){var l;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[...i].sort((e,l)=>{var i,n;return(null!==(i=e.score)&&void 0!==i?i:0)-(null!==(n=l.score)&&void 0!==n?n:0)});if(n.length)return null!==(l=n.find(l=>{var i;return e<=(null!==(i=l.score)&&void 0!==i?i:0)}))&&void 0!==l?l:n[n.length-1]},W=d.useMemo(()=>{var e,l;return H(R,null!==(l=null==E?void 0:null===(e=E.data)||void 0===e?void 0:e.scoreResult)&&void 0!==l?l:[])},[R,E]),Y=null==z?void 0:z[a-1],V=d.useMemo(()=>(null==z?void 0:z.length)?z.map(e=>{var l;return null!==(l=null==e?void 0:e.steName)&&void 0!==l?l:""}):[],[z]),q=d.useMemo(()=>{var e;return(null!==(e=null==Y?void 0:Y.options)&&void 0!==e?e:[]).map(e=>({id:e.index,point:e.option,score:e.score}))},[Y]),G=e=>e.reduce((e,l)=>{var i;return e+Number(null!==(i=null==l?void 0:l.answerPoint)&&void 0!==i?i:0)},0);d.useEffect(()=>{sessionStorage.removeItem("riskProfilerAnswers"),w([]),U(0)},[]),d.useEffect(()=>{(async()=>{O(await nX())})()},[]),d.useEffect(()=>{let e=sessionStorage.getItem("riskProfilerAnswers");e&&w(JSON.parse(e))},[]);let K=()=>{window.innerWidth<=768?M(!0):M(!1)};d.useEffect(()=>(K(),window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}),[]);let J=async()=>{var e,l,i,n,t,d,c,m,h,p;if(z.length&&Y&&!g){if(a<B){if(Y){let l=null===(e=Y.options)||void 0===e?void 0:e.find(e=>e.index===o),i=[...S,{step:a,steName:Y.steName,shortQuestion:Y.shortQuestion,question:Y.question,selectedIndex:o||"",selectedAnswer:v||"",answerPoint:l?l.score:"0"}];w(i),U(G(i)),sessionStorage.setItem("riskProfilerAnswers",JSON.stringify(i))}u(e=>[...e,{title:null==Y?void 0:Y.shortQuestion,option:v||""}]),s(a+1),r(null)}else if(a===B){u(e=>[...e,{title:null==Y?void 0:Y.shortQuestion,option:v||""}]);let e=null===(l=Y.options)||void 0===l?void 0:l.find(e=>e.index===o),s=[...S,{step:a,steName:Y.steName,shortQuestion:Y.shortQuestion,question:Y.question,selectedIndex:o||"",selectedAnswer:v||"",answerPoint:e?e.score:"0"}];if(w(s),U(G(s)),T)f(!0);else if(b){if("loggedin"===await (null===(i=k.getLoginStatus)||void 0===i?void 0:i.call(k))){let e=await (null===(n=k.getLoggedinUserDetails)||void 0===n?void 0:n.call(k));null===(t=k.setUserLoginData)||void 0===t||t.call(k,{pan:null==e?void 0:e.pan})}else null==k||null===(d=k.setLoginPropsData)||void 0===d||d.call(k,{isCampiagnPage:!0,isSeventhStep:!0}),f(!0)}else{if("loggedin"===await (null===(c=k.getLoginStatus)||void 0===c?void 0:c.call(k))){let e=await (null===(m=k.getLoggedinUserDetails)||void 0===m?void 0:m.call(k));null===(h=k.setUserLoginData)||void 0===h||h.call(k,{pan:null==e?void 0:e.pan})}else null==k||null===(p=k.setLoginPropsData)||void 0===p||p.call(k,{isCampiagnPage:!0,isSeventhStep:!0}),f(!0);f(!0)}}}},Z=()=>{y(!1),I(!1)},$=async()=>{var e,l,i,n,t,a,s,o,r,d;if(b){if("loggedin"===await (null===(e=k.getLoginStatus)||void 0===e?void 0:e.call(k))){let e=await (null===(l=k.getLoggedinUserDetails)||void 0===l?void 0:l.call(k));null===(i=k.setUserLoginData)||void 0===i||i.call(k,{pan:null==e?void 0:e.pan}),y(!0)}else null==k||null===(n=k.setLoginPropsData)||void 0===n||n.call(k,{isCampiagnPage:!0,isSeventhStep:!0}),null==k||null===(t=k.triggerLogin)||void 0===t||t.call(k,!0,{successLoginCB:()=>{y(!0)}}),f(!0)}else{if("loggedin"===await (null===(a=k.getLoginStatus)||void 0===a?void 0:a.call(k))){let e=await (null===(s=k.getLoggedinUserDetails)||void 0===s?void 0:s.call(k));null===(o=k.setUserLoginData)||void 0===o||o.call(k,{pan:null==e?void 0:e.pan}),y(!0)}else null==k||null===(r=k.setLoginPropsData)||void 0===r||r.call(k,{isCampiagnPage:!0,isSeventhStep:!0}),null==k||null===(d=k.triggerLogin)||void 0===d||d.call(k,!0,{successLoginCB:()=>{y(!0)}}),f(!0);f(!0)}I(!1)};return m.jsxs("div",{className:"risk-profiler",children:[m.jsx("div",{className:"lbl-card-tag-8",children:null==t?void 0:t.stepsTitle}),g?"":m.jsx("div",{className:"steps-container",children:[...Array(B||0)].map((e,l)=>m.jsxs("div",{className:"steps",children:[m.jsxs("div",{className:"step-item",children:[m.jsxs("label",{className:"step ".concat(a>=l+1?"active":""),children:["0",l+1]}),m.jsx("label",{className:"step-label ".concat(a>=l+1?"active":""),children:V[l]})]}),l<5&&m.jsx("div",{className:"dotted-line ".concat(a>l+1?"active":"")})]},l))}),m.jsx("div",{className:"risk-profiler-content",children:m.jsxs("div",{className:"risk-profiler-content-holder",children:[g?m.jsxs("div",{className:"question-section",children:[m.jsxs("div",{className:"title-section",children:[m.jsx("label",{className:"lbl-card-title",children:null==t?void 0:t.stepsSubTitle}),m.jsxs("label",{className:"lbl-primary-banner-title-4",onClick:()=>{s(1),u([]),r(null),f(!1),j(!0),w([]),sessionStorage.removeItem("riskProfilerAnswers")},children:[m.jsx("img",{fetchPriority:"low",src:null==t?void 0:t.repeatArrowImage,alt:"repeat arrow image"}),"Retake Questionnaire"]})]}),m.jsxs("div",{className:"risk-section-container",children:[m.jsxs("div",{className:"risk-section-item",children:[m.jsx("img",{fetchPriority:"low",className:"retake-image",src:null==t?void 0:t.riskAppetiteImage,alt:"retake"}),m.jsx("label",{className:"lbl-card-title-1",children:"Your Risk Appetite is"})]}),m.jsx("label",{className:"lbl-txt-info-13 ",children:null==W?void 0:W.riskProfile})]}),m.jsxs("div",{className:"risk-section-container-mob",children:[m.jsx("img",{fetchPriority:"low",className:"retake-image",src:null==t?void 0:t.riskAppetiteImage,alt:"Risk profiler illustration"}),m.jsxs("div",{className:"risk-section-item",children:[m.jsx("label",{className:"lbl-card-title-1",children:"Your Risk Appetite is"}),m.jsx("label",{className:"lbl-txt-info-13 ",children:null==W?void 0:W.riskProfile})]})]}),null==W?void 0:null===(l=W.descriptions)||void 0===l?void 0:l.map((e,l)=>m.jsx("div",{className:"options",children:m.jsx("label",{className:"lbl-card-title-1",children:e})},l))]}):m.jsxs("div",{className:"question-section",children:[m.jsx("label",{className:"lbl-card-title",children:null==t?void 0:t.stepsSubTitle}),m.jsxs("label",{className:"lbl-card-title-10",children:[m.jsxs("span",{children:[a,"."]}),null==Y?void 0:Y.question]}),m.jsx("div",{className:"options",children:m.jsx(A.SimpleRadio,{idKey:"id",list:q,displayValueKey:"point",selectedId:o,onChange:e=>{var l;return F(e,(null===(l=q.find(l=>l.id===e))||void 0===l?void 0:l.point)||"")},className:"simple-radio-tax-resident-radio"})})]}),m.jsx("div",{className:"view-inputs-btn",children:(g||T&&a>1)&&m.jsx("button",{className:"lbl-primary-txt-info2",onClick:()=>{I(!0),P(!1)},children:"View Your Inputs"})}),m.jsx("div",{className:"inputs-section",children:m.jsxs("div",{className:"placeholder",children:[m.jsx("label",{className:"lbl-card-title-10",children:"Your Inputs"}),_?m.jsx("div",{className:"placeholder-image",children:m.jsx("img",{fetchPriority:"low",src:null==t?void 0:t.inputsImage,alt:"Your Inputs Placeholder"})}):m.jsx("div",{className:"placeholder-txt",children:c.map((e,l)=>m.jsxs("div",{className:"placeholder-txt1",children:[m.jsx("label",{className:"lbl-txt-info-13",children:e.title}),m.jsx("label",{className:"lbl-card-title-1",children:e.option})]},l))})]})})]})}),m.jsx("div",{className:"action-buttons",children:g?m.jsx("button",{className:"btn-primary",onClick:()=>{},disabled:!0,children:"Plan My Goals"}):m.jsxs("div",{className:"btn-sections",children:[m.jsx("button",{className:"btn-outline-primary cancel",onClick:i,children:"Cancel"}),m.jsx("button",{className:"btn-primary continue",onClick:J,disabled:!o,children:a===B?"Submit":"Continue"})]})}),C?m.jsx(p.OverlayPopup,{className:"overlay-popup dialog-popup-content",isFloating:!0,showHeader:!0,title:"Your Inputs",onClose:Z,content:m.jsxs("div",{className:"your-inputs-summary-mob",children:[m.jsx("label",{className:"lbl-card-title-10"}),m.jsx("div",{className:"placeholder-txt",children:c.map((e,l)=>m.jsxs("div",{className:"placeholder-txt1",children:[m.jsx("label",{className:"lbl-txt-info-13",children:e.title}),m.jsx("label",{className:"lbl-card-title-1",children:e.option})]},l))}),D&&m.jsx("button",{className:"btn-primary",onClick:$,children:"Submit"})]})}):"",N?m.jsx(p.OverlayPopup,{className:"dialog-popup-content m-full-screen",isFloating:!0,showHeader:!1,onClose:Z,content:m.jsx(L.PersonalDetailsPopup,{isSeventhStep:7===a,onClose:Z})}):""]})},n0=e=>{var l,i,n,t,a,s,o,r;let[c,u]=d.useState();return m.jsx(d.Fragment,{children:c?m.jsx(nQ,{onCancel:()=>{u(!1)},stepsData:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.steps,riskData:null==e?void 0:e.data}):m.jsxs("div",{children:[m.jsx("div",{className:"lbl-card-title-2",children:"Nothing in life has a one-size-fits-all approach. So why should investments? With a risk profiler, know how much risk you can take as an investor. Check your risk profile now!"}),m.jsxs("div",{className:"riskProfileWrap",children:[m.jsxs("div",{className:"rpMainBoxWrap",children:[m.jsx("div",{className:"rpMainBoxTitle",children:null==e?void 0:null===(i=e.data)||void 0===i?void 0:null===(l=i.r
1iskProfiler)||void 0===l?void 0:l.title}),m.jsx("div",{className:"rpInnerBoxesWrap",children:null==e?void 0:null===(a=e.data)||void 0===a?void 0:null===(t=a.riskProfiler)||void 0===t?void 0:null===(n=t.cards)||void 0===n?void 0:n.map((e,l)=>m.jsxs("div",{className:"rpInnerBox",children:[m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon),className:"rpInnerBoxIcon"}),m.jsx("label",{className:"rpInnerBoxTitle",children:e.title})]},l))})]}),m.jsx(I.ButtonWithLoader,{id:"checkRiskProfile",className:"btn-primary checkRiskProfileBtn",disabled:!1,value:null==e?void 0:null===(o=e.data)||void 0===o?void 0:null===(s=o.riskProfiler)||void 0===s?void 0:s.redirectButtonLabel,onClick:()=>{u(!0)}})]}),m.jsx("div",{style:{display:"none"},children:m.jsxs("div",{className:"riskometerWrap",children:[m.jsx("div",{className:"lbl-card-title-2",children:"Nothing in life has a one-size-fits-all approach. So why should investments? With a risk profiler, know how much risk you can take as an investor. Check your risk profile now!"}),m.jsxs("div",{className:"riskoMeterMainBoxWrap",children:[m.jsx("div",{className:"riskoMeterImage",children:m.jsx("img",{fetchPriority:"low",src:"",alt:"card.title",className:"rskoMtrImg"})}),m.jsxs("div",{className:"riskoMeterImgInfo",children:[m.jsx("div",{className:"riskoMeterImgTitle",children:"Low"}),m.jsx("div",{className:"riskoMeterImgDesc",children:"Investors investing in Funds categorised as âLow Riskâ can expect their principal to be subjected to Low Risk. Investments in this category are suitable for investors willing to take minimal investment risks."})]})]})]})})]})})},n1=e=>{var l,i,n,t,a,s,o,r,c,u,v,h,p;let{data:x}=e,[g,f]=d.useState("/assets/meterlow_n.png"),[b,j]=d.useState(null),[N,y]=d.useState(!1),_=d.useRef(null);d.useEffect(()=>{let e=()=>{y(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let S=[{id:"Region 1",xPct:8.16,yPct:50,wPct:22.45,hPct:29.17,src:"/assets/meterlow_n.png",label:null==x?void 0:null===(l=x.cards[0])||void 0===l?void 0:l.title,description:null==x?void 0:null===(i=x.cards[0])||void 0===i?void 0:i.description},{id:"Region 2",xPct:19.39,yPct:33.33,wPct:20.41,hPct:29.17,src:"/assets/meterlowtomod_n.png",label:null==x?void 0:null===(n=x.cards[1])||void 0===n?void 0:n.title,description:null==x?void 0:null===(t=x.cards[1])||void 0===t?void 0:t.description},{id:"Region 3",xPct:32.65,yPct:22.92,wPct:18.37,hPct:29.17,src:"/assets/metermod_n.png",label:null==x?void 0:null===(a=x.cards[2])||void 0===a?void 0:a.title,description:null==x?void 0:null===(s=x.cards[2])||void 0===s?void 0:s.description},{id:"Region 6",xPct:69,yPct:40,wPct:30,hPct:42,src:"/assets/meterveryhigh_n.png",label:null==x?void 0:null===(o=x.cards[5])||void 0===o?void 0:o.title,description:null==x?void 0:null===(r=x.cards[5])||void 0===r?void 0:r.description},{id:"Region 5",xPct:58,yPct:30,wPct:11,hPct:40,src:"/assets/meterhigh_n.png",label:null==x?void 0:null===(c=x.cards[4])||void 0===c?void 0:c.title,description:null==x?void 0:null===(u=x.cards[4])||void 0===u?void 0:u.description},{id:"Region 4",xPct:47.96,yPct:22.92,wPct:18.37,hPct:29.17,src:"/assets/metermodhigh_n.png",label:null==x?void 0:null===(v=x.cards[3])||void 0===v?void 0:v.title,description:null==x?void 0:null===(h=x.cards[3])||void 0===h?void 0:h.description}];return m.jsxs("div",{className:"risk-o-meter",children:[m.jsxs("label",{className:"lbl-card-title-2",children:[" ",null==x?void 0:x.title," "]}),m.jsxs("div",{className:"riskometer-container",children:[m.jsx("img",{fetchPriority:"low",src:g,alt:"Riskometer",className:N?"for-mobile-riskometer":"for-web-riskometer",ref:_,onPointerUp:e=>{e.preventDefault();let l=_.current;if(!l)return;let i=l.getBoundingClientRect(),n=e.clientX-i.left,t=e.clientY-i.top,a=n/i.width*100,s=t/i.height*100,o=S.find(e=>a>=e.xPct&&a<=e.xPct+e.wPct&&s>=e.yPct&&s<=e.yPct+e.hPct);if(o){f(o.src),j(o);let e=document.querySelector(".risk-info");if(!e)return;"Region 1"===o.id||"Region 3"===o.id?e.setAttribute("style","background-color: #FDE7EF"):e.setAttribute("style","background-color: #F4EBF9")}},style:{cursor:"pointer",maxWidth:"100%",touchAction:"none"},tabIndex:0,role:"button","aria-label":"Riskometer chart, click or tap to change region"}),m.jsxs("div",{className:"risk-info",children:[m.jsx("h4",{children:(null==b?void 0:b.label)?b.label:"Low"}),m.jsx("label",{className:"lbl-input-heading-1",children:(null==b?void 0:b.description)?null==b?void 0:b.description:null==x?void 0:null===(p=x.cards[0])||void 0===p?void 0:p.description})]})]})]})},n2=e=>{var l;
1let[i,n]=d.useState(null==e?void 0:e.activeButtonId),t=e=>{n(e)};return d.useEffect(()=>{(null==e?void 0:e.activeButtonId)&&n(e.activeButtonId)},[null==e?void 0:e.activeButtonId]),m.jsx("div",{className:"risk-section",children:m.jsxs("div",{className:"riskometer-container",children:[m.jsxs("div",{className:"risko-meter-btn-holder",children:[(null==e?void 0:e.buttonOneId)&&m.jsx("button",{className:"btn ".concat(i===(null==e?void 0:e.buttonOneId)?"btn-primary":"btn-outline-primary"),onClick:()=>t(null==e?void 0:e.buttonOneId),children:"Risk Profiler"},"risko-meter-btn"),(null==e?void 0:e.buttonTwoId)&&m.jsx("button",{className:"btn ".concat(i===(null==e?void 0:e.buttonTwoId)?"btn-primary":"btn-outline-primary"),onClick:()=>t(null==e?void 0:e.buttonTwoId),children:"Risk O Meter"},"risko-profile-btn")]}),m.jsx("div",{className:"risk-component-holder",children:i===(null==e?void 0:e.buttonOneId)?m.jsx(n0,{data:e}):m.jsxs(m.Fragment,{children:[m.jsx(n1,{data:null==e?void 0:e.riskOMeter}),m.jsx("div",{className:"risk-component-holder-note",dangerouslySetInnerHTML:{__html:null==e?void 0:null===(l=e.riskOMeter)||void 0===l?void 0:l.note}})]})})]})})};var n3=Object.freeze({__proto__:null,RiskSection:n2});let n5=e=>{let{data:l,itemsDescription:i,width:n=400,height:t=30}=e;l.map(e=>e.value);let a=n-150;return m.jsxs("div",{className:"campaign-page-intro-factor bar-chart-container",style:{width:"".concat(n,"px")},children:[l.map((e,l)=>m.jsxs("div",{className:"bar-item",style:{marginBottom:"8px"},children:[m.jsx("div",{className:"bar-label-above",children:e.name}),m.jsxs("div",{className:"bar-row-inline",style:{height:"".concat(t,"px"),display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m.jsx("div",{className:"bar-background",style:{width:"".concat(a,"px")},children:m.jsx("div",{className:"bar-fill",style:{width:"".concat(e.value/100*a,"px"),backgroundColor:"var(--color-primary)"}})}),m.jsxs("span",{className:"bar-value",children:[Number(e.value).toFixed(2),"%"]})]})]},l)),m.jsx("div",{className:"bar-item-descriptions",dangerouslySetInnerHTML:{__html:i}})]})},n9=e=>{let{title:l="",description:i="",disclaimer:n="",items:t=[],itemsDescription:a=""}=e,s=(null==t?void 0:t.map(e=>({name:null==e?void 0:e.title,value:null==e?void 0:e.percentage,color:null==e?void 0:e.colorCode})))||[];return m.jsxs("div",{className:"introduction-container",children:[m.jsxs("div",{className:"introduction",children:[m.jsxs("div",{className:"introduction__text",children:[l&&m.jsx("span",{className:"introduction__title",children:l}),i&&m.jsx("p",{className:"introduction__description",dangerouslySetInnerHTML:{__html:i}})]}),(null==s?void 0:s.length)>0&&m.jsx(n5,{data:s,itemsDescription:a,width:400,height:25})]}),m.jsx("hr",{}),m.jsx("div",{className:"introduction__footer",dangerouslySetInnerHTML:{__html:n||""}})]})};var n4=Object.freeze({__proto__:null,Introduction:n9});let n6=e=>{let{title:l="",disclaimer:i="",image:n=""}=e;return m.jsx("div",{className:"factor-card",children:m.jsx("div",{className:"factor-card-content",children:m.jsxs("div",{className:"factor-card-text",children:[l&&m.jsx("span",{className:"factor-card-heading",dangerouslySetInnerHTML:{__html:l}}),i&&m.jsx("p",{className:"factor-card-description",dangerouslySetInnerHTML:{__html:i}})]})})})};var n7=Object.freeze({__proto__:null,FactorCard:n6});let n8=e=>{let{cards:l}=e;return m.jsx("div",{className:"factors-cards-container",children:Array.isArray(l)&&(null==l?void 0:l.map((e,l)=>m.jsxs("div",{className:"factors-card",children:[m.jsx("div",{className:"factors-card-icon",children:m.jsx("img",{fetchPriority:"low",src:null==e?void 0:e.icon,alt:"icon"})}),m.jsx("h3",{className:"factors-card-title",children:null==e?void 0:e.title}),m.jsx("p",{className:"factors-card-description",dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}})]},l)))})};var te=Object.freeze({__proto__:null,Factors4Cards:n8});let tl=e=>{let{title:l,variant:i="default",description:n,isSelected:t,onSelect:a}=e;return m.jsxs("div",{className:"fund-card ".concat(i),onClick:a,children:[m.jsx("div",{className:"square square1"}),m.jsx("div",{className:"square square2"}),m.jsx("div",{className:"square square3"}),m.jsx("div",{className:"circle ".concat(t?"selected":""),children:t&&m.jsx("img",{fetchPriority:"low",src:v.pathChanger("purple-check.svg"),alt:"Selected",className:"check-icon"})}),m.jsxs("div",{className:"fund-details-container",style:{marginLeft:"24px"},children:[m.jsx("div",{className:"fund-icon",children:m.jsx("img",{fetchPriority:"low",src:v.pathChanger("campaign-outlook-clock.svg"),alt:l||j.getAltText(v.pathChanger("campaign-outlook-clock.svg")),className:"fund-image"})}),m.jsxs("div",{className:"fund-title-section",children:[m.jsx("label",{className:"fund-title",children:l}),n&&m.jsx("label",{className:"fund-description",children:n})]})]})]})},ti=d.forwardRef((e,l)=>{let i=e||{},n=e=>{var l;if(!Array.isArray(e)||!e.length)return null;let i=e.find(e=>"longterm"===String(null==e?void 0:e.fundType).toLowerCase());return(null==i?void 0:i.fundType)||(null===(l=e[0])||void 0===l?void 0:l.fundType)||null},[t,a]=d.useState(n(null==e?void 0:e.cards)),[s,o]=d.useState(!0),r=d.useRef(null),[c,u]=d.useState(!1);d.useEffect(()=>{let e=new IntersectionObserver(l=>{let[i]=l;i.isIntersecting&&(u(!0),e.disconnect())},{threshold:.1});return r.current&&e.observe(r.current),()=>e.disconnect()},[]);let h=e=>{a(e),o(!0)};if(d.useEffect(()=>{var l;(null==e?void 0:null===(l=e.cards)||void 0===l?void 0:l.length)&&(a(n(e.cards)),o(!0))},[null==e?void 0:e.cards]),!i||!i.cards||!i.carousel)return null;let p=null==i?void 0:i.carousel,x=d.useMemo(()=>(null==i?void 0:i.cards)&&(null==p?void 0:p.id)?i.cards.filter(e=>(null==e?void 0:e.carouselId)===(null==p?void 0:p.id)):[],[null==i?void 0:i.cards,null==p?void 0:p.id]),g=d.useMemo(()=>{var e,l,i,n;return t&&(null==p?void 0:null===(e=p.schemes)||void 0===e?void 0:e[t])&&(null==p?void 0:null===(n=p.schemes)||void 0===n?void 0:null===(i=n[t])||void 0===i?void 0:null===(l=i.flat)||void 0===l?void 0:l.call(i))||[]},[p,t]),f=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim():"",b=d.useMemo(()=>{var e;return{componentId:"micro_investing_from_outlook",trendingMutualFunds:g,quickInvAmtChiplets:(null==i?void 0:i.quickInvAmtChiplets)||["â¹50000","â¹75000","â
1¹100000"],asOnDate:(null==i?void 0:i.asOnDate)||"",disclaimer:(null==i?void 0:i.disclaimer)||"",dailySipFlag:null!==(e=null==i?void 0:i.dailySipFlag)&&void 0!==e&&e}},[g,null==i?void 0:i.quickInvAmtChiplets,null==i?void 0:i.asOnDate,null==i?void 0:i.disclaimer,null==i?void 0:i.dailySipFlag]);return m.jsxs("div",{className:"outlook-container",children:[m.jsxs("div",{className:"outlook-top-section",children:[m.jsx("img",{fetchPriority:"low",src:v.pathChanger("campaignpage-outlook-vectot.svg"),className:"outlook-contain-web-img",alt:"campaignpage-outlook-vectot"}),m.jsx("img",{fetchPriority:"low",src:v.pathChanger("campaignpage-mobile-outlook-vector.svg"),className:"outlook-contain-mobile-img",alt:"campaignpage-mobile-outlook-vector"}),m.jsxs("div",{className:"main-wrapper",children:[m.jsx("div",{className:"left-section",children:m.jsx("div",{className:"tree-placeholder",style:{backgroundImage:"url(".concat(v.pathChanger("3d-cash-money.png.png"),")")}})}),m.jsxs("div",{className:"right-section",children:[m.jsx("label",{className:"title",children:null==p?void 0:p.title}),m.jsx("div",{className:"fund-card-wrapper",children:m.jsx("div",{ref:r,className:"fund-card-container ".concat(c?"visible":""),children:null==x?void 0:x.map((e,l)=>m.jsx(tl,{title:f(null==e?void 0:e.fundType),variant:null==e?void 0:e.variant.toLowerCase(),description:null==e?void 0:e.description.replace(/<\/?p>/g,""),isSelected:t===(null==e?void 0:e.fundType),onSelect:()=>h(null==e?void 0:e.fundType)},"".concat(null==e?void 0:e.fundType,"-").concat(l)))})}),m.jsx("div",{className:"button-group",children:m.jsx("button",{className:"btn-primary campage-outook-con-btn",onClick:()=>{if(!t)return;o(!0);let e=document.getElementById("micro_investing_container");e&&(e.scrollIntoView({behavior:"smooth",block:"start"}),window.setTimeout(()=>{try{e.focus({preventScroll:!0})}catch(l){e.focus()}},350))},disabled:!t,children:"Next"})})]})]})]}),s&&m.jsx("div",{className:"outlook-table-below-section",id:"micro_investing_outlook",children:m.jsx(l_,{ref:l,...b,pendingAddToCart:e.pendingAddToCart,onConsumePendingAddToCart:e.onConsumePendingAddToCart})})]})});var tn=Object.freeze({__proto__:null,default:ti});let tt=e=>{var l,i;let{title:n,date:t,tableTitle:a,table:s,disclaimer:o}=e;return m.jsxs("div",{className:"factor-7-container",children:[m.jsxs("div",{className:"table-header",children:[m.jsx("label",{className:"lbl-txt1-info-9",children:n}),m.jsx("label",{className:"date-stamp",children:t})]}),m.jsxs("div",{className:"table_container",children:[m.jsx("div",{className:"performance-lbl",children:m.jsx("label",{className:"vertical-label",children:a})}),m.jsxs("table",{className:"factor-7-fund-table",children:[m.jsx("thead",{children:m.jsx("tr",{children:null==s?void 0:null===(l=s.headers)||void 0===l?void 0:l.map((e,l)=>m.jsx("th",{children:e},l))})}),m.jsx("tbody",{children:null==s?void 0:null===(i=s.rows)||void 0===i?void 0:i.map((e,l)=>m.jsx("tr",{children:null==e?void 0:e.map((e,l)=>m.jsx("td",{children:e},l))},l))})]})]}),m.jsx("div",{className:"factor7-disclaimer",dangerouslySetInnerHTML:{__html:o}})]})};var ta=Object.freeze({__proto__:null,Factor_7:tt});let ts=e=>{let l=e||{};return m.jsxs("div",{className:"noniap-textbox",children:[m.jsx("label",{className:"lbl-card-title-21",children:l.mainTitle}),m.jsxs("div",{className:"quns-ans-section",children:[m.jsx("label",{className:"noniap-question",children:l.title}),m.jsx("p",{className:"noniap-desc",dangerouslySetInnerHTML:{__html:l.description}})]})]})};var to=Object.freeze({__proto__:null,NonIaptextbox:ts});let tr=e=>{let l=e||{},[i,n]=d.useState(!1);return m.jsxs("div",{className:"text-with-eleven-container",children:[m.jsx("div",{className:"text-with-eleven-icon",children:m.jsx("img",{fetchPriority:"low",src:l.image,alt:"icon"})}),l.cards&&l.cards.map((e,l)=>m.jsxs("div",{className:"text-with-eleven-content",children:[m.jsx("label",{className:"text-with-eleven-title",children:e.title}),m.jsx("p",{className:"text-with-eleven-desc ".concat(i?"expanded":"collapsed"),dangerouslySetInnerHTML:{__html:e.description}}),m.jsx("span",{className:"readmore-toggle",onClick:()=>n(!i),children:i?"Read Less":"Read More"})]},l))]})};var td=Object.freeze({__proto__:null,TextWithEleven:tr});let tc=e=>{let{title:l,subPoints:i}=e;return m.jsxs("div",{className:"bulletpoints-eleven-container",children:[m.jsx("label",{className:"bulletpoints-eleven-title",children:l}),null==i?void 0:i.map((e,l)=>{var i;return m.jsx("div",{className:"bullet-section",children:m.jsxs("div",{className:"bullet-content",children:[m.jsxs("div",{className:"bullet-title-row",children:[m.jsx("img",{fetchPriority:"low",src:v.pathChanger("tick_checked.svg"),alt:"tick_checked",className:"bullet-title-icon"}),m.jsx("label",{className:"bullet-title",children:e.title})]}),m.jsx("ul",{className:"bullet-list",children:null===(i=e.description)||void 0===i?void 0:i.map((e,l)=>m.jsx("li",{children:e},l))})]})},l)})]})};var tu=Object.freeze({__proto__:null,BulletPoints_Eleven:tc});let tv=e=>{let{subPoints:l}=e;return m.jsx("div",{className:"bulletpoints-eleven-container",children:null==l?void 0:l.map((e,l)=>m.jsx("div",{className:"bullet-section",children:m.jsx("div",{className:"bullet-content",children:m.jsx("label",{className:"bullet-title-two",children:e})})},l))})};var tm=Object.freeze({__proto__:null,BulletPoints_Eleven_Two:tv});let th=e=>{let{title:l="",subTitle:i="",cards:n=[],disclaimer:t=""}=e||{},a=Array.isArray(n)?n:[];return m.jsxs("div",{className:"factor5-container",children:[m.jsx("h2",{className:"factor5-title",children:l}),m.jsx("div",{className:"factor5-subtitle",dangerouslySetInnerHTML:{__html:i}}),m.jsxs("div",{className:"factor5-diamonds",children:[m.jsx("div",{className:"diamond passive",children:m.jsx("span",{className:"diamond-text",children:"Passive Investing (β)"})}),m.jsx("div",{className:"diamond factor investing",children:m.jsx("span",{className:"diamond-text",children:"Factor Investing (Smart β)"})}),m.jsx("div",{className:"diamond active",children:m.jsx("span",{className:"diamond-text",children:"Active Investing (α)"})})]}),m.jsxs("div",{className:"factor5-lines",children:[m.jsx("div",{className:"dotted-line passive-line"}),m.jsx("div",{className:"dotted-line factor-line"}),m.jsx("div",{className:"dotted-line active-line"})]}),m.jsx("div",{className:"factor5-boxes",children:null==a?void 0:a.map((e,l)=>m.jsxs("div",{className:"box ".concat(0===l?"passive-box":1===l?"factor-box":"active-box"),children:[m.jsx("h3",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.cardTitle}}
1),m.jsx("p",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.cardDescription}})]},l))}),m.jsx("div",{className:"factor5-mobile",children:null==a?void 0:a.map((e,l)=>m.jsxs("div",{className:"mobile-block",children:[0!==l&&m.jsx("div",{className:"triangle-connector ".concat(1===l?"triangle-factor":"triangle-active")}),m.jsxs("div",{className:"mobile-box ".concat(0===l?"passive-box":1===l?"factor-box":"active-box"),children:[m.jsx("span",{className:"title-card-mobile",children:null==e?void 0:e.symbol}),m.jsx("ul",{className:"active-list ".concat(0===l?"passive-list":1===l?"factor-list":"active-list"),children:m.jsx("li",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.cardDescription}})})]}),l<(null==a?void 0:a.length)-1&&m.jsx("div",{className:"triangle-connector ".concat(0===l?"triangle-passive reversed-passive":"triangle-factor reversed-passive")})]},l))}),m.jsx("div",{className:"factor5-note",dangerouslySetInnerHTML:{__html:t}})]})};var tp=Object.freeze({__proto__:null,Factor_5:th});let tx=e=>{let l=e||{},i=Array.isArray(null==l?void 0:l.cards)?null==l?void 0:l.cards:[],[n,t]=d.useState(!1),[a,s]=d.useState(null);d.useEffect(()=>{(null==i?void 0:i.length)>0&&s(0)},[i]),d.useEffect(()=>{let e=()=>{t(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let o=e=>s(e);return m.jsxs("div",{className:"factor-6-main-container",children:[m.jsxs("label",{className:"label-txt-heading",children:["Quick introduction to ",m.jsx("br",{})," commonly known factors:"]}),n?m.jsx(()=>{let[e,l]=d.useState(0),n=i=>{l(e===i?null:i)};return m.jsx("div",{className:"factor-6-accordion",children:i.map((l,i)=>m.jsxs("div",{className:"accordion-item ".concat(e===i?"active":""),children:[m.jsxs("div",{className:"accordion-header",onClick:()=>n(i),children:[m.jsx("span",{className:"accordion-title",children:null==l?void 0:l.mainTitle}),m.jsx("div",{className:"accordion-icon",children:m.jsx("img",{fetchPriority:"low",src:"/assets/arrow_right.svg",alt:"arrow",className:"accordion-arrow ".concat(e===i?"expanded":"")})})]}),m.jsxs("div",{className:"accordion-content",children:[m.jsx("h3",{className:"factor6-title",children:null==l?void 0:l.title}),m.jsx("ul",{className:"factor-points",children:null==l?void 0:l.points.map((e,l)=>m.jsxs("li",{className:"factor-point",children:[m.jsx("span",{className:"checkmark",children:"â"}),e]},l))}),m.jsx("div",{className:"factor6-disclaimer",dangerouslySetInnerHTML:{__html:null==l?void 0:l.disclaimer}})]})]},i))})},{}):m.jsx(()=>{var e,l,n;return m.jsxs("div",{className:"factor-6-component",children:[m.jsx("div",{className:"factor6-left-section",children:i.map((e,l)=>m.jsx("ul",{className:"ul-list-type",children:m.jsxs("li",{onClick:()=>o(l),className:"list-items ".concat(a===l?"active-item":""),children:[null==e?void 0:e.mainTitle,m.jsx("div",{className:"icon-circle",children:m.jsx("img",{fetchPriority:"low",className:"vector_ ".concat(a===l?"active-img":""),src:"/assets/arrow_right.svg",alt:"arrow"})})]})},l))}),m.jsx("div",{className:"factor6-right-section",children:null!==a&&i[a]&&m.jsxs("div",{className:"factor6-content",children:[m.jsx("h3",{className:"factor6-title",children:null===(e=i[a])||void 0===e?void 0:e.title}),m.jsx("ul",{className:"factor-points",children:null===(l=i[a])||void 0===l?void 0:l.points.map((e,l)=>m.jsxs("li",{className:"factor-point",children:[m.jsx("span",{className:"checkmark",children:"â"}),e]},l))}),m.jsx("div",{className:"factor6-disclaimer",dangerouslySetInnerHTML:{__html:null===(n=i[a])||void 0===n?void 0:n.disclaimer}})]})})]})},{})]})};var tg=Object.freeze({__proto__:null,Factor_6:tx});let tf=e=>{let[l,i]=d.useState(0),[n,t]=d.useState(!1),{title:a,subTitle:s,factors:o=[]}=e||{};d.useEffect(()=>{let e=()=>{t(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),d.useEffect(()=>{if(n&&(null==o?void 0:o.length)>1){let e=setInterval(()=>{i(e=>(e+1)%(null==o?void 0:o.length))},4e3);return()=>clearInterval(e)}},[n,null==o?void 0:o.length]);let r=e=>{i(e)};return m.jsxs("div",{className:"factor-nine-container",children:[m.jsxs("div",{className:"factor-nine-header",children:[m.jsx("label",{className:"factor-nine-title",children:a}),m.jsx("label",{className:"factor-nine-subtitle",children:s})]}),!n&&m.jsx("div",{className:"factor-grid-wrapper",children:m.jsx("div",{className:"factors-grid",children:null==o?void 0:o.map((e,l)=>m.jsx("div",{className:"factor-card",children:m.jsxs("div",{className:"factor-content",children:[m.jsx("h3",{className:"factor-title",children:null==e?void 0:e.title}),m.jsx("p",{className:"factor-description",children:null==e?void 0:e.description})]})},l))})}),n&&m.jsxs("div",{className:"factors-carousel",children:[m.jsx("div",{className:"carousel-container",children:m.jsx("div",{className:"carousel-track",style:{transform:"translateX(-".concat(100*l,"%)")},children:null==o?void 0:o.map((e,l)=>m.jsx("div",{className:"carousel-slide",children:m.jsx("div",{className:"factor-card",children:m.jsxs("div",{className:"factor-content",children:[m.jsx("h3",{className:"factor-title",children:null==e?void 0:e.title}),m.jsx("p",{className:"factor-description",children:null==e?void 0:e.description})]})})},l))})}),m.jsx("div",{className:"carousel-navigation",children:m.jsx("div",{className:"carousel-dots",children:null==o?void 0:o.map((e,i)=>m.jsx("button",{className:"dot ".concat(i===l?"active":""),onClick:()=>r(i)},i))})})]})]})};var tb=Object.freeze({__proto__:null,Factor_9:tf});let tj=e=>
1{let[l,i]=d.useState(0),[n,t]=d.useState(!1),{title:a,cards:s}=e||{};d.useEffect(()=>{let e=()=>{t(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),d.useEffect(()=>{if(n&&(null==s?void 0:s.length)>1){let e=setInterval(()=>{i(e=>(e+1)%(null==s?void 0:s.length))},4e3);return()=>clearInterval(e)}},[n,null==s?void 0:s.length]);let o=e=>{i(e)};return m.jsxs("div",{className:"advantage_additional-container",children:[m.jsx("div",{className:"advantage_additional-header",children:m.jsx("label",{className:"advantage_additional-title",children:a})}),!n&&m.jsx("div",{className:"advantage_additional-cards",children:null==s?void 0:s.map((e,l)=>m.jsxs("div",{className:"advantage_card",style:{backgroundColor:e.bgColor},children:[m.jsx("label",{className:"advantage_card-title",children:null==e?void 0:e.title}),m.jsx("p",{className:"advantage_card-description",children:null==e?void 0:e.description})]},l))}),n&&m.jsxs("div",{className:"advantage_carousel",children:[m.jsx("div",{className:"carousel-container",children:m.jsx("div",{className:"carousel-track",style:{transform:"translateX(-".concat(100*l,"%)")},children:null==s?void 0:s.map((e,l)=>m.jsx("div",{className:"carousel-slide",children:m.jsxs("div",{className:"advantage_card",style:{backgroundColor:e.bgColor},children:[m.jsx("label",{className:"advantage_card-title",children:null==e?void 0:e.title}),m.jsx("p",{className:"advantage_card-description",children:null==e?void 0:e.description})]})},l))})}),m.jsx("div",{className:"carousel-navigation",children:m.jsx("div",{className:"carousel-dots",children:null==s?void 0:s.map((e,i)=>m.jsx("button",{className:"dot ".concat(i===l?"active":""),onClick:()=>o(i)},i))})})]})]})};var tN=Object.freeze({__proto__:null,Advantage_additional:tj});let ty=e=>{let l=e||{},i=iI();return m.jsxs("div",{className:"factor_banner_container",style:i?{backgroundImage:"none",backgroundColor:"#000000"}:{backgroundImage:"url(/assets/factor_banner.svg)"},children:[m.jsxs("div",{className:"factor_banner-left",children:[i&&m.jsx("div",{className:"banner-image-section",children:m.jsx("img",{fetchPriority:"low",src:null==l?void 0:l.image,alt:"Factor investing banner"})}),m.jsx("div",{className:"portfolio-lbl",dangerouslySetInnerHTML:{__html:null==l?void 0:l.title}}),m.jsx("p",{className:"portfolio-factor-lbl",dangerouslySetInnerHTML:{__html:null==l?void 0:l.subTitle}}),m.jsx("button",{className:"portfolio-invest-btn",onClick:()=>{let e=document.getElementById("scheme-finder-section-z");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},children:"Invest with Axis Mutual Fund"})]}),!i&&m.jsx("div",{className:"banner-image-section",children:m.jsx("img",{fetchPriority:"low",src:null==l?void 0:l.image,alt:"Factor investing banner"})})]})};var t_=Object.freeze({__proto__:null,Factor_Banner:ty});let tS=e=>{var l,i,n,t;let{table:a,title:s}=e||{};return m.jsxs("div",{className:"hardcoded-benefits",children:[m.jsx("label",{className:"hardcoded-benefits-title",children:s}),m.jsxs("table",{className:"hardcoded-benefits-table",children:[m.jsx("thead",{className:"hardcoded-benefits-header",children:m.jsx("tr",{className:"",children:null===(i=a[0])||void 0===i?void 0:null===(l=i.headers)||void 0===l?void 0:l.map((e,l)=>m.jsx("th",{children:e},l))})}),m.jsx("tbody",{className:"hardcoded-benefits-tbl-body",children:null===(t=a[0])||void 0===t?void 0:null===(n=t.rows)||void 0===n?void 0:n.map((e,l)=>m.jsx("tr",{className:"hardcoded-benefits-tbl-row",children:e.map((e,l)=>m.jsx("td",{"data-label":a[0].headers[l],children:m.jsxs("div",{className:"hardcoded-benefits-tbl-row-div",children:[e.icon&&m.jsx("img",{fetchPriority:"low",src:e.icon,alt:"icon"})," ",e.value]})},l))},l))})]})]})};var tw=Object.freeze({__proto__:null,Hardcoded_Benefits:tS});let tk=e=>{let{title:l,cards:i}=e||{};return m.jsxs("div",{className:"gold-three",children:[m.jsx("h2",{className:"gold-three-title",children:l}),m.jsx("div",{className:"gold-three-cards",children:i.map((e,l)=>e.description?m.jsxs("div",{className:"gold-three-card",children:[m.jsx("img",{fetchPriority:"low",src:e.icon,alt:"goldthree",className:"gold-three-icon"}),m.jsxs("div",{children:[m.jsx("h3",{className:"gold-three-card-title",children:e.title}),m.jsx("p",{className:"gold-three-card-desc",children:e.description})]})]},l):null)})]})};var tC=Object.freeze({__proto__:null,Gold_3:tk});let tI=e=>{var l,i,n,t;let{title:a,table:s}=e||{};return m.jsxs("div",{className:"crisis-performance-component",children:[m.jsx("label",{className:"component-title",children:a}),m.jsx("div",{className:"table-container",children:m.jsxs("table",{className:"crisis-performance-table",children:[m.jsx("thead",{children:m.jsx("tr",{children:null===(i=s[0])||void 0===i?void 0:null===(l=i.headers)||void 0===l?void 0:l.map((e,l)=>m.jsx("th",{className:"table-header",children:e},l))})}),m.jsx("tbody",{children:null===(t=s[0])||void 0===t?void 0:null===(n=t.rows)||void 0===n?void 0:n.map((e,l)=>m.jsx("tr",{className:"table-row",children:e.map((e,l)=>m.jsx("td",{className:"table-cell",children:e},l))},l))})]})})]})};var tT=Object.freeze({__proto__:null,Hardcoded_crisis_performance:tI});function tM(e){let l=e||{};return m.jsxs("div",{className:"daily-sip-4-container",children:[m.jsx("div",{className:"daily-sip-4-image",children:m.jsx("img",{fetchPriority:"low",src:null==l?void 0:l.imageUrl,alt:"Daily SIP"})}),m.jsx("div",{className:"daily-sip-4-text",dangerouslySetInnerHTML:{__html:l.text}})]})}var tD=Object.freeze({__proto__:null,default:tM});let tP=e=>{let l=e||{};return m.jsxs("div",{className:"daily-sip-5-container",children:[m.jsx("label",{className:"daily-sip-5-title",children:l.title}),m.jsx("div",{className:"daily-sip-5-grid",children:l.cards.map((e,l)=>m.jsxs("div",{className:"daily-sip-5-card",children:[m.jsx("img",{fetchPriority:"low",src:e.icon,alt:e.title||j.getAltText(e.icon)}),m.jsxs("div",{children:[m.jsx("label",{className:"daily-sip-5-itemtext",children:e.title}),m.jsx("p",{className:"description",children:e.description})]})]},l))})]})};var tA=Object.freeze({__proto__:null,Daily_Sip_5:tP});let tL=d.forwardRef((e,l)=>{var i,n,t,a,s,o,r,c,g,f,b,j,N,y,_,S,w,k,C,I,T,M,D,P,A,L,F;let E=e||{},O=h.useScreenWidth(),[z,B]=d.useState(0),R=null==E?void 0:E.goldAndSilverElementsResult[z],[U,H]=d.useState(!1),[W,Y]=d.useState("1"),[V,q]=d.useState("SIP"),[G,K]=d.use
1State("1"),[J,Z]=d.useState(""),$=Number(0===z?null==E?void 0:E.currentGoldPrices.current_gold_price:null==E?void 0:E.currentGoldPrices.current_silver_price),X=0===z?$/10:$/1e3,Q=0===z?100:1e3,ee=Number(String(J||"0").replace(/,/g,""))<Q,el=e=>{let l=String(e).toLowerCase().replace(/gm$/i,"").trim(),i=Number(l);Number.isNaN(i)||(Y(l),K(l),Z(String(Math.round(i*X))))},ei=l=>{var i;B(l),null==e||null===(i=e.onActiveIndexChange)||void 0===i||i.call(e,l)},en=e=>{let l=e.replace(/,/g,"");if(""===l){K(""),Y(""),Z("");return}if(!/^\d*\.?\d{0,2}$/.test(l))return;let i=Number(l);Number.isNaN(i)||(K(l),Y(l),Z(String(Math.round(i*X))))},et=e=>{let l=e.replace(/,/g,"");if(""===l){Z(""),K(""),Y("");return}let i=Number(l);if(Number.isNaN(i))return;Z(l);let n=Number((i/X).toFixed(2));K(String(n)),Y(String(n))},ea=e=>{q(e)},[es,eo]=d.useState(""),[er,ed]=d.useState(""),[ec,eu]=d.useState(),[ev,em]=d.useState(""),eh=h.useRootContextData(),[ep,ex]=d.useState(null),[eg,ef]=d.useState(null),[eb,ej]=d.useState(!1);d.useEffect(()=>{let e=1*X;K(String(1)),Y(String(1)),Z(String(Math.round(e)))},[null==R?void 0:R.title,X]),d.useImperativeHandle(l,()=>({activeIndex:z})),d.useEffect(()=>{(async()=>{var e,l,i,n,t,a,s,o,r,d,c,u,v,m,h,p,x,g,f,b,j,N,y,_,S,w,k,C,I,T,M,D;0===z?(eo(null==E?void 0:null===(a=E.particularSchemeGO)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:null===(n=t.schemeInfo[0])||void 0===n?void 0:null===(i=n.cards[0])||void 0===i?void 0:null===(l=i.dropDown)||void 0===l?void 0:null===(e=l.find(e=>"DG"===e.plan_code))||void 0===e?void 0:e.value),ed(null==E?void 0:null===(d=E.particularSchemeGO)||void 0===d?void 0:null===(r=d.data)||void 0===r?void 0:null===(o=r.schemeInfo[0])||void 0===o?void 0:null===(s=o.cards[1])||void 0===s?void 0:s.value),eu(null==E?void 0:null===(v=E.particularSchemeGO)||void 0===v?void 0:null===(u=v.data)||void 0===u?void 0:null===(c=u.schemeInfo[0])||void 0===c?void 0:c.minAmount),em(null==E?void 0:null===(p=E.particularSchemeGO)||void 0===p?void 0:null===(h=p.data)||void 0===h?void 0:null===(m=h.schemeInfo[0])||void 0===m?void 0:m.expenseRatio)):(eo(null==E?void 0:null===(N=E.particularSchemeSV)||void 0===N?void 0:null===(j=N.data)||void 0===j?void 0:null===(b=j.schemeInfo[0])||void 0===b?void 0:null===(f=b.cards[0])||void 0===f?void 0:null===(g=f.dropDown)||void 0===g?void 0:null===(x=g.find(e=>"DG"===e.plan_code))||void 0===x?void 0:x.value),ed(null==E?void 0:null===(w=E.particularSchemeSV)||void 0===w?void 0:null===(S=w.data)||void 0===S?void 0:null===(_=S.schemeInfo[0])||void 0===_?void 0:null===(y=_.cards[1])||void 0===y?void 0:y.value),eu(null==E?void 0:null===(I=E.particularSchemeSV)||void 0===I?void 0:null===(C=I.data)||void 0===C?void 0:null===(k=C.schemeInfo[0])||void 0===k?void 0:k.minAmount),em(null==E?void 0:null===(D=E.particularSchemeSV)||void 0===D?void 0:null===(M=D.data)||void 0===M?void 0:null===(T=M.schemeInfo[0])||void 0===T?void 0:T.expenseRatio))})()},[R]),d.useEffect(()=>{let e=1;Y(String(e=0===z?"SIP"===V?1:2:100)),K(String(e)),Z(String((e*X).toFixed(0)))},[z,V,null==R?void 0:R.title,X]),d.useEffect(()=>{q("SIP")},[R]);let eN=e=>{var l,i;(null==e?void 0:null===(l=e.riskoMeter)||void 0===l?void 0:l.riskometerDetails)&&(ex(null==e?void 0:null===(i=e.riskoMeter)||void 0===i?void 0:i.riskometerDetails),ef(null==e?void 0:e.riskoMeter),ej(!0))};return m.jsxs("div",{className:"gm_container",id:"gold_main_scroll",children:[m.jsx("div",{className:"gm_tabs",children:m.jsx("div",{className:"gm_tabs_btns",children:E.goldAndSilverElementsResult.map((e,l)=>m.jsx("button",{className:" gm_tab_btn ".concat(0===z?"gm_tab_btn-gold":"gm_tab_btn-silver"," ").concat(l===z?"active":""),onClick:()=>ei(l),children:(null==e?void 0:e.cardTitle)==="AXIS SILVER FUND OF FUND"?"Axis Silver FOF":null==e?void 0:e.cardTitle},l))})}),m.jsxs("div",{className:"gm_header",children:[m.jsx("label",{className:"gm-header-lbl",children:null==R?void 0:R.title}),m.jsxs("p",{className:"gm-header-desc",children:[m.jsx("div",{dangerouslySetInnerHTML:{__html:null==R?void 0:R.subTitle}}),m.jsxs("a",{className:"gm-header-desc-link-km",href:0===z?"/mutual-funds/fof-domestic/axis-gold-fund/go-dg/direct":"/mutual-funds/fof-domestic/axis-silver-fund-of-fund/sv-dg/direct",target:"_blank",rel:"noopener noreferrer",children:[" ",null!==(M=null==R?void 0:null===(i=R.otherLabels)||void 0===i?void 0:i.viewSchemeLabel)&&void 0!==M?M:"View scheme details"]}
1)]})]}),m.jsxs("div",{className:"gold-main-card-btn-container ".concat(0===z?"gld-bdr":"slvr-bgr"),children:[m.jsxs("div",{className:"gm_info_card ".concat(0===z?"gold-background":"silver-background"),children:[m.jsxs("div",{className:"gm_info_header",children:[m.jsxs("div",{children:[m.jsx("label",{className:"gm_info_header-label",children:0===z?"Axis Gold Fund":"Axis Silver FOF"}),m.jsx("label",{className:"gm_info_header-desc",children:null==R?void 0:R.cardSubTitle})]}),m.jsxs("span",{className:"gm_expense ".concat(0===z?"gm_expense-gld":"gm_expense-silver"," ").concat((null==e?void 0:e.language)==="tam"?"gm_expense-tam":""," ").concat(O<768&&(null==e?void 0:e.language)==="tam"?"gm_expense-tam-mob":""),children:[null!==(D=null==R?void 0:null===(n=R.otherLabels)||void 0===n?void 0:n.expenseRatioLabel)&&void 0!==D?D:"Expense Ratio"," ",ev,"%"]})]}),m.jsx("label",{className:"gm_info_header-desc-mobile",children:null==R?void 0:R.cardSubTitle}),m.jsxs("div",{className:"gm_fields",children:[m.jsxs("div",{className:"gm_field ".concat(0===z?"gm_field-gold":"gm_field-silver"),children:[m.jsx("img",{fetchPriority:"low",src:null==R?void 0:R.fristFieldIcon,alt:"fristFieldIcon"}),m.jsxs("div",{children:[m.jsx("label",{className:"gm_field-label",children:null==R?void 0:R.firstFieldTitle}),m.jsx("p",{children:(()=>{if(es){var e;let l=String(es),i=(null===(e=l.match(/[â¹$â¬Â£]/))||void 0===e?void 0:e[0])||"",n=ib(l.replace(/[^\d.]/g,""));return"".concat(i," ").concat(n)}})()})]})]}),m.jsxs("div",{className:"gm_field ".concat(0===z?"gm_field-gold":"gm_field-silver"),children:[m.jsx("img",{fetchPriority:"low",src:null==R?void 0:R.secondFieldIcon,alt:"secondFieldIcon"}),m.jsxs("div",{children:[m.jsxs("div",{className:"risk-level-and-info",children:[m.jsx("label",{children:null==R?void 0:R.secondFieldTitle}),m.jsx("img",{fetchPriority:"low",src:v.pathChanger("info-burgundy.svg"),className:"risk-info-img",alt:"Info Icon",onClick:()=>{var e,l,i,n;0===z?eN(null==E?void 0:null===(l=E.particularSchemeGO)||void 0===l?void 0:null===(e=l.data)||void 0===e?void 0:e.schemeInfo[0]):eN(null==E?void 0:null===(n=E.particularSchemeSV)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.schemeInfo[0])}})]}),m.jsx("p",{children:er})]})]}),m.jsxs("div",{className:"gm_field ".concat(0===z?"gm_field-gold":"gm_field-silver"),children:[m.jsx("img",{fetchPriority:"low",src:null==R?void 0:R.thirdFieldIcon,alt:"thirdFieldIcon"}),m.jsxs("div",{children:[m.jsx("label",{children:null==R?void 0:R.thirdFieldTitle}),m.jsxs("p",{children:["â¹",null===(t=Number(ec))||void 0===t?void 0:t.toFixed(0)]})]})]})]})]}),m.jsxs("div",{className:"gm_chip_wrapper",children:[m.jsxs("div",{className:"gm_chip_wrapper-first",children:[m.jsx("label",{className:"gm_chip_title",children:null!==(P=null==R?void 0:null===(a=R.otherLabels)||void 0===a?void 0:a.investmentMode)&&void 0!==P?P:"Choose your investment Mode"}),m.jsx("div",{className:"gm_investment_btns",children:null==R?void 0:R.investmentTypes.map((e,l)=>m.jsx("button",{className:"gm_inv_btn ".concat(V===e?"active":""),onClick:()=>ea(e),children:e},l))}),m.jsxs("div",{className:"gm_chip_wrapper-first-infosec",children:[m.jsxs("label",{className:"price-label",children:[null==R?void 0:R.commodityPriceTitle,m.jsx("img",{fetchPriority:"low",src:v.pathChanger("info-burgundy.svg"),className:"info_icon_cpm",alt:"info",onClick:()=>{H(!0)}})]}),m.jsxs("label",{className:"price-amount",children:[" â¹",ib(0===z?null==E?void 0:null===(s=E.currentGoldPrices)||void 0===s?void 0:s.current_gold_price:null==E?void 0:null===(o=E.currentGoldPrices)||void 0===o?void 0:o.current_silver_price,0)]}),m.jsxs("label",{className:"date-stamp",children:["As on ",((e,l)=>{if(!e||!l)return"";let i=e.split("-");if(3!==i.length)return"";let[n,t,a]=i,s=l.trim().match(/^(\d{1,2}):(\d{2})\s(AM|PM)$/i);if(!s)return"";let[,o,r,d]=s,c=Number(o),u=Number(r);if(Number.isNaN(c)||Number.isNaN(u))return"";"PM"===(d=d.toUpperCase())&&12!==c&&(c+=12),"AM"===d&&12===c&&(c=0);let v=new Date(Number(a),Number(t)-1,Number(n),c,u);return Number.isNaN(v.getTime())?"":"".concat(new Intl.DateTimeFormat("en-IN",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit",hour12:!0,timeZone:"Asia/Kolkata"}).format(v)," IST")}
1)(0===z?null==E?void 0:E.currentGoldPrices.as_on_date_gold:null==E?void 0:E.currentGoldPrices.as_on_date_silver,0===z?null==E?void 0:E.currentGoldPrices.as_on_time_gold:null==E?void 0:E.currentGoldPrices.as_on_time_silver)]})]})]}),m.jsxs("div",{className:"gm_chip_wrapper-scond",children:[m.jsxs("label",{className:"gm_chip_wrapper-scond-header inv-mode",children:[m.jsx("img",{fetchPriority:"low",src:null==R?void 0:R.chipletsIcon,alt:"tallyicon"}),null==R?void 0:R.chipletsTitle]}),m.jsx("div",{className:"gm_chip_group",children:null==R?void 0:R.chiplets.map((e,l)=>m.jsxs("div",{className:"gm_chip_item",children:[m.jsx("img",{fetchPriority:"low",src:"/assets/goldgrm-top.svg",alt:"goldgrm"}),m.jsx("button",{className:"gm_chip ".concat("".concat(String(W),"gm")===e.replace(/\s/g,"")?"active":""),onClick:()=>el(e),children:e})]},l))})]}),m.jsxs("div",{className:"gm_chip_wrapper-third",children:[m.jsx("div",{className:"gm-card",children:m.jsxs("div",{className:"gm-input-row",children:[m.jsxs("div",{className:"gm-input-box",children:[m.jsx("label",{className:"gm_chip_wrapper-scond-header",children:null!==(A=null==R?void 0:R.customGramTitle)&&void 0!==A?A:"Custom Grams"}),m.jsx("input",{type:"text",className:"gm-custom-grams-input",value:G,onChange:e=>en(e.target.value)})]}),m.jsx("img",{fetchPriority:"low",className:"gm-swap",src:"/assets/circular-icon.svg",alt:"rotateicon"}),m.jsxs("div",{className:"gm-input-box",children:[m.jsx("label",{className:"gm_chip_wrapper-scond-header",children:null!==(L=null==R?void 0:null===(r=R.otherLabels)||void 0===r?void 0:r.investmentAmount)&&void 0!==L?L:"Investment Amount"}),m.jsx("input",{type:"text",className:"gm-investment-amount-input",value:J,onChange:e=>et(e.target.value)})]})]})}),m.jsx(u.InvestNowButton,{disabled:ee,buttonText:null!==(F=null==R?void 0:null===(c=R.otherLabels)||void 0===c?void 0:c.investNowLabel)&&void 0!==F?F:"Invest Now",className:"start-invest",uniqueId:null==eh?void 0:null===(j=eh.globalConfig)||void 0===j?void 0:null===(b=j.defaultScheme)||void 0===b?void 0:null===(f=b.trendingScheme)||void 0===f?void 0:null===(g=f[0])||void 0===g?void 0:g.schemeId,scheme:{...(null==eh?void 0:null===(S=eh.globalConfig)||void 0===S?void 0:null===(_=S.defaultScheme)||void 0===_?void 0:null===(y=_.trendingScheme)||void 0===y?void 0:null===(N=y[0])||void 0===N?void 0:N.schemeId)?null==eh?void 0:null===(C=eh.globalConfig)||void 0===C?void 0:null===(k=C.defaultScheme)||void 0===k?void 0:null===(w=k.trendingScheme)||void 0===w?void 0:w[0]:null===(T=eh.globalState.HOME_PAGE)||void 0===T?void 0:null===(I=T.trending_schemes)||void 0===I?void 0:I[0],schemeCode:0===z?"GO":"SV",schemeTitle:null==R?void 0:R.title,schemeId:0===z?"GO-DG-G":"SV-DG-G",amount:J?Number(String(J).replace(/,/g,"")):0,investmentMode:"SIP"===V?"SIP":"LUMPSUM"}}),""!==J&&ee&&m.jsxs("label",{className:"gm-investment-error",children:["Minimum investment amount is ",Q]})]})]}),eb?m.jsx(p.OverlayPopup,{className:"dialog-popup-default risk-pop-up",showHeader:!1,isFloating:!1,onClose:()=>{ex(null),ef(null),ej(!1)},content:m.jsx(x.RiskoMeter,{riskometerDetails:ep,riskoMeter:eg})}):"",U&&m.jsx(p.OverlayPopup,{className:"dialog-popup-content dialog-popup-success",isFloating:!1,onClose:()=>H(!1),content:m.jsx("p",{className:"referenceinfo-text",children:null==R?void 0:R.referenceInfo})})]})]})});var tF=Object.freeze({__proto__:null,Gold_Main:tL});let tE=e=>{let l=e||{},[i,n]=d.useState("Trending"),[t,a]=d.useState(""),s=e=>{a(e)};return m.jsxs("div",{className:"ultra-main-container",style:{backgroundImage:'url("./assets/ultra_main_bg.svg")'},children:[m.jsxs("div",{className:"ultra-header-top",children:[m.jsx("label",{className:"ultra-title",children:l.title}),m.jsxs("div",{className:"ultra-main-btn",children:[m.jsx("div",{className:"quick-invest-box",children:l.chiplets.map((e,l)=>m.jsxs("button",{className:"quick-btn ".concat(t===e?"quickBtnActive":""),onClick:()=>s(e),children:["+ ",e]},l))}),m.jsx("label",{className:"quick-note",dangerouslySetInnerHTML:{__html:l.note}})]})]}),m.jsx("div",{className:"ultra-main-table-section",children:m.jsxs("table",{className:"ultra-main-table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"ultra-table-header",children:[m.jsx("th",{children:m.jsxs("div",{className:"ultra-tabs-container",children:[m.jsx("button",{className:"ultra-tab-btn ".concat("Trending"===i?"active":""),onClick:()=>n("Trending"),children:"Trending"}),m.jsx("button",{className:"ultra-tab-btn ".concat("Custom"===i?"active":""),onClick:()=>n("Custom"),children:"Custom"})]})}),m.jsx("th",{children:"Type"}),m.jsx("th",{children:"This Fund / Benchmark"}),m.jsx("th",{children:"NAV"}),m.jsx("th",{children:"Riskometer"}),m.jsx("th",{children:"Investment Amount"})]})}
1),m.jsx("tbody",{children:l.schemeDetails.map((e,l)=>{var i,n,t,a,s,o,r,d;return m.jsxs("tr",{className:"ultra-table-row",children:[m.jsx("td",{children:m.jsxs("div",{className:"fund-name",children:[m.jsx("input",{type:"checkbox",className:"ultra-fund-cb"}),m.jsx("label",{children:e.schemeTitle})]})}),m.jsx("td",{children:e.fundType}),m.jsxs("td",{children:[null===(t=e.cagrBenchmark)||void 0===t?void 0:null===(n=t.cagr)||void 0===n?void 0:null===(i=n.find(e=>"1Y"===e.period))||void 0===i?void 0:i.value,"% /"," ",null===(o=e.cagrBenchmark)||void 0===o?void 0:null===(s=o.benchmark)||void 0===s?void 0:null===(a=s.find(e=>"1Y"===e.period))||void 0===a?void 0:a.value,"%"]}),m.jsx("td",{children:e.cards[0].value}),m.jsx("td",{children:m.jsxs("div",{className:"risk-col",children:[m.jsx("img",{fetchPriority:"low",src:null===(r=e.riskoMeter)||void 0===r?void 0:r.riskIcon,alt:"risk"}),m.jsx("label",{children:null===(d=e.riskoMeter)||void 0===d?void 0:d.riskType}),m.jsx("img",{fetchPriority:"low",src:"./assets/info_icon_cpm.svg",alt:"infoicon"})]})}),m.jsx("td",{children:m.jsx("input",{className:"invest-input",defaultValue:"10000"})})]},l)})})]})}),m.jsxs("div",{className:"ultramain-investnow-btn",children:[m.jsx("div",{}),m.jsx("button",{className:"ultra-invest-btn",children:"Invest Now"}),m.jsx("label",{className:"view-all",children:"View All"})]}),m.jsxs("div",{className:"ultramain-disclaimer",children:[m.jsx("label",{className:"aum-label",children:"AUM as on 31st July 2024"}),m.jsxs("p",{className:"disc-text",children:[m.jsx("span",{className:"ultra-disclaimer",children:"Disclaimer:"}),"Returns are calculated on standard investment of Rs 10,000. Click on Scheme Name to know more. Past performance may or may not sustain. Consult your advisor before investing."]})]})]})};var tO=Object.freeze({__proto__:null,Ultra_Main:tE});let tz=e=>{let{id:l,minValue:i,maxValue:n,defaultValue:t,value:a,prefix:s="",sufix:o="",errorMessage:r,onChange:d,className:c="",sliderIdSuffix:u="",steps:v}=e;return m.jsxs("div",{className:"slider-outer ".concat(c),children:[m.jsx("div",{className:"slider-container",children:m.jsx(y.RangeSlider,{className:"mf-range-slider-default rangesliderwithlabel",min:i,max:n,value:a,steps:null!=v?v:1,trackStep:10,defaultValue:t,onChange:e=>d(l,e),id:l+u})}),r&&m.jsx("p",{className:"error-message",children:r})]})},tB=e=>{let{id:l,value:i,defaultValue:n="",prefix:t="",suffix:a="",min:s=0,max:o=Number.MAX_SAFE_INTEGER,disabled:r=!1,showComma:c=!0,onChange:u,setErrorMessages:v,errorMessagesConst:h,wealthLumpsum:p}=e,x=d.useRef(null),[g,f]=d.useState(String(null!=i?i:n)),[b,j]=d.useState(!1);d.useEffect(()=>{let e=()=>{j(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),d.useEffect(()=>{if(!b)return;let e=e=>{x.current&&!x.current.contains(e.target)&&x.current.blur()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[b]),d.useEffect(()=>{null!=i&&f(y(String(i))),_(i)},[i]);let N=e=>{var l;if(""===e||null==e)return"";let i=String(e),n=c?null==(l=Number(i))||isNaN(l)?"":new Intl.NumberFormat("en-IN",{maximumFractionDigits:2}).format(l):i;return"".concat(t).concat(n).concat(a?" ".concat(a):"").trim()},y=e=>{t&&(e=e.replace(t,"")),a&&(e=e.replace(" ".concat(a),"").trim());let l=(e=e.replace(/[^0-9.]/g,"")).split(".");return l.length>2&&(e=l[0]+"."+l.slice(1).join("")),e.replace(/^0+(\d)/,"$1")},_=e=>{if(""===e){null==v||v(e=>({...e,[l]:"".concat(null==h?void 0:h.MIN_AMOUNT).concat(N(s))})),u(l,"");return}let i=e,n=+e;n>o?(i=String(o),null==v||v(e=>({...e,[l]:"".concat(null==h?void 0:h.MAX_AMOUNT).concat(N(o))}))):n<s?null==v||v(e=>({...e,[l]:"".concat(null==h?void 0:h.MIN_AMOUNT).concat(N(s))})):null==v||v(e=>({...e,[l]:""})),f(i),u(l,i)},S=()=>{var e;let l=x.current;if(!l||!t)return;l.value;let i=t.length;(null!==(e=l.selectionStart)&&void 0!==e?e:0)<i&&l.setSelectionRange(i,i)},w=()=>{var e;let l=x.current;if(!l||!a)return;let i=l.value.indexOf(" ".concat(a)),n=null!==(e=l.selectionStart)&&void 0!==e?e:0;-1!==i&&n>=i&&l.setSelectionRange(i,i)};return m.jsx("input",{className:"calculatorformattedinput",id:l,ref:x,type:"tel",inputMode:"numeric",min:s,max:o,value:N(g),disabled:r,onChange:e=>{var l;let i=e.target,n=i.value,t=y(n);N(t);let s=null!==(l=i.selectionStart)&&void 0!==l?l:0,o=n.slice(0,s).replace(/\D/g,"").length;_(t),requestAnimationFrame(()=>{let e=x.current;if(!e)return;let l=e.value,i=a?l.indexOf(" ".concat(a)):l.length,n=0,t=0;for(let e=0;e<l.length;e++)if(/\d/.test(l[e])&&t++,t===o){n=e+1;break}n>=i&&a&&(n=i),e.setSelectionRange(n,n)})},placeholder:"".concat(t,"0").concat(a?" ".concat(a):""),onClick:()=>{S(),w()},onFocus:()=>{S(),w()},onKeyUp:()=>{S(),w()},onBlur:e=>{let l=y(e.target.value);l&&"0"!==l||(l=String(s)),_(l)}})},tR=e=>e.replace(/\b([A-Za-z]\d+)\b/g,e=>'values["'.concat(e,'"]')),tU=e=>{let l=tR(e),i=/\breturn\b/.test(l.trim());try{return Function("values",i?l:"return ".concat(l))}catch(l){return console.error("Error compiling formula:",e,l),()=>null}},tH=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;
1[...e,...l].forEach(e=>{i.current[e.id]=tU(e.formula)})},tW=e=>{var l,i,n,t,a,s,o,r,c,v,p,x,g,f,b,j,N,y,S;let w=e||{},k=d.useRef({}),[C,I]=d.useState(()=>{var e,l;let i={};return null==w||null===(l=w.calculatorDetailsOne)||void 0===l||null===(e=l.inputs)||void 0===e||e.forEach(e=>{i[e.id]=Number(e.defaultValue)}),i}),[T,M]=d.useState({seriesName:"SIP Series",data:[{name:"Invested Amount",value:702,sliceSettings:{fill:"#f0f0f0",stroke:"#f0f0f0"}},{name:"Estimated Amount",value:320,sliceSettings:{fill:"#3BB865",stroke:"#3BB865"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:70,fontSize:12,maxWidth:500,enableAnimation:!0,enableLegend:!1,enableSliceClick:!1,showTooltip:!1}),[D,P]=d.useState({}),A=h.useRootContextData();d.useEffect(()=>{tH(w.calculatorDetailsOne.outputs,[],k)},[]),d.useEffect(()=>{O(F.output_three,F.output_two)},[C]);let L=(e,l)=>{I(i=>({...i,[e]:l}))},F={};Object.keys(k.current).forEach(e=>{try{F[e]=k.current[e](C)}catch(l){F[e]=null}}),null!=F.output_one&&null!=F.output_three&&(F.output_two=F.output_one-F.output_three);let E=e=>{let l=Number(e);return null==e||isNaN(l)?"--":new Intl.NumberFormat("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2}).format(l)},O=(e,l)=>{isNaN(e)||isNaN(l)||M({seriesName:"SIP Series",data:[{name:"Invested Amount",value:e,sliceSettings:{fill:"#929396",stroke:"#E8E8E8"}},{name:"Est.Returns",value:l,sliceSettings:{fill:"#97144D",stroke:"#FFFFFF"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:65,fontSize:12,maxWidth:500,enableAnimation:!1,enableLegend:!1,enableSliceClick:!1,showTooltip:!1})};return m.jsxs("div",{className:"daily-sip-calculator-container",children:[m.jsxs("div",{className:"dailysip-input-output-section",children:[m.jsxs("div",{className:"dailysip-input-section",children:[m.jsx("label",{className:"dailysip-header",children:w.calculatorOneTitle}),m.jsx("label",{className:"dailysip-desc",children:"Estimation is based on the past performance"}),m.jsx("div",{className:"daily-sip-inputs",children:null==w?void 0:null===(i=w.calculatorDetailsOne)||void 0===i?void 0:null===(l=i.inputs)||void 0===l?void 0:l.filter(e=>"Inflation Rate per Annum (%)"!==e.fieldName).map(l=>m.jsxs("div",{className:"daily-sip-input",children:[m.jsxs("div",{className:"label-input-sctn",children:[m.jsx("label",{className:"input-fieldname",children:l.fieldName}),m.jsxs("label",{className:"input-fieldname",children:[m.jsx(tB,{id:l.id,value:null==C?void 0:C[l.id],defaultValue:Number(l.defaultValue),prefix:l.prefix,suffix:l.sufix,min:Number(l.minValue),max:Number(l.maxValue),disabled:"risk_premium"===l.id,showComma:"loan_intt"!==l.id&&"portfolio_beta"!==l.id,onChange:(e,l)=>L(e,l),setErrorMessages:P,errorMessagesConst:{MIN_AMOUNT:"Minimum allowed is ",MAX_AMOUNT:"Maximum allowed is "}}),m.jsx("br",{})]})]}),m.jsx(tz,{id:l.id,minValue:Number(l.minValue),maxValue:Number(l.maxValue),defaultValue:Number(l.defaultValue),value:Number(null==C?void 0:C[l.id])||Number(l.defaultValue),prefix:l.prefix,sufix:l.sufix,errorMessage:D[l.id],onChange:(e,l)=>L(e,l),sliderIdSuffix:e.calculatorType,steps:(null==l?void 0:l.id)==="portfolio_beta"?.01:1}),m.jsxs("div",{className:"label-input-sctn-min-max",children:[m.jsx("label",{className:"min-val-indicator",children:l.prefix+l.minValue+l.sufix}),m.jsx("label",{className:"max-val-indicator",children:l.prefix+l.maxValue+l.sufix})]})]},l.id))})]}),m.jsxs("div",{className:"dailysip-output-section",children:[null==w?void 0:null===(t=w.calculatorDetailsOne)||void 0===t?void 0:null===(n=t.outputs)||void 0===n?void 0:n.filter(e=>"output_one"===e.id).map((e,l)=>{var i,n;let t=new Intl.NumberFormat("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2}).format(null!==(i=C.inv_amt)&&void 0!==i?i:0),a=null!==(n=C.tenure_yrs)&&void 0!==n?n:0,s=e.fieldName.replace(/â¹\s*/g,"").split(/(B2|B4|B9)/g),o=e=>"B2"===e?m.jsxs("span",{className:"highlight-value",children:["â¹",t]},"b2"):"B4"===e?m.jsx("span",{className:"highlight-value",children:a},"b4"):"B9"===e?m.jsx("span",{className:"highlight-value",children:w.calculatorDetailsOne.outputs.filter(e=>"output_two"!=e.id&&"output_three"!=e.id).map(e=>m.jsxs("span",{children:["â¹ ",E(F[e.id])]},e.id))},"b9"):e;return m.jsx("div",{className:"lumsum-card-hrph",children:m.jsx("span",{className:"lbl-card-title-new",children:s.map((e,l)=>m.jsx(d.Fragment,{children:o(e)},l))})},l)}),m.jsx("div",{className:"daily-sip-donut",children:m.jsx(_.DonutChart,{...T})}),m.jsx("div",{className:"output-labels",children:m.jsx("ul",{className:"list-of-outputs",children:null==w?void 0:null===(s=w.calculatorDetailsOne)||void 0===s?void 0:null===(a=s.outputs)||void 0===a?void 0:a.filter(e=>"output_one"!=e.id).map(e=>m.jsxs("li",{children:[m.jsx("label",{className:"output-lbl-fieldname",children:e.fieldName}),m.jsxs("label",{className:"output-lbl-amount",children:[e.prefix," ",E(F[e.id])]})]},e.id))})}),m.jsx("div",{className:"investment-dailysip",children:m.jsx(u.InvestNowButton,{buttonText:"Invest Now",className:"start-invest",uniqueId:null==A?void 0:null===(v=A.globalConfig)||void 0===v?void 0:null===(c=v.defaultScheme)||void 0===c?void 0:null===(r=c.trendingScheme)||void 0===r?void 0:null===(o=r[0])||void 0===o?void 0:o.schemeId,scheme:{...(null==A?void 0:null===(f=A.globalConfig)||void 0===f?void 0:null===(g=f.defaultScheme)||void 0===g?void 0:null===(x=g.trendingScheme)||void 0===x?void 0:null===(p=x[0])||void 0===p?void 0:p.schemeId)?null==A?void 0:null===(N=A.globalConfig)||void 0===N?void 0:null===(j=N.defaultScheme)||void 0===j?void 0:null===(b=j.trendingScheme)||void 0===b?void 0:b[0]:null===(S=A.globalState.HOME_PAGE)||void 0===S?void 0:null===(y=S.trending_schemes)||void 0===y?void 0:y[0],amount:Number(C.inv_amt)||5e3,investmentMode:"S
1IP"}})})]})]}),m.jsx("div",{dangerouslySetInnerHTML:{__html:null==w?void 0:w.disclaimer}})]})};var tY=Object.freeze({__proto__:null,Daily_Sip_Calculator:tW,generateDynamicFormulaFunctionCodes:tH});let tV=e=>{let l=e||{};return l&&l.cards?m.jsxs("div",{className:"multicap-container",children:[m.jsx("h2",{className:"multicap-title",children:l.title}),m.jsx("div",{className:"multicap-cards-row",children:l.cards.map((e,l)=>m.jsx("div",{className:"multicap-card",style:{backgroundColor:e.backgroundColor},children:m.jsxs("div",{className:"multicap-card-body",children:[m.jsx("img",{fetchPriority:"low",src:e.imageUrl,className:"card-icon",alt:e.title||j.getAltText(e.imageUrl)}),m.jsx("div",{className:"multicap-card-header",children:m.jsx("label",{className:"card-title",children:e.title})}),m.jsx("p",{className:"card-description",dangerouslySetInnerHTML:{__html:e.disclaimer}})]})},l))}),l.disclaimer&&m.jsx("div",{className:"multicap-disclaimer",dangerouslySetInnerHTML:{__html:l.disclaimer}})]}):null};var tq=Object.freeze({__proto__:null,Multicap_Benefits:tV});let tG=e=>{let l=e||{};if(!l||!Array.isArray(l.cards)||0===l.cards.length)return null;let i=["#8E7CC3","#C2185B","#F6A623","#5C7DB8"];return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"mutlicap-container",children:[m.jsx("h2",{className:"mutlicap-title",children:l.title}),m.jsx("div",{className:"mutlicap-cards-row",children:l.cards.slice(0,4).map((e,l)=>{let n=i[l]||"#8E7CC3",t="string"==typeof(null==e?void 0:e.imageUrl)&&e.imageUrl.trim()&&!e.imageUrl.endsWith("null")?e.imageUrl:"";return m.jsxs("div",{className:"mutlicap-card",style:{borderColor:n},children:[m.jsx("div",{className:"mutlicap-card-header",style:{backgroundColor:n},children:m.jsx("span",{className:"mutlicap-card-title",children:null==e?void 0:e.title})}),m.jsxs("div",{className:"mutlicap-card-body",children:[m.jsx("div",{className:"mutlicap-icon-wrap",children:t?m.jsx("img",{fetchPriority:"low",src:t,className:"mutlicap-card-icon",alt:(null==e?void 0:e.title)||"icon"}):m.jsx("div",{className:"mutlicap-card-icon-placeholder"})}),m.jsx("div",{className:"mutlicap-card-description",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.disclaimer)||""}})]})]},"".concat((null==e?void 0:e.title)||"card","-").concat(l))})})]}),l.disclaimer&&m.jsx("div",{className:"mutlicap-disclaimer",dangerouslySetInnerHTML:{__html:l.disclaimer}})]})};var tK=Object.freeze({__proto__:null,Mutlicap_Benefits:tG});let tJ=e=>{let{title:l,subTitle:i,tableTitle:n,table:t,image:a,disclaimer:s}=e||{},o=(null==t?void 0:t.headers)||[],r=(null==t?void 0:t.rows)||[];return m.jsxs("div",{className:"factor-performance-chart",children:[m.jsxs("div",{className:"header",children:[m.jsx("label",{children:l}),m.jsx("p",{className:"subtitle",children:i})]}),m.jsxs("div",{className:"content-wrapper",children:[m.jsxs("div",{className:"table-section",children:[n&&m.jsx("label",{className:"table-title",children:n}),m.jsx("div",{className:"table-container",children:m.jsxs("table",{children:[m.jsx("thead",{children:m.jsx("tr",{children:null==o?void 0:o.map((e,l)=>m.jsx("th",{children:e},l))})}),m.jsx("tbody",{children:null==r?void 0:r.map((e,l)=>m.jsx("tr",{children:null==e?void 0:e.map((e,l)=>{var i;let n="",t=null===(i=o[l])||void 0===i?void 0:i.toLowerCase();return(null==t?void 0:t.includes("momentum"))||(null==t?void 0:t.includes("quality"))?n="momentum-cell":(null==t?void 0:t.includes("low"))||(null==t?void 0:t.includes("volatility"))?n="lowvol-cell":(null==t?void 0:t.includes("value"))&&(n="value-cell"),m.jsx("td",{className:n,children:e},l)})},l))})]})})]}),a&&m.jsx("div",{className:"chart-section",children:m.jsx("img",{fetchPriority:"low",src:a,alt:"Chart Placeholder",className:"radar-chart"})})]}),s&&m.jsx("div",{className:"disclaimer",dangerouslySetInnerHTML:{__html:s}})]})};var tZ=Object.freeze({__proto__:null,Factor_8:tJ});let t$=e=>{let{backGroundColor:l,ctaText:i,ctaUrl:n,ctaTarget:t,description:a,imageText:s,imageUrl:o,subTitle:r,title:d}=e;return iI(),m.jsx("div",{className:"daily-sip-one-container",children:m.jsxs("div",{className:"daily-sip-calender-bg",children:[m.jsx("label",{className:"daily-sip-calender-lbl",children:d}),m.jsx("label",{className:"daily-sip-calender-lbl-sub",dangerouslySetInnerHTML:{__html:r||""}})]})})};var tX=Object.freeze({__proto__:null,Daily_Sip_One:t$});let tQ=e=>{let{backGroundColor:l="#97144D",ctaText:i="",ctaUrl:n="/",ctaTarget:t=!1,description:a="",imageText:s="",imageUrl:o="",mobileImageUrl:r,subTitle:c="",title:u=""}=e,v=iI(),h=d.useMemo(()=>{let e=v&&r||o;return e?{backgroundImage:"url(".concat(e,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}},[v,o,r]);return m.jsxs("div",{className:"daily-sip-container0",children:[m.jsx("div",{className:"daily-sip-left0",style:h,children:m.jsxs("div",{className:"daily-sip-left-content0",children:[!!s&&m.jsx("div",{className:"daily-sip-left-title0",children:s}),!!c&&m.jsx("div",{className:"daily-sip-left-subtitle0",dangerouslySetInnerHTML:{__html:c}})]})}),m.jsxs("div",{className:"daily-sip-right0",style:{backgroundColor:l},children:[!!u&&m.jsx("div",{className:"daily-sip-right-title0",children:u}),!!a&&m.jsx("div",{className:"daily-sip-right-desc0",children:a}),!!i&&m.jsx("button",{className:"daily-sip-cta0",onClick:()=>{let e=document.getElementById("micro-investing-main-z");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},type:"button",children:i})]})]})};var t0=Object.freeze({__proto__:null,Daily_Sip:tQ});let t1=e=>{let{subTitle:l="",title:i=""}=e;return iI(),m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"banner_container_title",children:i}),m.jsx("p",{className:"banner_container_subtitle",children:l})]})};var t2=Object.freeze({__proto__:null,Banner_Title:t1});l.AchievementSection=lD,l.AdvantageSection=lQ,l.Advantage_additional=tj,l.BannerLeadForm=ny,l.Banner_Title=t1,l.BenefitSection=i6,l.BharatGrowthStoryGraph=nI,l.BulletPointSection=iK,l.BulletPoints_Eleven=tc,l.BulletPoints_Eleven_Two=tv,l.CampaignPageDetailModule=e=>{var l,i,n,t,a,s,o,r;let v=(null==e?void 0:null===(l=e.content)||void 0===l?void 0:l.data)||[],p=(null==e?void 0:null===(i=e.content)||void 0===i?void 0:i.iap)||!1,x=(null==e?void 0:null===(n=e.content)||void 0===n?void 0:n.nfo)||!1,g=d.useRef(null),[f,b]=d.useState(!1),[j,N]=d.use
1State(!1),[y,_]=d.useState(0),S=d.useMemo(()=>!!Array.isArray(v)&&v.some(e=>(null==e?void 0:e.componentId)==="micro_investing"||(null==e?void 0:e.componentId)==="micro_investing_main"||(null==e?void 0:e.componentId)==="ultra_outlook"),[v]),w=d.useMemo(()=>{var e;if(!Array.isArray(v))return null;let l=v.find(e=>(null==e?void 0:e.componentId)==="micro_investing_floater");return null!==(e=null==l?void 0:l.labelOne)&&void 0!==e?e:null},[v]),k=d.useMemo(()=>!!Array.isArray(v)&&v.some(e=>(null==e?void 0:e.componentId)==="faqs"),[v]),C=d.useRef(null),[I,T]=d.useState(!1);d.useEffect(()=>{let e=setInterval(()=>{var e,l;N(!!(null===(l=M.current)||void 0===l?void 0:null===(e=l.hasAnyMinError)||void 0===e?void 0:e.call(l)))},200);return()=>clearInterval(e)},[]),d.useEffect(()=>{if(!k){T(!1);return}if(!("IntersectionObserver"in window))return;let e=C.current;if(!e)return;let l=new IntersectionObserver(e=>{let[l]=e;T(l.boundingClientRect.top<=window.innerHeight)},{root:null,threshold:0});return l.observe(e),()=>l.disconnect()},[k]);let M=d.useRef(null),D=d.useRef(null),[P,A]=d.useState(!1),L=()=>{var e,l;if(null===(e=M.current)||void 0===e?void 0:e.addAllSelectedToCart){M.current.addAllSelectedToCart();return}A(!0),null===(l=document.getElementById("micro-investing-main-z"))||void 0===l||l.scrollIntoView({behavior:"smooth",block:"start"})},F=[{id:"achievement_section",content:B},{id:"banner_lead_form",content:e=>m.jsx(eI,{...e,ref:g})},{id:"content_long",content:U},{id:"documents_section",content:eb},{id:"disclaimer",content:q},{id:"full_screen_banner",content:z},{id:"entry_point",content:R},{id:"advantage_section_two",content:J},{id:"horizontal_lead_form",content:et},{id:"learn_more_section",content:e_},{id:"money_iq_section",content:es},{id:"money_iq_section_two",content:es},{id:"overview_section",content:em},{id:"regulatory_section",content:eh},{id:"risk_section",content:eH},{id:"scheme_finder_section",content:e=>m.jsx("div",{id:"scheme-finder-section-z",children:m.jsx(eu,{...e})})},{id:"schemes_for_you_section",content:ev},{id:"shuruaatsipse_section",content:ea},{id:"image_placeholder",content:H},{id:"benefits_section",content:ex},{id:"key_focus_section",content:W},{id:"iap_schedule",content:Y},{id:"content_with_icons",content:G},{id:"suitable_section",content:K},{id:"calculator",content:e=>m.jsx("div",{id:"iap-sip-calculator-z",children:m.jsx(eo,{...e})})},{id:"advantage_section",content:J},{id:"portfolio_section",content:eN},{id:"content_section_faq",content:X},{id:"types_of_debt_funds",content:$},{id:"suitable_section_two",content:Q},{id:"esg_top_section",content:er},{id:"esg_practice_section",content:ei},{id:"esg_measure_section",content:en},{id:"esg_pillar_section",content:el},{id:"bullet_points_section",content:ed},{id:"multiple_point_section",content:ee},{id:"feature_section",content:ec},{id:"floater_section",content:e=>m.jsx(eS,{...e,bannerRef:g})},{id:"horizontal_schedule_investment_lead_form",content:e=>m.jsx(et,{...e,isIap:p,isSchedule:x})},{id:"on_page_navigation",content:ey},{id:"feature_card_section",content:eg},{id:"nifty_50_section",content:ek},{id:"long_content_section",content:ef},{id:"content_with_image_placeholder",content:ew},{id:"learn_more_section_two",content:eT},{id:"short_info_section",content:eM},{id:"features_of_debt_funds",content:Z},{id:"outlook_section",content:ep},{id:"detailed_return_section",content:ej},{id:"youtube_section",content:eC},{id:"bharath_growth_story_graph",content:eD},{id:"performance_value_graph",content:eP},{id:"our_index_mutual_fund",content:eA},{id:"market_updates",content:eL},{id:"nifty_comp",content:eF},{id:"systematic_investment_plan",content:eE},{id:"frequency_under_sip",content:eO},{id:"explore_current_fund",content:ez},{id:"elss_calculator",content:eB},{id:"elss_calculator_two",content:eR},{id:"features_of_value_mutual_fund",content:eU},{id:"faqs",content:V},{id:"micro_investing",content:l=>m.jsx(eX,{ref:M,...l,pendingAddToCart:P,onConsumePendingAddToCart:()=>A(!1),onMobileAddSchemesPopupChange:b,language:null==e?void 0:e.language})},{id:"micro_investing_main",content:e=>m.jsx("div",{id:"micro-investing-main-z",children:m.jsx(eX,{ref:M,...e,pendingAddToCart:P,onConsumePendingAddToCart:()=>A(!1)})})},{id:"factor_banner",content:e3}
1,{id:"factor_two",content:eW},{id:"factor_three",content:eY},{id:"factor_four",content:eV},{id:"factor_five",content:eQ},{id:"factor_six",content:e0},{id:"factor_seven",content:eG},{id:"factor_eight",content:lt},{id:"factor_nine",content:e1},{id:"factor_ten",content:e2},{id:"gold_main",content:l=>m.jsx(e8,{...l,ref:D,particularSchemeGO:null==e?void 0:e.particularSchemeGO,particularSchemeSV:null==e?void 0:e.particularSchemeSV,currentGoldPrices:null==e?void 0:e.currentGoldPrices,onActiveIndexChange:_})},{id:"hardcoded_benefits",content:e5},{id:"gold_three",content:e9},{id:"crisis_benefits",content:e4},{id:"daily_sip_one",content:la},{id:"daily_sip",content:ls},{id:"ultra_main",content:le},{id:"daily_sip_four",content:e6},{id:"daily_sip_five",content:e7},{id:"daily_sip_calculator",content:ll},{id:"bullet_points_eleven",content:eZ},{id:"bullet_points_eleven_two",content:e$},{id:"text_box_eleven",content:eK},{id:"text_with_icon_eleven",content:eJ},{id:"multicap_benefits",content:li},{id:"mutlicap_benefits",content:ln},{id:"ultra_outlook",content:e=>m.jsx(eq,{ref:M,...e,pendingAddToCart:P,onConsumePendingAddToCart:()=>A(!1)})},{id:"banner_title",content:lo}],E=d.useMemo(()=>{if(!Array.isArray(v)||!v.length)return[];let e={};v.forEach(l=>{e[l.componentId]||(e[l.componentId]=[]),e[l.componentId].push({order:l.order||0,groupId:l.groupId,props:l})});let l=F.flatMap(l=>(e[l.id]||[]).map(e=>({...l,...e}))).sort((e,l)=>e.order-l.order),i={};return l.forEach(e=>{let l=e.groupId||"default";i[l]||(i[l]=[]),i[l].push(e)}),Object.entries(i)},[v]),ld=h.useRootContextData();return m.jsx(u.CartPaymentProvider,{children:m.jsxs("div",{className:"campaignpage-detail-module",children:[!!(null==e?void 0:null===(t=e.supportedLanguages)||void 0===t?void 0:t.length)&&m.jsx("div",{className:"language-dropdown-container ".concat(ld.showHeader?"":"header-not-visible"," ").concat(f?"language-dropdown-not-visible":""),children:m.jsx(O,{onLanguageChange:l=>{var i;let n=lr(null==e?void 0:e.campaignPageUrl),t=null!==(i=null==e?void 0:e.supportedLanguages)&&void 0!==i?i:[];if(!n||!t.length){console.error("()====> Language redirect configuration is missing",{baseUrl:n,supportedLanguages:t});return}let a=t.find(e=>e.code===l);if(!a){console.error("()====> Selected language is not present in API configuration",l);return}let s=t[0];if(a.code===s.code){window.location.href="/".concat(n);return}let o=lr(a.language||a.code);if(!o){console.error("()====> Language URL segment is empty",a);return}window.location.href="/".concat(n,"/").concat(encodeURIComponent(o))},currentLanguage:null!==(o=null==e?void 0:e.language)&&void 0!==o?o:null==e?void 0:null===(s=e.supportedLanguages)||void 0===s?void 0:null===(a=s[0])||void 0===a?void 0:a.code,supportedLanguages:null!==(r=null==e?void 0:e.supportedLanguages)&&void 0!==r?r:[]})}),E.map((l,i)=>{let[n,t]=l,a=t.some(e=>"full_screen_banner"===e.id);return m.jsxs("div",{className:"group-container ".concat(a?"fullscreenbanner_ow":""),children:[t.map(e=>{var l;let{content:i,props:t}=e;return i?m.jsxs(d.Fragment,{children:[m.jsx("div",{id:t.componentId,children:m.jsx(d.Suspense,{fallback:m.jsx("div",{className:"section-loader"}),children:m.jsx(i,{...t,isIap:p,isSchedule:x,ref:"banner_lead_form"===t.componentId?g:void 0,activeIndex:"banner_lead_form"===t.componentId?y:void 0})})}),"faqs"===t.componentId&&m.jsx("div",{ref:C,style:{height:1}})]},"".concat(n,"-").concat(t.componentId,"-").concat(null!==(l=t.order)&&void 0!==l?l:"")):null}),i===E.length-1&&(null==e?void 0:e.isIapPage)===!1&&m.jsx("div",{className:"download-app-link-container",children:m.jsx(c.DownloadAppLink,{})})]},n)}),S&&(!k||!I)&&m.jsx("div",{className:"sticky-invest-now",children:m.jsx("button",{type:"button",disabled:j,className:"sticky-invest-btn ".concat(j?"is-disabled":""),onClick:()=>{j||L()},children:w||"Invest Now"})})]})})},l.ContentLong=lE,l.ContentSectionFaq=l9,l.ContentWithIcons=lJ,l.ContentWithImagePlaceholder=np,l.Daily_Sip=tQ,l.Daily_Sip_4=tM,l.Daily_Sip_5=tP,l.Daily_Sip_Calculator=tW,l.Daily_Sip_One=t$,l.DetailedReturnSection=na,l.Disclaimer=lG,l.DocumentSection=nn,l.ELSSCalculator=nq,l.ENV=F,l.ElssCalculator2=nK,l.EntryPoint=lL,l.EsgMeasureSection=is,l.EsgPillarSection=il,l.EsgPracticeSection=it,l.EsgTopSection=iq,l.ExploreCurrentFunds=nW,l.FactorC
1ard=n6,l.FactorPortfolio=e=>{let{data:l}=e,{title:i,subTitle:n,factors:t}=l,a=e=>{let{item:l,index:i}=e;return m.jsxs("div",{className:"mobile-factors-profile-card",children:[m.jsx("div",{className:"card-number",children:i+1}),m.jsx("h2",{className:"card-title",children:l.title}),l.description&&m.jsx("p",{className:"card-description",children:l.description})]})};return t&&Array.isArray(t)&&!(t.length<=0)?m.jsxs("div",{className:"factor-portfolio-container",children:[m.jsxs("div",{className:"title-section",children:[m.jsx("h1",{className:"main-title",children:i}),n&&m.jsx("p",{className:"subtitle",children:n})]}),m.jsx("div",{className:"carousel-view",children:m.jsx(b.CustomComponentCarousel,{className:"custom-component-carousel-default",list:t,isSnap:!0,component:e=>{let{item:l,index:i}=e;return m.jsx(a,{item:l,index:i})},showDots:!0,idPath:"title"})}),m.jsx("div",{className:"cards-container",children:t.map((e,l)=>m.jsxs("div",{className:"card",children:[m.jsx("div",{className:"card-number",children:l+1}),m.jsx("h2",{className:"card-title",children:e.title}),e.description&&m.jsx("p",{className:"card-description",children:e.description})]},l))})]}):null},l.Factor_5=th,l.Factor_6=tx,l.Factor_7=tt,l.Factor_8=tJ,l.Factor_9=tf,l.Factor_Banner=ty,l.Factors4Cards=n8,l.Faqs=lV,l.FeatureCardSection=i8,l.FeatureSection=i$,l.FeaturesOfDebtFunds=l1,l.FeaturesOfValueMF=nZ,l.FloaterSection=nm,l.FrequencyUnderSIPFacility=nU,l.FullscreenBanner=lT,l.FundPortfolioSection=no,l.Gold_3=tk,l.Gold_Main=tL,l.Hardcoded_Benefits=tS,l.Hardcoded_crisis_performance=tI,l.HorizontalLeadForm=iF,l.IAPSIPCalculator=iY,l.IapSchedule=lH,l.ImagePlaceholder=lz,l.Introduction=n9,l.KeyFocus=lR,l.LearnMoreSection=nc,l.LearnMoreSectionTwo=nS,l.LongContent=nl,l.MarketUpdates=nF,l.MicroInvestingMain=l_,l.MoneyIQSection=iR,l.Multicap_Benefits=tV,l.MultiplePointSection=l8,l.Mutlicap_Benefits=tG,l.NiftyComp=nO,l.NiftyFiftySection=ng,l.NonIaptextbox=ts,l.OnPageNavigation=lw,l.OurIndexMutualFunds=nA,l.OutlookCarousel=ti,l.OutlookSection=i9,l.OverviewSection=lC,l.PerformanceValue=nM,l.RegulatorySection=i3,l.RiskSection=n2,l.SchemeFinderSection=iQ,l.SchemeForYou=i1,l.ShortInfoSection=nk,l.ShuruaatSIP=iO,l.SuitableSection=l$,l.SuitableSectionTwo=l6,l.SystematicInvestmentPlan=nB,l.TextWithEleven=tr,l.TypesOfDebtFunds=l3,l.Ultra_Main=tE,l.YoutubeSection=nb}}]);
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.