(self.webpackChunklatitudefinancial_com_au=self.webpackChunklatitudefinancial_com_au||[]).push([[9534],{97253:function(e,t,n){"use strict";n.d(t,{Z:function(){return fe}});var a,r,l=n(67294),o=n(5726),i=n(48519),c=n(5490),s=n(30690),m=n(10851),u=n.n(m),E=n(75620),p=n(52425),d=n(22778),f=n(40899),h=n(30625),y=n(4994),x=n(62589),T=n(91881),g=n(1557),L=n(67065),I=n(23632),A=n(65962),v="lfs au:loans:personal-loan:calculator:",C=Object.freeze({AMOUNT_CHANGE:v+"loan-amount-change",PERIOD_CHANGE:v+"payment-period-change",RATE_TYPE_CHANGE:v+"rate-type-change",RATE_CHANGE:v+"interest-rate-change",TERM_CHANGE:v+"loan-term-change",EXTRA_PAYMENT_CHANGE:v+"extra-payment-change"}),R=function(e,t){return void 0===t&&(t=""),""+e+(t&&t.length?":"+t:"")},N=(0,i.ZP)(L.Z).withConfig({displayName:"ExtraRepayments__StyledSvg",componentId:"sc-1hpz2la-0"})(["width:20px;height:20px;position:relative;top:5px;margin-left:5px;"]),O=(0,i.ZP)(c.x).withConfig({displayName:"ExtraRepayments__StyledBox",componentId:"sc-1hpz2la-1"})(["margin:"," "," ",";@media (min-width:","){margin:0 "," "," ",";}"],s.aX.M16,s.aX.M24,s.aX.M24,s.Bs.LG,s.aX.M48,s.aX.M24,s.aX.M48),_=((a={})[s.CE.WEEKLY]="week",a[s.CE.FORTNIGHTLY]="fortnight",a[s.CE.MONTHLY]="month",a),S=function(e){var t=e.salesMode,n=e.repaymentPeriod,a=e.extraRepayments,r=e.setExtraRepayments,o=e.broker,i=e.loans1,m=(0,l.useState)(!1),u=m[0],p=m[1],d=l.createElement(l.Fragment,null,l.createElement(I.xv,null,l.createElement(I.d8,null,"Would ",o?"my client":"I"," be locked into paying more each month?")),l.createElement("p",null,"Absolutely not. ",o?"They":"You"," can revert to",o?" their":" your"," minimum repayment at any time."),l.createElement(I.xv,null,l.createElement(I.d8,null,"What if ",o?"my client only wants":"I only want"," to pay extra occasionally?")),l.createElement("p",null,"At Latitude, we offer a range of flexible payment options. So, if",o?" they":" you","'d like to pick and choose when",o?" they":" you"," pay extra, ",o?" they":" you"," can do so by using BPAY® or Australia Post. Call us on"," ",l.createElement(x.k,{no:o?"1800 035 902":s.c0})," to find out more. Please note, using BPAY® or Australia Post does include a payment handling fee of $1.50."),l.createElement(I.xv,null,l.createElement(I.d8,null,"What if ",o?"my client":"I"," repay",o?"s their":" my"," loan super fast?")),l.createElement("p",null,"That's ok too, but just be aware that if ",o?" they ":" you ","pay off ",o?" their":" your"," loan before",o?" they":" you","'re halfway through",o?" their":" your"," original term,",o?" they":" you"," will be charged an early termination fee of $300. Call us on"," ",l.createElement(x.k,{no:o?"1800 035 902":s.c0})," to find out more.")),f=l.createElement(l.Fragment,null,l.createElement(I.xv,null,l.createElement(I.d8,null,"Would ",o?"my client":"I"," be locked into paying more each month?")),l.createElement("p",null,"Absolutely not. ",o?"They":"You"," can revert to",o?" their":" your"," minimum repayment at any time."),l.createElement(I.xv,null,l.createElement(I.d8,null,"What if ",o?"my client only wants":"I only want"," to pay extra occasionally?")),l.createElement("p",null,"At Latitude, we offer a range of flexible payment options. So, if",o?" they":" you","'d like to pick and choose when",o?" they":" you"," pay extra, ",o?" they":" you"," can do so by using BPAY®. Call us on"," ",l.createElement(x.k,{no:o?"1800 035 902":s.c0})," to find out more. Please note, using BPAY® includes a payment handling fee of $1.50."),l.createElement(I.xv,null,l.createElement(I.d8,null,"What if ",o?"my client":"I"," repay",o?"s their":" my"," loan super fast?")),l.createElement("p",null,"That's ok too, but just be aware that if ",o?" they ":" you ","pay off ",o?" their":" your"," loan ",o?" they":" you","will be charged $500 up until the last 3 months of",o?" their":" your"," loan. There is no early termination fee for Variable loans. Call us on"," ",l.createElement(x.k,{no:o?"1800 035 902":s.c0})," to find out more.")),h=l.createElement(O,null,l.createElement(T.Z,{inverted:!0,labelText:l.createElement(I.xv,{align:s.Hp.CENTER,color:s.r$.WHITE},l.createElement(I.d8,null,"Pay it faster every ",_[n]," to save"),l.createElement(E.r,{href:"#",noStyle:!0,onClick:function(e){p(!0),e.preventDefault()},trackEventData:{category:s.f1.CATEGORY,action:s.f1.ACTION,label:"i"}},l.createElement(N,{name:"info-block-outline",fillWhite:!0}))),name:"extraRepayments",onChange:function(e){var n=e.target.value;r(parseInt(n)),!t&&(0,A.nN)(!0,"o",R(C.EXTRA_PAYMENT_CHANGE,n))},values:[{value:0,text:"No Extra"},{value:25,text:"+$25"},{value:50,text:"+$50"},{value:100,text:"+$100"}],selectedValue:a,equalWidths:!0})),y=l.createElement(l.Fragment,null);return l.createElement(c.x,null,l.createElement(O,null,l.createElement(I.xv,null,t?h:y)),l.createElement(g.Z,{isOpen:u,onRequestClose:function(){return p(!1)},title:"Pay it faster",content:i?f:d,ariaHideApp:!1}))},M=((r={})[s.CE.WEEKLY]="weekly",r[s.CE.FORTNIGHTLY]="fortnightly",r[s.CE.MONTHLY]="monthly",r),b=300,P=s.r$.BLUE_LIGHT_BRIGHT,H=(0,i.ZP)(f.XJ).withConfig({displayName:"CalculatorTotals__StyledH2",componentId:"sc-kxy4kx-0"})(["font-size:80px;line-height:88px;margin-bottom:0;@media (min-width:","){margin-bottom:24px;font-size:94px;line-height:70px;letter-spacing:-2.38px;}"],s.Bs.LG),w=(0,i.ZP)(c.k).withConfig({displayName:"CalculatorTotals__StyledCalculatorDisplay",componentId:"sc-kxy4kx-1"})(["position:relative;width:100vw;margin-left:calc(-50vw + 50%);min-height:300px;margin-top:",";&::before{content:'';position:absolute;display:block;height:1px;width:1px;font-size:0;line-height:0;margin-left:-","px;left:50%;top:-1px;border:","px solid transparent;border-left-width:","px;border-right-width:","px;border-top-color:",";border-bottom:none;}@media (min-width:","){margin-left:",";width:50%;margin-top:0;&::before{display:none;}}"],s.aX.M32,18,22,18,18,P,s.Bs.LG,s.aX.M32),F=(0,i.ZP)(c.k).withConfig({displayName:"CalculatorTotals__StyledFlex",componentId:"sc-kxy4kx-2"})(["flex-grow:1;"]),G=(0,i.ZP)(c.k).withConfig({displayName:"CalculatorTotals__AmountsSavedFlex",componentId:"sc-kxy4kx-3"})(["flex-grow:1;&::before{content:'';position:relative;display:block;height:1px;width:1px;font-size:0;line-height:0;margin-left:-","px;left:50%;border:","px solid transparent;border-left-width:","px;border-right-width:","px;border-top-color:",";border-bottom:none;}"],18,22,18,18,s.r$.BLUE),k=(0,i.ZP)(c.x).withConfig({displayName:"CalculatorTotals__StyledCalculatorTotalsBox",componentId:"sc-kxy4kx-4"})(["margin:"," 0 ",";@media (min-width:","){margin:0;}"],s.aX.M48,s.aX.M16,s.Bs.LG),B=(0,i.ZP)(c.x).withConfig({displayName:"CalculatorTotals__IntroBox",componentId:"sc-kxy4kx-5"})(["padding:"," "," 0;@media (min-width:","){padding:"," "," 0;}@media (min-width:","){padding:"," "," 0;}"],s.tr.P16,s.tr.P48,s.Bs.LG,s.tr.P16,s.tr.P16,s.Bs.XL,s.tr.P16,s.tr.P48),D=(0,i.ZP)(f.by).withConfig({displayName:"CalculatorTotals__StyledHeading5",componentId:"sc-kxy4kx-6"})(["font-size:18px;line-height:24px;"]),Y=(0,i.ZP)(f.by).withConfig({displayName:"CalculatorTotals__MobileTimeSavedHeading",componentId:"sc-kxy4kx-7"})(["display:block;@media (min-width:","){display:none;}"],s.Bs.SM),$=(0,i.ZP)(f.by).withConfig({displayName:"CalculatorTotals__DesktopTimeSavedHeading",componentId:"sc-kxy4kx-8"})(["display:none;@media (min-width:","){display:block;}"],s.Bs.SM),W=(0,i.ZP)(g.Z).withConfig({displayName:"CalculatorTotals__StyledFeesModal",componentId:"sc-kxy4kx-9"})(["strong + p{margin-top:-5px;}"]),Z=function(e,t){return l.createElement(B,null,l.createElement(D,{align:s.Hp.CENTER,color:s.r$.WHITE},"Your ",t&&"client's ","estimated ",e," repayment includes establishment ",t?", monthly and broker fees":" & monthly fees"))},U=function(e){var t=e.salesMode,n=e.repaymentPeriod,a=e.repaymentAmount,r=e.totalInterestPaid,i=e.totalAmountPaid,m=e.timeSavedMonths,p=e.timeSavedYears,x=e.interestSaved,T=e.extraRepayments,g=e.setExtraRepayments,L=e.applyUrl,I=e.applyCTATrackId,A=e.feesAndCharges,v=e.renderIntro,C=void 0===v?Z:v,R=e.userInputLoanAmount,N=e.userInputRepaymentYears,O=e.broker,_=e.loans1,P=(0,l.useState)(!1),B=P[0],D=P[1],U=function(e,t){return l.createElement(l.Fragment,null,0!==p&&l.createElement(l.Fragment,null,l.createElement(u(),{value:p,duration:b,stepPrecision:0}),p>1?" "+e+"s":" "+e),0!==m&&l.createElement(l.Fragment,null,p?", ":null,l.createElement(u(),{value:m,duration:b,stepPrecision:0}),m>1?" "+t+"s":" "+t))},z=l.createElement(l.Fragment,null,l.createElement(c.k,{alignItems:s.LT.CENTER},l.createElement(c.x,{width:"50%",marginRight:s.aX.M8},l.createElement(y.Z,{align:s.Hp.RIGHT,color:s.r$.WHITE},"Interest saved")),l.createElement(c.x,{width:"50%",marginLeft:s.aX.M8},l.createElement(f.by,{marginBottom:0,color:s.r$.WHITE},l.createElement(u(),{value:x,duration:b,stepPrecision:0,formatValue:function(e){return(0,h.cq)(e)||"$0"}})))),l.createElement(c.k,{alignItems:s.LT.CENTER},l.createElement(c.x,{width:"50%",marginRight:s.aX.M8},l.createElement(y.Z,{align:s.Hp.RIGHT,color:s.r$.WHITE},"Time saved")),l.createElement(c.x,{width:"50%",marginLeft:s.aX.M8},l.createElement(l.Fragment,null,0===m&&0===p?l.createElement(l.Fragment,null,l.createElement(Y,{marginBottom:0,color:s.r$.WHITE},"0 yrs, 0 mths"),l.createElement($,{marginBottom:0,color:s.r$.WHITE},"0 years, 0 months")):l.createElement(l.Fragment,null,l.createElement(Y,{marginBottom:0,color:s.r$.WHITE},U("yr","mth")),l.createElement($,{marginBottom:0,color:s.r$.WHITE},U("year","month"))))))),j=l.createElement(l.Fragment,null);return l.createElement(w,{flexDirection:s.uM.COLUMN},l.createElement(F,{backgroundColor:s.r$.BLUE,justifyContent:s.XQ.CENTER,flexDirection:s.uM.COLUMN},l.createElement(k,null,C(M[n],O),l.createElement(H,{align:s.Hp.CENTER,color:s.r$.WHITE},l.createElement(u(),{value:a,duration:b,stepPrecision:0,formatValue:function(e){return(0,h.cq)(e)||"$0"}}))),l.createElement(S,{salesMode:t,repaymentPeriod:n,extraRepayments:T,setExtraRepayments:g,broker:O,loans1:_})),l.createElement(G,{backgroundColor:s.r$.BLUE_DEEP,flexDirection:s.uM.COLUMN},l.createElement(c.k,{alignItems:s.LT.CENTER,paddingTop:s.tr.P8},l.createElement(c.x,{width:"50%",marginRight:s.aX.M8},l.createElement(y.Z,{align:s.Hp.RIGHT,color:s.r$.WHITE},"Total interest paid")),l.createElement(c.x,{width:"50%",marginLeft:s.aX.M8},l.createElement(f.by,{marginBottom:0,color:s.r$.WHITE},l.createElement(u(),{value:r,duration:b,stepPrecision:0,formatValue:function(e){return(0,h.cq)(e)||"$0"}})))),l.createElement(c.k,{alignItems:s.LT.CENTER},l.createElement(c.x,{width:"50%",marginRight:s.aX.M8},l.createElement(y.Z,{align:s.Hp.RIGHT,color:s.r$.WHITE},"Total amount paid")),l.createElement(c.x,{width:"50%",marginLeft:s.aX.M8},l.createElement(f.by,{marginBottom:0,color:s.r$.WHITE},l.createElement(u(),{value:i,duration:b,stepPrecision:0,formatValue:function(e){return(0,h.cq)(e)||"$0"}})))),t?z:j),l.createElement(c.k,{backgroundColor:s.r$.BLUE_DEEP,justifyContent:s.XQ.CENTER},!t&&l.createElement(c.x,{width:"250px",margin:s.aX.M16+" 0 "+s.aX.M24},l.createElement(o.AnalyticsLocationProvider,{location:"Calculate your repayments"},l.createElement(X,{trackId:I,onClick:function(){sessionStorage.removeItem("purpose"),R&&sessionStorage.setItem("loanAmount",R),R&&sessionStorage.setItem("repaymentPeriod",N),"undefined"!=typeof window&&(window.location=L||(0,d.fL)("au",_))}},"Get Rate Estimate"))),A&&l.createElement(c.x,{margin:s.aX.M16+" 0 "+s.aX.M24},l.createElement(y.Z,{fontSize:s.Kt.SMALL,align:s.Hp.CENTER,color:s.r$.WHITE},"See all"," ",l.createElement(E.r,{href:"#",variant:s.r$.WHITE,onClick:function(e){D(!0),e.preventDefault()}},"Fees & charges")," ","for this product"),l.createElement(W,{isOpen:B,onRequestClose:function(){return D(!1)},title:"Fees & Charges",content:l.createElement(c.x,null,l.createElement("strong",null,"Establishment Fee"),l.createElement("p",null,"$",s.OE),l.createElement("strong",null,"Loan Service Fee"),l.createElement("p",null,"$13 per month"),l.createElement("strong",null,"Payment handling fee for using Australia Post"),l.createElement("p",null,"$1.50"),l.createElement("strong",null,"Payment handling fee for using BPAY® "),l.createElement("p",null,"$1.50"),l.createElement("strong",null,"Late Payment Fee"),l.createElement("p",null,"$40 in the event that ",O?"your client":"you"," can’t make the minimum repayment by ",O?"their ":"your ","agreed due date"),l.createElement("strong",null,"Early Termination Fee"),l.createElement("p",null,"$300 within the first half of ",O?"their ":"your ","loan term ",l.createElement("br",null),"$0 within the second half of ",O?"their ":"your ","loan term"),l.createElement("strong",null,"Extra Payments"),l.createElement("p",null,"With a Latitude Personal Loan,"," ",O?"your client":"you"," can make extra payments whenever and however ",O?"they":"you"," like. Be aware that if ",O?"they":"you"," pay off",O?" their":" your"," loan before"," ",O?"they":"you","'re halfway through"," ",O?" their":" your"," original term,",O?" they":" you"," will be charged an early termination fee of $300. Payment handling fee of $1.50 apply when making extra payments via BPAY®")),ariaHideApp:!1}))))},X=(0,i.ZP)(p.z).withConfig({displayName:"CalculatorTotals___StyledButton",componentId:"sc-kxy4kx-10"})(["width:100%;"]),z=n(23279),j=n.n(z),V=n(65531),K=n(68720),q=n(67685),Q=n(88020),J=n(14293),ee=n(23493),te=n.n(ee),ne=n(17199),ae=n(90073),re=function(e){var t=e.salesMode,n=e.interestRate,a=e.setInterestRate,r=e.minInterestRate,i=e.maxInterestRate,m=e.minComparisonRate,u=e.maxComparisonRate,E=(0,l.useState)(n.toFixed(2)),p=E[0],d=E[1],f=(0,l.useState)(0),h=f[0],y=f[1],x=(0,l.useRef)(te()((function(e){a(e),d(e.toFixed(2))}),200)),T=(0,l.useState)(""),g=T[0],L=T[1];function v(e){void 0===e&&(e=null),null===e&&(e=n),d(e.toFixed(2)),L("")}(0,l.useEffect)((function(){v()}),[i,r]);var N=(0,l.useContext)(o.AnalyticsContext)[0];function O(e,n){var a,r;void 0===n&&(n="slider"),"slider"===n&&v(e),t||e===h||(r=null,"number"==typeof(a=e)?r=a.toFixed(2):"string"==typeof a&&a.trim().length&&(r=a.trim()),(0,A.nN)(!0,"o",R(C.RATE_CHANGE,null===r?"":r+"%")),y(e)),o.trackEvent&&(0,o.trackEvent)(N,{category:s.f1.CATEGORY,action:s.f1.ACTION,label:"interest-rate",location:s.f1.LOCATION,value:(0,ae.rp)(e)})}var _=""!==g?" error":"";return l.createElement(c.x,null,l.createElement(c.k,{flexDirection:s.uM.COLUMN,alignItems:s.LT.FLEX_START},l.createElement(I.xv,{marginBottom:s.aX.M8},"At an interest rate of"),l.createElement("div",{className:"interest-rate-widget__wrapper input-wrap"},l.createElement("input",{className:"interest-rate-widget__field styled-input-wrap__input interestRate "+_,id:"interest-rate-widgetRateHtmlInput",maxLength:5,value:p,onChange:function(e){!function(e){d(e);var t=Number.parseFloat(e);if(Number.isNaN(t))L("Please enter a rate of "+r+"% p.a. or more");else if(t<r)L("Please enter a rate of "+r+"% p.a. or more");else{if(!(t>i)){L("");var l=Math.round(100*t)/100;return l!==n?(a(l),O(l,"input")):void 0}L("Please enter a rate of "+i+"% p.a. or less")}}(e.target.value)},type:"text",inputmode:"decimal"}),l.createElement("span",{className:"interest-rate-widget__field-suffix"},"%")),l.createElement(I.xv,{lineHeight:s.Ac.STANDARD.NORMAL,marginBottom:s.aX.M4,marginTop:s.aX.M4,color:s.r$.ERROR},g||l.createElement("div",null," "))),l.createElement(c.x,{backgroundColor:s.r$.WHITE},l.createElement(c.x,null,l.createElement(c.x,{padding:s.tr.P4+" "+s.tr.P24,backgroundColor:s.r$.GREY5},l.createElement(c.x,null,l.createElement(I.xv,{fontSize:s.Kt.SMALL,lineHeight:s.Ac.TIGHT},l.createElement(I.d8,null,"Interest rate p.a.^"))),l.createElement(c.k,{justifyContent:s.XQ.SPACE_BETWEEN},l.createElement(c.x,null,l.createElement(I.xv,{fontSize:s.Kt.SMALL,lineHeight:s.Ac.TIGHT},l.createElement(I.d8,null,r,"%"))),l.createElement(c.x,null,l.createElement(I.xv,{fontSize:s.Kt.SMALL,lineHeight:s.Ac.TIGHT,align:s.Hp.CENTER},"to")),l.createElement(c.x,null,l.createElement(I.xv,{fontSize:s.Kt.SMALL,lineHeight:s.Ac.TIGHT,align:s.Hp.RIGHT},l.createElement(I.d8,null,i,"%"))))),l.createElement(c.k,{margin:s.aX.M56+" "+s.aX.M24+" "+s.aX.M24+" "+s.aX.M24},l.createElement(ne.Z,{id:"interest-rate-slider",value:n,defaultValue:n,step:.004,edgeTicks:!0,min:r,max:i,tip:!0,tipAlwaysVisible:!0,tipDynamicPlacement:!0,tipFormatter:ae.rp,onChange:function(e){x.current(e)},onAfterChange:O})),l.createElement(c.x,{padding:s.tr.P4+" "+s.tr.P24,backgroundColor:s.r$.GREY5},l.createElement(c.x,null,l.createElement(I.xv,{fontSize:s.Kt.SMALL,lineHeight:s.Ac.TIGHT},l.createElement(I.d8,null,"Comparison rate p.a.*"))),l.createElement(c.k,{justifyContent:s.XQ.SPACE_BETWEEN},l.createElement(c.x,null,l.createElement(I.xv,{fontSize:s.Kt.SMALL,lineHeight:s.Ac.TIGHT},l.createElement(I.d8,null,m.toFixed(2),"%"))),l.createElement(c.x,null,l.createElement(I.xv,{fontSize:s.Kt.SMALL,lineHeight:s.Ac.TIGHT,align:s.Hp.CENTER},"to")),l.createElement(c.x,null,l.createElement(I.xv,{fontSize:s.Kt.SMALL,lineHeight:s.Ac.TIGHT,align:s.Hp.RIGHT},l.createElement(I.d8,null,u.toFixed(2),"%"))))))))},le=n(26890),oe=(0,i.ZP)(c.x).withConfig({displayName:"CalculatorFields__StyledInputsBox",componentId:"sc-9gedzv-0"})(["width:100%;@media (min-width:","){width:50%;}"],s.Bs.LG),ie=(0,i.ZP)(L.Z).withConfig({displayName:"CalculatorFields__StyledSvg",componentId:"sc-9gedzv-1"})(["width:20px;height:20px;position:relative;top:5px;margin-left:5px;"]),ce=(0,i.ZP)(c.k).withConfig({displayName:"CalculatorFields__StyledFlex",componentId:"sc-9gedzv-2"})(["flex-wrap:wrap;@media (min-width:","){flex-wrap:nowrap;}"],s.Bs.MD),se=(0,i.ZP)(c.x).withConfig({displayName:"CalculatorFields__StyledLoanAmountBox",componentId:"sc-9gedzv-3"})(["margin-right:0;width:100%;@media (min-width:","){margin-right:",";width:50%;}"],s.Bs.MD,s.aX.M16),me=(0,i.ZP)(c.x).withConfig({displayName:"CalculatorFields__StyledLoanPeriodBox",componentId:"sc-9gedzv-4"})(["margin-top:",";width:100%;@media (min-width:","){margin-top:0;width:50%;}"],s.aX.M32,s.Bs.MD),ue=j()((function(e,t,n){void 0===n&&(n=!1);var a,r=e.value,l=t.isError,o=t.isWarning;a=r&&l?"error:"+r:r&&o?"warning:"+r:r||"",!n&&a.length&&(0,A.nN)(!0,"o",R(C.AMOUNT_CHANGE,a))}),1600),Ee=function(e){var t,n,a,r,i=e.salesMode,m=e.setRepaymentAmount,u=e.setTotalInterestPaid,p=e.setTotalAmountPaid,d=e.repaymentPeriod,f=e.setRepaymentPeriod,y=e.extraRepayments,L=e.setInterestSaved,v=e.setTimeSavedMonths,N=e.setTimeSavedYears,O=e.setUserInputLoanAmount,_=e.setUserInputRepaymentYears,S=e.loans1,M=(0,l.useState)(S?s.K8:s.$Q),b=M[0],P=M[1],H=(0,l.useState)(!0),w=H[0],F=H[1],G=(0,l.useState)(!1),k=G[0],B=G[1],D=(0,l.useState)(!1),Y=D[0],$=D[1],W=(0,l.useState)(""),Z=W[0],U=W[1],X=(0,l.useState)(S?2:5),z=X[0],j=X[1],ee=(0,l.useState)(!1),te=ee[0],ne=ee[1],ae=(0,l.useState)(S?s.uJ:s.E3),Ee=ae[0],pe=ae[1];S?w?(t=s.uJ,n=s.Y1,r=s.hp,a=s.ZU):(t=s.xk,n=s.Hh,r=s.Kb,a=s.TP):w?(t=s.E3,n=s.pP,r=s.yB,a=s.Z6):(t=s.lu,n=s.V5,r=s.Jg,a=s.Oi);var de=(0,l.useContext)(o.AnalyticsContext)[0];(0,l.useEffect)((function(){if(b&&0!==b&&!k){var e=b+s.OE,t=parseFloat(Ee.toFixed(2)),n=(0,J.MP)(e,t,z,d,s.NP,y,!0),a=n.repayment,r=n.totalInterest,l=n.totalAmountPaid,o=n.timeSavedByExtra,i=n.interestSavedByExtra;m(a),u(r),p(l),L(i),E=c=o,d===s.CE.FORTNIGHTLY?E=c/4.35*2:d===s.CE.WEEKLY&&(E=c/4.35),E=Math.abs(Math.round(E)),N(Math.floor(E/12)),v(E%12)}var c,E}),[b,w,z,d,Ee,y]);return l.createElement(oe,null,l.createElement(Q.we,{spacing:s.aX.M32},l.createElement(ce,{justifyContent:s.XQ.SPACE_BETWEEN},l.createElement(se,{width:"50%"},l.createElement(q.Z,{type:"tel",labelText:s.f1.LABEL,maxLength:7,prefix:"$",name:"loanAmount",value:b,errorStatus:k||Y,showError:k||Y,onValueChange:function(e){var t=function(e,t){var n,a;void 0===t&&(t=!1);var r="",o=t?s.K8:s.$Q;return!e||e<o?(n=!0,a=!1,r="Loan amount must be at least "+(0,h.cq)(o)):e>s.F1?(n=!1,a=!0,r=l.createElement(V.xv,{color:s.r$.TEXT_ERROR,fontWeight:s.m5.NORMAL},"For loan amounts more than "+(0,h.cq)(s.F1)+" please call us on ",l.createElement(x.k,{color:s.r$.TEXT_ERROR,no:s.c0}),", Mon - Fri, 8:30am - 6pm (AEST)")):(n=!1,a=!1),{isError:n,isWarning:a,message:r}}(e.floatValue,S);B(t.isError),$(t.isWarning),U(t.message),P(e.floatValue),O(e.floatValue),sessionStorage.setItem("loanAmount",e.floatValue),ue(e,t,i)},showErrorMessage:Z})),l.createElement(me,{width:"50%"},l.createElement(K.Z,{id:"pl-calc-repaymentPeriod",color:s.r$.BLUE,label:l.createElement(V.xv,null,"With repayments every"),name:"repaymentPeriod",selectedValue:d,onChange:function(e){var t=e.target.value,n=e.target.options[e.target.selectedIndex].text;f(t),!i&&(0,A.nN)(!0,"o",R(C.PERIOD_CHANGE,(0,A.iY)(t))),o.trackEvent&&(0,o.trackEvent)(de,{category:s.f1.CATEGORY,action:s.f1.ACTION,label:"With repayments every",location:s.f1.LOCATION,value:n})},onBlur:function(){},values:[{text:"Week",value:s.CE.WEEKLY},{text:"Fortnight",value:s.CE.FORTNIGHTLY},{text:"Month",value:s.CE.MONTHLY}]}))),l.createElement(c.x,null,l.createElement(T.Z,{labelText:l.createElement(V.xv,null,"Fixed or Variable?",l.createElement(E.r,{href:"#",noStyle:!0,onClick:function(e){ne(!0),e.preventDefault()},trackEventData:{category:s.f1.CATEGORY,action:s.f1.ACTION,label:"i"}},l.createElement(ie,{name:"info-block-outline"}))),name:"repaymentsYears",onChange:function(e){var t="true"===e.target.value,n=S?s.xk:s.lu,a=S?s.Y1:s.pP;!t&&Ee<n&&pe(n),t&&Ee>a&&pe(a),F(t);var r=t?"secured":"unsecured";!i&&(0,A.nN)(!0,"o",R(C.RATE_TYPE_CHANGE,r))},values:[{value:!0,text:"Variable"},{value:!1,text:"Fixed"}],selectedValue:w,equalWidths:!0}),l.createElement(g.Z,{isOpen:te,onRequestClose:function(){return ne(!1)},title:"Fixed vs Variable loan?",content:l.createElement(l.Fragment,null,"When applying for a personal loan, one decision you need is to make is whether you want a fixed or variable loan.",l.createElement("br",null),l.createElement("br",null),l.createElement("strong",null,"Fixed loan:"),l.createElement(le.a,null,l.createElement(le.H,null,"Your rate and repayments remain fixed for the life of your loan"),l.createElement(le.H,null,"An early termination fee of $500 applies if you payout your loan in full up until the last 3 months of the loan. No early termination fee applies in the final 3 months of the loan")),l.createElement("br",null),l.createElement("strong",null,"Variable loan:"),l.createElement(le.a,null,l.createElement(le.H,null,"Your rate and repayments could change, up or down, during your loan term"),l.createElement(le.H,null,"No early termination fee"))),ariaHideApp:!1})),l.createElement(c.x,null,l.createElement(re,{salesMode:i,interestRate:Ee,setInterestRate:pe,minInterestRate:t,minComparisonRate:a,maxInterestRate:n,maxComparisonRate:r})),l.createElement(c.x,null,l.createElement(T.Z,{labelText:l.createElement(V.xv,null,"And pay it over"," ",l.createElement(I.d8,null,z," year",1===parseInt(z)?"":"s")),name:"repaymentYears",onChange:function(e){var t=e.target.value;sessionStorage.setItem("repaymentPeriod",t),j(parseInt(t)),_(parseInt(t)),!i&&(0,A.nN)(!0,"o",R(C.TERM_CHANGE,t))},values:[{text:"2",value:2},{text:"3",value:3},{text:"4",value:4},{text:"5",value:5},{text:"6",value:6},{text:"7",value:7}],selectedValue:z,equalWidths:!0,pluralLabel:"year"}))))},pe=(0,i.ZP)(c.k).withConfig({displayName:"PersonalLoanCalculator__StyledCalculatorFlex",componentId:"sc-lhtiv4-0"})(["flex-direction:column;@media (min-width:","){flex-direction:row;}"],s.Bs.LG),de=(0,i.ZP)(c.x).withConfig({displayName:"PersonalLoanCalculator__StyledDisclaimerBox",componentId:"sc-lhtiv4-1"})(["padding:"," "," "," ",";background-color:",";margin-top:0;width:100vw;margin-left:calc(-50vw + 50%);@media (min-width:","){padding-top:0;margin-top:",";background-color:transparent;margin-left:0;width:100%;}"],s.tr.P0,s.tr.P48,s.tr.P24,s.tr.P48,s.r$.BLUE_DEEP,s.Bs.LG,s.aX.M32),fe=function(e){var t=e.salesMode,n=void 0!==t&&t,a=e.disclaimerContent,r=e.applyUrl,i=e.applyCTATrackId,m=e.renderCalculatorIntro,u=e.loans1,E=(0,l.useState)(0),p=E[0],d=E[1],f=(0,l.useState)(0),h=f[0],y=f[1],x=(0,l.useState)(0),T=x[0],g=x[1],L=(0,l.useState)(s.CE.MONTHLY),I=L[0],A=L[1],v=(0,l.useState)(0),C=v[0],R=v[1],N=(0,l.useState)(0),O=N[0],_=N[1],S=(0,l.useState)(0),M=S[0],b=S[1],P=(0,l.useState)(0),H=P[0],w=P[1],F=(0,l.useState)(!1),G=F[0],k=F[1],B=(0,l.useState)(!1),D=B[0],Y=B[1];return l.createElement(o.AnalyticsLocationProvider,{location:"Calculate your repayments"},l.createElement(c.x,null,l.createElement(pe,null,l.createElement(Ee,{loans1:u,salesMode:n,setRepaymentAmount:d,setTotalInterestPaid:y,setTotalAmountPaid:g,repaymentPeriod:I,setRepaymentPeriod:A,extraRepayments:C,setInterestSaved:_,setTimeSavedMonths:w,setTimeSavedYears:b,setUserInputLoanAmount:k,setUserInputRepaymentYears:Y}),l.createElement(U,{loans1:u,salesMode:n,repaymentPeriod:I,repaymentAmount:p,totalInterestPaid:h,totalAmountPaid:T,timeSavedMonths:H,timeSavedYears:M,interestSaved:O,extraRepayments:C,setExtraRepayments:R,applyUrl:r,applyCTATrackId:i||s.TZ,renderIntro:m,userInputLoanAmount:G,userInputRepaymentYears:D})),l.createElement(de,null,a)))}},64422:function(e,t,n){"use strict";var a=n(67294),r=n(48519),l=n(75620),o=n(30690),i=n(4994),c=n(23632),s=n(1557),m=n(5490),u=(0,r.ZP)(i.Z).withConfig({displayName:"PersonalLoanDisclaimerContent__StyledDisclaimerText",componentId:"sc-14qufpt-0"})(["color:",";@media (min-width:","){color:",";}"],o.r$.WHITE,o.Bs.LG,o.r$.BLACK),E=(0,r.ZP)(l.r).withConfig({displayName:"PersonalLoanDisclaimerContent__StyledFeesMobileLink",componentId:"sc-14qufpt-1"})(["display:inline;color:",";border-bottom:1px solid rgba(255,255,255,0.5);:hover{text-shadow:0 0 1px ",";border-bottom:1px solid rgba(255,255,255,1);}@media (min-width:","){display:none;}"],o.r$.WHITE,o.r$.WHITE,o.Bs.LG),p=(0,r.ZP)(l.r).withConfig({displayName:"PersonalLoanDisclaimerContent__StyledFeesDesktopLink",componentId:"sc-14qufpt-2"})(["display:none;:hover{text-shadow:0 0 1px ",";}@media (min-width:","){display:inline;}"],o.r$.BLUE,o.Bs.LG);t.Z=function(){var e=(0,a.useState)(!1),t=e[0],n=e[1],r={category:o.f1.CATEGORY,action:o.f1.ACTION};return a.createElement(a.Fragment,null,a.createElement(u,{fontSize:o.Kt.SMALL,align:o.Hp.CENTER},"This calculator is provided for illustrative purposes only and does not constitute a quote or pre-qualification. The interest rate you may be offered can differ from the interest rate displayed above and will be based on your personal circumstances. The total amount paid includes establishment and monthly fees. See all"," ",a.createElement(E,{href:"#",onClick:function(e){n(!0),e.preventDefault()},trackEventData:r,variant:o.r$.WHITE},"Fees & charges"),a.createElement(p,{href:"#",onClick:function(e){n(!0),e.preventDefault()},trackEventData:r},"Fees & charges")," ","for this product."),a.createElement(s.Z,{isOpen:t,onRequestClose:function(){return n(!1)},title:"Fees & Charges",content:a.createElement(m.x,null,a.createElement(i.Z,null,a.createElement(c.d8,null,"Establishment Fee")),a.createElement(a.Fragment,null,a.createElement(i.Z,null,"$395")),a.createElement(i.Z,null,a.createElement(c.d8,null,"Loan Service Fee")),a.createElement(i.Z,null,"$13 per month"),a.createElement(i.Z,null,a.createElement(c.d8,null,"Payment handling fee for using BPAY®")),a.createElement(i.Z,null,"$1.95"),a.createElement(i.Z,null,a.createElement(c.d8,null,"Late Payment Fee")),a.createElement(i.Z,null,"$45 In the event that you can't make the minimum repayment by your agreed due date"),a.createElement(i.Z,null,a.createElement(c.d8,null,"Early Termination Fee")),a.createElement(i.Z,null,"Fixed loan:",a.createElement("br",null),"$500 up until the last 3 months of the loan"),a.createElement(i.Z,null,"Variable loan:",a.createElement("br",null),"No early termination fee")),ariaHideApp:!1}))}},88020:function(e,t,n){"use strict";n.d(t,{we:function(){return a.we},Et:function(){return a.Et}});var a=n(11074)},26890:function(e,t,n){"use strict";n.d(t,{a:function(){return u},H:function(){return p}});var a=n(67294),r=n(48519),l=(Object.freeze({"28D":"Latitude 28° Global Platinum Mastercard",GEM:"Latitude Gem Visa"}),Object.freeze({STANDARD:{SMALL:"24px",NORMAL:"26px",LARGE:"28px"},TIGHT:{SMALL:"18px",NORMAL:"20px",LARGE:"24px"}}),Object.freeze({APPLE:"apple",GOOGLE:"google"}),Object.freeze({CENTER:"center",LEFT:"left",RIGHT:"right",JUSTIFY:"justify"}),Object.freeze({BR0:"0",BRAND:"4px",CIRCLE:"50%"}),Object.freeze({XS:"380px",SM:"576px",MD:"768px",LG:"992px",XL:"1200px"}),Object.freeze({BLUE:"#006AFF",BLUE_BABY:"#E8F4FF",BLUE_SKY:"#D0E9FF",BLUE_LIGHT:"#63B8FF",BLUE_LIGHT_BRIGHT:"#CEE6FF",BLUE_MID:"#004A95",BLUE_DEEP:"#0046AA",BLUE_DARK:"#00366c",PURPLE:"#ABA7F6",PURPLE_DARK:"#7A65D4",PINK:"#C31B6C",PINK_LIGHT:"#FF94CA",TURQUOISE:"#12DBF5",BODY:"#42484d",WHITE:"#FFFFFF",GREY5:"#F3F3F3",GREY6:"#F8F8F8",GREY10:"#E5E5E5",GREY12:"#ECECEC",GREY16:"#D6D6D6",GREY65:"#595959",GREY75:"#414141",BLACK:"#000000",TEXT_ERROR:"#e9013b",TRANSPARENT:"transparent",ERROR:"red"})),o=(Object.freeze({BLUE_LIGHTER:"#e8f4ff",BLUE_LIGHT:"#d0e9ff",BLUE_DARK:"#0046aa"}),Object.freeze({ATOM:"Atoms",MOLECULE:"Molecules",ORGANISM:"Organisms"}),Object.freeze({BLOCK:"block",INLINE:"inline",FLEX:"flex",NONE:"none"}),Object.freeze({BODY:"Roboto, Open Sans, sans-serif",HEADING:"Roboto Slab, sans-serif",TITLE:"Montserrat, sans-serif"})),i=(Object.freeze({SMALL:"14px",NORMAL:"16px",LARGE:"18px"}),Object.freeze({LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800})),c=(Object.freeze({G0:"0px",G15:"15px",G30:"30px"}),Object.freeze({TEXT:"16px",MAUTO:"auto",M0:"0px",M4:"4px",M8:"8px",M16:"16px",M24:"24px",M32:"32px",M40:"40px",M48:"48px",M56:"56px"})),s=(Object.freeze({P0:"0px",P4:"4px",P8:"8px",P16:"16px",P24:"24px",P32:"32px",P40:"40px",P48:"48px",P64:"64px"}),Object.freeze({AUTO:"auto",HIDDEN:"hidden",SCROLL:"scroll",VISIBLE:"visible"}),Object.freeze({STATIC:"static",ABSOLUTE:"absolute",RELATIVE:"relative",FIXED:"fixed"}),Object.freeze({FLEX_START:"flex-start",FLEX_END:"flex-end",CENTER:"center",SPACE_BETWEEN:"space-between",SPACE_AROUND:"space-around",STRETCH:"stretch"}),Object.freeze({FLEX_START:"flex-start",FLEX_END:"flex-end",CENTER:"center",STRETCH:"stretch",BASELINE:"baseline"}),Object.freeze({FLEX_START:"flex-start",FLEX_END:"flex-end",CENTER:"center",SPACE_BETWEEN:"space-between",SPACE_AROUND:"space-around",SPACE_EVENLY:"space-evenly"}),Object.freeze({ROW:"row",ROW_REVERSE:"row-reverse",COLUMN:"column",COLUMN_REVERSE:"column-reverse"}),Object.freeze({NOWRAP:"nowrap",WRAP:"wrap",WRAP_REVERSE:"wrap-reverse"}),Object.freeze({XS:"16px",SM:"32px",MD:"48px",LG:"64px",XL:"96px"}),Object.freeze({ABOUT_YOU:"about-you",ATTENTION:"attention",BILLS:"bills",BOAT:"boat",CALCULATOR:"calculator",CAR:"car",CARAVAN:"caravan",CHAT:"chat",CHEVRON_DOWN:"chevron-down",CHEVRON_RIGHT:"chevron-right",CHEVRON_UP:"chevron-up",CIRCLE_QUESTION:"circle-question",CIRCLE_TICK:"circle-tick",COCKTAIL:"cocktail",DANCE_STEPS:"dance-steps",DEVICES:"devices",ENVELOPE:"envelope",HAND_DOLLAR:"hand-dollar",FACE_ID:"face-id",IPHONE:"iphone",LIGHT_TRUCK:"light-truck",LIST:"list",LOAN:"loan",MENU:"menu",MONEY_BUNDLE:"money-bundle",MOTORBIKE:"motorbike",NODE:"node",PHONE:"phone",PLANE:"plane",RELATIONSHIP:"relationship",SHIELD_DOLLAR:"shield-dollar",SHIELD_PADLOCK:"shield-padlock",SLINKY:"slinky",SPEED:"speed",STOPWATCH:"stopwatch",THUMBS_UP:"thumbs-up",TROPHY:"trophy"}),Object.freeze({PDF:"pdf",CALCULATOR:"calculator"}),Object.freeze({DIV:"div",P:"p",SPAN:"span"}),Object.freeze({UL:"ul",OL:"ol"})),m=(Object.freeze({H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6"}),Object.freeze({hero:{FONT_SIZE:{NORMAL:"48px",LARGE:"104px"},FONT_WEIGHT:i.SEMI_BOLD,FONT_FAMILY:o.TITLE,LINE_HEIGHT:{NORMAL:"48px",LARGE:"120px"}},h1:{FONT_SIZE:{NORMAL:"48px",LARGE:"48px"},FONT_WEIGHT:i.SEMI_BOLD,FONT_FAMILY:o.TITLE,LINE_HEIGHT:{NORMAL:"56px",LARGE:"56px"}},h2:{FONT_SIZE:{NORMAL:"40px",LARGE:"40px"},FONT_WEIGHT:i.SEMI_BOLD,FONT_FAMILY:o.TITLE,LINE_HEIGHT:{NORMAL:"48px",LARGE:"48px"}},h3:{FONT_SIZE:{NORMAL:"32px",LARGE:"40px"},FONT_WEIGHT:i.SEMI_BOLD,FONT_FAMILY:o.TITLE,LINE_HEIGHT:{NORMAL:"36px",LARGE:"48px"}},h4:{FONT_SIZE:{NORMAL:"24px",LARGE:"32px"},FONT_WEIGHT:i.SEMI_BOLD,FONT_FAMILY:o.TITLE,LINE_HEIGHT:{NORMAL:"28px",LARGE:"36px"}},h5:{FONT_SIZE:{NORMAL:"20px",LARGE:"20px"},FONT_WEIGHT:i.SEMI_BOLD,FONT_FAMILY:o.TITLE,LINE_HEIGHT:{NORMAL:"24px",LARGE:"32px"}},h6:{FONT_SIZE:{NORMAL:"16px",LARGE:"16px"},FONT_WEIGHT:i.SEMI_BOLD,FONT_FAMILY:o.TITLE,LINE_HEIGHT:{NORMAL:"22px",LARGE:"22px"}}}),Object.freeze({NORMAL:"0.75em 1em"}),r.ZP.ul.withConfig({displayName:"List__StyledList",componentId:"sc-1qtiztv-0"})(["margin:0 0 0 ",";padding:0;list-style-position:outside;> li{position:relative;margin:0 0 "," 0;list-style:",";::before{font-size:36px;position:absolute;top:0;left:-",";content:'","';color:",";}}"],(function(e){return e.marginLeft}),(function(e){return e.itemMarginBottom}),(function(e){var t=e.variant,n=e.orderedListType;if("ol"!==t)return"none";switch(n){case"a":return"lower-alpha";case"A":return"upper-alpha";case"i":return"lower-roman";case"I":return"upper-roman";case"1":default:return"decimal"}}),c.M24,(function(e){return"ol"===e.variant?"":"•"}),(function(e){return e.dotColor}))),u=function(e){var t=e.id,n=e.className,r=e.children,o=e.dotColor,i=void 0===o?l.BLUE_LIGHT:o,u=e.itemMarginBottom,E=void 0===u?c.M0:u,p=e.marginLeft,d=void 0===p?c.M24:p,f=e.variant,h=void 0===f?s.UL:f,y=e.orderedListType,x={id:t,className:n,dotColor:i,itemMarginBottom:E,marginLeft:d,variant:h,orderedListType:y};return a.createElement(m,Object.assign({},x,{as:h,type:y}),r)},E=r.ZP.li.withConfig({displayName:"ListItem__StyledListItem",componentId:"sc-1j6x76z-0"})(["font-weight:300;"]),p=function(e){return a.createElement(E,e,e.children)}},27561:function(e,t,n){var a=n(67990),r=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(r,""):e}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var a=n(13218),r=n(7771),l=n(14841),o=Math.max,i=Math.min;e.exports=function(e,t,n){var c,s,m,u,E,p,d=0,f=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function x(t){var n=c,a=s;return c=s=void 0,d=t,u=e.apply(a,n)}function T(e){return d=e,E=setTimeout(L,t),f?x(e):u}function g(e){var n=e-p;return void 0===p||n>=t||n<0||h&&e-d>=m}function L(){var e=r();if(g(e))return I(e);E=setTimeout(L,function(e){var n=t-(e-p);return h?i(n,m-(e-d)):n}(e))}function I(e){return E=void 0,y&&c?x(e):(c=s=void 0,u)}function A(){var e=r(),n=g(e);if(c=arguments,s=this,p=e,n){if(void 0===E)return T(p);if(h)return clearTimeout(E),E=setTimeout(L,t),x(p)}return void 0===E&&(E=setTimeout(L,t)),u}return t=l(t)||0,a(n)&&(f=!!n.leading,m=(h="maxWait"in n)?o(l(n.maxWait)||0,t):m,y="trailing"in n?!!n.trailing:y),A.cancel=function(){void 0!==E&&clearTimeout(E),d=0,c=p=s=E=void 0},A.flush=function(){return void 0===E?u:I(r())},A}},7771:function(e,t,n){var a=n(55639);e.exports=function(){return a.Date.now()}},14841:function(e,t,n){var a=n(27561),r=n(13218),l=n(33448),o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(l(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=i.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}}}]);
//# sourceMappingURL=7e578d7ca2bfe800d0714498eab24e7f63871242-62a1716d80917bab2218.js.map