PageSourceSearch

https://mundadafinserve.com/_next/static/chunks/3276.5e13f84b043505a1.js

js mundadafinserve.com collected 2026-09-24 14:49:52 UTC 16,184 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3276],{898:(e,a,t)=>{t.d(a,{p:()=>d});var r=t(3648),l=t(95155),n=t(12115),s=t(49498),i=t(27804),o=t(28266),c=t(76094);function u(){let e=(0,r._)(["\n          radial-gradient(\n            "," circle at ","px ","px,\n            transparent 80%\n          )\n        "]);return u=function(){return e},e}let d=n.forwardRef((e,a)=>{let{className:t,type:r,...d}=e,[m,p]=n.useState(!1),v=(0,i.d)(0),x=(0,i.d)(0),g=e=>{let{currentTarget:a,clientX:t,clientY:r}=e,{left:l,top:n}=a.getBoundingClientRect();v.set(t-l),x.set(r-n)};return(0,l.jsx)(o.P.div,{style:{background:(0,c.E)(u(),m?"100px":"0px",v,x)},onMouseMove:g,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onTouchStart:()=>p(!0),onTouchMove:e=>{if(e.touches.length>0){let a=e.touches[0];g({currentTarget:e.currentTarget,clientX:a.clientX,clientY:a.clientY})}},onTouchEnd:()=>p(!1),className:"p-[2px] rounded-lg transition duration-300 group/input",children:(0,l.jsx)("input",{type:r,className:(0,s.cn)("flex h-10 w-full bg-[var(--rv-page)] border border-[var(--rv-secondary)] text-[var(--rv-text)] shadow-input rounded-md px-3 py-2 text-sm \n           file:border-0 file:bg-transparent file:text-sm file:font-medium \n           placeholder:text-[var(--rv-text)] placeholder:opacity-50 focus-visible:outline-none focus-visible:ring-[2px] \n           focus-visible:ring-[var(--rv-primary)] disabled:cursor-not-allowed disabled:opacity-50 \n           transition duration-400",t),ref:a,...d})})});d.displayName="Input"},18399:(e,a,t)=>{t.d(a,{r:()=>x});var r=t(95155),l=t(53190),n=t(79142),s=t(90492),i=t(60399),o=t(57002),c=(0,l.gu)({chartName:"BarChart",GraphicalChild:n.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:s.W},{axisType:"yAxis",AxisComp:i.h}],formatAxisMap:o.pr}),u=t(57307),d=t(24164),m=t(63106);let p={investedAmount:{label:"Invested Amount",color:"var(--rv-chart-invested, var(--rv-primary))"},growth:{label:"Growth",color:"var(--rv-chart-growth, var(--rv-secondary))"}},v=e=>{let a=Number(e)||0,t=Math.abs(a);if(t>=1e7){let e=a/1e7;return"".concat(Number.isInteger(e)?e:e.toFixed(1).replace(/\.0$/,""),"Cr")}if(t>=1e5){let e=a/1e5;return"".concat(Number.isInteger(e)?e:e.toFixed(1).replace(/\.0$/,""),"L")}if(t>=1e3){let e=a/1e3;return"".concat(Number.isInteger(e)?e:e.toFixed(1).replace(/\.0$/,""),"K")}return a.toString()};function x(e){let{data:a,title:t,chartConfig1:l,stacked:o=!1}=e,x={investedAmount:{...(null==l?void 0:l.investedAmount)||p.investedAmount,color:"var(--rv-chart-invested, var(--rv-primary))"},growth:{...(null==l?void 0:l.growth)||p.growth,color:"var(--rv-chart-growth, var(--rv-secondary))"}};return(0,r.jsxs)(d.Zp,{className:"border border-[var(--rv-primary)] bg-[var(--rv-bg-surface)] text-[var(--rv-text)] shadow-md",children:[(0,r.jsx)(d.aR,{children:(0,r.jsxs)(d.ZB,{children:[t," Projected Value"]})}),(0,r.jsx)(d.Wu,{children:(0,r.jsx)(m.at,{config:x,className:"h-full w-full",children:(0,r.jsxs)(c,{data:a,height:200,barCategoryGap:"20%",barGap:4,margin:{top:0,right:0,bottom:0,left:10},children:[(0,r.jsx)(u.d,{vertical:!1,stroke:"var(--rv-border)"}),(0,r.jsx)(s.W,{dataKey:"year",tickLine:!1,tickMargin:10,axisLine:!1,minTickGap:30,tick:{fill:"var(--rv-text)",stroke:"var(--rv-text)",fontSize:12,fontWeight:500}}),(0,r.jsx)(i.h,{tick:{fill:"var(--rv-text)",stroke:"var(--rv-text)",fontSize:12,fontWeight:500},domain:[0,"dataMax * 1.1"],tickCount:8,tickFormatter:v}),(0,r.jsx)(m.II,{content:(0,r.jsx)(m.Nt,{hideLabel:!0})}),(0,r.jsx)(m._3,{content:(0,r.jsx)(m.Hm,{})}),(0,r.jsx)(n.y,{dataKey:"investedAmount",stackId:o?"a":void 0,fill:"var(--rv-chart-invested, var(--rv-primary))",radius:o?[0,0,4,4]:4}),(0,r.jsx)(n.y,{dataKey:"growth",stackId:o?"a":void 0,fill:"var(--rv-chart-growth, var(--rv-secondary))",radius:o?[4,4,0,0]:4})]})})})]})}},33276:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});var r=t(95155),l=t(12115);t(898);var n=t(37065),s=t(18399),i=t(97533),o=t(73394),c=t(20063),u=t(46469);function d(){var e,a,t,d;let m=(0,c.useRouter)(),[p,v]=(0,l.useState)(!1),[x,g]=(0,l.useState)(!0),[h,f]=(0,l.useState)(1e4),[b,y]=(0,l.useState)(5),[j,N]=(0,l.useState)(5),[w,C]=(0,l.useState)(5),[k,I]=(0,l.useState)(null),[E,S]=(0,l.useState)([]),M=async()=>{try{let e=await i.A.get("".concat("https://shared.redvisionassets.com","/api/calculators/vacation-plan?planHolidayInYears=").concat(b,"&currentExpense=").concat(h,"&expectedReturn=").concat(j,"&inflationRate=").concat(w));if(200===e.status){let a=e.data,t=a.totalInvestment,r=a.lumpsumInvestment,l=a.futureVacationCost,n=a.sipInvestment,s=a.yearlyData;I({totalInvestment:t,futureValue:Math.round(l),lumpsumInvestment:Math.round(r),sipInvestment:Math.round(n)}),S(s),v(!0)}}catch(e){console.log(e),v(!1)}finally{g(!1)}};(0,l.useEffect)(()=>{M()},[h,b,j,w]);
1let F=[{label:"Current Vacation Expenses (₹)",min:1e4,max:1e9,step:100,value:h,setValue:f,unit:"₹"},{label:"After How Many Years Do You Wish To Plan Your Holiday?",min:1,max:100,step:1,value:b,setValue:y},{label:"Rate of Return (%)",min:1,max:100,step:1,value:j,setValue:N,unit:"%"},{label:"Inflation Rate (%)",min:0,max:30,step:1,value:w,setValue:C,unit:"%"}];return(0,r.jsx)("div",{className:"",children:(0,r.jsx)("div",{className:"section main-section",children:(0,r.jsx)("div",{className:"max-w-screen-xl mx-auto p-2 md:p-0",children:(0,r.jsxs)("div",{className:"",children:[(0,r.jsxs)("div",{className:"mb-5 flex flex-col md:flex-row gap-5 justify-between",children:[(0,r.jsx)("span",{className:"text-2xl md:text-3xl font-bold uppercase",children:"Vacation Plan Calculator"}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between gap-4",children:[(0,r.jsx)("span",{children:"Explore other calculators"}),(0,r.jsxs)("select",{className:"w-full border border-gray-500 rounded-lg p-2",onChange:e=>{let a=e.target.value;a&&m.push(a)},defaultValue:"",children:[(0,r.jsx)("option",{value:"",disabled:!0,children:"Select"}),o.Ix.map(e=>(0,r.jsx)("option",{value:e.route,children:e.title},e.title))]})]})]}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 gap-4 mb-4",children:[(0,r.jsx)("div",{className:"col-span-1 border border-gray-200 rounded-2xl bg-white p-2 md:p-5",children:(0,r.jsxs)("div",{className:"sip-calculator container mx-auto p-3 sticky top-0 z-10",children:[(0,r.jsx)("div",{className:"input-fields mt-5 mb-10",children:F.map((e,a)=>(0,r.jsx)(u.A,{label:e.label,min:e.min,max:e.max,step:e.step,value:e.value,setValue:e.setValue,unit:e.unit},a))}),k&&(0,r.jsxs)("div",{className:"mt-5",children:[(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between px-5 mb-3",children:[(0,r.jsx)("p",{children:"Current Cost of Vacation"}),(0,r.jsxs)("p",{className:"font-bold text-lg",children:["₹",null==k||null==(e=k.totalInvestment)?void 0:e.toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,r.jsx)("hr",{className:"mb-3"}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between px-5 mb-3",children:[(0,r.jsx)("p",{children:"Future Cost of Vacation"}),(0,r.jsxs)("p",{className:"font-bold text-lg",children:["₹",null==k||null==(a=k.futureValue)?void 0:a.toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,r.jsx)("hr",{className:"mb-3"}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between px-5 mb-3",children:[(0,r.jsx)("p",{children:"Planning Through SIP"}),(0,r.jsxs)("p",{className:"font-bold text-lg",children:["₹",null==k||null==(t=k.sipInvestment)?void 0:t.toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,r.jsx)("hr",{className:"mb-3"}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between px-5 mb-3",children:[(0,r.jsx)("p",{children:"Planning Through Lump Sum"}),(0,r.jsxs)("p",{className:"font-bold text-lg",children:["₹",null==k||null==(d=k.lumpsumInvestment)?void 0:d.toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,r.jsx)("hr",{})]})]})}),(0,r.jsxs)("div",{className:"col-span-1",children:[(0,r.jsx)(n.F,{piedata:k,title:"Current & Future Cost Of Vacation Breakup",chartConfig:{invested:{label:"Current Cost of Vacation",color:"var(--rv-primary)"},return:{label:"Future Cost of Vacation",color:"var(--rv-secondary)"}}}),(0,r.jsx)("div",{className:"mt-5",children:(0,r.jsx)(s.r,{data:E,title:"Vacation Planning ",chartConfig:{investedAmount:{label:"Current Cost of Vacation",color:"var(--rv-primary)"},growth:{label:"Future Cost of Vacation",color:"var(--rv-secondary)"}}})})]})]})})})]})})})})}},46469:(e,a,t)=>{t.d(a,{A:()=>d});var r=t(95155),l=t(88661),n=t.n(l);t(12115);var s=t(49498);let i=["","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],o=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],c=e=>0===e?"":e<20?i[e]:e<100?"".concat(o[Math.floor(e/10)]).concat(e%10?" ".concat(i[e%10]):""):"".concat(i[Math.floor(e/100)]," hundred").concat(e%100?" ".concat(c(e%100)):""),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/₹|amount|investment|cost|expense|wealth|savings|emi|sip|lumpsum/i.test(e)},d=e=>{let{label:a,min:t,max:l,step:i,value:o,setValue:d,className:m}=e,p=e=>
1e||0===e?e.toLocaleString("en-IN"):"",v=e=>Math.min(Math.max(e,"number"==typeof t?t:0),"number"==typeof l?l:Number.MAX_SAFE_INTEGER),x="number"==typeof t?t:0,g=u(a)&&Number(o)<x,h=v(isNaN(o)?x:o),f=u(a)?(e=>{let a=Math.floor(Math.abs(Number(e)));if(!Number.isFinite(a))return"";if(0===a)return"zero";let t=[],r=Math.floor(a/1e7),l=Math.floor(a%1e7/1e5),n=Math.floor(a%1e5/1e3),s=a%1e3;return r&&t.push("".concat(c(r)," crore")),l&&t.push("".concat(c(l)," lakh")),n&&t.push("".concat(c(n)," thousand")),s&&t.push(c(s)),t.join(" ")})(o):"";return(0,r.jsxs)("div",{className:"jsx-dd67dc0c9c4b29ba "+((0,s.cn)("mt-5",m)||""),children:[(0,r.jsxs)("div",{className:"jsx-dd67dc0c9c4b29ba grid grid-cols-3 items-start gap-4 mb-2",children:[(0,r.jsx)("div",{className:"jsx-dd67dc0c9c4b29ba min-w-0 col-span-2",children:(0,r.jsx)("span",{className:"jsx-dd67dc0c9c4b29ba block text-[var(--rv-text)] font-medium",children:a})}),(0,r.jsx)("input",{type:"text",value:p(o),onChange:e=>{let a=parseFloat(e.target.value.replace(/,/g,"").replace(/[^\d.]/g,""));isNaN(a)?d(0):d(Math.min(Math.max(a,0),"number"==typeof l?l:Number.MAX_SAFE_INTEGER))},className:"jsx-dd67dc0c9c4b29ba font-semibold bg-[var(--rv-bg-page)] text-[var(--rv-text)] w-auto border border-[var(--rv-border-light)] px-2 py-2 rounded-lg text-right focus:outline-none focus:ring-1 focus:ring-[var(--rv-primary)] col-span-1"}),(0,r.jsx)("div",{className:"jsx-dd67dc0c9c4b29ba col-span-3 flex flex-col items-end",children:g?(0,r.jsxs)("p",{className:"jsx-dd67dc0c9c4b29ba text-xs leading-5 capitalize text-red-600 text-right",children:["Minimum amount to be ",p(x)]}):f?(0,r.jsx)("p",{className:"jsx-dd67dc0c9c4b29ba  text-xs capitalize leading-5 text-[var(--rv-text)] text-right",children:f}):null})]}),(0,r.jsx)("input",{type:"range",min:t,max:l,step:i,value:h,onChange:e=>d(v(parseFloat(e.target.value))),style:{"--progress":"".concat((h-t)/(l-t)*100,"%")},className:"jsx-dd67dc0c9c4b29ba customRange w-full"}),(0,r.jsx)(n(),{id:"dd67dc0c9c4b29ba",children:".customRange.jsx-dd67dc0c9c4b29ba{-webkit-appearance:none;height:6px;background:var(--rv-gray);border-radius:5px;background-image:linear-gradient(var(--rv-primary),var(--rv-primary));background-size:var(--progress)100%;background-repeat:no-repeat}.customRange.jsx-dd67dc0c9c4b29ba::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;background:var(--rv-primary);cursor:pointer;box-shadow:0 0 2px 0 rgba(0,0,0,.5);transition:background.3s ease-in-out}.customRange.jsx-dd67dc0c9c4b29ba::-webkit-slider-runnable-track{-webkit-appearance:none;box-shadow:none;border:none;background:transparent}"})]})}},73394:(e,a,t)=>{t.d(a,{Ix:()=>l,Wv:()=>r});let r=[{title:"SIP Calculator",route:"/tools/calculators/sip-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975219214-sip-calc.svg",desc:"Estimate the potential value of regular monthly SIP investments over a chosen period."},{title:"Step Up SIP Calculator",route:"/tools/calculators/step-up-sip-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975237951-stp-clc.svg",desc:"Estimate SIP growth when your investment amount increases gradually at regular intervals."},{title:"Lumpsum Calculator",route:"/tools/calculators/lumpsum-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975247064-lumpsum-calc.svg",desc:"Estimate the potential value of a one-time investment over a selected period."},{title:"Crorepati Calculator",route:"/tools/calculators/crorepati-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975261729-cororepati-clc.svg",desc:"Estimate the monthly investment required to work towards a ₹1 crore target."},{title:"SWP Calculator",route:"/tools/calculators/swp-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975272714-swp-clc.svg",desc:"Estimate periodic withdrawals and the remaining investment value over a selected period."},{title:"STP Calculator",route:"/tools/calculators/stp-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975284638-stp-clc.svg",desc:"Estimate systematic transfers between investment schemes over a chosen time period."},{title:"EMI Calculator",route:"/tools/calculators/emi-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975298973-emi-clc.svg",desc:"Calculate estimated monthly loan instalments based on amount, interest rate, and tenure."},{title:"Tax Calculator",route:"/tools/calculators/tax-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975383303-calculator-form.svg",desc:"Estimate your tax liability based on applicable income and tax-related inputs."}],l=[{title:"Retirement Planning Calculator",route:"/tools/calculators/retirement-planning-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975395645-retire-clc.svg",desc:"Estimate the amount required to build a corpus for your retirement needs."},{title:"Delay Planning Calculator",route:"/tools/calculators/delay-planning-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975431645-delay-clc.svg",desc:"Understand how delaying investments may affect the amount needed for your financial goal."},{title:"Life Insurance Calculator",route:"/tools/calculators/life-insurance-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975564473-delay-clc.svg",desc:"Estimate the life cover required based on income, liabilities, and family needs."},{title:"Marriage Planning Calculator",route:"/tools/calculators/marriage-planning-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975572637-marriage-clc.svg",desc:"Estimate the investment required to plan for future marriage-related expenses."},{title:"Education Planning Calculator",route:"/tools/calculators/education-
1planning-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975578951-education-clc.svg",desc:"Estimate the amount required to fund your child’s future education expenses."},{title:"House Planning Calculator",route:"/tools/calculators/house-planning-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975589197-house-clc.svg",desc:"Estimate how much you may need to invest towards purchasing a home."},{title:"Car Planning Calculator",route:"/tools/calculators/car-planning-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975596261-car-clc.svg",desc:"Estimate the monthly investment required to plan for a future car purchase."},{title:"Vacation Planning Calculator",route:"/tools/calculators/vacation-planning-calculator",image:"/api/uploads?section=calculator-icons&filename=1761975606822-vacation-clc.svg",desc:"Estimate the investment needed to plan for your desired travel expenses."}]}}]);

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.