PageSourceSearch

https://www.axismf.com/_next/static/chunks/5842-3a6806b132b3b4e8.js

js axismf.com collected 2026-09-24 10:08:22 UTC 74,214 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5842],{69705:function(e,t,a){var l=a(57437);t.GoalPlanning=()=>l.jsxs("div",{className:"scheme-media",children:[l.jsx("h2",{className:"lbl-banner-heading heading-txt",children:"Goal Planning"}),l.jsx("div",{className:"content-holder"})]})},83746:function(e,t,a){var l=a(57437),n=a(51864),s=a(2265),i=a(93906),o=a(87949),r=a(62191),c=a(4514),d=a(73797),u=a(9028);t.BuyGoldInGrams=e=>{let{goldSiverToggle:t,setGoldSilverToggle:a,selectedScheme:m,toggleOptions:v,userType:h}=e,[g,p]=s.useState(0);return l.jsxs("div",{className:"buy-gold-grams-container",children:[l.jsxs("div",{className:"header-section",children:[l.jsxs("div",{className:"heading-content",children:[l.jsx("h2",{className:"main-heading",children:null==m?void 0:m.title}),l.jsx("div",{className:"sub-text",onClick:()=>{var e;c.GoogleAnalytics.recordEvent(c.GoogleAnalyticEvents.ShagunSip.ViewSchemeDetails({flow_name:"shagun sip journey",cta_name:"view scheme details",scheme_name:null==m?void 0:m.title,scheme_category:null==m?void 0:null===(e=m.schemeProperties)||void 0===e?void 0:e.title,scheme_sub_category:u.isGoldScheme(t)?"gold":"silver",day_parting:d.getPartOfDay(),user_type:h}))},children:l.jsx(r.HtmlConvert,{htmlString:(null==m?void 0:m.descriptionCta)||""})})]}),l.jsx("div",{className:"toggle-section",children:l.jsx(n.default,{options:v,value:t,onChange:e=>{var t;a(e),c.GoogleAnalytics.recordEvent(c.GoogleAnalyticEvents.ShagunSip.GoldSilverSelect({flow_name:"shagun sip journey",cta_name:u.isGoldScheme(e)?"gold":"silver",scheme_name:null==m?void 0:m.title,scheme_category:null==m?void 0:null===(t=m.schemeProperties)||void 0===t?void 0:t.title,scheme_sub_category:u.isGoldScheme(e)?"gold":"silver",page_section:d.getPathName()||"",page_sub_section:"gold silver header",day_parting:d.getPartOfDay(),user_type:h}))}})})]}),l.jsxs("div",{className:"cards-container",children:[l.jsx("div",{className:"scheme-invest-section",children:l.jsx(i.GoldInvestCalculator,{userType:h,selectedScheme:m,goldSiverToggle:t,setMinInvestmentAmount:p})}),l.jsx("div",{className:"scheme-details",children:l.jsx(o.ShagunSchemeInfo,{userType:h,goldSiverToggle:t,selectedScheme:m,minInvestmentAmount:g})})]})]})}},93906:function(e,t,a){var l=a(57437),n=a(4514),s=a(51864),i=a(87550),o=a(2265),r=a(42949),c=a(62191),d=a(9028),u=a(96022),m=a(7122),v=a(93796),h=a(59915),g=a(73797),p=a(32729);t.GoldInvestCalculator=e=>{var t;let{goldSiverToggle:a,selectedScheme:x,userType:f,setMinInvestmentAmount:S}=e,{loading:y,goldPricePerGram:j,silverPricePerGram:N,goldPrice10g:b,silverPrice1Kg:D}=r.useGetGoldSilverPricePerGram(),{paymentHierarchyResponse:C}=m.useGetPaymentHierarchyData(),[_,w]=o.useState(),[F,T]=o.useState((null==_?void 0:_[0].key)||""),[E,I]=o.useState(),[A,k]=o.useState(),[P,L]=o.useState(!1),[M,G]=o.useState(),[O,Y]=o.useState({grams:0,amount:"",maxSipLumpsumAmount:""}),[R,U]=o.useState({grams:"",amount:"",maxSipLumpsumAmount:""}),[B,H]=o.useState(!0),V=[...(null==x?void 0:x.investmentQuantityOptions)||[],{grams:1,icon:"",label:"Custom"}],[q,W]=o.useState([]),[z,K]=o.useState(),[Q,J]=o.useState(),$=d.isGoldScheme(null==x?void 0:x.schemeId),X=d.isSilverScheme(null==x?void 0:x.schemeId),Z=!(null==R?void 0:R.grams)&&!(null==R?void 0:R.amount)&&!(null==R?void 0:R.maxSipLumpsumAmount),ee=async e=>{await v.placeGetTransactionDetails([e],{default:e=>{},success:e=>{var t,a,l,n;J(null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(l=n.schemeInfo)||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:null===(t=a.schemeDetails)||void 0===t?void 0:t[0])}})},et=async()=>{await h.placeGetShagunTransactionDetails({default:el,success:ea})},ea=e=>{var t;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.length)>0&&W(null==e?void 0:e.data)},el=e=>{},en=o.useCallback(()=>{var e;let t=null==z?void 0:null===(e=z.txnDetails)||void 0===e?void 0:e.sipMinPurchaseGms;if(!t)return;let l=d.isGoldScheme(a)?j:N;l&&S(Math.round(t*l))},[z,a,j,N]);o.useEffect(()=>{(null==z?void 0:z.txnDetails)&&!y&&en()},[z,a,y]),o.useEffect(()=>{(null==q?void 0:q.length)>0&&K($?null==q?void 0:q.find(e=>(null==e?void 0:e.commodityType)==="GOLD"):X?null==q?void 0:q.find(e=>(null==e?void 0:e.commodityType)==="SILVER"):null)},[q,x]),o.useEffect(()=>{et()},[]),o.useEffect(()=>{$?I(j):X&&I(N)},[x,j,N,$]),o.useEffect(()=>{if(x&&E){var e,t,a;let l=r.calculateGoldSilverInvestment({grams:(null==x?void 0:null===(t=x.investmentQuantityOptions)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.grams)||1,pricePerGram:E||0,isSip:"SIP"===F});Y({grams:null==l?void 0:null===(a=l.grams)||void 0===a?void 0:a.toString(),maxSipLumpsumAmount:Number(null==l?void 0:l.maxSipLumpsumAmount),amount:Number(null==l?void 0:l.amount)}),U({grams:"",amount:"",maxSipLumpsumAmount:""})}},[a,x,E]),o.useEffect(()=>{var e,t,a;let l=null==x?void 0:null===(e=x.investmentTypes)||void 0===e?void 0:e.map(e=>({label:e,key:String(e).toUpperCase()}));w(l),T((null==l?void 0:l[0].key)||""),(null==x?void 0:x.schemeId)&&ee(null==x?void 0:x.schemeId),k(null==x?void 0:null===(a=x.investmentQuantityOptions)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.grams),L(!1)},[x]),o.useEffect(()=>{var e,t,a;U({grams:"",amount:"",maxSipLumpsumAmount:""});let l=r.calculateGoldSilverInvestment({grams:(null==x?void 0:null===(t=x.investmentQuantityOptions)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.grams)||1,pricePerGram:E||0,isSip:"SIP"===F});Y({grams:null==l?void 0:null===(a=l.grams)||void 0===a?void 0:a.toString(),maxSipLumpsumAmount:Number(null==l?void 0:l.maxSipLumpsumAmount),amount:Number(null==l?void 0:l.amount)})},[F]),o.useEffect(()=>{var e;let t=null==C?void 0:null===(e=C.data)||void 0===e?void 0:e.shagunPaymentLimits;if(t&&Array.isArray(t)&&t.length>0){let e=Math.max(...t.map(e=>Number((null==e?void 0:e.limit)||0)));e>0&&G(e)}},[C]);let es=e=>{var t,l,s,i,o,c,u;if(U({grams:"",amount:"",maxSipLumpsumAmount:""}),"Custom"===e.label){L(!0),H(!1),k((null==x?void 0:null===(s=x.investmentQuantityOptions)||void 0===s?void 0:null===(l=s[0])||void 0===l?void 0:l.grams)||1);let e=r.calculateGoldSilverInvestment({grams:(null==x?void 0:null===(o=x.investmentQuantityOptions)||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:i.grams)||1,pricePerGram:E||0,isSip:"SIP"===F});Y({grams:(null==x?void 0:null===(u=x.investmentQuantityOptions)||void 0===u?void 0:null===(c=u[0])||void 0===c?void 0:c.grams)||1,amount:e.amount,maxSipLumpsumAmount:e.maxSipLumpsumAmount.toString()})}else{L(!1),H(!0),k(null==e?void 0:e.grams);let t=r.calculateGoldSilverInvestment({grams:null==e?void 0:e.grams,pricePerGram:E||0,isSip:"SIP"===F});Y({grams:t.grams.toString(),amount:t.amount.toString(),maxSipLumpsumAmount:t.maxSipLumpsumAmount.toString()})}n.GoogleAnalytics.recordEvent(n.GoogleAnalyticEvents.ShagunSip.GramSelect({flow_name:"shagun sip journey",cta_name:F,scheme_name:null==e?void 0:e.label,scheme_category:null==x?void 0:null===(t=x.schemeProperties)||void 0===t?void 0:t.t
1itle,scheme_sub_category:d.isGoldScheme(a)?"gold":"silver",current_value:d.isGoldScheme(a)?j:N,investment_type:F,invested_amount:(null==O?void 0:O.amount)||0,value:(null==O?void 0:O.grams)||0,page_section:g.getPathName()||"",page_sub_section:"Gold/silver calculator",day_parting:g.getPartOfDay(),user_type:f}))},ei=(e,t)=>{var a,l;let n=d.isGoldScheme(null==x?void 0:x.schemeId),s="SIP"===F,i=s?null==z?void 0:null===(a=z.txnDetails)||void 0===a?void 0:a.sipMinPurchaseGms:null==z?void 0:null===(l=z.txnDetails)||void 0===l?void 0:l.lumpsumMinPurchaseGms,o=s?M:null==Q?void 0:Q.lumpsumMaxAmt;if(!(n?/^\d*\.?\d{0,2}$/:/^\d*$/).test(t))return;if(t.length>1&&t.startsWith("0")&&"."!==t[1]&&(t=t.replace(/^0+/,"")),""===t){Y(t=>({...t,[e]:"",amount:"",maxSipLumpsumAmount:""})),U({grams:"Grams cannot be empty",amount:"",maxSipLumpsumAmount:""});return}if(t.endsWith(".")){Y(a=>({...a,[e]:t}));{let e=Number(t.slice(0,-1));0===e||isNaN(e)?U(e=>({...e,grams:"Please enter a valid gram value"})):U(e=>({...e,grams:""}))}return}let c=Number(t);if(!isNaN(c)){U({grams:"",amount:"",maxSipLumpsumAmount:""});{let e=r.calculateGoldSilverInvestment({grams:c,pricePerGram:E||0,isSip:s}),a=e.amount,l=e.maxSipLumpsumAmount;if(Y(e=>({...e,grams:t,amount:a,maxSipLumpsumAmount:l})),0===c?U(e=>({...e,grams:"Grams cannot be 0"})):void 0!==i&&c<i&&U(e=>({...e,grams:"Minimum quantity is ".concat(i," gram").concat(i>1?"s":"")})),null!=o&&l>o){if(s){let e=3e4>=Math.floor(o/3)?Math.floor(o/4):Math.floor(o/3);U(t=>({...t,amount:"Maximum SIP amount allowed is ₹".concat(e.toLocaleString("en-IN"))}))}else U(e=>({...e,amount:"Maximum Lumpsum amount allowed is ₹".concat(o.toLocaleString("en-IN"))}))}return}}};return y?l.jsx(u.Skeleton,{width:"100%",height:"400px"}):l.jsxs("div",{className:"gold-investment-calculator",children:[l.jsx("img",{src:n.pathChanger($?"gold_coins_bg.svg":"silver_coins_bg.svg"),className:"coins-bg"}),l.jsxs("div",{className:"inner-container",children:[l.jsxs("div",{className:"shagun-scheme-investment-info",children:[l.jsxs("div",{className:"price-section",children:[l.jsxs("div",{className:"price-inner-div",children:[l.jsx("img",{src:null==x?void 0:x.commodityIcon,className:"gold-silver-top-icon",width:40}),l.jsxs("div",{className:"content",children:[l.jsx("div",{className:"metal",children:null==x?void 0:x.commodityPriceTitle}),l.jsxs("div",{className:"price-mark",children:[l.jsx("img",{src:n.pathChanger("holemark_green.svg")}),E&&l.jsxs("div",{className:"price-value",children:["₹ ",$?b:X?D:""]})]})]})]}),l.jsx("div",{className:$?"gold-expense-ratio":"silver-expense-ratio",children:l.jsxs("span",{children:["Expense Ratio: ",null==x?void 0:x.expenseRatio,"%"]})})]}),l.jsxs("div",{className:"investment-mode-metal ".concat((null==R?void 0:R.grams)||(null==R?void 0:R.amount)||(null==R?void 0:R.maxSipLumpsumAmount)?"error-margin":""," ").concat($?"investment-mode-gold":"investment-mode-silver"),children:[l.jsxs("div",{className:"investment-mode-div",children:[l.jsx("div",{className:"investment-mode-heading",children:null==x?void 0:x.investmentTitle}),l.jsx(s.default,{value:F,options:_,onChange:e=>{var t,l,s;T(e),H(!0),k((null==x?void 0:null===(l=x.investmentQuantityOptions)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.grams)||1),L(!1),U({grams:"",amount:"",maxSipLumpsumAmount:""}),n.GoogleAnalytics.recordEvent(n.GoogleAnalyticEvents.ShagunSip.SipLumpsumSelect({flow_name:"shagun sip journey",cta_name:F,scheme_name:null==x?void 0:x.title,scheme_category:null==x?void 0:null===(s=x.schemeProperties)||void 0===s?void 0:s.title,scheme_sub_category:d.isGoldScheme(a)?"gold":"silver",current_value:d.isGoldScheme(a)?j:N,investment_type:F,invested_amount:(null==O?void 0:O.amount)||0,value:(null==O?void 0:O.grams)||0,page_section:g.getPathName()||"",page_sub_section:"Gold/silver calculator",day_parting:g.getPartOfDay(),user_type:f}))}})]}),l.jsxs("div",{className:"choose-gram-div",children:[l.jsx("div",{className:"choose-gram-heading",children:null==x?void 0:x.investmentSubtitle}),l.jsx("div",{className:"grams-list",children:null==V?void 0:V.map((e,t)=>{let a=(null==e?void 0:e.label)==="Custom"?P:!P&&A===(null==e?void 0:e.grams);return l.jsx("button",{className:a?"btn-primary":"btn-outline-primary",onClick:()=>es(e),children:(null==e?void 0:e.label)==="Custom"?l.jsx("label",{children:null==e?void 0:e.label}):l.jsxs(l.Fragment,{children:[l.jsx("img",{src:null==e?void 0:e.icon,width:18,alt:"grams"}),l.jsxs("label",{children:[null==e?void 0:e.grams," ",(null==e?void 0:e.grams)>1?"grams":"gram"]})]})},t)})})]}),l.jsxs("div",{className:"gram-inputs",children:[l.jsx(i.MOutlinedTextBox,{className:"moutlined-txtbx-default",disabled:B,value:null==O?void 0:O.grams,label:"".concat(P?"Custom"
1:""," Grams"),onChange:e=>ei("grams",e),isError:!!(null==R?void 0:R.grams),errorMessage:null==R?void 0:R.grams,maxLength:10}),l.jsx("span",{className:"interchange-icon",children:"~"}),l.jsx(i.MOutlinedTextBox,{className:"moutlined-txtbx-default",disabled:!0,value:null==O?void 0:O.amount,label:"SIP"===F?"SIP Amount":"Lumpsum Amount",labelSuffix:l.jsx(p.ShagunTooltip,{content:"The displayed amount is tentative and subject to change based on real-time gold/silver prices."}),onChange:()=>{},isError:!!(null==R?void 0:R.amount),errorMessage:null==R?void 0:R.amount,maxLength:18})]})]})]}),l.jsx("div",{className:"note",children:l.jsx(c.HtmlConvert,{htmlString:null==x?void 0:x.note})}),l.jsx(m.InvestNowButton,{isFromOnboarding:!1,uniqueId:"invest-now",className:"invest-btn",disabled:!Z,userJourneys:r.UserJourneys.shagun,pushPath:"/quickpay-shagun",scheme:{schemeId:null==x?void 0:x.schemeId,schemeCode:null==x?void 0:x.schemeCode,maxSipLumpsumAmount:Number(O.maxSipLumpsumAmount)||0,amount:Number(O.amount)||0,investmentMode:F,grams:Number(O.grams)||0,perGramGold:j,perGramSilver:N,componentFrom:"shagun",schemeName:null==x?void 0:null===(t=x.schemeProperties)||void 0===t?void 0:t.title,investmentBy:"Self/Direct",planType:"Direct"}})]})]})}},88688:function(e,t,a){var l=a(57437),n=a(62191);t.GoldInvestmentBenefitsCard=e=>{let{data:t}=e;return l.jsx("div",{className:"gold-investment-benefits-card",children:l.jsxs("div",{className:"benefits-inner-container",children:[l.jsx("img",{src:null==t?void 0:t.icon,className:"card-icon"}),l.jsxs("div",{className:"details-section",children:[l.jsx("h3",{className:"title",children:null==t?void 0:t.title}),l.jsx("div",{className:"description",children:l.jsx(n.HtmlConvert,{htmlString:null==t?void 0:t.description})})]})]})})}},22424:function(e,t,a){var l=a(57437),n=a(62191);t.GoldInvestmentReasonsCard=e=>{let{data:t}=e;return l.jsxs("div",{className:"reasons-card",children:[l.jsx("img",{src:null==t?void 0:t.icon,width:28}),l.jsxs("div",{className:"details-section",children:[l.jsx("h3",{className:"header",children:null==t?void 0:t.title}),l.jsx("div",{className:"description",children:l.jsx(n.HtmlConvert,{htmlString:null==t?void 0:t.description})})]})]})}},55845:function(e,t,a){var l=a(57437),n=a(62191);let s=["#E6F0FF","#F9FCEC","#D6FAEE"];t.GoldInvestmentRulesCard=e=>{let{data:t,index:a}=e,i=s[a%s.length];return l.jsxs("div",{className:"rules-card-container",style:{backgroundColor:i},children:[l.jsx("img",{src:null==t?void 0:t.icon,className:"rule-card-icon"}),l.jsxs("div",{className:"details-section",children:[l.jsx("div",{className:"header",children:null==t?void 0:t.title}),l.jsx("div",{className:"description",children:l.jsx(n.HtmlConvert,{htmlString:null==t?void 0:t.description})})]})]})}},81996:function(e,t,a){var l=a(57437),n=a(99150),s=a(2265);t.MetalNavHistoryGraph=e=>{let{metalType:t,selectedPeriod:a,data:i}=e,o=s.useRef(null),r=s.useMemo(()=>(null==i?void 0:i.map(e=>{let[t,a,l]=e.date.split("/");return{navDate:new Date("".concat(l,"-").concat(a,"-").concat(t)).toISOString(),nav:e.price}}))||[],[t,a,i]);return l.jsxs("div",{className:"metal-nav-history-container",children:[l.jsx(n.AreaLabelChart,{ref:o,seriesName:"Metal Price",dataLine1:r,gradient1:[{color:"gold"===t?"#FFE5A3":"#E0E0E0",offset:0},{color:"#FFFFFF",offset:1}],gradient2:[{color:"gold"===t?"#C9A227":"#9E9E9E",offset:0},{color:"#FFFFFF",offset:1}],width:"100%",height:"300px",chartType:{1:"month",3:"year",5:"year",10:"year"}[a],xMultiLable:"3"===a,yAxisLabel:"Amount"}),l.jsxs("div",{className:"exponential-growth-div",children:[l.jsx("div",{className:"dot ".concat("gold"===t?"gold":"silver")}),l.jsx("div",{className:"text",children:"gold"===t?"10g of 24k gold":"1kg of silver"})]})]})}},90411:function(e,t,a){var l=a(57437),n=a(42949),s=a(58520),i=a(2265),o=a(73797),r=a(4514),c=a(32729);t.MyGoldSilverTransactions=()=>{let e=768>n.useScreenWidth(),[t,a]=i.useState([]),[d,u]=i.useState(1),m=Math.ceil(t.length/3),v=t.slice((d-1)*3,3*d),h=async()=>{try{await s.getShagunMyTransactions({default:e=>{},success:e=>{var t;a(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.data)}})}catch(e){}};return i.useEffect(()=>{h()},[]),(null==t?void 0:t.length)>0?l.jsxs("div",{className:"my-gold-transactions",children:[l.jsx("div",{className:"header-section",children:l.jsx("h2",{className:"heading",children:"My Transactions"})}),l.jsx("div",{className:"my-transaction-table-container",children:e?l.jsx("div",{className:"my-transaction-list-mobile",children:null==v?void 0:v.map((e,t)=>l.jsx("div",{className:"my-transaction-card",children:l.jsxs("div",{className:"content",children:[l.jsx("div",{className:"scheme-name",children:null==e?void 0:e.sc
1hemeName}),l.jsxs("div",{className:"data_and_gram",children:[l.jsx("div",{className:"date",children:null==e?void 0:e.date}),l.jsx("div",{className:"grams",children:(null==e?void 0:e.grams)?"• ".concat(Number(null==e?void 0:e.grams).toFixed(2),"g"):"--"})]}),l.jsxs("div",{className:"occation_and_price",children:[l.jsxs("div",{className:"amount",children:["₹",null==e?void 0:e.amount]}),l.jsx("div",{className:o.getTransactionStatusClass(null==e?void 0:e.status),children:null==e?void 0:e.status})]})]})},t))}):l.jsxs("table",{className:"my-transaction-table",border:0,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Fund Name"}),l.jsx("th",{children:"Date"}),l.jsx("th",{children:"Grams"}),l.jsxs("th",{children:["Amount ",l.jsx(c.ShagunTooltip,{})]}),l.jsx("th",{children:"Status"})]})}),l.jsx("tbody",{children:null==v?void 0:v.map((e,t)=>l.jsxs("tr",{children:[l.jsx("td",{className:"scheme-name",children:null==e?void 0:e.schemeName}),l.jsx("td",{className:"date",children:null==e?void 0:e.date}),l.jsx("td",{className:"grams",children:(null==e?void 0:e.grams)?"".concat(Number(null==e?void 0:e.grams).toFixed(2),"g"):"--"}),l.jsxs("td",{className:"amount",children:["₹",null==e?void 0:e.amount]}),l.jsx("td",{children:l.jsx("span",{className:o.getTransactionStatusClass(null==e?void 0:e.status),children:null==e?void 0:e.status})})]},t))})]})}),m>1&&t.length>3&&l.jsxs("div",{className:"my-transaction-pagination",children:[l.jsx("img",{src:r.pathChanger("arrow_drop_down_circle_right.svg"),alt:"previous",className:"pagination-arrow ".concat(1===d?"disabled":""),onClick:()=>d>1&&u(d-1)}),l.jsx("div",{className:"pagination-numbers",children:(m<=3?Array.from({length:m},(e,t)=>t+1):d<=2?[1,2,"...",m]:d>=m-1?[1,"...",m-1,m]:[1,"...",d,"...",m]).map((e,t)=>l.jsx("span",{className:"pagination-item ".concat(e===d?"active":""," ").concat("..."===e?"dots":""),onClick:()=>"number"==typeof e&&u(e),children:e},t))}),l.jsx("img",{src:r.pathChanger("arrow_drop_down_circle.svg"),alt:"next",className:"pagination-arrow ".concat(d===m?"disabled":""),onClick:()=>d<m&&u(d+1)})]})]}):null}},37687:function(e,t,a){var l=a(57437),n=a(62191);t.ShagunCelebrationCard=e=>{var t;let{heroCard:a}=e;return l.jsxs("div",{className:"shagun-celebration-card",children:[l.jsx("img",{src:null==a?void 0:a.backgroundImage,className:"background-image"}),l.jsxs("div",{className:"card-content",children:[l.jsx("div",{className:"header",children:l.jsx(n.HtmlConvert,{htmlString:null==a?void 0:a.title})}),l.jsx("div",{className:"description",children:null==a?void 0:a.description})]}),l.jsxs("div",{className:"gold-celebration",children:[l.jsx("div",{className:"list",children:null==a?void 0:null===(t=a.chips)||void 0===t?void 0:t.map((e,t)=>l.jsxs("div",{className:"tag",children:[l.jsx("img",{src:e.icon,width:20}),l.jsx("div",{className:"tag-lable",children:null==e?void 0:e.label})]},t))}),l.jsx("img",{src:null==a?void 0:a.bannerImage,width:170,className:"gold-silver-coin-icon"})]})]})}},87949:function(e,t,a){var l=a(57437),n=a(51864),s=a(81996),i=a(2265),o=a(96184),r=a(38654),c=a(9028),d=a(96022),u=a(4514),m=a(73797);t.ShagunSchemeInfo=e=>{var t,a,v,h,g,p,x,f,S;let{goldSiverToggle:y,userType:j,selectedScheme:N,minInvestmentAmount:b}=e,[D,C]=i.useState(!0),[_,w]=i.useState("1"),[F,T]=i.useState(),[E,I]=i.useState(),A=i.useRef({}),k=i.useCallback(async e=>{try{await o.placeGetShagunFundDetails({securityName:e},{default:()=>{},success:e=>{T(null==e?void 0:e.data)}})}catch(e){}},[]),P=i.useCallback(async(e,t)=>{let a=c.isGoldScheme(e)?"GOLD":"SILVER",l="".concat(a,"_").concat(t);if(A.current[l]){I(A.current[l]),C(!1);return}C(!0);try{await r.placeGetGoldSilverSipStatistics({securityName:a,period:t},{default:()=>{C(!1)},success:e=>{C(!1),A.current[l]=null==e?void 0:e.data,I(null==e?void 0:e.data)}})}catch(e){C(!1)}},[]);return(i.useEffect(()=>{k(c.isGoldScheme(y)?"GOLD":"SILVER")},[y,k]),i.useEffect(()=>{w("1")},[y]),i.useEffect(()=>{y&&_&&P(y,_)},[y,_,P]),D)?l.jsx(d.Skeleton,{width:"100%",height:"400px"}):l.jsxs("div",{className:"shagun-schemes-info",children:[l.jsxs("div",{className:"info-card",children:[l.jsxs("div",{className:"header-section",children:[l.jsx("div",{className:"title",children:null==F?void 0:F.fundName}),l.jsx("div",{className:"sub-info",children:null==F?void 0:F.fundDescription})]}),l.jsxs("div",{className:"scheme-stats-section",children:[l.jsxs("div",{className:"row1",children:[l.jsxs("div",{className:"current-nav",children:[l.jsx("img",{src:null==F?void 0:null===(t=F.details[0])||void 0===t?void 0:t.url,width:40}),l.jsxs("div",{className:"content",children:[l.jsx("div",{className:"value",children:null==F?void 0:null===(a=F.details[0])||void 0===a?void 0:a.value}),l.jsx("div",{className:"title",children:null==F?void 0:null===(v=F.details[0])||void 0===v?void 0:v.label})]})]}),l.jsx("div",{className:"verticle-line"}),l.jsxs("div",{className:"performance",children:[l.jsx("img",{src:null==F?void 0:null===(h=F.details[1])||void 0===h?void 0:h.url,width:40}),l.jsxs("div",{className:"content",children:[l.jsx("div",{className:"value",children:null==F?void 0:null===(g=F.details[1])||void 0===g?void 0:g.value}),l.jsx("div",{className:"title",children:null==F?void 0:null===(p=F.details[1])||void 0===p?void 0:p.label})]})]})]}),l.jsxs("div",{className:"min-investment",children:[l.jsx("img",{src:null==F?void 0:null===(x=F.details[2])||void 0===x?void 0:x.url,width:40}),l.jsxs("div",{className:"content",children:[l.jsxs("div",{className:"value",children:["₹ ",b||(null==F?void 0:null===(f=F.details[2])||void 0===f?void 0:f.value)]}),l.jsx("div",{className:"title",children:null==F?void 0:null===(S=F.details[2])||void 0===S?void 0:S.label})]})]})]})]}),l.jsxs("div",{className:"scheme-graph-card",children:[l.jsx("div",{className:"yearly-toggle-row",children:l.jsx(n.default,{value:_,options:[{label:"1Y",key:"1"},{label:"3Y",key:"3"},{label:"5Y",key:"5"},{label:"10Y",key:"10"}
1],onChange:e=>{var t;w(e),u.GoogleAnalytics.recordEvent(u.GoogleAnalyticEvents.ShagunSip.YearSelect({flow_name:"shagun sip journey",cta_name:e,scheme_name:null==N?void 0:N.title,scheme_category:null==N?void 0:null===(t=N.schemeProperties)||void 0===t?void 0:t.title,scheme_sub_category:c.isGoldScheme(y)?"gold":"silver",page_section:m.getPathName()||"",page_sub_section:"scheme graph",day_parting:m.getPartOfDay(),user_type:j}))}})}),l.jsx(s.MetalNavHistoryGraph,{data:(null==E?void 0:E.priceData)||[],metalType:c.isGoldScheme(y)?"gold":"silver",selectedPeriod:_})]})]})}},89949:function(e,t,a){var l=a(57437),n=a(56657),s=a(62191),i=a(7122),o=a(9028),r=a(27710),c=a(4514),d=a(73797);t.ShagunSipCard=e=>{var t;let{data:a,userType:u}=e;return l.jsxs("div",{className:"shagun-sip-card",children:[l.jsxs("div",{className:"shagun-details-section",children:[l.jsxs("div",{className:"header-div",children:[l.jsxs("div",{className:"headers-text",children:[l.jsx("h3",{className:"main-heading",children:null==a?void 0:a.title}),l.jsx("div",{className:"sub-heading",children:l.jsx(s.HtmlConvert,{htmlString:null==a?void 0:a.subTitle})})]}),l.jsx("img",{src:null==a?void 0:a.icon,width:50,alt:null==a?void 0:a.title})]}),l.jsxs("div",{className:"desc-tags-div",children:[l.jsx("div",{className:"description",children:l.jsx(s.HtmlConvert,{htmlString:null==a?void 0:a.description})}),l.jsx("div",{className:"tagsList",children:null==a?void 0:null===(t=a.options)||void 0===t?void 0:t.map((e,t)=>l.jsx("div",{className:"tag",children:l.jsx("label",{children:e})},t))})]})]}),l.jsxs("div",{className:"banner-btn-container",children:[l.jsx("div",{className:"sip-card-banner",children:l.jsx("img",{src:null==a?void 0:a.image,width:"100%",alt:null==a?void 0:a.title})}
1),(null==a?void 0:a.ctaLink)==="/quickpay-shagun"||(null==a?void 0:a.ctaLink)==="/quickpay"?l.jsx(i.InvestNowButton,{isFromOnboarding:!1,uniqueId:"invest-now",className:"btn-primary",buttonText:null==a?void 0:a.ctaLabel,customDropLinkMetaData:{isShagunSIP:!1,shagunType:null},scheme:{schemeId:o.SHAGUN_SCHEMES_ID.goldDirect,schemeCode:"GO",amount:10,investmentMode:"SIP",shagunFrequencyDaily:!0,frequency:"Daily"}}):(null==a?void 0:a.ctaLink)==="/coming-soon"?l.jsx(r.ButtonWithLoader,{value:null==a?void 0:a.ctaLabel,className:"btn-primary",disabled:!0}):l.jsx(n.NextPageLoading,{to:null==a?void 0:a.ctaLink,target:null==a?void 0:a.ctaTarget,className:"btn-primary",onClick:()=>{"buy gold now"===(null==a?void 0:a.ctaLabel).toLowerCase()?c.GoogleAnalytics.recordEvent(c.GoogleAnalyticEvents.ShagunSip.BuyGoldNow({flow_name:"shagun sip journey",cta_name:"Buy Gold Now",page_section:d.getPathName()||"",day_parting:d.getPartOfDay(),user_type:u})):"start daily sip"===(null==a?void 0:a.ctaLabel).toLowerCase()&&c.GoogleAnalytics.recordEvent(c.GoogleAnalyticEvents.ShagunSip.StartDailySip({flow_name:"shagun sip journey",cta_name:"start daily sip",page_section:d.getPathName()||"",page_sub_section:"explore plans",day_parting:d.getPartOfDay(),user_type:u}))},children:null==a?void 0:a.ctaLabel})]})]})}},29275:function(e,t,a){var l=a(57437),n=a(2265),s=a(49232),i=a(80575),o=a(19495),r=a(42949),c=a(4514);t.HowInvestComp=e=>{let{schemeFundType:t,howDetails:a=[],howScheme:d}=e,{droplinkData:u,handleDropLinkDispatch:m}=n.useContext(r.DroplinkContext),v=r.useInvestNowAction({droplink:{droplinkData:u,handleDropLinkDispatch:m}}),h=r.useLoginContextData(),g=()=>{d&&v.getGenerateDropLink({scheme:{...d,investmentMode:r.OrderTypes.SIP},dropLinkType:r.UserJourneys.sip})},p=async()=>{var e,t,a,l,n;if("MODIFY_KYC"===await (null===(t=c.LocalStorage)||void 0===t?void 0:null===(e=t.instance)||void 0===e?void 0:e.onHoldKyc.get())){null==h||null===(a=h.setModifyKycDetails)||void 0===a||a.call(h,{isShowCloseICon:!0}),null===(l=h.triggerLogin)||void 0===l||l.call(h,!0,{stage:"MODIFY KYC"});return}h.isPANUserLoggedIn()?g():null==h||null===(n=h.triggerLogin)||void 0===n||n.call(h,!0,{successLoginCB:()=>{g()}})},x=e=>{"A"===e.target.tagName&&d&&(e.preventDefault(),p())},f=e=>{let{fund:t,index:a}=e;return l.jsxs("div",{className:"equity-funds-type-card card",children:[l.jsx("label",{className:"lbl-card-title",children:null==t?void 0:t.title}),l.jsx("label",{className:"lbl-form-heading description-txt",onClick:x,children:l.jsx(o.HtmlConvert,{htmlString:null==t?void 0:t.description})}),l.jsx("div",{className:"equity-img-size",children:l.jsx("img",{fetchPriority:"low",className:"equity-fund-img",src:null==t?void 0:t.iconUrl,alt:(null==t?void 0:t.altText)||s.getAltText(null==t?void 0:t.iconUrl)})})]},a)};return!a||a.length<1?null:l.jsxs("div",{className:"how-invest-comp",children:[l.jsx("h3",{className:"lbl-category-heading",children:"Debt"===t?"How to Plan?":"How to Invest in ".concat(t," Fund")}),l.jsx("div",{className:"equity-funds-type",children:null==a?void 0:a.map((e,t)=>l.jsx(f,{fund:e,index:t},t))}),l.jsx("div",{className:"equity-funds-type mobile",children:a&&l.jsx(i.CustomComponentCarousel,{className:"custom-component-carousel-default",list:a,isSnap:!0,component:e=>{let{item:t,index:a}=e;return l.jsx(f,{fund:t,index:a})},showDots:!0,idPath:"title"})})]})}},91688:function(e,t,a){var l=a(57437),n=a(2265),s=a(10607),i=a(11269),o=a(73797);t.FundInputBlock=e=>{let{toogleId:t,inputAmts:a,inputError:r,onInputChange:c,onToggleChange:d,fromDate:u,toDate:m,onFromDateChange:v,onToDateChange:h,sinceinceptiondate:g,handleGoogleAnalytics:p}=e,x=o.formatDateCalc(new Date(new Date().setFullYear(new Date().getFullYear()-20))),f=o.formatDateCalc(new Date),[S,y]=n.useState(),j=["31-03-2005","31-12-2005","28-02-2005","31-08-2005","31-10-2005"];return n.useEffect(()=>{u&&!j.includes(u)&&y(u)},[u]),l.jsxs("div",{className:"calculator-center",children:[l.jsx(s.MOutlinedTextBoxWithToggleButton,{className:"m-o-txtbx-toggle-btn-default uniform-width",type:"number",prefixText:"₹",toggleIdKey:"id",value:"sip"===t?a.sip:a.lumpsum,toggleTextKey:"text",toggleList:[{id:"sip",text:"SIP"},{id:"lumpsum",text:"Lumpsum"}],toggleSelectedId:t,onChange:c,onToggleChange:d,isError:r.hasError,errorMessage:r.message,handleGoogleAnalytics:p}),l.jsxs("div",{className:"cal-side-by-side",children:[l.jsx(i.MOutlinedCustomDatepicker,{className:"date-picker-default input-field uniform-width",allowUserInput:!1,dateFrom:o.formatToDDMMYYYY(g),dateTill:m||f,dateSeparator:"-",dateFormat:"DD-MM-YYYY",defaultDate:S,minYear:new Date().getFullYear()-20,maxYear:new Date().getFullYear(),disabledDates:o.getFutureDates().join(","),isDisabled:!1,label:"From Date",highlightToday:!0,onComplete:v,handleGoogleAnalytics:p}),l.jsx(i.MOutlinedCustomDatepicker,{className:"date-picker-default input-field uniform-width",allowUserInput:!1,dateFrom:u||x,dateTill:f,dateSeparator:"-",dateFormat:"DD-MM-YYYY",defaultDate:m,minYear:new Date().getFullYear()-20,maxYear:new Date().getFullYear(),disabledDates:u?o.getFutureDates().filter(e=>e<u).join(","):o.getFutureDates().join(","),isDisabled:!1,label:"To Date",highlightToday:!0,onComplete:h,handleGoogleAnalytics:p})]})]})}}
1,80750:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var l=a(57437),n=a(2265),s=a(49566),i=a(73797);t.default=e=>{let{fromDates:t,toDates:a,investAmount:o,TotalInvestedAmount:r,currentValue:c,navData:d,selectedFund:u,navgraphData:m,investnowseries:v,benchmarkdata:h,onFromDateChange:g,sinceinceptiondate:p,toogleId:x}=e,f=t===a,[S,y]=n.useState(!1),[j,N]=n.useState(800),[b,D]=n.useState("0.00");return n.useEffect(()=>{if(!f&&c>0&&r>0){let e="0.00";"sip"===x?e=i.getSIPCAGR(c,o,t,a):"lumpsum"===x&&(e=i.getLumsumCAGRvalue(c,o,t,a)),D(e)}else D("0.00")},[t,a,r,c,f,x]),n.useEffect(()=>{var e,t,a;N(null===(e=window)||void 0===e?void 0:e.innerWidth),(null===(t=window)||void 0===t?void 0:t.innerWidth)<=768?y(!0):y(!1);let l=()=>{var e;return N(null===(e=window)||void 0===e?void 0:e.innerWidth)};return null===(a=window)||void 0===a||a.addEventListener("resize",l),()=>{var e;return null===(e=window)||void 0===e?void 0:e.removeEventListener("resize",l)}},[]),l.jsx("div",{className:"main-conainer",children:l.jsxs("div",{className:"line-chartContainer",children:[l.jsx(s.default,{sinceinceptiondate:p,benchmarkdata:h,onFromDateChange:g,selectedFund:u,navgraphData:m,investnowseries:v,investmentAmount:o,navHistoryData:d,fromDates:t,toDate:a}),l.jsx("div",{className:"bottom-container",children:l.jsxs("h4",{children:["The total value of your investment would have become ₹",f?0:i.convertCommaSeparatedCalc((null==c?void 0:c.toString())||"0")," i.e. CAGR of ",b,"%"]})})]})})}},93889:function(e,t,a){var l=a(57437),n=a(2265),s=a(73797),i=a(24034),o=a(91688),r=a(80750);t.ListofCalculators=e=>{let{schemeId:t,schemeNavDate:a,schemeTitle:c,fundType:d}=e,[u,m]=n.useState(""),[v,h]=n.useState(""),[g,p]=n.useState(""),[x,f]=n.useState("sip"),[S,y]=n.useState({hasError:!1,message:""}),[j,N]=n.useState({sip:"1000",lumpsum:"5000"}),[b,D]=n.useState("1000"),[C,_]=n.useState([]),[w,F]=n.useState("21"),[T,E]=n.useState(0),[I,A]=n.useState([]),[k,P]=n.useState([]),[L,M]=n.useState([]),[G,O]=n.useState(0),Y=e=>"".concat(e.getDate().toString().padStart(2,"0"),"-").concat((e.getMonth()+1).toString().padStart(2,"0"),"-").concat(e.getFullYear()),R=(e,t)=>{let a=new Date,l=Y(e?new Date(e):a),n=Y(a);m(l),h(n)},U=e=>{let[t,a,l]=e.split("-").map(Number),n=new Date(l,a-1,t);n.setDate(n.getDate()+1);let s=String(n.getDate()).padStart(2,"0"),i=String(n.getMonth()+1).padStart(2,"0"),o=n.getFullYear();return"".concat(s,"-").concat(i,"-").concat(o)},B=()=>{i.getNavHistoryDetails({schemeId:t,calculatorId:w,fromDate:u,toDate:v},{default:H,success:V})},H=e=>{},V=e=>{var t;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.navData)&&_(e.data.navData)};n.useEffect(()=>{C&&C.length>0&&q()},[C,u,v,b,x,j,t]),n.useEffect(()=>{R(null!=a?a:""),p(null!=a?a:"")},[]),n.useEffect(()=>{u&&v&&t&&B()},[u,v,t,x]),n.useEffect(()=>{switch(d){case"Equity":default:F("21");break;case"Debt":F("22");break;case"Hybrid":F("23");break;case"Index":F("32")}},[d]);let q=()=>{var e,t,a,l,n;if(u&&v){if("sip"==x){let a=s.parseDater(u),l=s.parseDater(v);if(!a||!l)return;l.setHours(23,59,59,999);let n=Number(b)||0,i=C.filter(e=>{let t=new Date(e.navDate);return t>=a&&t<=l}).sort((e,t)=>new Date(e.navDate).getTime()-new Date(t.navDate).getTime());if(0===i.length){O(0),A([]);return}E(n*Math.max(1,s.calculateMonthsDifference(u,v)));let o=n/i[0].nav,r={value:-1,year:-1},c=!1;A(i.map(e=>{let t=new Date(e.navDate),a=t.getMonth(),l=t.getFullYear(),s=!1;if((a!==r.value||l!==r.year)&&(r.value=a,r.year=l,c?s=!0:c=!0),s){let t=n/e.nav;o+=t}return{date:t.getTime(),value1:o*e.nav}}));let d=n/(null===(e=i[0])||void 0===e?void 0:e.benchmarkIndexValue),m={value:-1,year:-1},h=!1;P(i.map(e=>{let t=new Date(e.navDate),a=e.benchmarkIndexValue;if(!a||a<=0)return{date:t.getTime(),value:NaN};let l=!1;return(t.getMonth()!==m.value||t.getFullYear()!==m.year)&&(m.value=t.getMonth(),m.year=t.getFullYear(),h?l=!0:h=!0),l&&(d+=n/a),{date:t.getTime(),value:d*a}}).filter(e=>isFinite(e.value)));let g=n,p=[],x=-1,f=-1,S=!1;for(let e of i){let t=new Date(e.navDate),a=t.getMonth(),l=t.getFullYear();(a!==x||l!==f)&&(x=a,f=l,S&&(g+=n),S=!0),p.push({date:t.getTime(),value:g})}if(p.length>0){let e=new Date(p[p.length-1].date),t=new Date(e);t.setDate(t.getDate()+1);let a=p[p.length-1].value,s=e.getMonth(),i=e.getFullYear();for(;t<=l;){let e=t.getMonth(),l=t.getFullYear();1===t.getDate()&&(e!==s||l!==i)&&(a+=n,s=e,i=l),p.push({date:t.getTime(),value:a}),t.setDate(t.getDate()+1)}}p.sort((e,t)=>
1e.date-t.date),M(p);let y=null===(t=i[i.length-1])||void 0===t?void 0:t.nav;O(o*y)}else if("lumpsum"===x){let e=b?Number(b):0;E(e);let t=s.parseDater(u),i=s.parseDater(U(v));if(!t||!i)return;let o=[...C].sort((e,t)=>new Date(e.navDate).getTime()-new Date(t.navDate).getTime()).filter(e=>{let a=new Date(e.navDate);return a>=t&&a<=i}),r=null===(a=o[0])||void 0===a?void 0:a.nav;if(!r)return;let c=e/r;A(o.map(e=>({date:new Date(e.navDate).getTime(),value1:c*e.nav}))),M(o.map(t=>({date:new Date(t.navDate).getTime(),value:e})));let d=null===(l=o[0])||void 0===l?void 0:l.benchmarkIndexValue;if(!d||d<=0)return;P(o.map(t=>{let a=t.benchmarkIndexValue;return!a||a<=0?{date:new Date(t.navDate).getTime(),value:NaN}:{date:new Date(t.navDate).getTime(),value:e/d*a}}).filter(e=>isFinite(e.value))),O(c*(null===(n=o[o.length-1])||void 0===n?void 0:n.nav))}}},W=e=>{m(e)};return l.jsx("div",{className:"schemeslistofcalculator",children:l.jsxs("div",{className:"21"!=w&&"22"!=w&&"22"!=w&&"23"!=w&&"24"!=w&&"25"!=w&&"26"!=w&&"27"!=w&&"28"!=w&&"29"!=w&&"32"!=w?"container":"column-container",children:[l.jsx("div",{className:"calculator",children:l.jsx("div",{className:"21"!=w&&"22"!=w&&"23"!=w&&"24"!=w&&"25"!=w&&"26"!=w&&"27"!=w&&"28"!=w&&"29"!=w&&"32"!=w?"input-section":"input-section-row",children:l.jsx(o.FundInputBlock,{sinceinceptiondate:g,toogleId:x,inputAmts:j,inputError:S,onInputChange:e=>{var t;let a="";if(e&&"object"==typeof e&&"target"in e&&(null===(t=e.target)||void 0===t?void 0:t.value)!==void 0)a=e.target.value;else if("string"==typeof e||"number"==typeof e)a=e.toString();else{console.error("Unsupported event format in handleInputValue:",e);return}let l=a.replace(/\D/g,"").slice(0,9),n=l?parseInt(l,10):0;n<1e3||0==n?y({hasError:!0,message:"Minimum amount is ₹".concat(s.addCommaSeparator(1e3))}):n>=1e8?(n=1e8,y({hasError:!0,message:"Maximum amount is ₹".concat(s.addCommaSeparator(1e8))})):y({hasError:!1,message:""}),l=n.toString(),N(e=>({...e,[x]:l})),D(l)},onToggleChange:e=>{y({hasError:!1,message:""}),f(e);let t="sip"===e?"1000":"5000";N({sip:"1000",lumpsum:"5000"}),N(a=>({...a,[e]:a[e]||t})),D(t)},fromDate:u,toDate:v,onFromDateChange:W,onToDateChange:e=>{h(e)}})})}),l.jsx(r.default,{sinceinceptiondate:g,benchmarkdata:k,navgraphData:I,investnowseries:L,fromDates:u,toDates:v,investAmount:Number(b),TotalInvestedAmount:T,currentValue:G,navData:C,selectedFund:null!=c?c:"",onFromDateChange:W,toogleId:x})]})})}},12817:function(e,t,a){var l=a(57437),n=a(7122);t.NavigateToQuickPay=e=>{let{onConfirmtoQuickPay:t,onCancel:a,scheme:s}=e;return l.jsxs("div",{className:"navigateto-quickpay",children:[l.jsx("label",{className:"lbl-card-title-1",children:"Minimum 2 funds required in the pack, for single fund purchase please execute the transaction using Quick Pay"}),l.jsxs("div",{className:"btn-holder",children:[l.jsx("button",{id:"applicant-remove-cancel",className:"btn-cancel btn-outline-primary",onClick:a,children:"Cancel"}),l.jsx(n.InvestNowButton,{uniqueId:null==s?void 0:s.id,buttonText:"Proceed to Quick Pay",className:"btn-confirm btn-primary",scheme:s})]})]})}},8470:function(e,t,a){var l=a(57437),n=a(2265),s=a(49069),i=a(73797),o=a(93889),r=a(13583),c=a(24034),d=a(91688),u=a(92528),m=a(41836),v=a(42949),h=a(4514);t.PerformanceCalculatorFund=e=>{let{schemeId:t,schemeNavDateStr:a,schemeTitle:g,fundType:p,schemeCode:x,planCode:f,schemeOpenDate:S,sinceInceptionDate:y,calculator_Id:j}=e,[N,b]=n.useState({seriesName:"SIP Series",fromComponent:"performanceCalculatorFund",data:[{name:"Invested",value:0,sliceSettings:{fill:"#669C93",stroke:"#E8E8E8"}},{name:"Total returns",value:0,sliceSettings:{fill:"#3BB865",stroke:"#FFFFFF"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:70,fontSize:12,maxWidth:500,enableAnimation:!0,enableLegend:!1,enableSliceClick:!1}),[D,C]=n.useState(!1),[_,w]=n.useState(""),[F,T]=n.useState(""),[E,I]=n.useState(""),[A,k]=n.useState("sip"),[P,L]=n.useState({hasError:!1,message:""}),[M,G]=n.useState({sip:"1000",lumpsum:"5000"}),[O,Y]=n.useState("1000"),[R,U]=n.useState([]),[B,H]=n.useState("21"),[V,q]=n.useState(0),[W,z]=n.useState(0),[K,Q]=n.useState(0),[J,$]=n.useState([]),[X,Z]=n.useState([]),[ee,et]=n.useState(0),[ea,el]=n.useState(!1),en=e=>"".concat(e.getDate().toString().padStart(2,"0"),"-").concat((e.getMonth()+1).toString().padStart(2,"0"),"-").concat(e.getFullYear()),es=(e,t)=>{let a=new Date,l=en(e?new Date(e):a),n=en(a);w(l),T(n)},ei=v.useLoginContextData(),eo=ei.isUserLoggedIn()||ei.isUserSoftLoggedIn()?"post login journey":"pre login journey",er=(e,t)=>{let a={flow_name:eo,cta_name:null!=e?e:"NA",action:null!=t?t:"NA",page_section:i.getPathname(),page_sub_section:"Performance Calculator"};h.GoogleAnalytics.recordEvent(h.GoogleAnalyticEvents.SchemeDetails.CalculatorInteraction(a))},ec=()=>{c.getNavHistoryDetails({schemeId:t,calculatorId:B,fromDate:_,toDate:F},{default:ed,success:eu})},ed=e=>{},eu=e=>{var t;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.navData)&&U(e.data.navData)};n.useEffect(()=>{if(!window)return;let e=()=>{el(window.innerWidth<769)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n.useEffect(()=>{R&&R.length>0&&em()},[R,_,F,O,A,M,t]),n.useEffect(()=>{es(null!=a?a:""),I(null!=a?a:"")},[]),n.useEffect(()=>{_&&F&&t&&ec()},[_,F,t,A]),n.useEffect(()=>{switch(p){case"Equity":default:H("21");break;case"Debt":H("22");break;case"Hybrid":H("23");break;case"Index":H("32");break;case"ETFs":H("33");break;case"Solution Oriented":H("34");break;case"FOF - Overseas":H("35");break;case"FOF - Domestic":H("36")}}
1,[p]);let em=()=>{var e,t,a;if(_&&F){if("sip"==A){let t,a;let l=i.parseDater(_),n=i.parseDater(F);if(n&&((t=new Date(n)).setDate(t.getDate()+1),a="".concat(String(n.getDate()).padStart(2,"0"),"-").concat(String(n.getMonth()+1).padStart(2,"0"),"-").concat(n.getFullYear())),!l||!n)return;let s=Number(O)||0;s<1e3&&(s=1e3);let o=R.filter(e=>{let a=new Date(e.navDate);return a>=l&&a<=t}).sort((e,t)=>new Date(e.navDate).getTime()-new Date(t.navDate).getTime());if(0===o.length){et(0),$([]);return}let r=Math.max(1,i.calculateMonthsDifference(_,a));q(s*r);let c=s/o[0].nav,d={value:-1,year:-1},u=!1,m=o.map(e=>{let t=new Date(e.navDate),a=t.getMonth(),l=t.getFullYear(),n=!1;if((a!==d.value||l!==d.year)&&(d.value=a,d.year=l,u?n=!0:u=!0),n){let t=s/e.nav;c+=t}return{date:t.getTime(),value1:c*e.nav}});Q(m[m.length-1].value1),$(m);let v=s,h=[],g=-1,p=-1,x=!1;for(let e of o){let t=new Date(e.navDate),a=t.getMonth(),l=t.getFullYear();(a!==g||l!==p)&&(g=a,p=l,x&&(v+=s),x=!0),h.push({date:t.getTime(),value:v})}if(z(h[h.length-1].value),h.length>0){let e=new Date(h[h.length-1].date),t=new Date,a=new Date(e);a.setDate(a.getDate()+1);let l=h[h.length-1].value,n=e.getMonth(),i=e.getFullYear();for(;a<=t;){let e=a.getMonth(),t=a.getFullYear();1===a.getDate()&&(e!==n||t!==i)&&(l+=s,n=e,i=t),h.push({date:a.getTime(),value:l}),a.setDate(a.getDate()+1)}}h.sort((e,t)=>e.date-t.date),Z(h);let f=null===(e=o[o.length-1])||void 0===e?void 0:e.nav;et(c*f)}else if("lumpsum"===A){let e;let l=O?Number(O):0;l<1e3&&(l=1e3),q(l);let n=i.parseDater(_),s=i.parseDater(F);if(!n||!s)return;s&&((e=new Date(s)).setDate(e.getDate()+1),"".concat(String(s.getDate()).padStart(2,"0"),"-").concat(String(s.getMonth()+1).padStart(2,"0"),"-").concat(s.getFullYear()));let o=[...R].sort((e,t)=>new Date(e.navDate).getTime()-new Date(t.navDate).getTime()).filter(t=>{let a=new Date(t.navDate);return a>=n&&a<=e}),r=null===(t=o[0])||void 0===t?void 0:t.nav;if(!r)return;let c=l/r,d=o.map(e=>({date:new Date(e.navDate).getTime(),value1:c*e.nav}));Q(d[d.length-1].value1),$(d);let u=o.map(e=>({date:new Date(e.navDate).getTime(),value:l}));z(u[u.length-1].value),Z(u),et(c*(null===(a=o[o.length-1])||void 0===a?void 0:a.nav))}}};n.useEffect(()=>{ev(K,K-W)},[K,W]);let ev=(e,t)=>
1{b({seriesName:"SIP Series",fromComponent:"performanceCalculatorFund",data:[{name:"Invested",value:e-t,sliceSettings:{fill:"#669C93",stroke:"#E8E8E8"}},{name:"Total returns",value:t,sliceSettings:{fill:"#3BB865",stroke:"#FFFFFF"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:70,fontSize:12,maxWidth:500,enableAnimation:!0,enableLegend:!1,enableSliceClick:!1})},eh=N.data.map(e=>({...e,value:null!=e.value?Math.abs(e.value):0}));return l.jsx(l.Fragment,{children:0===R.length?l.jsx(m.PerformanceCalculatorNew,{schemeCode:x,planCode:f,schemeOpenDate:S,sinceInceptionDate:y,schemeId:t,schemeNavDateStr:a,schemeTitle:g,fundType:p,calculatorId:21}):l.jsxs("div",{className:"performance-calculator",children:[l.jsxs("div",{className:"heading-toggle-lbl",children:[l.jsx("h3",{className:"lbl-popup-content",children:"Returns Calculator"}),("Equity"===p||"Debt"===p||"Hybrid"===p||"Index"===p)&&l.jsxs("div",{className:"toggle-swtich-lbl",children:[l.jsx("div",{className:"lbl-toggle-option",children:"Calculator"}),l.jsx(r.ToggleSwitch,{uniqueId:"perf-calc-mode",selected:D,onChange:C}),l.jsx("div",{className:"lbl-toggle-option",children:"Graph"})]})]}),D&&l.jsx(o.ListofCalculators,{schemeId:t,schemeNavDate:a,schemeTitle:g,fundType:p}),!D&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"schemeslistofcalculator",children:l.jsx("div",{className:"21"!=B&&"22"!=B&&"22"!=B&&"23"!=B&&"24"!=B&&"25"!=B&&"26"!=B&&"27"!=B&&"28"!=B&&"29"!=B&&"32"!=B&&"33"!=B&&"34"!=B&&"35"!=B&&"36"!=B?"container":"column-container",children:l.jsx("div",{className:"calculator",children:l.jsx("div",{className:"21"!=B&&"22"!=B&&"23"!=B&&"24"!=B&&"25"!=B&&"26"!=B&&"27"!=B&&"28"!=B&&"29"!=B&&"32"!=B&&"33"!=B&&"34"!=B&&"35"!=B&&"36"!=B?"input-section":"input-section-row",children:l.jsx(d.FundInputBlock,{sinceinceptiondate:E,toogleId:A,inputAmts:M,inputError:P,onInputChange:e=>{var t;let a="";if(e&&"object"==typeof e&&"target"in e&&(null===(t=e.target)||void 0===t?void 0:t.value)!==void 0)a=e.target.value;else if("string"==typeof e||"number"==typeof e)a=e.toString();else{console.error("Unsupported event format in handleInputValue:",e);return}let l=a.replace(/\D/g,"").slice(0,9),n=l?parseInt(l,10):0;n<1e3||0==n?L({hasError:!0,message:"Minimum amount is ₹".concat(i.addCommaSeparator(1e3))}):n>=1e8?(n=1e8,L({hasError:!0,message:"Maximum amount is ₹".concat(i.addCommaSeparator(1e8))})):L({hasError:!1,message:""}),l=n.toString(),G(e=>({...e,[A]:l})),Y(l),er(l,"NA")},onToggleChange:e=>{L({hasError:!1,message:""}),k(e);let t="sip"===e?"1000":"5000";G({sip:"1000",lumpsum:"5000"}),G(a=>({...a,[e]:a[e]||t})),Y(t)},fromDate:_,toDate:F,onFromDateChange:e=>{w(e)},onToDateChange:e=>{T(e)},handleGoogleAnalytics:er})})})})}),l.jsxs("label",{className:"pink-background-info",children:[l.jsxs("div",{className:"only-mobile",children:[l.jsx("div",{className:"label-text",children:l.jsxs("label",{className:"lbl-card-title-1 total-value-txt",children:["The total value of your investment after ",i.yearsDifference(_,F)," Years will be"]})}),l.jsxs("h2",{className:"investmentValue",children:["₹ ",i.convertCommaSeparated(K)]})]}),l.jsxs("div",{className:"donut-chart-content",children:[l.jsx("div",{className:"donut-chart-draw-area donutContent",children:l.jsx(s.DonutChart,{seriesName:N.seriesName,fromComponent:N.fromComponent,data:eh,chartCategoryField:N.chartCategoryField,chartValueField:N.chartValueField,radius:N.radius,innerRadius:N.innerRadius,fontSize:N.fontSize,maxWidth:N.maxWidth,enableAnimation:N.enableAnimation,enableLegend:N.enableLegend,tooltipBgColorScOw:"#FFFFFF",tooltipStrokeScOw:"#000000"})}),l.jsx("div",{className:"donut-chart-legend",children:l.jsxs("ul",{className:"legend-list",children:[l.jsxs("div",{className:"only-web",children:[l.jsx("div",{className:"label-text",children:l.jsxs("label",{className:"lbl-card-title-1 total-value-txt",children:["The total value of your investment after ",i.yearsDifference(_,F)," Years will be"]})}),l.jsxs("h2",{className:"investmentValue",children:["₹ ",i.convertCommaSeparated(K)]})]}),l.jsxs("div",{className:"summary-containers",children:[l.jsxs("li",{className:"summary-text",children:[l.jsx("span",{className:"color-box",style:{backgroundColor:"#669C93"}}),"Invested Amount"]}),l.jsxs("h3",{children:[" ₹ ",i.convertCommaSeparated(W)]}),l.jsxs("div",{className:"donut-chart-legend-text",children:[l.jsxs("li",{className:"summary-text",children:[l.jsx("span",{className:"color-box",style:{backgroundColor:"#3BB865"}}),"Total Returns"]}),l.jsxs("h3",{children:[" ₹ ",i.convertCommaSeparated(K-W)]})]})]})]})})]}),ea&&l.jsx("div",{className:"performance-calculator-disclaimer",style:{fontSize:"14px"},children:l.jsx(u.TextWrapper,{disclaimer:"<p><strong>Disclaimer:</strong> <font color='6D6E71'> The calculator alone is not sufficient and shouldn't be used for the development or implementation of an investment strategy. This tool is created to explain basic financial / investment related concepts to investors. The tool is created for helping the investor take an informed decision and is not an investment process in itself. Mutual Fund does not provide guaranteed returns. Investors are advised to seek professional advice from financial, tax and legal advisor before investing.</p>",isMobileView:ea,previewWordCount:14})}),!ea&&l.jsx("div",{className:"performance-calculator-disclaimer",style:{fontSize:"14px"},children:l.jsx(u.TextWrapper,{disclaimer:"<p><strong>Disclaimer:</strong> <font color='6D6E71'> The calculator alone is not sufficient and shouldn't be used for the development or implementation of an investment strategy. This tool is created to explain basic financial / investment related concepts to investors. The tool is created for helping the investor take an informed decision and is not an investment process in itself. Mutual Fund does not provide guaranteed returns. Investors are advised to seek professional advice from financial, tax and legal advisor before investing.</p>",isMobileView:!0,previewWordCount:32})})]})]})]})})}},41836:function(e,t,a){var l=a(57437),n=a(2265),s=a(10607),i=a(49069),o=a(68052),r=a(4514),c=a(73797),d=a(68472),u=a(9028),m=a(42949),v=a(93889);t.PerformanceCalculatorNew=e=>{let{planCode:t,schemeCode:a,schemeOpenDate:h,sinceInceptionDate:g,calculatorId:p,schemeId:x,schemeNavDateStr:f,schemeTitle:S,fundType:y}=e,[j,N]=n.useState("SIP"),[b,D]=n.useState({SIP:"1000",LUMPSUM:"5000"}),[C,_]=n.useState(b.SIP),[w,F]=n.useState(""),[T,E]=n.useState(""),[I,A]=n.useState(""),[k,P]=n.useState(null),[L,M]=n.useState({seriesName:"SIP Series",data:[{name:"Invested",value:0,sliceSettings:{fill:"#669C93",stroke:"#E8E8E8"}},{name:"Total returns",value:0,sliceSettings:{fill:"#3BB865",stroke:"#FFFFFF"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:70,fontSize:12,maxWidth:500,enableAnimation:!0,enableLegend:!1,enableSliceClick:!1}),G=m.useLoginContextData(),O=G.isUserLoggedIn()||G.isUserSoftLoggedIn()?"post login journey":"pre login journey",[Y,R]=n.useState([]),U=n.useRef({}),[B,H]=n.useState({}),[V,q]=n.useState(0),[W,z]=n.useState(1/0),[K,Q]=n.useState(!1);n.useEffect(()=>{(async()=>{try{let a;if(a="SIP"===j?await d.getSipCalculator("sip-monthly-calculator"):await d.getSipCalculator("lumpsum-calculator"),"data"in a){var e,t;R(null==a?void 0:null===(t=a.data)||void 0===t?void 0:null===(e=t.outputs)||void 0===e?void 0:e.map(e=>({id:e.id,formula:e.formula})))}else console.error("Failed to fetch calculator:",a.message);P(a)}
1catch(e){console.error("Error fetching SIP Calculator data:",e)}})();let e=new Date;A(c.getFormatedDate(e,"/"))},[]),n.useEffect(()=>{(async()=>{try{let a;if(a="SIP"===j?await d.getSipCalculator("sip-monthly-calculator"):await d.getSipCalculator("lumpsum-calculator"),"data"in a){var e,t;R(null==a?void 0:null===(t=a.data)||void 0===t?void 0:null===(e=t.outputs)||void 0===e?void 0:e.map(e=>({id:e.id,formula:e.formula})))}else console.error("Failed to fetch calculator:",a.message);P(a)}catch(e){console.error("Error fetching SIP Calculator data:",e)}})();let e=new Date;A(c.getFormatedDate(e,"/"))},[j]),n.useEffect(()=>{c.generateDynamicFormulaFunctionCodes(Y,U)},[Y]),n.useEffect(()=>{var e,t,a,l,n,s;$(),q(null==k?void 0:null===(a=k.data)||void 0===a?void 0:null===(t=a.inputs)||void 0===t?void 0:null===(e=t.find(e=>"inv_amt"===e.id))||void 0===e?void 0:e.minValue),z(null==k?void 0:null===(s=k.data)||void 0===s?void 0:null===(n=s.inputs)||void 0===n?void 0:null===(l=n.find(e=>"inv_amt"===e.id))||void 0===l?void 0:l.maxValue)},[k]),n.useEffect(()=>{let e=c.yearsDifference(w,I),t={...B};if(Number(C)<V||Number(C)>W){var a,l,n;t[u.calculatorFields.inv_amt]=null==k?void 0:null===(n=k.data)||void 0===n?void 0:null===(l=n.inputs)||void 0===l?void 0:null===(a=l.find(e=>"inv_amt"===e.id))||void 0===a?void 0:a.defaultValue}else t[u.calculatorFields.inv_amt]=C;t[u.calculatorFields.tenure_yrs]=e,t[u.calculatorFields.output_one]=J(u.calculatorFields.output_one,t),t[u.calculatorFields.output_three]=J(u.calculatorFields.output_three,t),t[u.calculatorFields.output_two]=J(u.calculatorFields.output_two,t),"SIP"===j?ea(t[u.calculatorFields.output_three],t[u.calculatorFields.output_two]):ea(t[u.calculatorFields.output_three],t[u.calculatorFields.output_one]),H(t)},[w,I,C]);let J=(e,t)=>{var a,l;return null==U?void 0:null===(a=(l=U.current)[e])||void 0===a?void 0:a.call(l,t)},$=async()=>{var e,t,a,l,n;g&&F(c.getFormatedDate(new Date(g),"/")),_(null==k?void 0:null===(a=k.data)||void 0===a?void 0:null===(t=a.inputs)||void 0===t?void 0:null===(e=t.find(e=>"inv_amt"===e.id))||void 0===e?void 0:e.defaultValue);let s={};null==k||null===(n=k.data)||void 0===n||null===(l=n.inputs)||void 0===l||l.forEach(e=>{"exp_rpa"===e.id?s[e.id]="10":"tenure_yrs"===e.id?g&&(s[e.id]=c.yearsSince(g)):s[e.id]=e.defaultValue||""}),s[u.calculatorFields.output_one]=J(u.calculatorFields.output_one,s),s[u.calculatorFields.output_three]=J(u.calculatorFields.output_three,s),s[u.calculatorFields.output_two]=J(u.calculatorFields.output_two,s),"SIP"===j?ea(s[u.calculatorFields.output_three],s[u.calculatorFields.output_two]):ea(s[u.calculatorFields.output_three],s[u.calculatorFields.output_one]),H(s)},X=(e,t)=>{let a=t.replace(/[^0-9]/g,"");if(Number(a)<V?E("".concat(u.ERROR_MESSAGES.MIN_AMOUNT," ").concat(V)):Number(a)>W?E("".concat(u.ERROR_MESSAGES.MAX_AMOUNT," ").concat(W)):E(""),a.length>10)return;let l=Number(a);if(""===a){D(e=>({...e,[j]:"0"})),_("");return}if("0"===b[j]&&0!==l){D(e=>({...e,[j]:a})),_(a),E("");return}D(e=>({...e,[j]:a})),_(a)};function Z(e){let[t,a,l]=e.split("/").map(Number);return t&&a&&l?new Date(l,a-1,t):null}function ee(e){return e instanceof Date&&!isNaN(e.getTime())}let et=(e,t)=>{"from_date"===e&&ee(Z(t))&&F(t),"to_date"===e&&ee(Z(t))&&A(t),el(e,"NA")},ea=(e,t)=>{M({seriesName:"SIP Series",data:[{name:"Invested",value:e,sliceSettings:{fill:"#669C93",stroke:"#E8E8E8"}},{name:"Total returns",value:t,sliceSettings:{fill:"#3BB865",stroke:"#FFFFFF"}}],chartCategoryField:"name",chartValueField:"value",radius:90,innerRadius:70,fontSize:12,maxWidth:500,enableAnimation:!0,enableLegend:!1,enableSliceClick:!1})},el=(e,t)=>{let a={flow_name:O,cta_name:e,action:t,page_section:c.getPathname(),page_sub_section:"Performance Calculator"};r.GoogleAnalytics.recordEvent(r.GoogleAnalyticEvents.SchemeDetails.CalculatorInteraction(a))},en=e=>{if(!e)return;let[t,a,l]=e.replace(/\//g,"/").split("/").map(Number);if(t&&a&&l)return new Date(l,a-1,t)},es=L.data.map(e=>({...e,value:null!=e.value?Math.abs(e.value):0}));return l.jsxs("div",{className:"performance-calculator",children:[l.jsx("div",{className:"heading-toggle-lbl",children:l.jsx("h3",{className:"lbl-popup-content",children:"Returns Calculator"})}),K&&l.jsx(v.ListofCalculators,{schemeId:x,schemeNavDate:f,schemeTitle:S,fundType:y}),!K&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"returns-calculator",children:[l.jsxs("div",{className:"input-toggle",children:[l.jsx(s.MOutlinedTextBoxWithToggleButton,{className:"m-o-txtbx-toggle-btn-default",type:"text",inputMode:"numeric",prefixText:"₹",toggleIdKey:"id",value:C,toggleTextKey:"text",toggleList:[{id:"SIP",text:"SIP"},{id:"LUMPSUM",text:"Lumpsum"}],toggleSelectedId:j,onToggleChange:e=>{E(""),N(e),D(t=>{var a,l,n,s,i,o;return"SIP"===e?{...t,SIP:null==k?void 0:null===(n=k.data)||void 0===n?void 0:null===(l=n.inputs)||void 0===l?void 0:null===(a=l.find(e=>"inv_amt"===e.id))||void 0===a?void 0:a.defaultValue}:"LUMPSUM"===e?{...t,LUMPSUM:null==k?void 0:null===(o=k.data)||void 0===o?void 0:null===(i=o.inputs)||void 0===i?void 0:null===(s=i.find(e=>"inv_amt"===e.id))||void 0===s?void 0:s.defaultValue}:t}),D(t=>(_(t[e]),t)),el(e,"NA")},onChange:e=>X("lumpsum",e.target?e.target.value:e),onBeforeInput:e=>{var t,a;let l=null!==(a=null==e?void 0:e.data)&&void 0!==a?a:null==e?void 0:null===(t=e.nativeEvent)||void 0===t?void 0:t.data;l&&!/^[0-9]$/.test(l)&&e.preventDefault()}}),T&&l.jsx("div",{style:{fontSize:"12px",marginLeft:"2px",marginTop:"4px",color:"var(--color-red-bd-3)"},children:T})]}),l.jsx("div",{className:"from-date-box input-field",children:l.jsx(o.DatePickerComponent,{selectedDate:w?en(w):"",minDate:new Date(1900,0,1),maxDate:I?en(I):"",dateSeparator:"/",dateFormat:"DDMMYYYY",disabled:!1,allowUserInput:!1,label:"From Date",removeClearIcon:!0,onChange:e=>{var t;return et("from_date",null!==(t=e.stringDate)&&void 0!==t?t:"")}})}),l.jsx("div",{className:"to-date-box input-field",children:l.jsx(o.DatePickerComponent,{selectedDate:I?en(I):"",minDate:new Date(1900,0,1),maxDate:new Date,dateSeparator:"/",dateFormat:"DDMMYYYY",disabled:!1,allowUserInput:!1,label:"To Date",removeClearIcon:!0,onChange:e=>{var t;return et("to_date",null!==(t=e.stringDate)&&void 0!==t?t:"")}})})]}),l.jsxs("label",{className:"pink-background-info",children:[l.jsxs("div",{className:"only-mobile",children:[l.jsx("div",{className:"label-text",children:l.jsxs("label",{className:"lbl-card-title-1 total-value-txt",children:["The total value of your investment after ",c.yearsDifference(w,I)," Years will be"]})}),l.jsxs("h2",{className:"investmentValue",children:["₹ ","SIP"===j?c.convertCommaSeparated(B[u.calculatorFields.output_one]):c.convertCommaSeparated(B[u.calculatorFields.output_two])]})]}),l.jsxs("div",{className:"donut-chart-content",children:[l.jsx("div",{className:"donut-chart-draw-area donutContent",children:l.jsx(i.DonutChart,{seriesName:L.seriesName,data:es,chartCategoryField:L.chartCategoryField,chartValueField:L.chartValueField,radius:L.radius,innerRadius:L.innerRadius,fontSize:L.fontSize,maxWidth:L.maxWidth,enableAnimation:L.enableAnimation,enableLegend:L.enableLegend,tooltipBgColorScOw:"#FFFFFF",tooltipStrokeScOw:"#000000"})}),l.jsx("div",{className:"donut-chart-legend",children:l.jsxs("ul",{className:"legend-list",children:[l.jsxs("div",{className:"only-web",children:[l.jsx("div",{className:"label-text",children:l.jsxs("label",{className:"lbl-card-title-1 total-value-txt",children:["The total value of your investment after ",c.yearsDifference(w,I)," Years will be"]})}),l.jsxs("h2",{className:"investmentValue",children:["₹ ","SIP"===j?c.convertCommaSeparated(B[u.calculatorFields.output_one]):c.convertCommaSeparated(B[u.calculatorFields.output_two])]})]}),l.jsxs("div",{className:"summary-containers",children:[l.jsxs("li",{className:"summary-text",children:[l.jsx("span",{className:"color-box",style:{backgroundColor:"#669C93"}}),"Invested Amount"]}),l.jsxs("h3",{children:[" ₹ ",c.convertCommaSeparated(B[u.calculatorFields.output_three])]}),l.jsxs("div",{className:"donut-chart-legend-text",children:[l.jsxs("li",{className:"summary-text",children:[l.jsx("span",{className:"color-box",style:{backgroundColor:"#3BB865"}}),"Total Returns"]}),l.jsxs("h3",{children:[" ₹ ","SIP"===j?c.convertCommaSeparated((B[u.calculatorFields.output_one]-B[u.calculatorFields.output_three]).toFixed(2)):c.convertCommaSeparated((B[u.calculatorFields.output_two]-B[u.calculatorFields.output_three]).toFixed(2))]})]})]})]})})]}),l.jsxs("div",{className:"performance-calculator-disclaimer",style:{fontSize:"14px"},children:[l.jsx("strong",{children:"Diclaimer:"})," ",l.jsx("span",{style:{color:"var(--color-grey-txt-4)"},children:" The final amount is based on an assumed 10% annual rate of return."})]})]})]})]})}},13583:function(e,t,a){var l=a(57437);t.ToggleSwitch=e=>l.jsxs("div",{className:"doggle-switch",onClick:()=>{e.onChange&&e.onChange(!e.selected)},id:null==e?void 0:e.uniqueId,children:[l.jsx("input",{type:"checkbox",id:"switch-".concat(e.uniqueId),className:"checkbox",checked:e.selected}),l.jsx("label",{htmlFor:"switch",className:"toggle"})]})},63426:function(e,t,a){var l=a(57437),n=a(49232);t.ReadMore=()=>l.jsxs("div",{className:"read-more-container-schemes",children:["Any use of this information is subject to Axis Asset Management Company Limited's privacy policy available ",l.jsx("a",{style:{color:"#97144D"},href:"/term-of-use/privacy-policy",target:"_blank","aria-label":n.getAriaLabelFromUrl("/term-of-use/privacy-policy","Privacy Policy"),children:"Privacy Policy"})," and ",l.jsx("a",{style:{color:"#97144D"},href:"/term-of-use",target:"_blank","aria-label":n.getAriaLabelFromUrl("/term-of-use","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 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 ",l.jsx("a",{style:{color:"#97144D"},href:"/whatsapp-terms-and-conditions",target:"_blank","aria-label":n.getAriaLabelFromUrl("/whatsapp-terms-and-conditions","WhatsApp Terms and Conditions"),children:"Terms and Conditions"}),"."]})},33116:function(e,t,a){var l=a(57437),n=a(2265),s=a(9028),i=a(81785);t.RiskoMeterPrcComp=e=>{var t,a,o,r,c,d;let[u,m]=n.useState(s.RISKOMETER_TAB_LIST),[v,h]=n.useState(u[0]);return n.useEffect(()=>{var t;e.potentialRisk&&(null===(t=e.potentialRisk.overview)||void 0===t?void 0:t.potentialRiskClass)?m(s.RISKOMETER_TAB_LIST):m([s.RISKOMETER_TAB_LIST[0]])},[e.potentialRisk]),l.jsx("div",{className:"risko-meter-prscomp",children:v===u[0]?l.jsx("div",{className:"riskometer",children:l.jsx(i.RiskoMeter,{fundTitle:null==e?void 0:e.fundTitle,riskometerDetails:null==e?void 0:e.riskometerDetails,riskoMeter:null==e?void 0:e.riskoMeter})}):l.jsxs("div",{className:"potential-risk-class",children:[l.jsx("label",{className:"lbl-banner-title-1",children:null===(o=e.potentialRisk)||void 0===o?void 0:null===(a=o.overview)||void 0===a?void 0:null===(t=a.potentialRiskClass)||void 0===t?void 0:t.description}),l.jsx("img",{fetchPriority:"low",className:"table-container",src:null===(d=e.potentialRisk)||void 0===d?void 0:null===(c=d.overview)||void 0===c?void 0:null===(r=c.potentialRiskClass)||void 0===r?void 0:r.prcUrl,alt:"prc url"})]})})}}
1,37355:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var l=a(57437),n=a(31747),s=a(58416),i=a(4514),o=a(42949),r=a(73797);let c=e=>{var t,a,c;let{articleData:d}=e,u=o.useLoginContextData(),m=u.isUserLoggedIn()||u.isUserSoftLoggedIn()?"post login journey":"pre login journey",v=(e,t)=>{let a={flow_name:m,article_name:t,page_section:r.getPathname(),page_sub_section:"Article"};i.GoogleAnalytics.recordEvent(i.GoogleAnalyticEvents.SchemeDetails.ArticleClick(a)),s.pushPath("".concat(i.GLOBAL_CONSTANT.ROUTE_PATHS.KNOWLEDGE_CENTER_ARTICLES,"/").concat(e))};if((null==d?void 0:d.message)!=="Data not available")return l.jsx("div",{className:"scheme-article",children:l.jsxs("div",{className:"library-list-comp",children:[l.jsx("label",{className:"lbl-section-title",children:"Article"}),l.jsx("div",{className:"content-section",children:null==d?void 0:null===(c=d.articleCards)||void 0===c?void 0:null===(a=c.items)||void 0===a?void 0:null===(t=a.slice(0,3))||void 0===t?void 0:t.map((e,t)=>l.jsx(n.LibraryCard,{type:"article",carddata:e,onexplore:t=>v(t,null==e?void 0:e.carouselName)},"".concat(e.path,"-").concat(t)))})]})})};t.SchemeArticle=c,t.default=c},2736:function(e,t,a){var l=a(57437),n=a(2265),s=a(19495);t.SchemeDisclaimer=e=>{var t,a;if(!e.disclaimer)return l.jsx(n.Fragment,{});let i=null==e?void 0:null===(a=e.disclaimer)||void 0===a?void 0:null===(t=a.disclaimerText)||void 0===t?void 0:t.replace(/\s+/g," ").trim();return l.jsxs("div",{className:"scheme-disclaimer",children:[l.jsx("label",{className:"lbl-txt-content scheme-disclaimer-text-web ",children:l.jsx(s.HtmlConvert,{htmlString:i})}),l.jsx("label",{className:"scheme-disclaimer-text-mobile ",children:l.jsx(s.HtmlConvert,{htmlString:i})})]})}},9763:function(e,t,a){var l=a(57437);t.SchemeMedia=()=>l.jsxs("div",{className:"scheme-media",children:[l.jsx("h2",{className:"lbl-banner-heading heading-txt",children:"Media"}),l.jsx("div",{className:"content-holder"})]})},52577:function(e,t,a){var l=a(57437),n=a(2265),s=a(44452),i=a(42949),o=a(4514),r=a(9028),c=a(34894),d=a(35290),u=a(81784),m=a(73688),v=a(35352),h=a(73797),g=a(10841),p=a(3733),x=a(58416);let f={includeScore:!0,threshold:.4,keys:["schemeTitle"]};t.SchemesRenderer=e=>{var t,a,S,y,j;let N=e=>e.sort((e,t)=>{let a=e.schemeTitle.split(" "),l=t.schemeTitle.split(" ");if(a.length<2||l.length<2)return e.schemeTitle.localeCompare(t.schemeTitle);let n=a[1].charAt(0).toLowerCase(),s=l[1].charAt(0).toLowerCase();return n<s?-1:n>s?1:0}),b=B(e.schemes||[],e.searchText||"",e.schemePlanType,e.schemeFundType,e.minFilterPercent,e.filterState),[D,C]=n.useState(b),[_,w]=n.useState(!1),[F,T]=n.useState(),[E,I]=n.useState(null),[A,k]=n.useState(!0),[P,L]=n.useState(1),M=i.useLoginContextData(),G=M.isUserLoggedIn()||M.isUserSoftLoggedIn()?"post login journey":"pre login journey",O=null!==(y=null===(t=M.loggedInUserDetails)||void 0===t?void 0:t.user_type)&&void 0!==y?y:"na",Y=Math.ceil(D.length/10),R=(P-1)*10,U=(e.schemeFundType===r.SCHEME_TYPE.All?D:[...D].sort((e,t)=>(e.fundSequenceNo||0)-(t.fundSequenceNo||0))).slice(R,R+10);function B(e,t,a,l,n,s){let i=e.filter(e=>e.planType===a&&l===r.SCHEME_TYPE.All||e.fundType===l&&e.fundType===r.SCHEME_TYPE.Etf||e.planType===a&&e.fundType===l);if(n>0&&(i=i.filter(e=>e.cagrSinceInception>=n)),t){let e=t.toLowerCase();i=t.length<2&&/^[a-z]$/.test(e)?i.filter(t=>{var a;let l=(null==t?void 0:null===(a=t.schemeTitle)||void 0===a?void 0:a.split(" "))||[];return l.length>1&&l[1].toLowerCase().startsWith(e)}):new m.default(i,f).search(t).map(e=>e.item)}return t?N(i):i}n.useEffect(()=>{L(1)},[D.length,e.searchText,e.schemeFundType,e.schemePlanType]),n.useEffect(()=>{0===D.length&&k(!1)},[D.length]),n.useEffect(()=>{var t,a;let l=B(e.schemes||[],e.searchText||"",e.schemePlanType,e.schemeFundType,e.minFilterPercent,e.filterState);if(C(l),(null==e?void 0:e.schemeFundType)===r.SCHEME_TYPE.Etf||(null==e?void 0:null===(a=e.filterState)||void 0===a?void 0:null===(t=a.filters["Investment Types"])||void 0===t?void 0:t.ETFs)){H(l);let e=setInterval(()=>H(l),4e3);return()=>clearInterval(e)}},[e.searchText,e.schemes,e.schemePlanType,e.schemeFundType,e.minFilterPercent,e.filterState]),n.useEffect(()=>{e.onFilteredSchemesChange&&D.length>=0&&e.onFilteredSchemesChange(e.schemeFundType,D.length)},[D.length,e.schemeFundType]);let H=e=>{if(!e||0===e.length)return;let t=null==e?void 0:e.map(e=>e.ticker);c.placeGetINavDetails({default:e=>{},success:t=>V(t,e)},{ticker:t})},V=(e,t)=>{if(null==e?void 0:e.data){let a=[...t];
1null==e||e.data.forEach(e=>{a.forEach((t,l)=>{if(e.title===t.ticker){a[l].price=e.price,a[l].lastUpdatedTime=e.time;return}})}),C(a)}},q=t=>{e.schemeFundType===r.SCHEME_TYPE.Etf?z(t):W(t)},W=e=>{let t=D.find(t=>t.schemeId===e);t&&Q(t)},z=async e=>{let t=await o.LocalStorage.instance.etfCart.get();if(""!=t){var a;let l=null===(a=JSON)||void 0===a?void 0:a.parse(t);(null==l?void 0:l.length)===7?x.pushPath("/etfcart"):K(e)}else K(e)},K=e=>{let t=D.find(t=>t.schemeId===e);t&&(w(!_),T(e=>({...e,schemeInfo:t})))},Q=e=>{var t,a,l,n;let s={cta_name:"invest  now",page_section:null!==(t=h.getPathname())&&void 0!==t?t:"",scheme_name:null!==(a=e.schemeTitle)&&void 0!==a?a:"",scheme_category:null!==(l=e.fundType)&&void 0!==l?l:"",flow_name:G};if(window.location.pathname.includes("/mutual-funds/etfs")){let t={flow_name:G,cta_name:"invest now",page_section:null!==(n=h.getPathname())&&void 0!==n?n:"",page_sub_section:"scheme list",category:"cross selling",scheme_name:e.schemeTitle,scheme_category:"ETFs",investment_type:"NA",scheme_sub_category:e.planType,plan_option:e.optionName,day_parting:h.getPartOfDay(),user_type:O};o.GoogleAnalytics.recordEvent(o.GoogleAnalyticEvents.Etf.AddtoCartInvestNowCtaClick(t))}o.GoogleAnalytics.recordEvent(o.GoogleAnalyticEvents.SchemeList.SchemeCtaClick(s))},J=(e,t,a,l,n,s,i,r)=>{if(e){var c;let d={user_type:O,cta_name:t,flow_name:G,scheme_name:e,scheme_category:a,scheme_sub_category:l,label:n,investment_type:s,page_section:null!==(c=h.getPathname())&&void 0!==c?c:"",page_sub_section:r?r.toLowerCase():"Trending Mutual Funds",returns:i,day_parting:h.getPartOfDay()};"ETFs"===a?o.GoogleAnalytics.recordEvent(o.GoogleAnalyticEvents.Etf.CtaClick(d)):o.GoogleAnalytics.recordEvent(o.GoogleAnalyticEvents.AddtoCart.SchemeCtaClick(d))}},$=e=>{L(e),ee()},X=()=>{P>1&&L(P-1),ee()},Z=()=>{P<Y&&L(P+1),ee()},ee=()=>{var e;null===(e=document.getElementById("sl-scroll-pagination-top"))||void 0===e||e.scrollIntoView({behavior:"smooth"})},et=()=>{let e=[];
1if(Y<=3)for(let t=1;t<=Y;t++)e.push(t);else{let t=Math.max(1,P-1),a=Math.min(Y,t+3-1);a-t+1<3&&(t=Math.max(1,a-3+1));for(let l=t;l<=a;l++)e.push(l);a<Y&&(a<Y-1&&e.push("..."),e.push(Y))}return e},ea=null!==(j=null===(a=e.filterState)||void 0===a?void 0:a.filters)&&void 0!==j?j:{};return l.jsxs("div",{className:"schemes-renderer",children:[0===D.length?(null==e?void 0:e.searchText)&&!(null===(S=Object.keys(ea))||void 0===S?void 0:S.length)?l.jsx("div",{className:"no-data-message",children:"No result Found. Try another keyword to Search!"}):l.jsx(l.Fragment,{children:A?l.jsx(g.SchemesRendererSkeleton,{}):l.jsx("div",{className:"no-data-message",children:"We’re sorry, there are no schemes available for the filter!"})}):e.isGrid?l.jsx(p.default,{filteredSchemes:D,handleClick:q,handleAddToCart:e=>{var t,a,l,n;let s=D.find(t=>t.schemeId===e);if(!s)return;let i={cta_name:"add to cart",page_section:null!==(t=h.getPathname())&&void 0!==t?t:"",scheme_name:null!==(a=s.schemeTitle)&&void 0!==a?a:"",scheme_category:null!==(l=s.fundType)&&void 0!==l?l:"",flow_name:G};if(window.location.pathname.includes("/mutual-funds/etfs")){let e={flow_name:G,cta_name:"add to cart",page_section:null!==(n=h.getPathname())&&void 0!==n?n:"",page_sub_section:"scheme list",category:"cross selling",scheme_name:s.schemeTitle,scheme_category:"ETFs",investment_type:"NA",scheme_sub_category:s.planType,plan_option:s.optionName,day_parting:h.getPartOfDay(),user_type:O};o.GoogleAnalytics.recordEvent(o.GoogleAnalyticEvents.Etf.AddtoCartInvestNowCtaClick(e))}o.GoogleAnalytics.recordEvent(o.GoogleAnalyticEvents.SchemeList.SchemeCtaClick(i))},setActiveTooltipIndex:I,activeTooltipIndex:E,props:e,indexFundHideSection:null==e?void 0:e.indexFundHideSection,updatesOnData:null==e?void 0:e.updatedAsOnDateGridView,getGAUserAnalytics:J}):l.jsxs(n.Fragment,{children:[l.jsx("div",{className:"list",id:"sl-scroll-pagination-top",children:l.jsx(d.SchemeDetailsList,{schemeFundType:e.schemeFundType,schemes:U,handleClick:q,isEtfFund:e.schemeFundType===r.SCHEME_TYPE.Etf,handleGAUserAnalytics:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return J(...t,"Our Schemes")}})}),(null==e?void 0:e.updatedAsOnDateListView)&&l.jsx("div",{className:"updates-on-list",children:l.jsx("div",{className:"lbl-primary-txt-content3",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.updatedAsOnDateListView)||""}})}),(()=>{if(Y<=1)return null;let e=et();return l.jsxs("div",{className:"Scheme-list-pagination-container",children:[l.jsx("button",{className:"btn-pagination",onClick:X,disabled:1===P,style:{opacity:1===P?.5:1,rotate:"180deg"},children:l.jsx("img",{fetchPriority:"low",className:"left-triangle",src:"/assets/triangle.svg",alt:"left triangle"})}),e.map((e,t)=>l.jsx(n.Fragment,{children:"..."===e?l.jsx("span",{style:{padding:"8px 4px",color:"#666"},children:"..."}):l.jsx("button",{onClick:()=>$(e),className:"pagination-btn ".concat(P===e?"active":""),children:e})},t)),l.jsx("button",{className:"btn-pagination",onClick:Z,disabled:P===Y,style:{opacity:P===Y?.5:1},children:l.jsx("img",{fetchPriority:"low",src:"/assets/triangle.svg",alt:"right triangle"})}),l.jsxs("span",{children:["Page ",P," of ",Y]})]})})(),l.jsx("div",{className:"list-banner",children:e.homeBanners&&e.homeBanners.length>0?e.homeBanners.slice(0).map((e,t)=>{var a,n,s;return l.jsx(v.BannerComponent,{id:t+0,bannerTitle:(null==e?void 0:e.content)||"",btnText:(null==e?void 0:e.buttonLabel)||"",image:(null==e?void 0:e.url)||"",altText:(null==e?void 0:e.alternativeText)||"",redirUrl:(null==e?void 0:e.redirectionUrl)||"",backgroundColor:null!==(a=e.backgroundColor)&&void 0!==a?a:"",buttonColor:null!==(n=e.buttonColor)&&void 0!==n?n:"",description:null!==(s=e.description)&&void 0!==s?s:""},t+0)}):null})]}),_&&l.jsx(s.OverlayPopup,{className:"dialog-popup-content m-full-screen etf-index-popup",showHeader:!1,isFloating:!0,showCloseOption:!1,onClose:()=>w(!1),content:l.jsx(u.EtfOrderPopup,{selectedSchemeData:F,etfInvestNowClickClose:()=>w(!1)})})]})}},54735:function(e,t,a){var l=a(57437),n=a(9028);t.SelectCategorySipLump=e=>{let{onConfirmRedirect:t,selectedValue:a}=e;return l.jsx("div",{className:"delete-fund-container sip-lum-category-container",children:l.jsxs("ul",{children:[l.jsx("li",{onClick:()=>t(n.AMOUNT_TYPE.SIP),children:l.jsx("p",{className:"lbl-card-title-1",children:n.AMOUNT_TYPE.SIP})}),l.jsx("li",{onClick:()=>t(n.AMOUNT_TYPE.LUMPSUM),children:l.jsx("p",{className:"lbl-card-title-1",children:n.AMOUNT_TYPE.LUMPSUM})})]})})}},42174:function(e,t,a){var l=a(57437),n=a(2265),s=a(49232),i=a(80575),o=a(44452),r=a(19495);t.WhyInvestComp=e=>
1{let{schemeFundType:t,whyDetails:a=[]}=e,[c,d]=n.useState(!1),[u,m]=n.useState(""),[v,h]=n.useState(""),g=e=>{var t;let{fund:a,index:n}=e;return l.jsxs("div",{className:"equity-funds-card card-".concat(n),children:[l.jsx("div",{className:"equity-funds-card-img-size",children:l.jsx("img",{fetchPriority:"low",src:null==a?void 0:a.iconUrl,alt:(null==a?void 0:a.altText)||s.getAltText(null==a?void 0:a.iconUrl),width:"42px",height:"42px"})}),l.jsxs("div",{className:"equity-funds-info",children:[l.jsx("label",{className:"lbl-card-title-2",children:null==a?void 0:a.title}),l.jsx("label",{className:"lbl-txt-content",children:l.jsx(r.HtmlConvert,{htmlString:"".concat((null==a?void 0:null===(t=a.description)||void 0===t?void 0:t.length)>80?a.description.slice(0,80)+"...":(null==a?void 0:a.description)||"")})}),l.jsx("button",{id:"fund-summary-read-more",className:"btn-label-blue fund-summary-read-more",onClick:()=>p(null==a?void 0:a.title,null==a?void 0:a.description),children:"Read More"})]})]},n)},p=(e,t)=>{m(e),d(!0),h(t)};return!a||(null==a?void 0:a.length)<1?null:l.jsxs("div",{className:"why-invest-comp",children:[l.jsx("h3",{className:"lbl-category-heading",children:"Why Invest in ".concat(t," Funds?")}),l.jsx("div",{className:"equity-funds",children:null==a?void 0:a.map((e,t)=>l.jsx(g,{fund:e,index:t}))}),l.jsx("div",{className:"equity-funds mobile",children:a?l.jsx(i.CustomComponentCarousel,{className:"custom-component-carousel-default",list:a,isSnap:!0,component:e=>{let{item:t,index:a}=e;return l.jsx(g,{fund:t,index:a})},idPath:"title",showDots:!0}):""}),c?l.jsx(o.OverlayPopup,{className:"dialog-popup-content read-more-popup",onClose:()=>d(!1),showHeader:!0,title:""===u||null===u?"Why invest in ETFs Funds?":u,content:l.jsx("div",{className:"readmore-description",children:l.jsx(r.HtmlConvert,{htmlString:v})})}):null,l.jsx("div",{className:"why-invest-ssr",children:null==a?void 0:a.map((e,t)=>l.jsxs("div",{children:[l.jsx("label",{className:"lbl-card-title-2",children:null==e?void 0:e.title}),l.jsx("label",{className:"lbl-txt-content",children:l.jsx(r.HtmlConvert,{htmlString:null==e?void 0:e.description})})]},t))})]})}}}]);

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