PageSourceSearch

https://risify.ai/_next/static/chunks/7144.91eaed251479dcc4.js

js risify.ai collected 2026-10-02 01:13:03 UTC 12,473 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6321,7144],{65192:(e,t,r)=>{"use strict";var n=r(80859);function s(){}function o(){}o.resetWarningCache=s,e.exports=function(){function e(e,t,r,s,o,i){if(i!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:s};return r.PropTypes=r,r}},81996:(e,t,r)=>{e.exports=r(65192)()},80859:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},76321:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(12115),s=r(31653),o=r(81996),i=r.n(o);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){!function(e,t,r){var n;(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=["type","width","height","series","options","chartRef"];function m(e){return e&&"object"===u(e)&&!Array.isArray(e)}function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakSet;if(e===t)return!0;if("object"!==u(e)||null===e||"object"!==u(t)||null===t)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!s.includes(i)||!f(e[i],t[i],r))return!1}return!0}var h=["type","series","options","width","height","chartRef"];function p(e){var t=e.type,r=void 0===t?"line":t,o=e.width,i=void 0===o?"100%":o,l=e.height,u=void 0===l?"auto":l,p=e.series,x=e.options,b=e.chartRef,y=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||({}).propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,d),v=(0,n.useRef)(null),g=(0,n.useRef)(null),j=(0,n.useRef)(null),w=b||j,N=function(){return function e(t,r){var n=c({},t);return m(t)&&m(r)&&Object.keys(r).forEach(function(s){m(r[s])?n[s]=s in t?e(t[s],r[s]):r[s]:n[s]=r[s]}),n}(x,{chart:{type:r,height:u,width:i},series:p})};(0,n.useEffect)(function(){return w.current=new s.default(v.current,N()),w.current.render(),g.current=x,function(){w.current&&"function"==typeof w.current.destroy&&w.current.destroy()}},[]),(0,n.useEffect)(function(){if(w.current&&w.current.w){var e=!f(w.current.w.config.series,p),t=!f(g.current,x)||u!==w.current.opts.chart.height||i!==w.current.opts.chart.width;(e||t)&&(e?t?w.current.updateOptions(N()):w.current.updateSeries(p):w.current.updateOptions(N())),g.current=x}},[x,p,u,i]);var O,P=(O=c({},y),h.forEach(function(e){delete O[e]}),O);return n.createElement("div",a({ref:v},P))}p.propTypes={type:i().string.isRequired,series:i().array.isRequired,options:i().object.isRequired,width:i().oneOfType([i().string,i().number]),height:i().oneOfType([i().string,i().number]),chartRef:i().shape({current:i().any})}},77144:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(95155),s=r(12115),o=r(76321);let i=()=>
1{let[e,t]=(0,s.useState)("SIP"),[r,i]=(0,s.useState)(1e4),[a,l]=(0,s.useState)(5),[c,u]=(0,s.useState)(12),[d,m]=(0,s.useState)([!0,!0]),[f,h]=(0,s.useState)({investedAmount:[],totalValue:[],profit:[],summary:{totalInvested:0,totalValue:0,totalProfit:0,absoluteReturn:0,xirr:0}}),p=()=>{let t=c/100/12,n=12*a,s=[],o=[],i=[];if("SIP"===e){let e=0;for(let a=0;a<=n;a+=6)if(0===a)s.push(0),o.push(0),i.push(0);else{e=r*a;let n=(Math.pow(1+t,a)-1)/t*r;s.push(e),o.push(n),i.push(n-e)}}else for(let e=0;e<=n;e+=6)if(0===e)s.push(r),o.push(r),i.push(0);else{let n=r*Math.pow(1+t,e);s.push(r),o.push(n),i.push(n-r)}let l=s[s.length-1],u=o[o.length-1],d=i[i.length-1],m=(d/l*100).toFixed(2);h({investedAmount:s,totalValue:o,profit:i,summary:{totalInvested:l,totalValue:u,totalProfit:d,absoluteReturn:parseFloat(m),xirr:c}})};(0,s.useEffect)(()=>{p()},[e,r,a,c]);let x={series:[{name:"Invested Amount",data:f.investedAmount},{name:"Profit on your Investment",data:f.totalValue}],options:{chart:{type:"bar",height:350,stacked:!1,toolbar:{show:!0,tools:{download:!0,selection:!1,zoom:!1,zoomin:!1,zoomout:!1,pan:!1,reset:!1}}},plotOptions:{bar:{horizontal:!1,columnWidth:"60%",borderRadius:4}},colors:["#26BB94","#299D7E"],xaxis:{categories:f.investedAmount.map((e,t)=>{let r=6*t;return 0===r?"0M":r<12?"".concat(r,"M"):"".concat(r/12,"Y")}),title:{text:"Time Period",style:{fontSize:"14px",fontWeight:600}}},yaxis:{title:{text:"Amount (₹)",style:{fontSize:"14px",fontWeight:600}},labels:{formatter:e=>"₹".concat((e/1e3).toFixed(0),"K")}},tooltip:{y:{formatter:e=>"₹".concat(e.toLocaleString("en-IN"))},x:{formatter:e=>"".concat(e," Years")}},grid:{borderColor:"#e7e7e7",strokeDashArray:5},legend:{position:"top",horizontalAlign:"center",fontSize:"14px",fontWeight:600},dataLabels:{enabled:!1}}},b=e=>{let t=[...d];t[e]=!t[e],m(t)},y=e=>new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e);return(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"container flex justify-center mx-auto xl:px-20 md:px-14 px-6",children:(0,n.jsxs)("div",{className:"max-w-6xl w-full",children:[(0,n.jsxs)("div",{className:"pt-20 pb-10",children:[(0,n.jsx)("h1",{className:"text-3xl font-semibold mb-4 text-center sm:text-left",children:"Investment Calculator"}),(0,n.jsx)("p",{className:"text-[#00000099] text-center sm:text-left",children:"Calculate how much your investments could potentially grow."})]}),(0,n.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8 pb-32",children:[(0,n.jsx)("div",{className:"w-full bg-white p-6 rounded-lg shadow-md text-[#00000099] flex flex-col justify-between",children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex space-x-4 mb-12",children:[(0,n.jsx)("button",{className:"w-1/2 py-3 font-semibold rounded-md transition-all duration-200 ".concat("SIP"===e?"text-white bg-[#26BB94] hover:bg-green-600":"text-[#26BB94] border-2 border-[#26BB94] hover:bg-[#26BB94] hover:text-white"),onClick:()=>t("SIP"),children:"Monthly SIP"}),(0,n.jsx)("button",{className:"w-1/2 py-3 font-semibold rounded-md transition-all duration-200 ".concat("Lumpsum"===e?"text-white bg-[#26BB94] hover:bg-green-600":"text-[#26BB94] border-2 border-[#26BB94] hover:bg-[#26BB94] hover:text-white"),onClick:()=>t("Lumpsum"),children:"Lumpsum"})]}),(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsx)("label",{className:"block mb-2 font-medium",children:"SIP"===e?"I Wish To Invest Per Month":"I Wish To Invest"}),(0,n.jsx)("input",{type:"number",value:r,onChange:e=>i(parseFloat(e.target.value)||0),placeholder:"SIP"===e?"₹ 10,000":"₹ 1,00,000",className:"w-full p-3 border rounded-md focus:outline-none focus:ring-2 focus:ring-[#26BB94]"}),(0,n.jsxs)("div",{className:"text-xs flex items-center justify-between mt-3 text-gray-600",children:[(0,n.jsxs)("div",{children:["Min ₹ ","SIP"===e?"1,000":"10,000"]}),(0,n.jsx)("div",{children:"Max ₹ 10,00,00,000 (10Cr)"})]})]}),(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsx)("label",{className:"block mb-2 font-medium",children:"Investment Period"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{type:"number",value:a,onChange:e=>l(parseInt(e.target.value)||1),min:"1",max:"30",className:"w-full p-3 border rounded-md focus:outline-none focus:ring-2 focus:ring-[#26
1BB94]"}),(0,n.jsx)("div",{className:"absolute right-4 top-4 text-gray-500",children:"Years"})]}),(0,n.jsxs)("div",{className:"text-xs flex items-center justify-between mt-3 text-gray-600",children:[(0,n.jsx)("div",{children:"Min 1 Year"}),(0,n.jsx)("div",{children:"Max 30 years"})]})]}),(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsx)("label",{className:"block mb-2 font-medium",children:"Expected Rate of Return (P.A.)"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{type:"number",value:c,onChange:e=>u(parseFloat(e.target.value)||0),min:"1",max:"25",step:"0.1",className:"w-full p-3 border rounded-md focus:outline-none focus:ring-2 focus:ring-[#26BB94]"}),(0,n.jsx)("div",{className:"absolute right-4 top-4 text-gray-500",children:"%"})]}),(0,n.jsxs)("div",{className:"text-xs flex items-center justify-between mt-3 text-gray-600",children:[(0,n.jsx)("div",{children:"Min 1%"}),(0,n.jsx)("div",{children:"Max 25%"})]})]})]})}),(0,n.jsxs)("div",{className:"w-full bg-white p-6 rounded-lg shadow-md text-[#00000099]",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"Investment Summary"}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[(0,n.jsxs)("div",{className:"bg-gray-50 p-4 rounded-lg",children:[(0,n.jsx)("div",{className:"text-sm text-gray-600",children:"Total Invested"}),(0,n.jsx)("div",{className:"text-lg font-semibold text-[#26BB94]",children:y(f.summary.totalInvested)})]}),(0,n.jsxs)("div",{className:"bg-gray-50 p-4 rounded-lg",children:[(0,n.jsx)("div",{className:"text-sm text-gray-600",children:"Total Value"}),(0,n.jsx)("div",{className:"text-lg font-semibold text-[#299D7E]",children:y(f.summary.totalValue)})]}),(0,n.jsxs)("div",{className:"bg-gray-50 p-4 rounded-lg",children:[(0,n.jsx)("div",{className:"text-sm text-gray-600",children:"Total Profit"}),(0,n.jsx)("div",{className:"text-lg font-semibold text-green-600",children:y(f.summary.totalProfit)})]}),(0,n.jsxs)("div",{className:"bg-gray-50 p-4 rounded-lg",children:[(0,n.jsx)("div",{className:"text-sm text-gray-600",children:"Return %"}),(0,n.jsxs)("div",{className:"text-lg font-semibold text-blue-600",children:[f.summary.absoluteReturn,"%"]})]})]}),(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsx)(o.default,{options:x.options,series:x.series,type:"bar",height:350})}),(0,n.jsx)("div",{className:"flex flex-col items-start mb-6",children:x.series.map((e,t)=>{var r;return(0,n.jsxs)("div",{className:"flex items-center mb-2 cursor-pointer justify-between w-full p-2 hover:bg-gray-50 rounded",onClick:()=>b(t),children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{className:"size-4 rounded-full mr-3",style:{background:"".concat(null==x?void 0:null===(r=x.options)||void 0===r?void 0:r.colors[t])}}),(0,n.jsx)("span",{className:"text-sm font-medium",children:e.name})]}),(0,n.jsxs)("span",{className:"text-xs text-gray-500",children:["Max: ",y(Math.max(...e.data.filter(e=>null!==e)))]})]},t)})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsxs)("button",{className:"w-full py-3 font-semibold text-[#26BB94] rounded-md border-2 border-[#26BB94]",children:["Estd Total Return ",y(f.summary.totalValue)]}),(0,n.jsx)("a",{href:"https://client.risify.ai/",target:"_blank",rel:"noopener noreferrer",className:"w-full py-3 font-semibold text-white text-center bg-[#26BB94] rounded-md shadow hover:bg-green-600 transition-colors",children:"Invest Now"})]})]})]})]})})})}}}]);

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.