{"version":3,"sources":["webpack:///./src/shared/utilities/screenSize.js","webpack:///./src/shared/utilities/when-in-view.js","webpack:///./node_modules/process/browser.js","webpack:///./src/components/organisms/investment-calculator/graph-util.js","webpack:///./src/components/organisms/investment-calculator/investment-calculator.js","webpack:///./src/shared/utilities/debounce.js","webpack:///./src/shared/utilities/pubsub.js","webpack:///./src/framework/base/base.js","webpack:///./src/shared/utilities/case.ts","webpack:///./src/shared/utilities/id.ts","webpack:///./src/shared/utilities/show-hide.ts"],"names":["defaultWidths","sm","md","lg","xl","getBreakpoint","window","getComputedStyle","document","querySelector","getPropertyValue","replace","screenSmallerThan","size","widths","arguments","length","undefined","Object","prototype","hasOwnProperty","call","Error","concat","keys","join","innerWidth","screenGreatOrEqualTo","whenInView","elm","options","threshold","Promise","acc","then","obs","IntersectionObserver","entries","isIntersecting","intersectionRatio","disconnect","observe","cachedSetTimeout","cachedClearTimeout","process","module","exports","defaultSetTimout","defaultClearTimeout","runTimeout","fun","setTimeout","e","this","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","timeout","len","run","marker","runClearTimeout","Item","array","noop","nextTick","args","Array","i","push","apply","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","name","binding","cwd","chdir","dir","umask","getFormatedAmount","amount","locale","currency","format","Intl","NumberFormat","getTickInterval","maxReturnVal","yAxisTicks","d","restArr","_toConsumableArray","map","val","Math","round","getSpaceValues","isMobileView","marginLeft","marginRight","marginTop","marginBottom","updateTooltipPosition","chart","lw","x","y","yPos","hoverPoints","plotY","xPos","plotX","getXAxisCategories","yearsCount","currentYear","tickPos","xAxisInterval","ceil","maxYearValue","Number","year","diff","lastValue","getChartOptions","propsForGraph","returnValuesArray","totalDepositArray","isRTL","chartTextValues","colors","chartConstants","_getSpaceValues","categories","currencyUnit","culture","splice","today","spacingRight","spacingLeft","spacingTop","spacingBottom","backgroundColor","text","subtitle","tooltip","shared","useHTML","shadow","borderRadius","borderWidth","borderColor","style","zIndex","positioner","formatter","points","yAxis","opposite","gridLineWidth","tickPositions","enabled","labels","value","xAxis","lineColor","reversed","autoRotation","rotation","plotLines","dashStyle","legend","credits","plotOptions","area","stacking","states","inactive","opacity","series","pointPlacement","symbol","fillColor","hover","radius","responsive","rules","condition","maxWidth","chartOptions","height","chartHeight","spacing","color","returnsColor","data","id","type","depositColor","getUpdatedChartOptions","_getSpaceValues2","fetchChartTextValues","dataset","textToday","textYear","yearTextTooltip","textYearTooltip","Date","getFullYear","tooltipMaxWidth","InvestmentCalculator","_BaseBehavior","element","_this","_classCallCheck","_callSuper","initDomCache","addEventListeners","initValues","fetchChartData","formatInitalAndMonthlyAmount","loadAndRenderChart","_inherits","key","_this2","Highcharts","initChart","catch","console","error","graphUtil","dom","yearInput","returnValues","totalDeposit","graph","amountString","reverseFormatNumber","startingAmount","initialAmount","monthlyAmount","returnRate","rateInput","timeHorizon","dataLayerEvent","event","calculatorInfo","investmentCurrency","adobeDataLayer","match","elem","isValidValue","hideElement","nextElementSibling","_this3","lastRate","lastYear","debouncedInputHandler","debounce","updateCalculator","pushCalculatorDetailsForTracking","addEventListener","hideValidationMessages","changeRate","changeYear","evt","checkForDigitsLimit","target","formatWithType","form","preventDefault","self","parseInt","isNaN","showElement","slice","updateChart","resetToNumberFromAmount","update","stringNumber","thousandSeparator","decimalSeparator","parseFloat","RegExp","changeNumberToText","rateValue","textContent","yearValue","chartBackgroundColor","returnsGraphColor","depositGraphColor","yaxisTicks","chartData","computeValues","updateTextContent","DepositValues","returnedValue","_this$element$dataset","totalSavingValue","totalSavings","totalDeposits","periodicReturnRate","pow","monthlyReturn","getReturn","returnAmountForInitialAmount","rate","n","BaseBehavior","func","wait","immediate","_len","_key","later","callNow","pubsub","PubSub","subscriptions","topic","_step","_iterator","_createForOfIteratorHelper","s","done","fn","err","f","forEach","index","state","events","behaviorName","camelCaseToDashCase","getAttribute","instanceId","generateId","attachInstanceId","partialState","_objectSpread","setAttribute","removeAttribute","from","querySelectorAll","filter","el","closest","ref","dashCaseToCamelCase","split","delay","breakpoint","publish","debouncedGetBreakpoint","newBreakPoint","useCapture","removeEventListener","obj","subscribe","unsubscribe","navigation","getBoundingClientRect","bottom","scrollY","scroll","reason","promise","log","str","toLowerCase","chr","toUpperCase","alphabet","charAt","floor","random","classList","add","remove"],"mappings":"+FAAA,sGAAO,IAAMA,EAAgB,CAC5BC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJC,GAAI,MAIQC,EAAgB,WAAH,OACzBC,OACEC,iBAAiBC,SAASC,cAAc,QAAS,WACjDC,iBAAiB,WACjBC,QAAQ,KAAM,KAGV,SAASC,EAAkBC,GAA8B,IAAxBC,EAAMC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGf,EAChD,IAAKkB,OAAOC,UAAUC,eAAeC,KAAKP,EAAQD,GACjD,MAAM,IAAIS,MAAM,wBAADC,OAAyBL,OAAOM,KAAKV,GAAQW,KAAK,QAElE,OAAOnB,OAAOoB,WAAaZ,EAAOD,GAG5B,SAASc,EAAqBd,GAA8B,IAAxBC,EAAMC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGf,EACnD,IAAKkB,OAAOC,UAAUC,eAAeC,KAAKP,EAAQD,GACjD,MAAM,IAAIS,MAAM,wBAADC,OAAyBL,OAAOM,KAAKV,GAAQW,KAAK,QAElE,OAAOnB,OAAOoB,YAAcZ,EAAOD,K,iCC1B7B,SAASe,EAAWC,GAAiC,IAA5BC,EAAOf,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAEgB,UAAW,GACtD,OAAO,IAAIC,SAAQ,SAAAC,GAClB,kCAAgCC,MAAK,WACpC,IAAMC,EAAM,IAAIC,sBAAqB,SAAAC,GAChCA,EAAQ,GAAGC,gBAAkBD,EAAQ,GAAGE,mBAAqBT,EAAQC,YACxEE,IACAE,EAAIK,gBAEHV,GACHK,EAAIM,QAA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getBreakpoint = () =>\r\n\twindow\r\n\t\t.getComputedStyle(document.querySelector('body'), ':before')\r\n\t\t.getPropertyValue('content')\r\n\t\t.replace(/\"/g, '');\r\n\r\n// function :: String -> ?Object -> Boolean\r\nexport function screenSmallerThan(size, widths = defaultWidths) {\r\n\tif (!Object.prototype.hasOwnProperty.call(widths, size)) {\r\n\t\tthrow new Error(`size must be one of: ${Object.keys(widths).join(', ')}`);\r\n\t}\r\n\treturn window.innerWidth < widths[size];\r\n}\r\n\r\nexport function screenGreatOrEqualTo(size, widths = defaultWidths) {\r\n\tif (!Object.prototype.hasOwnProperty.call(widths, size)) {\r\n\t\tthrow new Error(`size must be one of: ${Object.keys(widths).join(', ')}`);\r\n\t}\r\n\treturn window.innerWidth >= widths[size];\r\n}\r\n","export function whenInView(elm, options = { threshold: 0 }) {\r\n\treturn new Promise(acc => {\r\n\t\timport('intersection-observer').then(() => {\r\n\t\t\tconst obs = new IntersectionObserver(entries => {\r\n\t\t\t\tif (entries[0].isIntersecting && entries[0].intersectionRatio >= options.threshold) {\r\n\t\t\t\t\tacc();\r\n\t\t\t\t\tobs.disconnect();\r\n\t\t\t\t}\r\n\t\t\t}, options);\r\n\t\t\tobs.observe(elm);\r\n\t\t});\r\n\t});\r\n}\r\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","import { screenSmallerThan } from '../../../shared/utilities/screenSize';\r\n\r\nexport function getFormatedAmount(amount, locale, currency) {\r\n\tconst format = Intl.NumberFormat(locale);\r\n\treturn currency ? `${format.format(amount)} ${currency}` : `${format.format(amount)}`;\r\n}\r\n\r\nfunction getTickInterval(maxReturnVal, yAxisTicks) {\r\n\tconst lastVal = maxReturnVal;\r\n\tconst denominator = yAxisTicks && yAxisTicks - 2 > 0 ? yAxisTicks - 1 : 2;\r\n\tconst d = lastVal / denominator;\r\n\tconst restArr = [...Array(yAxisTicks)].map((val, i) => Math.round(i * d));\r\n\treturn [...restArr];\r\n}\r\n\r\nexport function getSpaceValues() {\r\n\tconst isMobileView = screenSmallerThan('md');\r\n\tconst marginRight = isMobileView ? 10 : 64;\r\n\tconst marginLeft = isMobileView ? 10 : 64;\r\n\tconst marginTop = isMobileView ? 10 : 40;\r\n\tconst marginBottom = isMobileView ? 0 : 64;\r\n\treturn { marginLeft, marginRight, marginTop, marginBottom };\r\n}\r\n\r\nexport function updateTooltipPosition(chart, lw) {\r\n\tif (screenSmallerThan('md')) {\r\n\t\treturn { x: 0, y: 10 };\r\n\t}\r\n\tconst yPos = chart.hoverPoints[0].plotY;\r\n\tlet xPos = chart.hoverPoints[0].plotX;\r\n\tif (xPos > 400) {\r\n\t\txPos -= (3 * lw) / 4; // to shift tooltip to left side of marker\r\n\t} else {\r\n\t\txPos += 80; // tooltip in right side of marker\r\n\t}\r\n\r\n\treturn {\r\n\t\tx: xPos,\r\n\t\ty: yPos\r\n\t};\r\n}\r\n\r\nexport function getXAxisCategories(yearsCount, currentYear) {\r\n\tconst tickPos = [];\r\n\tconst xAxisInterval = Math.ceil(+yearsCount / 5);\r\n\tconst maxYearValue = currentYear + Number(yearsCount);\r\n\tlet year = currentYear;\r\n\tlet i = 0;\r\n\twhile (year < maxYearValue) {\r\n\t\tif (i !== 0) {\r\n\t\t\ttickPos.push(tickPos[i - 1] + xAxisInterval);\r\n\t\t} else {\r\n\t\t\ttickPos.push(0);\r\n\t\t}\r\n\t\tyear += xAxisInterval;\r\n\t\t++i;\r\n\t}\r\n\tif (year === maxYearValue) {\r\n\t\ttickPos.push(tickPos[i - 1] + xAxisInterval);\r\n\t} else {\r\n\t\tconst diff = year - maxYearValue;\r\n\t\tconst lastValue = tickPos[i - 1] + xAxisInterval - diff;\r\n\t\t// if last label and second last label are far enough\r\n\t\tif (lastValue - tickPos[i - 1] < xAxisInterval / 2) {\r\n\t\t\ttickPos[i - 1] = lastValue;\r\n\t\t} else {\r\n\t\t\ttickPos.push(lastValue);\r\n\t\t}\r\n\t}\r\n\treturn tickPos;\r\n}\r\n\r\nexport function getChartOptions(\r\n\tpropsForGraph,\r\n\tcurrentYear,\r\n\tyearsCount,\r\n\treturnValuesArray,\r\n\ttotalDepositArray,\r\n\tisRTL\r\n) {\r\n\tconst { chartTextValues, yAxisTicks, colors, chartConstants } = propsForGraph;\r\n\tconst { marginLeft, marginRight, marginTop, marginBottom } = getSpaceValues();\r\n\r\n\tconst categories = [...Array(Number(yearsCount) + 1).keys()].map(x => x + currentYear);\r\n\tconst currency = chartTextValues.currencyUnit;\r\n\tconst locale = chartTextValues.culture;\r\n\tconst tickPos = getTickInterval(returnValuesArray[returnValuesArray.length - 1], yAxisTicks);\r\n\tcategories.splice(0, 1, chartTextValues.today);\r\n\treturn {\r\n\t\tchart: {\r\n\t\t\tspacingRight: marginRight,\r\n\t\t\tspacingLeft: marginLeft,\r\n\t\t\tspacingTop: marginTop,\r\n\t\t\tspacingBottom: marginBottom,\r\n\t\t\tbackgroundColor: '#E7EEFF'\r\n\t\t},\r\n\t\ttitle: {\r\n\t\t\ttext: null\r\n\t\t},\r\n\r\n\t\tsubtitle: {\r\n\t\t\ttext: null\r\n\t\t},\r\n\t\ttooltip: {\r\n\t\t\tbackgroundColor: '#fff',\r\n\t\t\tshared: true,\r\n\t\t\tuseHTML: true,\r\n\t\t\tshadow: false,\r\n\t\t\tborderRadius: 4,\r\n\t\t\tborderWidth: 1,\r\n\t\t\tborderColor: '#ced3d8',\r\n\t\t\tstyle: {\r\n\t\t\t\tzIndex: 999999\r\n\t\t\t},\r\n\t\t\tpositioner(lw) {\r\n\t\t\t\treturn updateTooltipPosition(this.chart, lw);\r\n\t\t\t},\r\n\t\t\t/* eslint-disable prettier/prettier */\r\n\t\t\tformatter() {\t\t\t\t\r\n\t\t\t\treturn `\t\t\t\r\n\t\t\t\t