{"version":3,"file":"platform-fees-comparison-B9Icu0uK.js","sources":["../../../app/javascript/components/platforms/field-changed.js","../../../app/javascript/components/platforms/platform-fees-comparison.vue"],"sourcesContent":["import * as d3 from '~/app/custom-d3'\nimport growthForInvestment from '~/app/calculators/growth-for-investment'\n\nimport { find } from '~/app/utils/find'\n\nexport default function fieldChanged(guide) {\n\n // Growth\n if(guide.additionalDepositFrequency == 'month') {\n guide.additionalDepositTotal = guide.years * 12 * guide.additionalDeposit;\n guide.additionalDepositPeriods = 12\n } else if(guide.additionalDepositFrequency == 'year') {\n guide.additionalDepositTotal = guide.years * guide.additionalDeposit;\n guide.additionalDepositPeriods = 1\n } else {\n guide.additionalDepositTotal = 0;\n guide.additionalDepositPeriods = 0\n }\n var growthParams = {\n amount: guide.initialAmount,\n years: guide.years,\n growthRate: guide.growthRate,\n additionalDeposit: guide.additionalDeposit,\n depositFrequency: guide.additionalDepositPeriods\n }\n guide.growthDefault = growthForInvestment(growthParams)\n guide.endValue = guide.growthDefault[guide.growthDefault.length-1].amount\n guide.totalGrowth = guide.endValue - guide.initialAmount - guide.additionalDepositTotal;\n\n var platforms = ['A']\n if(guide.platformNameB != null) { platforms.push('B') }\n\n platforms.forEach((platform) => {\n // growthA: Total Growth over time\n guide[`growth${platform}`] = growthForInvestment({...growthParams, ...{\n callback: guide[`platformFee${platform}`]\n }})\n\n // endValueA:- The end value\n guide[`endValue${platform}`] = guide[`growth${platform}`][guide[`growth${platform}`].length-1].amount\n\n // totalGrowthA:- The total value at the end is the last element in the array\n guide[`totalGrowth${platform}`] = guide[`endValue${platform}`] - guide.initialAmount - guide.additionalDepositTotal\n\n // platformFeesA: Fees - Total Amount Paid\n guide[`platformFees${platform}`] = guide.endValue - guide[`endValue${platform}`]\n\n // platformFeePercentA: Fees - Percent lost to fees\n guide[`platformFeePercent${platform}`] = guide[`platformFees${platform}`] / (guide.totalGrowth - guide.initialAmount);\n })\n\n\n // Calculate how many more years it would take for\n if(guide.platformNameB != null) {\n var platform = 'B'\n var futureGrowth = growthForInvestment({...growthParams, ...{\n years: 200,\n callback: guide[`platformFee${platform}`]\n }})\n\n var yearMaxB = find(futureGrowth, (quote) => quote.amount > guide.endValueA)\n guide.extraYears = yearMaxB ? (yearMaxB.year - guide.years) : 200\n } else {\n var futureGrowth = growthForInvestment({...growthParams, ...{\n years: 200\n }})\n\n var yearMaxDefault = find(futureGrowth, (quote) => quote.amount > guide.endValueA)\n guide.extraYears = yearMaxDefault ? (guide.years - yearMaxDefault.year) : 200\n }\n\n return guide;\n}\n","\n\n\n\n"],"names":["guide","growthParams","platforms","platform","futureGrowth","yearMaxB","quote","yearMaxDefault","TempManager","_openBlock","_createElementBlock","_createElementVNode","_cache","_createTextVNode","_directive_spark","$data","_createCommentVNode","$props","_createBlock","_component_graph_investment_fees","_toDisplayString","$options","_withModifiers","$event","_withDirectives","_Fragment","_renderList","value","index"],"mappings":"kqBAKe,SAAS,aAAaA,EAAO,CAGvCA,EAAM,4BAA8B,SACrCA,EAAM,uBAAyBA,EAAM,MAAQ,GAAKA,EAAM,kBACxDA,EAAM,yBAA2B,IACzBA,EAAM,4BAA8B,QAC5CA,EAAM,uBAAyBA,EAAM,MAAQA,EAAM,kBACnDA,EAAM,yBAA2B,IAEjCA,EAAM,uBAAyB,EAC/BA,EAAM,yBAA2B,GAEnC,IAAIC,EAAe,CACjB,OAAQD,EAAM,cACd,MAAOA,EAAM,MACb,WAAYA,EAAM,WAClB,kBAAmBA,EAAM,kBACzB,iBAAkBA,EAAM,wBAC5B,EACEA,EAAM,cAAgB,oBAAoBC,CAAY,EACtDD,EAAM,SAAWA,EAAM,cAAcA,EAAM,cAAc,OAAO,CAAC,EAAE,OACnEA,EAAM,YAAcA,EAAM,SAAWA,EAAM,cAAgBA,EAAM,uBAEjE,IAAIE,EAAY,CAAC,GAAG,EAwBpB,GAvBGF,EAAM,eAAiB,MAAQE,EAAU,KAAK,GAAG,EAEpDA,EAAU,QAASC,GAAa,CAE9BH,EAAM,SAASG,C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