There are no tax savings by contributing to your spouse\'s super
\n
\n
\n'}function c(e,t){var r="",i;return r+='\n
\n
\n
Or you could contribute to your spouse\'s super
\n
\n Additional Contribution to Super\n ',(i=n.partnerMaxCoContribution)?i=i.call(e,{hash:{},data:t}):(i=e.partnerMaxCoContribution,i=typeof i===u?i.apply(e):i),r+=a(i)+'\n \n
\n
\n Difference in take home pay\n ',(i=n.partnerDifferenceInYourTaxHomePay)?i=i.call(e,{hash:{},data:t}):(i=e.partnerDifferenceInYourTaxHomePay,i=typeof i===u?i.apply(e):i),r+=a(i)+'\n \n
\n
\n Savings in income tax\n ',(i=n.partnerSavingsInIncomeTax)?i=i.call(e,{hash:{},data:t}):(i=e.partnerSavingsInIncomeTax,i=typeof i===u?i.apply(e):i),r+=a(i)+'\n \n
\n",s}),this.HandlebarsTemplates["radiogroup-input"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["selectmenu-templates"]=Handlebars.template(function(e,t,n,r,i){function h(e,t){var r="",i;r+='\n \n",r}function p(e,t){var i="",s;i+="\n ",s=a.invokePartial(r._tooltip,"_tooltip",e,n,r,t);if(s||s===0)i+=s;return i+="\n ",i}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),r=this.merge(r,e.partials),i=i||{};var s="",o,u,a=this,f="function",l=this.escapeExpression,c=n.blockHelperMissing;u={hash:{},inverse:a.noop,fn:a.program(1,h,i),data:i},(o=n.templateData)?o=o.call(t,u):(o=t.templateData,o=typeof o===f?o.apply(t):o),n.templateData||(o=c.call(t,o,u));if(o||o===0)s+=o;s+="\n\n",o=a.invokePartial(r["_select-control"],"_select-control",t,n,r,i);if(o||o===0)s+=o;return s+='\n\n\n',s}),this.HandlebarsTemplates["selectmenu-templates"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["slider-input-templates"]=Handlebars.template(function(e,t,n,r,i){function h(e,t){var r="",i;r+='\n \n \n',r}function p(e,t){var i="",s;i+="\n ",s=a.invokePartial(r._tooltip,"_tooltip",e,n,r,t);if(s||s===0)i+=s;return i+="\n ",i}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),r=this.merge(r,e.partials),i=
i||{};var s="",o,u,a=this,f="function",l=this.escapeExpression,c=n.blockHelperMissing;u={hash:{},inverse:a.noop,fn:a.program(1,h,i),data:i},(o=n.templateData)?o=o.call(t,u):(o=t.templateData,o=typeof o===f?o.apply(t):o),n.templateData||(o=c.call(t,o,u));if(o||o===0)s+=o;return s+='\n\n',s}),this.HandlebarsTemplates["slider-input-templates"]}.call(this),function(){return this.HandlebarsTemplates||(this.HandlebarsTemplates={}),this.HandlebarsTemplates["standard-input-templates"]=Handlebars.template(function(e,t,n,r,i){function h(e,t){var r="",i;return r+='\n\n= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u,a="function",f=this.escapeExpression,l=this,c=n.blockHelperMissing;u={hash:{},inverse:l.noop,fn:l.program(1,h,i),data:i},(o=n.templateData)?o=o.call(t,u):(o=t.templateData,o=typeof o===a?o.apply(t):o),n.templateData||(o=c.call(t,o,u));if(o||o===0)s+=o;return s+='" name="',(o=n.name)?o=o.call(t,{hash:{},data:i}):(o=t.name,o=typeof o===a?o.apply(t):o),s+=f(o)+'" maxlength="'+f((o=(o=(o=t.controlData,o==null||o===!1?o:o.inputData),o==null||o===!1?o:o.maxlength),typeof o===a?o.apply(t):o))+'" class="range standard-input" type="text">\n\n',s}),this.HandlebarsTemplates["standard-input-templates"]}.call(this),function(e){var t=gbst.namespace("incometax");t.IncomeTaxManager=function(){this.loadFile=function(t){var n=null;return t&&(n=e.ajax({type:"GET",url:t,cache:!1,dataType:"xml",error:function(){}})),n},this.parseRawData=function(t){var n=e.xml2json(t);return n},this.calculateNetIncome=function(e,t){var n=e,r=0,i=e,s=0,o=0,u=0,a=0;while(r0){var f=t[r],l=f.lowerBound,c=f.upperBound,h=f.taxRate,p=l-a,d=c-a;i>=d&&d>-1?(u=d,i-=d):(u=i,i=0),o=u*h,s+=o,a=c,r++}var v=n-s,m={totalAnnualTax:s,netAnnualIncome:v};return m}}}(jQuery),function(e){var t=gbst.namespace("stampduty"),n="nsw",r="qld",i="vic",s="sa",o="wa",u="nt",a="act",f="tas",l="i",c="i-fh",h="ppr",p="ppr-fh";t.StampDutyManager=function(){this.stampDutyData=null,this.loadFile=function(t){var n=null;return t&&(n=e.ajax({type:"GET",url:t,cache:!1,dataType:"xml",error:function(){}})),n},this.parseRawData=function(t){var n=e.xml2json(t);return n},this.calculateStampDutyResults=function(e,t){this.stampDutyData=t;var n=e.stateId,s=this.getStampDutyStateVO(n),o=this.calculateLandTransferFee(e,s),a=parseFloat(s.mortgage_registration_fee.fee,10),f=s.notes,l=null;n==r?l=this.handleQLDStampDuty(e,s):n==u?l=this.handleNTStampDuty(e,s):l=this.handleStampDuty(e,s),n==i&&(o=Math.ceil(o));var c=o+a+l,h={landTransferFee:o,mortgageRegistrationFee:a,stampDuty:l,total:c,notes:f};return h},this.getStampDutyStateVO=function(e){var t=this.stampDutyData.state,n=t.length;for(var r=0;rs)continue;n=a,o=!0;break}return o||console.log("No valid threshold found for initialValue='"+e+"', thresholdList='"+t+"'"),n},this.getPreviousUpperBound=function(e,t){var n=0;if(e>0){var r=t[e-1];n=parseFloat(r.upperBound,10)}return n},this.calculateThresholdValue=function(e,t,n,r){var i=e,s=e,o=0,u=0,a=n.fee,f=a?parseFloat(a,10):0,l=parseFloat(n.extra,10),c=parseFloat(n.per,10),h=n.partThereOf=="false",p=n.subtract,d=p?parseFloat(p,10):0,v=n.min,m=v?parseFloat(v,10):0,g=n.max,y=g?parseFloat(g,10):Number.POSITIVE_INFINITY,b=n.appliedToTotal=="true";return l>0&&c>0&&(isNaN(r)&&(r=i),b||(r=i-t,h?r-=r%c:r=c*Math.ceil(r/c)),u=r*l/c),o=f,o+=u,o-=d,o=Math.max(m,Math.min(y,o)),o},this.handleQLDStampDuty=function(e,t){var n,r=e.propertyValue,i=e.propertyType;if(i==p){var s=h,o=this.calculateStampDuty(r,s,t),u=this.getThresholdsByPropertyType(t,i);n=this.getThresholdValue(r,u,o)}else n=this.calculateStampDuty(r,i,t);return n},this.handleNTStampDuty=function(e,t){var n,r=e.propertyValue,i=e.propertyType,s=this.getThresholdsByPropertyType(t,i);return n=this.getNTThresholdValue(r,s),n},this.getNTThresholdValue=function(e,t){var n,r=this.getRelevantThresholdIndex(e,t),i=t[r],s=this.getPreviousUpperBound(r,t),o=i.constant,u=o?parseFloat(o,10):0,a=i.multiplier,f=a?parseFloat(a,10):0,l=i.divisor,c=l?parseFloat(l,10):0,h=!1;return h=!isNaN(u)&&!isNaN(f)&&!isNaN(c)&&c!=0,h?n=this.calculateNTThresholdValue(e,s,i):n=this.calculateThresholdValue(e,s,i),n},this.calculateNTThresholdValue=function(e,t,n){var r=0,i=0,s=n.fee,o=s?parseFloat(s,10):0,u=parseFloat(n.extra,10),a=parseFloat(n.per,10),f=n.partThereOf=="false",l=n.subtract,c=l?parseFloat(l,10):0,h=n.min,p=h?parseFloat(h,10):0,d=n.max,v=d?parseFloat(d,10):Number.POSITIVE_INFINITY,m=n.appliedToTotal=="true",g=n.constant,y=g?parseFloat(g,10):0,b=n.multiplier,w=b?parseFloat(b,10):0,E=n.divisor,S=E?parseFloat(E,10):0,x=e/S;return r=y*x*x+15*x,r-=c,r=Math.max(p,Math.min(v,r)),r},this.handleStampDuty=function(e,t){var n=e.propertyValue,r=e.propertyType,i=this.calculateStampDuty(n,r,t);return i},this.calculateStampDuty=function(e,t,n){var r,i=this.getThresholdsByPropertyType(n,t);return r=this.getThresholdValue(e,i),r},this.getThresholdsByPropertyType=function(t,n){var r=t.stamp_duty,i;if(r.length){var s=r.length;for(var o=0;o-1)return u.threshold}}else{i=r.type,i=i.split(", ");if(e.inArray(n,i)>-1)return r.threshold}return null}}}(jQuery),function(e){var t=gbst.namespace("gbst.loan.app.sassCalculator.translations");I18n.translations=I18n.translations||{},I18n.translations.en=t.en}(jQuery),function(e){Handlebars.registerHelper("I18n",function(e,t){var n=t;t&&t.hash&&(n=t.hash);var r="";return I18n?e!=null?r=I18n.t(e,n):r="Invalid 'str' value":r=e,r}),Handlebars.registerHelper("I18n-$",function(t,n){var r=n;n&&n.hash&&(r=n.hash);if(r.html){var i=I18n.t("number.currency.format.htmlFormat");e.extend(r,{format:i})}var s="";return I18n?t!=null?s=I18n.toCurrency(t,r):s="Invalid 'str' value":s=t,new Handlebars.SafeString(s)})}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.config.chart");t.getChartConfig=function(t,n){var r={parentId:"loan-chart",chart:{backgroundColor:"rgb(255,255,255)",type:"column",reflow:!0,renderTo:t,events:{load:n}},credits:{enabled:!1},legend:{enabled:!1},xAxis:{categories:["Before additional Personal contributions","After additional Personal contributions"]},yAxis:{min:0},plotOptions:{series:{stacking:"normal",pointRange:1},column:{pointPadding:.2,borderWidth:0}},title:{text:null}},i={yAxis:{title:{text:I18n.t("labels.chart.yAxis",{unit:I18n.t("number.currency.format.unit")})}},series:this.getChartSeries(),tooltip:{enabled:!0,useHTML:!0,formatter:function(){return this.series.name+":"+I18n.toCurrency(this.y,{precision:0})+""}}};return e.extend(!0,r,i),r},t.getChartSeries=function(){var e=I18n.t("theme.colors",{defaultValue:"undefined"});return e==="undefined"&&(e=I18n.t("colors")),[{id:"superContributionsBefore",name:I18n.t("labels.chart.superContributions"),borderWidth:0,color:I18n.t("labels.chart").superColor,shadow:!1},{id:"superContributionsAfter",name:I18n.t("labels.chart.takeHomePay"),borderWidth:0,color:I18n.t("labels.chart").takeHomePayColor,shadow:!1}]},t.tooltip={indicatorColor:"rgba(204, 204, 204, 0.3)",mouseOffsetX:5,mouseOffsetY:-30,touchOffsetX:0,touchOffsetY:-170}}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.model");t.ControlValues=Backbone.Model.extend({localStorage:null,defaults:{lengthMembership:-1,contributedPoint:-1,superannuationSalary:-1,currentAge:-1,currentContributionRate:-1,expectedRetirementAge:-1,additionalContribution:-1,maxContributions:-1,hasEmailFeature:!0,hasPoweredBy:!0},initialize:function(){window.localStorage&&(this.localStorage=new Store("gbst.loan.app.sassCalculator"))},parse:function(t){return e.isArray(t)&&t.length>0&&(t=_.first(t)),t}})}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.config"),n=gbst.module("gbst.loan.app.sassCalculator.model"),r=gbst.module("gbst.loan.shared.view");n.ControlsDeclaration=function(){return[{name:"lengthMembership",view:r.SliderView,templateId:"slider-input-templates",templateData:{title:"labels.controls.lengthMembership",controlId:gbst.util.getNewId(),hasInfo:!0,tooltipId:gbst.util.getNewId(),tooltipData:"t-date",imgHelpIcon:t.assetReferences.imgIconHelp},controlData:{sliderData:I18n.t("defaults.controls.lengthMembership")},formatter:function(e){var t=I18n.t("labels.controls.termFormat",{count:e});return t},parser:t.convertFn.numberConverter},{name:"contributedPoint",view:r.SliderView,templateId:"slider-input-templates",templateData:{controlId:gbst.util.getNewId(),title:"labels.controls.contributedPoint",hasInfo:!0,tooltipId:gbst.util.getNewId(),tooltipData:"t-points",imgHelpIcon:t.assetReferences.imgIconHelp},controlData:{sliderData:I18n.t("defaults.controls.contributedPoint")},formatter:t.convertFn.numberConverter_back,parser:t.convertFn.numberConverter},{name:"superannuationSalary",view:r.SliderView,templateId:"slider-input-templates",templateData:{controlId:gbst.util.getNewId(),title:"labels.controls.superannuationSalary",hasInfo:!0,tooltipId:gbst.util.getNewId(),tooltipData:"t-salary",imgHelpIcon:t.assetReferences.imgIconHelp},controlData:{sliderData:I18n.t("defaults.controls.superannuationSalary")},formatter:t.convertFn.moneyConverter_back,parser:t.convertFn.numberConverter},{name:"currentAge",view:r.SliderView,templateId:"slider-input-templates",templateData:{controlId:gbst.util.getNewId(),title:"labels.controls.currentAge",hasInfo:!1,tooltipId:gbst.util.getNewId(),tooltipData:I18n.t("tooltips.age"),imgHelpIcon:t.assetReferences.imgIconHelp},controlData:{sliderData:I18n.t("defaults.controls.currentAge")},formatter:t.convertFn.numberConverter_back,parser:t.convertFn.numberConverter},{name:"currentContributionRate",view:r.SliderView,templateId:"slider-input-templates",templateData:{controlId:gbst.util.getNewId(),title:"labels.controls.currentContributionRate",hasInfo:!0,tooltipId:gbst.util.getNewId(),tooltipData:"t-rate",imgHelpIcon:t.assetReferences.imgIconHelp},controlData:{sliderData:I18n.t("defaults.controls.currentContributionRate")},formatter:t.convertFn.interestConverter_back,parser:t.convertFn.interestConverter},{name:"expectedRetirementAge",view:r.SliderView,templateId:"slider-input-templates",templateData:{controlId:gbst.util.getNewId(),title:"labels.controls.expectedRetirementAge",hasInfo:!1,tooltipId:gbst.util.getNewId(),tooltipData:I18n.t("tooltips.partnerAge"),imgHelpIcon:t.assetReferences.imgIconHelp},controlData:{sliderData:I18n.t("defaults.controls.expectedRetirementAge")},formatter:t.convertFn.numberConverter_back,parser:t.convertFn.numberConverter},{name:"additionalContribution",view:r.SliderView,templateId:"slider-input-templates",templateData:{controlId:gbst.util.getNewId(),title:"labels.controls.additionalContribution",hasInfo:!0,tooltipId:gbst.util.getNewId(),tooltipData:I18n.t("tooltips").additonalContributionRate,imgHelpIcon:t.assetReferences.imgIconHelp},controlData:{sliderData:I18n.t("defaults.controls.additionalContribution")},formatter:t.convertFn.interestConverter_back,parser:t.convertFn.interestConverter}]}}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.model");t.LoanSummaryResult=function(){this.frequencyLabel="",this.pmt=0,this.totalInterestPaid=0,this.chartSummary=new t.ChartSummaryModel,this.amortizationSummary=[]},t.ChartSummaryModel=function(){this.potentialTaxConcessions=[],this.interestRemaining=[],this.rentalIncome=[],this.tooltipData=[]}}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.model");t.ResultsModel=Backbone.Model.extend({defaults:{additionalPreTaxContributions:-1,yourMaxCoContribution:-1,govCoContribution:-1,additionalSuperContributionsAfterTax:-1,differenceInYourNetIncome:-1,savingsInIncomeTax:-1}})}(jQuery);var pad=function(e,t){var n="0";e+="";while(e.length"+I18n.toCurrency(t.increaseInEFB,{precision:0})+"",i="The Dollar difference your points make",s="Now you've seen the impact changing your Personal Contribution Rate can have on your end benefit, why not give your member service team a call on 1800 620 305 and we'll show you how to implement the strategies to get yourself back on track.";return t.increaseInEFB<=0&&(t.futurePoints1800 620 305 to discuss your options."):(r="Congratulations, you are already maximising your Employer Financed Benefit. There may be other opportunities for you to increase your end benefit, give your member service team a call to find out how.",i="Explore your opportunities",s="Give your financial planning team at SSFS a call on 1800 620 305 and explore other opportunities which may be available to boost your super savings and save you tax.")),t.benefitCopy=r,t.footerTitle=i,t.footerText=s,t.chartSummary={superContributionsBefore:100,superContributionsAfter:200,takeHomePayBefore:t.futureEFB,takeHomePayAfter:t.potentialFutureEFB},t}}}(jQuery),function(e){var t=gbst.module("gbst.common.util"),n=480,r=300;t.ResponsiveUtil={appElement:null,dispatcher:null,fixedWidth:-1,previousWidth:-1,Events:{RESIZE:"responsiveUtil.Resize"},device_size:[{style:"default_layout",range:{min:980,max:Number.POSITIVE_INFINITY}},{style:"portrait_tablets_layout",range:{min:768,max:979}},{style:"phones_to_tablets_layout",range:{min:481,max:767}},{style:"phones_layout",range:{min:0,max:n}}],init:function(t,r,i){this.appElement=t,this.dispatcher=r,this.fixedWidth=i,this.appElement.css("max-width",i),this.fixedWidth<=n&&this.appElement.addClass("phones_layout"),e(window).resize(_.debounce(e.proxy(this.setLayout,this),20)),this.setLayout()},getStyle:function(e){var t=_.find(this.device_size,function(t,n){return t.range.min<=e&&e<=t.range.max});return t.style},setLayout:function(){var e=this.appElement,t=e.parent().width();if(t<=r&&this.previousWidth<=r&&this.previousWidth>0)return;if(t==this.previousWidth)return;this.previousWidth=t;var n=this.getStyle(t);e.removeClass(function(e,t){return(t.match(/\w+_layout/g)||[]).join(" ")}).addClass(n),t');if(!i||i==="")return!1;n.removeAttr("title");var t=i!=="t-date"&&i!=="t-points"&&i!=="t-salary"&&i!=="t-rate";t?r.css("opacity",0).html(i).appendTo("body"):r.css("opacity",0).removeClass("t-date t-points t-salary t-rate").addClass(i).appendTo("body");var s=function(){if(t)r.css("max-width",600);else if(e(window).width()<800){var i=800/214,s=e(window).width()-100,o=s/i;r.css("width",s),r.css("height",o),r.css("background-size",s)}else r.css("width",800),r.css("height",214);t&&e(window).width()<600&&r.css("max-width",e(window).width()/1.3);var u=n.offset().left+n.outerWidth()/2-r.outerWidth()/2,a=n.offset().top-r.outerHeight()-20;u<0?(u=n.offset().left+n.outerWidth()/2-20,r.addClass("left")):r.removeClass("left"),u+r.outerWidth()>e(window).width()?(u=n.offset().left-r.outerWidth()+n.outerWidth()/2+20,r.addClass("right")):r.removeClass("right");if(a-e(window).scrollTop()<0){var a=n.offset().top+n.outerHeight();r.addClass("top")}else r.removeClass("top");r.css({left:u,top:a}).animate({top:"+=10",opacity:1},50)};s(),e(window).resize(s);var o=function(){r.animate({top:"-=10",opacity:0},50,function(){e(this).remove()}),n.attr("title",i)};n.bind("mouseleave",o),r.bind("click",o)})}})}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.model"),n=gbst.module("gbst.loan.app.sassCalculator.view");n.LoanControlsView=Backbone.View.extend({templateId:"inputs-wrapper",dispatcher:null,controlsModel:null,controlsDeclaration:null,controlsList:null,DEFAULT_MAX_DEPOSIT:0,additionalContributionControl:null,initialize:function(n){this.dispatcher=e(n.dispatcher),this.controlsModel=n.controlsModel,this.resultsModel=n.resultsModel,this.controlsDeclaration=t.ControlsDeclaration(),this.controlsModel.on("change:currentContributionRate",this.updateAdditionalContribution_handler,this),this.controlsModel.on("change:currentAge",this.updateRetirementAge_handler,this)},createControls:function(e,t){var n=0,r=null,i=e.length,s=null,o=null,u=[];for(n=0;n=55?t+=1:t=55,n.resetMinValue(t),n.invalidateView(),n.render()}})}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.view");t.PartnerResultsView=Backbone.View.extend({templateId:"partner-outputs-wrapper",controlsModel:null,resultsModel:null,initialize:function(t){this.controlsModel=t.controlsModel,this.resultsModel=t.resultsModel,this.resultsModel.on("change",e.proxy(this.renderResults,this))},renderResults:function(t){var n="";if(this.controlsModel.get("hasJointIncome")){var r=this.prepareContext(t.toJSON());n=e(HandlebarsTemplates[this.templateId](r)),this.$el.show()}else this.$el.hide();this.$el.empty().append(n)},prepareContext:function(e){var t=!1;return e.putInMaxIfMax===0&&e.taxOffSetPartner===0&&(t=!0),{partnerMaxCoContribution:I18n.toCurrency(e.putInMaxIfMax,{precision:0}),partnerDifferenceInYourTaxHomePay:I18n.toCurrency(e.putInMaxIfMax,{precision:0}),partnerSavingsInIncomeTax:I18n.toCurrency(e.taxOffSetPartner,{precision:0}),zeroResult:t}}})}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.view");t.ResultsView=Backbone.View.extend({templateId:"outputs-wrapper",resultsModel:null,initialize:function(t){this.resultsModel=t.resultsModel,this.resultsModel.on("change",e.proxy(this.renderResults,this))},renderResults:function(){var t=this.prepareContext(),n=e(HandlebarsTemplates[this.templateId](t));this.$el.empty().append(n)},prepareContext:function(){var e=this.resultsModel.toJSON();return{benefitCopy:e.benefitCopy}}})}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator"),n=gbst.module("gbst.loan.app.sassCalculator.control");n.APIController=function(){this.inputs=null,this.results=null,this.init=function(e,t,n){this.inputs=e,this.results=t,n&&this.restoreCalc(n)},this.getValues=function(){var e={inputs:this.inputs.toJSON(),results:this.results.toJSON()};return e},this.restoreCalc=function(e){this.inputs.set(e)}}}($),function(e){var t=gbst.module("gbst.loan.app.sassCalculator.config");I18n.defaultLocale="en",I18n.fallbacks=!0,t.style={styleSelectMenu:!0},t.infoOverlayConfig={fixed:!1,top:"0%",left:"0px"},t.periods={year:1,month:12,fortnight:26,week:52},t.convertFn={numberConverter:function(e){var t=I18n.t("number.format.separator"),n=gbst.util.NumberUtil.parseNumber(e,t);return n},numberConverter_back:function(e,t,n){var r=I18n.toNumber(e,{precision:0});return r},moneyConverter_back:function(e,t,n){var r=I18n.toCurrency(e,{precision:0});return r},listConverter:function(e){return e},listConverter_back:function(e){return[e]},interestConverter:function(e){var t=I18n.t("number.format.separator"),n=gbst.util.NumberUtil.parseNumber(e,t);return n},interestConverter_back:function(e){var t=I18n.toPercentage(e,{precision:0});return t}},t.isTouchEnabled=Modernizr.touch,t.logoConfig={defaultLogoUrl:"http://loancalculator.staging.emu.com.au/UploadedImages/default/logo.png",urlHead:"http://loancalculator.staging.emu.com.au/UploadedImages/",urlFoot:"/logo.png"},t.assetReferences={imgIconHelp:"./assets/images/tooltip.png"},t.params={dollarSign:"$",superAnnuationTaxRate:.095,offsetTaxRate:.18,maximumSuperContributionBaseAmount:50810,maximumSuperContributionBaseFreq:4,coContributionPercentage:.5,coContributions:{taxRate:.15,excessTaxRate:.3,caps:[{ageFrom:0,ageTo:48,amount:3e4},{ageFrom:49,ageTo:100,amount:35e3}]},nonCoContributions:{taxRate:0,excessTaxRate:.465,caps:[{ageFrom:0,ageTo:100,amount:18e4}]},yourMaxCoContribution:[{from:0,to:35454,govCoCont:function(e,t){var n=1e3,r=t;return t>n&&(r=n),r}},{from:35455,to:50455,govCoCont:function(e){var t=500;return(t-(e-35455)*(.1/3))*2}},{from:50455,to:Number.POSITIVE_INFINITY,govCoCont:function(){return 0}}],partnerMaxCoContribution:{grossIncomeCap:10800,offset:3e3,ageCap:65,savingsIncomeTaxRate:.18},livingExpenses:{caps:[{from:0,to:18200,taxRate:0,amount:0},{from:18201,to:33428,taxRate:.81,amount:0},{from:33429,to:62453,taxRate:.675,amount:3572},{from:62454,to:125453,taxRate:.63,amount:17547},{from:125454,to:Number.POSITIVE_INFINITY,taxRate:.55,amount:54547}]}}}(jQuery),function(e){var t=gbst.module("gbst.loan.app.sassCalculator"),n=gbst.module("gbst.loan.app.sassCalculator.model"),r=gbst.module("gbst.loan.app.sassCalculator.util"),i=gbst.module("gbst.loan.app.sassCalculator.control"),s=gbst.module("gbst.common.util"),o=gbst.namespace("gbst.data");t.Events={CALCULATE:"sassCalculator.calculate",SHOW_CHART_TOOLTIP:"sassCalculator.showChartTooltip",HIDE_CHART_TOOLTIP:"sassCalculator.hideChartTooltip",CONTROL_CHANGE:"sassCalculator.control.change",CHART_LOADED:"sassCalculator.chartLoaded"},t.SASSCalculatorApp=function(u){this.dispatcher=e({}),this.parentEl=u,this.mainView=null,this.controlsModel=null,this.resultsModel=null,this.apiController=null,this.storageAvailable=!1,this.init=function(t){if(t)this.options=t;else{var r=e.url().param("calc_settings");r&&(r=decodeURI(r),this.options=JSON.parse(r))}var i=614;s.ResponsiveUtil.init(this.parentEl,this.dispatcher,i),n.incomeTaxManager=new gbst.incometax.IncomeTaxManager,n.incomeTaxData=o.incomeTax,n.stampDutyManager=new gbst.stampduty.StampDutyManager,n.stampDutyData=o.stampDutyData,this.addCustomFonts(),this.setupMainView()},this.setupMainView=function(){this.storageAvailable=window.localStorage!==null,this.controlsModel=new n.ControlValues(I18n.t("defaults.values")),this.resultsModel=new n.ResultsModel,this.apiController=new i.APIController,this.apiController.init(this.controlsModel,this.resultsModel,this.options),this.dispatcher.bind(t.Events.CONTROL_CHANGE,e.proxy(this.controlsChangeHandler,this)),this.initEvents(this.dispatcher),this.mainView=new t.LoanCalculatorView({dispatcher:this.dispatcher,controlsModel:this.controlsModel,resultsModel:this.resultsModel,el:this.parentEl}),this.mainView.render(),this.dispatcher.trigger(t.Events.CALCULATE,[this.controlsModel,this.resultsModel])},this.initEvents=function(n){n.bind(t.Events.CALCULATE,e.proxy(this.calculate_handler,this));var r=this,i=_.debounce(function(){r.calculate(r.controlsModel,r.resultsModel)},100);this.controlsModel.on("change",i,this)},this.calculate_handler=function(e,t,n){this.calculate(t,n)},this.restorePreviousValues=function(){if(this.storageAvailable){var e=this;this.controlsModel.fetch({success:function(){e.mainView.render(),e.calculate(e.controlsModel,e.resultsModel)}})}},this.calculate=function(e,t){var n=new r.LoanRepaymentUtil,i=this.controlsModel.toJSON(),s=n.calculate(i);t.set(s)},this.controlsChangeHandler=function(){this.storageAvailable&&this.controlsModel.save()},this.getCurrentValues=function(){return this.apiController.getValues()},this.addCustomFonts=function(){WebFontConfig={google:{families:["Roboto:400,700:latin"]}};var e=document.createElement("script");e.src=("https:"==document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",e.type="text/javascript",e.async="true";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}}}(jQuery);