{"version":3,"sources":["webpack:///./src/components/Calculators/HomeLoanCalculator.vue?c880","webpack:///./src/components/UI/Loader.vue?efd1","webpack:///./src/components/UI/Loader.vue","webpack:///./src/components/UI/Loader.vue?05d4","webpack:///./src/components/UI/Loader.vue?d4ac","webpack:///./src/views/Calculators.vue?3275","webpack:///./src/views/Calculators.vue?6617","webpack:///./src/views/Calculators.vue","webpack:///./src/views/Calculators.vue?af0a","webpack:///./src/views/Calculators.vue?5967","webpack:///./src/components/Calculators/HomeLoanCalculator.vue?662e","webpack:///./src/components/Calculators/HomeLoanCalculator.vue","webpack:///./src/components/Calculators/HomeLoanCalculator.vue?9c60","webpack:///./src/components/Calculators/HomeLoanCalculator.vue?a795","webpack:///./src/components/UI/Loader.vue?b05e","webpack:///./node_modules/client-website-ts-library/plugins/view/index.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","directives","name","rawName","value","expression","staticClass","staticRenderFns","component","attrs","_v","components","HomeLoanCalculator","loading","_e","staticStyle","hideAmount","domProps","on","$event","target","composing","principal","calculate","depositAmount","_m","loanTerm","interestRate","result","_s","amount","needsLMI","Calculators","GetHomeLoanConfig","then","config","InterestRate","rate","repayments","monthly","Math","max","ceil","toLocaleString","default","Loader","prolistAnalyticsService","ServiceManager","Get","Analytics","headService","Require","Head","evt","obj","getAnalyticsEvent","call","getAnalyticsData","$route","path","undefined","triggerAnalyticsEvent","event","GetAll","forEach","adapter","Record","head","bind","Promise","meta","Update","UpdateWithStatic","requestAnimationFrame","updateHead","updateAnalytics","$on"],"mappings":"kHAAA,W,oCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOT,EAAW,QAAEU,WAAW,YAAYC,YAAY,YACvMC,EAAkB,G,wECOD,EAArB,qJAAoC,QAEhC,yBADC,kB,8B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/FhE,KAAKiE,sBAAsBR,KAhB/B,mCAmBS,SAAsBS,GAC3Bf,EAAA,KAAegB,OAA0B,OAAYd,WAAWe,SAAQ,SAACC,GACvEA,EAAQC,OAAOJ,QArBrB,yCAyBS,SAA4BA,GACI,OAAjClE,KAAKkD,yBAAkClD,KAAKkD,wBAAwBoB,OAAOJ,KA1BnF,wBA6BY,WAAU,WAClB,GAAI,SAAUlE,KAAM,CAClB,IAAMgC,EAAShC,KAAKuE,KAAMC,KAAKxE,KAAhBA,GAEZgC,aAAkByC,QACnBzC,EAAOM,MAAK,SAACoC,GACX,EAAKpB,YAAYqB,OAAOD,MAG1B1E,KAAKsD,YAAYqB,OAAO3C,QAG1BhC,KAAKsD,YAAYsB,iBAAiB5E,KAAK8D,OAAOC,UAzCpD,GAAuB,cAAjB,EAAQ,yBADb,QACK,GA+CN,IAAM,EAAN,yKACS,WAAO,WACZc,uBAAsB,WACpB,EAAKC,aACL,EAAKC,yBAJX,GAAmB,GAAb,EAAI,yBADT,QACK,GAUN,IAAM,EAAN,yKACS,WAAO,WACZ/E,KAAKgF,IAAI,cAAc,WACrBH,uBAAsB,WACpB,EAAKC,aACL,EAAKC,4BALb,GAAwB,GAAlB,EAAS,yBADd,QACK,I","file":"js/chunk-f4490868.798df3c5.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HomeLoanCalculator.vue?vue&type=style&index=0&id=11dd9252&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loader\"})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\r\nimport { Component, Vue, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class Loader extends Vue {\r\n @Prop()\r\n private readonly loading!: boolean;\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loader.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loader.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Loader.vue?vue&type=template&id=b15215d2&scoped=true&\"\nimport script from \"./Loader.vue?vue&type=script&lang=ts&\"\nexport * from \"./Loader.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Loader.vue?vue&type=style&index=0&id=b15215d2&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b15215d2\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calculators.vue?vue&type=style&index=0&id=4f035776&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Page',[_c('SiteMasthead',{attrs:{\"mini\":\"true\",\"title\":\"Calculators\"}}),_c('ContentRow',[_c('ContentContainer',{staticClass:\"content-container\"},[_c('SectionTitle',[_vm._v(\"Calculators\")]),_c('iframe',{staticClass:\"iframe\",attrs:{\"referrerpolicy\":\"no-referrer\",\"src\":\"https://www.bizztools.net/2015/qccu/bizztools2015_hmcib.php\",\"frameborder\":\"0\",\"height\":\"100%\",\"width\":\"100%\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\nimport { View } from 'client-website-ts-library/plugins';\r\n\r\nimport HomeLoanCalculator from '@/components/Calculators/HomeLoanCalculator.vue';\r\n\r\n@Component({\r\n components: {\r\n HomeLoanCalculator,\r\n },\r\n})\r\nexport default class Calculators extends Mixins(View) {\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calculators.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calculators.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Calculators.vue?vue&type=template&id=4f035776&scoped=true&\"\nimport script from \"./Calculators.vue?vue&type=script&lang=ts&\"\nexport * from \"./Calculators.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Calculators.vue?vue&type=style&index=0&id=4f035776&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4f035776\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"home-loan-calculator\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.loading)?_c('div',{staticClass:\"home-loan-calculator__loading\"},[_c('Loader',{attrs:{\"loading\":_vm.loading}})],1):_vm._e()]),_c('div',{staticClass:\"home-loan-calculator__fields\",staticStyle:{\"--underline-inactive\":\"#eee\"}},[(!_vm.hideAmount)?_c('div',{staticClass:\"form-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.principal),expression:\"principal\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"type\":\"number\",\"step\":\"1\",\"min\":\"50000\",\"placeholder\":\"E.g. 500,000\"},domProps:{\"value\":(_vm.principal)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.principal=$event.target.value},_vm.calculate]}}),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Property Price ($)\")])]):_vm._e(),_c('div',{staticClass:\"form-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.depositAmount),expression:\"depositAmount\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"type\":\"number\",\"step\":\"1\",\"min\":\"0\",\"placeholder\":\"E.g. 100,000\"},domProps:{\"value\":(_vm.depositAmount)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.depositAmount=$event.target.value},_vm.calculate]}}),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Deposit Amount ($)\")])]),(_vm.needsLMI)?_c('div',{staticClass:\"alert\"},[_c('Icon',{staticClass:\"alert__icon\",attrs:{\"icon\":\"info\",\"colour\":\"white\"}}),_vm._m(0)],1):_vm._e(),_c('div',{staticClass:\"form-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.loanTerm),expression:\"loanTerm\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"type\":\"number\",\"step\":\"1\",\"min\":\"1\",\"placeholder\":\"E.g. 30\"},domProps:{\"value\":(_vm.loanTerm)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.loanTerm=$event.target.value},_vm.calculate]}}),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Loan Term (years)\")])]),_c('div',{staticClass:\"form-field\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.interestRate),expression:\"interestRate\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"type\":\"number\",\"step\":\"0.01\",\"min\":\"0.01\",\"placeholder\":\"E.g. 2.9\"},domProps:{\"value\":(_vm.interestRate)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.interestRate=$event.target.value},_vm.calculate]}}),_c('label',{staticClass:\"form-field__label\"},[_vm._v(\"Interest Rate (% PA)\")])])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.result.length),expression:\"result.length\"}],staticClass:\"home-loan-calculator__result\"},[_c('div',{staticClass:\"home-loan-calculator__result__value\"},[_c('div',{staticClass:\"home-loan-calculator__result__value__content\"},[_vm._v(_vm._s(_vm.result))]),_c('div',{staticClass:\"home-loan-calculator__result__value__unit\"},[_vm._v(\"per month est.\")])])])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:\"alert__content\"},[_vm._v(\" Based on your deposit amount, you may need to take out \"),_c('a',{attrs:{\"href\":\"https://moneysmart.gov.au/glossary/lenders-mortgage-insurance-lmi\",\"target\":\"_blank\",\"rel\":\"nofollow\"}},[_vm._v(\"LMI\")]),_vm._v(\". \")])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { API } from 'client-website-ts-library/services';\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport Loader from '../UI/Loader.vue';\r\n\r\n@Component({\r\n components: {\r\n Loader,\r\n },\r\n})\r\nexport default class HomeLoanCalculator extends Vue {\r\n @Prop()\r\n private readonly hideAmount!: boolean;\r\n\r\n @Prop({ default: 500000 })\r\n private readonly amount!: number;\r\n\r\n private principal = this.amount;\r\n\r\n private depositAmount = this.amount * 0.2;\r\n\r\n private loanTerm = 30;\r\n\r\n private interestRate = 0;\r\n\r\n private loading = true;\r\n\r\n private result = '';\r\n\r\n private needsLMI = false;\r\n\r\n mounted() {\r\n API.Calculators.GetHomeLoanConfig().then((config) => {\r\n this.interestRate = config.InterestRate;\r\n\r\n this.loading = false;\r\n\r\n this.calculate();\r\n });\r\n }\r\n\r\n calculate() {\r\n const rate = (this.interestRate / 12) / 100;\r\n const repayments = this.loanTerm * 12;\r\n\r\n const principal = this.principal - this.depositAmount;\r\n\r\n this.needsLMI = this.depositAmount / this.principal < 0.2;\r\n\r\n const monthly = Math.max(0, principal / (((1 + rate) ** repayments - 1) / (rate * (1 + rate) ** repayments)));\r\n\r\n this.result = `$${Math.ceil(monthly).toLocaleString()}`;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HomeLoanCalculator.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HomeLoanCalculator.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./HomeLoanCalculator.vue?vue&type=template&id=11dd9252&scoped=true&\"\nimport script from \"./HomeLoanCalculator.vue?vue&type=script&lang=ts&\"\nexport * from \"./HomeLoanCalculator.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./HomeLoanCalculator.vue?vue&type=style&index=0&id=11dd9252&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"11dd9252\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loader.vue?vue&type=style&index=0&id=b15215d2&scoped=true&lang=css&\"","import Vue from \"vue\";\r\nimport { Component } from \"vue-property-decorator\";\r\nimport { AnalyticsEvent, AnalyticsEventObject, AnalyticsPageView, IAnalyticsAdapter, PROListAnalyticsAdapter } from \"../../services/Analytics\";\r\nimport { HeadService } from \"../../services/HeadService\";\r\nimport { ServiceManager, ServiceType } from \"../../services/ServiceManager\";\r\nimport { RouteMeta } from \"../meta\";\r\n\r\ninterface ViewBase {\r\n getAnalyticsEvent?(): AnalyticsEvent | null;\r\n getAnalyticsData?(): AnalyticsEventObject | null;\r\n head?(): RouteMeta | Promise | null;\r\n}\r\n\r\n@Component\r\nclass ViewBase extends Vue {\r\n protected prolistAnalyticsService = ServiceManager.Get(ServiceType.Analytics, 'PROListAnalyticsAdapter');\r\n protected headService = ServiceManager.Require(ServiceType.Head)!;\r\n\r\n public updateAnalytics() {\r\n let evt: AnalyticsEvent | null = null;\r\n let obj: AnalyticsEventObject | null = null;\r\n\r\n if (typeof this.getAnalyticsEvent !== 'undefined') {\r\n evt = this.getAnalyticsEvent.call(this);\r\n } else if(typeof this.getAnalyticsData !== 'undefined') {\r\n obj = this.getAnalyticsData.call(this);\r\n }\r\n\r\n if (evt === null) evt = new AnalyticsPageView(this.$route.path, this.$route.name || '', obj || undefined);\r\n\r\n this.triggerAnalyticsEvent(evt);\r\n }\r\n\r\n public triggerAnalyticsEvent(event: AnalyticsEvent) {\r\n ServiceManager.GetAll(ServiceType.Analytics).forEach((adapter) => {\r\n adapter.Record(event);\r\n });\r\n }\r\n\r\n public triggerCustomAnalyticsEvent(event: AnalyticsEvent) {\r\n if (this.prolistAnalyticsService !== null) this.prolistAnalyticsService.Record(event);\r\n }\r\n\r\n protected updateHead() {\r\n if ('head' in this) {\r\n const result = this.head!.bind(this)();\r\n\r\n if(result instanceof Promise) {\r\n result.then((meta: RouteMeta | null) => {\r\n this.headService.Update(meta);\r\n });\r\n } else {\r\n this.headService.Update(result as RouteMeta | null);\r\n }\r\n } else {\r\n this.headService.UpdateWithStatic(this.$route.path);\r\n }\r\n }\r\n}\r\n\r\n@Component\r\nclass View extends ViewBase {\r\n public mounted() {\r\n requestAnimationFrame(() => {\r\n this.updateHead();\r\n this.updateAnalytics();\r\n });\r\n }\r\n}\r\n\r\n@Component\r\nclass AsyncView extends ViewBase {\r\n public mounted() {\r\n this.$on('updateView', () => {\r\n requestAnimationFrame(() => {\r\n this.updateHead();\r\n this.updateAnalytics();\r\n });\r\n });\r\n }\r\n}\r\n\r\nexport {\r\n View,\r\n AsyncView\r\n}\r\n"],"sourceRoot":""}