PageSourceSearch

https://acb.com.vn/_next/static/chunks/7434.b8bfa45088709039.js

js acb.com.vn collected 2026-10-02 05:59:31 UTC 9,376 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7434],{27434:function(e,n,t){t.r(n),t.d(n,{default:function(){return h}});var l=t(85893),i=t(56656),o=t(61855),a=t(77313),s=t(41664),d=t.n(s),r=t(67294),v=t(29731),u=t(22120),c=t(11163);let m=[{key:"inversed_interest_accumation",value:"tinh_thuan"},{key:"proportional_interest_accumation",value:"tinh_nghich"}];function h(e){var n,t,s,h,g,x,p,_,y,f,j,k,O,S,b,C,T,I,w,N,M,V,R,D,F,Z,q,G;let{formCumulativeSavingsProps:A}=e,E=(0,c.useRouter)(),{t:K}=(0,u.$G)(),[U,B]=(0,r.useState)("proportional_interest_accumation"),[J,L]=(0,r.useState)({totalSaving:[0,0],savingTerm:[0,0],savingInterestRate:[0,5]}),[z,H]=(0,r.useState)({totalSaving:[0,0],savingTerm:[0,0],savingInterestRate:[0,5]}),[W,P]=(0,r.useState)(!1),$=function(e,n,t,l){let i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(0===e)i=-l-t*n;else{let a=Math.pow(1+e,n);i=1===o?-(l*a)-t*(1+e)*(a-1)/e:-(l*a)-t*(a-1)/e}return Math.round(100*i)/100},Q=(e,n,t)=>{let l=0,i=[],o=0;for(let a=0;a<e;a++){let e=a+1,s=12*t,d=l+s,r=$(n/100/12,12,0-t,0-o)-12*t-o,v=s+r;l+=s,o+=v,i.push({year:e,deposits:s,principal:d,interest:r,total:v,endingBalance:o})}return i},X=(e,n,t)=>{let l=n/e,i=n,o=Array.from({length:+e}).reduce((e,o,a)=>{var s;let d=a>0?null===(s=e[a-1])||void 0===s?void 0:s.firstInstallmentInterest:1*n,r=0===a?1:1-l/d;return i-=l*r,[...e,{year:a+1,defaultPeriodlyRate:r,firstInstallmentInterest:r*n,periodlyInstallment:l,interestEarned:l*t/100*12/12,currentBalance:i,targetAmount:n}]},[]);return o},Y=(0,r.useMemo)(()=>{var e,n;let t=Q(J.savingTerm[1],J.savingInterestRate[1],J.totalSaving[1]),l=null==t?void 0:t.reduce((e,n)=>e+(null==n?void 0:n.interest),0);return{endingBalance:null===(e=t[t.length-1])||void 0===e?void 0:e.endingBalance,principal:null===(n=t[t.length-1])||void 0===n?void 0:n.principal,totalInterestEarned:l}},[J.savingInterestRate,J.totalSaving,J.savingTerm]),ee=(0,r.useMemo)(()=>{var e,n;let t=X(+z.savingTerm[1],+z.totalSaving[1],+z.savingInterestRate[1]),l=null==t?void 0:t.reduce((e,n)=>e+(null==n?void 0:n.interestEarned),0);return{monthlyInstallment:+(null==t?void 0:null===(e=t[0])||void 0===e?void 0:e.periodlyInstallment)/12,totalInterestEarned:l,targetAmount:null==t?void 0:null===(n=t[0])||void 0===n?void 0:n.targetAmount}},[z.savingInterestRate,z.totalSaving,z.savingTerm]),en=(0,r.useCallback)((e,n,t,l)=>{var i,o;if(l?!e.floatValue:!e.target.value)return L(e=>({...e,[n]:[0,void 0]}));let a=l?e.floatValue:parseFloat(e.target.value.replace(/\D/g,""));n===Object.keys(J)[0]&&a>=0&&a<=(null==A?void 0:null===(i=A.totalMoney_consonance)||void 0===i?void 0:i.max)||n===Object.keys(J)[1]&&a>=0&&a<=(null==A?void 0:A.time_consonance.max)||n===Object.keys(J)[2]&&a>=0&&a<=(null==A?void 0:null===(o=A.interest_consonance)||void 0===o?void 0:o.max)?(L(e=>({...e,[n]:[0,a]})),l||(e.target.value=a.toLocaleString())):L(e=>{var t,l;return{...e,[n]:[0,n===Object.keys(J)[0]?null==A?void 0:null===(t=A.totalMoney_consonance)||void 0===t?void 0:t.max:n===Object.keys(J)[1]?null==A?void 0:A.time_consonance.max:n===Object.keys(J)[2]?null==A?void 0:null===(l=A.interest_consonance)||void 0===l?void 0:l.max:null]}})},[null==A?void 0:null===(n=A.interest_consonance)||void 0===n?void 0:n.max,null==A?void 0:null===(t=A.totalMoney_consonance)||void 0===t?void 0:t.max,null==A?void 0:A.time_consonance.max,J]),et=(0,r.useCallback)((e,n,t,l)=>{var i,o,a;if(l?!e.floatValue:!e.target.value)return H(e=>({...e,[n]:[0,void 0]}));let s=l?e.floatValue:parseFloat(e.target.value.replace(/\D/g,""));n===Object.keys(z)[0]&&s>=0&&s<=(null==A?void 0:null===(i=A.totalGoal_dissonance)||void 0===i?void 0:i.max)||n===Object.keys(z)[1]&&s>=0&&s<=(null==A?void 0:null===(o=A.time_dissonance)||void 0===o?void 0:o.max)||n===Object.keys(z)[2]&&s>=0&&s<=(null==A?void 0:null===(a=A.interest_dissonance)||void 0===a?void 0:a.max)?(H(e=>({...e,[n]:[0,s]})),l||(e.target.value=s.toLocaleString())):H(e=>{var t,l,i;return{...e,[n]:[0,n===Object.keys(z)[0]?null==A?void 0:null===(t=A.totalGoal_dissonance)||void 0===t?void 0:t.max:n===Object.keys(z)[1]?null==A?void 0:null===(l=A.time_dissonance)||void 0===l?void 0:l.max:n===Object.keys(z)[2]?null==A?void 0:null===(i=A.interest_dissonance)||void 0===i?void 0:i.max:null]}})},[null==A?void 0:null===(s=A.interest_dissonance)||void 0===s?void 0:s.max,null==A?void 0:null===(h=A.totalGoal_dissonance)||void 0===h?void 0:h.max,null==A?void 0:null===(g=A.time_dissonance)||void 0===g?void 0:g.max,z]);return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{action:"",className:"form-ls",children:[(0,l.jsx)(o.Ph,{onChange:e=>B(null==e?void 0:e.key),title:K("methods_of_receiving_profits"),required:!0,choices:m,value:U,placeholder:U}),"proportional_interest_accumation"===U?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.U2,{title:null==A?void 0:null===(x=A.totalMoney_consonance)||void 0===x?void 0:x.title,require:"*",max:null==A?void 0:null===(p=A.totalMoney_consonance)||void 0===p?void 0:p.max,step:null==A?void 0:null===(_=A.totalMoney_consonance)||void 0===_?void 0:_.step,optionChoosed:J.totalSaving,setOptionChoosed:L,nameKey:Object.keys(J)[0],inputOnChange:en}),(0,l.jsx)(o.U2,{title:null==A?void 0:A.time_consonance.title,require:"*",max:null==A?void 0:A.time_consonance.max,step:null==A?void 0:A.time_consonance.step,unitStr:K("year"),optionChoosed:J.savingTerm,setOptionChoosed:L,nameKey:Object.keys(J)[1],inputOnChange:en}),(0,l.jsx)(o.U2,{title:null==A?void 0:A.interest_consonance.title,require:"*",max:null==A?void 0:null===(y=A.interest_consonance)||void 0===y?void 0:y.max,step:null==A?void 0:A.interest_consonance.step,unitStr:"%/".concat(K("year")),optionChoosed:J.savingInterestRate,setOptionChoosed:L,nameKey:Object.keys(J)[2],inputOnChange:en,beDecimal
1:!0}),(0,l.jsxs)("p",{style:{fontSize:"12px",fontWeight:400,lineHeight:"14px"},children:["Tham khảo l\xe3i suất ACB"," ",(0,l.jsx)("a",{style:{color:"#0070FF",textDecoration:"underline"},target:"_blank",rel:"noopener noreferrer",href:"/lai-suat-tien-gui",children:"tại đ\xe2y"})]}),(0,l.jsx)(i.DJ,{firstTitle:K("total_capital_after_value").replace("value",J.savingTerm[1])+((null==E?void 0:E.locale)==="en"&&J.savingTerm[1]>1?"s":""),firstValue:(0,a.Z)(Y.endingBalance),secondTitle:K("total_accumulated_money"),secondValue:(0,a.Z)(Y.principal),thirdTitle:K("total_profits"),thirdValue:(0,a.Z)(Y.totalInterestEarned)})]}):"inversed_interest_accumation"===U?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.U2,{title:null==A?void 0:null===(f=A.totalGoal_dissonance)||void 0===f?void 0:f.title,require:"*",max:null==A?void 0:null===(j=A.totalGoal_dissonance)||void 0===j?void 0:j.max,step:null==A?void 0:null===(k=A.totalGoal_dissonance)||void 0===k?void 0:k.step,optionChoosed:z.totalSaving,setOptionChoosed:H,nameKey:Object.keys(z)[0],inputOnChange:et}),(0,l.jsx)(o.U2,{title:null==A?void 0:null===(O=A.time_dissonance)||void 0===O?void 0:O.title,require:"*",max:null==A?void 0:null===(S=A.time_dissonance)||void 0===S?void 0:S.max,step:null==A?void 0:null===(b=A.time_dissonance)||void 0===b?void 0:b.step,unitStr:K("year"),optionChoosed:z.savingTerm,setOptionChoosed:H,nameKey:Object.keys(z)[1],inputOnChange:et}),(0,l.jsx)(o.U2,{title:null==A?void 0:null===(C=A.interest_dissonance)||void 0===C?void 0:C.title,require:"*",max:null==A?void 0:null===(T=A.interest_dissonance)||void 0===T?void 0:T.max,step:null==A?void 0:null===(I=A.interest_dissonance)||void 0===I?void 0:I.step,unitStr:"%/".concat(K("year")),optionChoosed:z.savingInterestRate,setOptionChoosed:H,nameKey:Object.keys(z)[2],inputOnChange:et,beDecimal:!0}),(0,l.jsxs)("p",{style:{fontSize:"12px",fontWeight:400,lineHeight:"14px"},children:["Tham khảo l\xe3i suất ACB"," ",(0,l.jsx)("a",{style:{color:"#0070FF",textDecoration:"underline"},target:"_blank",rel:"noopener noreferrer",href:"/lai-suat-tien-gui",children:"tại đ\xe2y"})]}),(0,l.jsx)(i.DJ,{firstTitle:"Số tiền g\xf3p h\xe0ng th\xe1ng",firstValue:(0,a.Z)(null==ee?void 0:ee.monthlyInstallment),secondTitle:"Tổng số tiền l\xe3i",secondValue:(0,a.Z)(null==ee?void 0:ee.totalInterestEarned),thirdTitle:"Tổng số tiền g\xf3p v\xe0 l\xe3i",thirdValue:(0,a.Z)(null==ee?void 0:ee.targetAmount)})]}):null,(0,l.jsxs)("div",{className:"wbtn",children:[(null==A?void 0:null===(w=A.linkSection)||void 0===w?void 0:w.link)&&(0,l.jsx)("div",{className:"first",children:(0,l.jsxs)(d(),{href:(null==A?void 0:null===(N=A.linkSection)||void 0===N?void 0:N.link)||"/",children:[" ",null==A?void 0:null===(M=A.linkSection)||void 0===M?void 0:M.title," ",(0,l.jsx)("i",{className:"icon-arrow "})]})}),(null==A?void 0:null===(V=A.downloadSection)||void 0===V?void 0:V.file)&&JSON.parse(null==A?void 0:null===(R=A.downloadSection)||void 0===R?void 0:R.file).length>0&&(0,l.jsx)("div",{className:"border",children:W?(0,l.jsx)("p",{children:K("downloading")}):(0,l.jsx)(v.Z,{path:(null==A?void 0:null===(D=A.downloadSection)||void 0===D?void 0:D.file)&&(null===(F=JSON.parse(null==A?void 0:null===(Z=A.downloadSection)||void 0===Z?void 0:Z.file)[0])||void 0===F?void 0:F.path),setLoading:P,fileName:null==A?void 0:null===(q=A.downloadSection)||void 0===q?void 0:q.title,children:(0,l.jsxs)("a",{href:"#",children:[null==A?void 0:null===(G=A.downloadSection)||void 0===G?void 0:G.title," ",(0,l.jsx)("i",{className:"icon-arrow "})]})})})]})]})})}},77313:function(e,n){let t=e=>isNaN(e)?0:e;n.Z=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.