!function r(o,i,a){function s(t,e){if(!i[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return s(o[t][1][e]||e)},n,n.exports,r,o,i,a)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;eWe will not take any payments from you at this stage. Please note that we only accept debit cards. Loan repayments are non-refundable."),$("#personalForm").show(),$("#borrowinfo").show(),$("#borrowinfo2").show(),$("#moreOptions").show(),$("#noCard").hide(),$(".noCardLbl").hide(),null!=grecaptcha&&void 0!==f.NeedCaptcha&&f.NeedCaptcha&&(x=grecaptcha.render("loancaptcha",{sitekey:"6LdeLHgUAAAAAI_nQ2N7pzW_iOlXvUDznlUoSlzw"}),grecaptcha.reset(x)),"update"===v.action?$("#profileInfo").text("Update account details"):"check"===v.action?($("#profileInfo").text("Update account details"),$("#updatebtn").val("Save and Return")):($("#loanPath").show(),$("#loanDisplay").css({display:"block",visibility:"visible"}),$("#profileInfo").text("Fund Ourselves Loan Application"),$("#updatebtn").val("Get a Quote!"),null!=f.Loan&&void 0!==f.Loan.Fields&&null!=f.Loan.Fields[0].Item4&&f.Loan.Fields[0].Item4&&($("#closeloan").off(),$("#closeloan").show(),$("#closeloan").click(Foundation.utils.throttle(function(){return confirm("Are you sure? This will close the current loan application. You will also lose any unsaved modifications.")&&($("#tinyLoader").show(),$("#closeloan").hide(),C.server.closeOldLoanApplication().done(function(e){return $("#tinyLoader").hide(),b.continueTo("loan","")}).fail(function(e,t,n){$("#tinyLoader").hide(),console.log("Response: "+t)})),!1},300))))):"lend"!==h&&"ifisa"!==h&&!g.includes(h,"company")||($("#cardMoreInfo").text(""),$("#cardLabel").text("Debit card"),$("#lenderinfo").show(),$("#noCard").show(),$(".noCardLbl").show(),"update"===v.action?$("#profileInfo").text("Update account details"):($("#profileInfo").text("Fund Ourselves Investment Application"),$("#updatebtn").val("Save and Verify"))),b.parseTuplesToObject(f.Bank)),t=(0===f.Bank.length||null!=v.bankdetails&&""!==v.bankdetails||/^(?!seti_)/.test(e.PaymentApiCardDetails)&&"loan"===h?($("#billingFirstAddress").prop("checked",!0),$("#currentCard").prop("checked",!1),$("#newCard").prop("checked",!0),$("#currentCard").hide(),$(".currentCardLbl").hide()):($("#currentCard").show(),$(".currentCardLbl").show(),$("#newCard").prop("checked",!1),$("#currentCard").prop("checked",!0),"update"===v.action&&"loan"===h&&$("#cannotchangeAlreadyMade").show()),b.setValuesToForms("bankForm",f.Bank),y.server.checkPostCode),a=null!=e.Territory&&""!==e.Territory?e.Territory:"";function s(){$("#billingSeparateAddress").is(":checked")?$("#separateBillingAddress").show("fast"):$("#separateBillingAddress").hide("fast")}(0=a}),n=f.filter(e,function(e){return e.x>=a}),e=f.filter(t,function(e){return e.x>=a}),t=f.map(r,function(e){return e.x=e.x,e}),r=f.map(n,function(e){return e.x=e.x,e}),n=f.map(e,function(e){return e.x=e.x,e});0!==r.length&&0!==n.length&&0!==t.length&&(e=l?[t]:[r,n],o=l,i=new Rickshaw.Color.Palette({scheme:"munin"}),t=f.maxBy(e,function(e){return f.maxBy(e,function(e){return e.x})}),e=f.map(e,function(e,t){return{color:i.color(),data:e,name:o?"Return":0===t?"Lent Out":"Investment"}}),$("#legend").empty(),$("#chart_container").html('
'),(e=new Rickshaw.Graph({width:600,height:250,element:document.getElementById("chart"),series:e,interpolation:"linear",min:"auto"})).setRenderer("lineplot"),e.offset="zero",new Rickshaw.Graph.Axis.Y({element:document.getElementById("y_axis"),graph:e,orientation:"left",scale:h.scaleLinear().domain([0,t]).nice(),ticks:5,tickFormat:Rickshaw.Fixtures.Number.formatKMBT}),new Rickshaw.Graph.Axis.Time({graph:e,orientation:"bottom",tickFormat:function(e){return new Date(1e3*e).toLocaleString()}}),new Rickshaw.Graph.Legend({element:document.querySelector("#legend"),graph:e}),new Rickshaw.Graph.HoverDetail({graph:e}),e.render(),0)}void 0!==e&&0{function t(t){l[t]=function(){var e=arguments;l.queue.push(function(){l[t].apply(l,e)})}}var a,s,l={config:e},n=document,r=window,o="AuthenticatedUserContext",i="TrackEvent",u="TrackPage",c=n.createElement("script");c.src=e.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js",n.getElementsByTagName("script")[0].parentNode.appendChild(c);try{l.cookie=n.cookie}catch(e){}for(l.queue=[],l.version="1.0",a=["Event","Exception","Metric","PageView","Trace","Dependency"];a.length;)t("track"+a.pop());return t("set"+o),t("clear"+o),t("start"+i),t("stop"+i),t("start"+u),t("stop"+u),t("flush"),e.disableExceptionTracking||(t("_"+(a="onerror")),s=r[a],r[a]=function(e,t,n,r,o){var i=s&&s(e,t,n,r,o);return!0!==i&&l["_"+a](e,t,n,r,o),i}),l})({instrumentationKey:e?"52fadbcd-3c0e-47df-909b-c62c32b89128":"c4af155d-0465-4336-a3d6-b6754f5ce439"});(window.appInsights=t).trackPageView()}catch(e){console.log(e)}}void 0!==window.tailwind&&(window.tailwind.config={corePlugins:{preflight:!1}}),setTimeout(function(){"undefined"==typeof jQuery&&(console.log("JQuery not loaded!"),document.write('