parcelRequire=function(n,t,i,r){function u(i,r){function e(n){return u(e.resolve(n))}var o,c,f;if(!t[i]){if(!n[i]){if(o="function"==typeof parcelRequire&&parcelRequire,!r&&o)return o(i,!0);if(s)return s(i,!0);if(h&&"string"==typeof i)return h(i);c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c;}e.resolve=function(t){return n[i][1][t]||t};e.cache={};f=t[i]=new u.Module(i);n[i][0].call(f.exports,e,f,f.exports,this)}return t[i].exports}var f,s="function"==typeof parcelRequire&&parcelRequire,h="function"==typeof require&&require,e,o;for(u.isParcelRequire=!0,u.Module=function(n){this.id=n;this.bundle=u;this.exports={}},u.modules=n,u.cache=t,u.parent=s,u.register=function(t,i){n[t]=[function(n,t){t.exports=i},{}]},e=0;e<i.length;e++)try{u(i[e])}catch(n){f||(f=n)}if(i.length&&(o=u(i[i.length-1]),"object"==typeof exports&&"undefined"!=typeof module?module.exports=o:"function"==typeof define&&define.amd?define(function(){return o}):r&&(this[r]=o)),parcelRequire=u,f)throw f;return u}({Rztx:[function(n,t){function i(n,t){var i=new Date(n);return i.setDate(i.getDate()+t),i}function r(n,t){var i=new Date(n);return i.setMonth(i.getMonth()+t),i}function u(n,t){return Math.abs(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))/864e5}function f(n){return Intl.DateTimeFormat("en-AU",{day:"numeric",month:"long",year:"numeric"}).format(n)}function e(n,t){return new Date(n,t+1,0).getDate()}t.exports={AddDays:i,AddMonths:r,TotalDays:u,FormatDate:f,DaysInMonth:e}},{}],DC6C:[function(n,t){function i(n){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,h(i.key),i)}function s(n,t,i){return t&&f(n.prototype,t),i&&f(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function h(n){var t=c(n,"string");return"symbol"==i(t)?t:t+""}function c(n,t){var r,u;if("object"!=i(n)||!n)return n;if(r=n[Symbol.toPrimitive],void 0!==r){if(u=r.call(n,t||"default"),"object"!=i(u))return u;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===t?String:Number)(n)}var r=n("./date-fns"),u=r.AddDays,l=r.TotalDays,a=r.DaysInMonth,e=r.FormatDate,v=function(){function n(t,i,r){o(this,n);this.start=t;this.end=i;this.id=r}return s(n,[{key:"identifier",get:function(){return this.id}},{key:"isValid",get:function(){return null!==this.start&&void 0!==this.start&&null!==this.end&&void 0!==this.end}},{key:"isOrdered",get:function(){return this.isValid&&this.start.getTime()<=this.end.getTime()}},{key:"timeSpan",get:function(){return this.end.getTime()-this.start.getTime()}},{key:"totalDays",get:function(){return l(this.start,this.end)}},{key:"string",get:function(){return"From ".concat(this.start?e(this.start):"unknown"," to ").concat(this.end?e(this.end):"unknown",".")}},{key:"yearString",get:function(){var i=this.end.getDate()-this.start.getDate(),t=this.end.getMonth()-this.start.getMonth(),r=this.end.getFullYear()-this.start.getFullYear(),n;return i<0&&(i+=a(this.end.getFullYear(),this.end.getMonth()),t-=1),t<0&&(t+=12,r-=1),n="",r>0&&(n+="".concat(r," year").concat(1==r?"":"s")),t>0&&(n+="".concat(n.length>0?", ":"").concat(t," month").concat(1==t?"":"s")),i>0&&(n+="".concat(n.length>0?", ":"").concat(i," day").concat(1==i?"":"s")),n}},{key:"intersects",value:function(n){var t=!1,i=this.start,r=n.start,f=this.end,e=n.end;return t=i<=r&&f>=r,t|=i<=e&&f>=e,t|=i>=r&&f<=e,t|=u(f,1).getTime()===r.getTime(),0!=(t|=u(e,1).getTime()===i.getTime())}}],[{key:"fromDays",value:function(t,i){return new n(u(t,-i),t)}}])}();t.exports={DateRange:v}},{"./date-fns":"Rztx"}],wWRZ:[function(n,t){function f(n){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function e(n){return p(n)||y(n)||v(n)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function v(n,t){if(n){if("string"==typeof n)return o(n,t);var i={}.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(n,t):void 0}}function y(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}function p(n){if(Array.isArray(n))return o(n)}function o(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=Array(t);i<t;i++)r[i]=n[i];return r}function w(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,k(i.key),i)}function b(n,t,i){return t&&h(n.prototype,t),i&&h(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function k(n){var t=d(n,"string");return"symbol"==f(t)?t:t+""}function d(n,t){var i,r;if("object"!=f(n)||!n)return n;if(i=n[Symbol.toPrimitive],void 0!==i){if(r=i.call(n,t||"default"),"object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===t?String:Number)(n)}var g=n("./daterange"),r=g.DateRange,s=n("./date-fns"),i=s.AddDays,u=s.AddMonths,c=s.TotalDays,l={UNKNOWN:0,MODE2007:1,MODE2010:2},nt=function(){function n(){w(this,n)}return b(n,null,[{key:"daysInTenYears",get:function(){return 3652}},{key:"Birthday31July1",value:function(n){return new Date(n.getFullYear()+31+(n.getMonth()>5?1:0),6,1)}},{key:"CalculateBaseDate",value:function(t,i,r,f){var s=new Date(2e3,6,1),h=s,e=n.Birthday31July1(i),o=e,c=u(r,12);return i<=new Date(1978,6,1)&&(r?(o=c)<e&&(o=e):f&&(o=u(f,12)),h=i.getTime()===new Date(1969,6,1).getTime()?s:o>s?o:s),t===l.MODE2010&&(i>new Date(1978,6,1)||h>new Date(2010,5,30))&&(h=f?u(f,12):r?e>c?e:c:e),h}},{key:"LifetimeHealthCoverAge",value:function(n,t,i){var r,f;return null==t?(r=new Date(n.getFullYear(),6,1))>=n&&(r=u(r,-12)):(r=new Date(t.getFullYear(),6,1))>=t&&(r=u(r,-12)),f=i.getMonth()>6?1:i.getMonth()<6?0:1==i.getDate()?0:1,r.getFullYear()-i.getFullYear()-f}},{key:"Formula341",value:function(t,i,r,u){return r&&r<=i?0:Math.min(70,2*(n.LifetimeHealthCoverAge(t,r,u)-30))}},{key:"Formula345",value:function(n,t,i,r,u){var h=c(n,t),f=i?c(n,i):0,e=null!=r?r:0,o=null!=u?u:0,s=0;return s=f>0?Math.max(0,f-e-o-1094):Math.max(0,h-e-o-1094),2*Math.ceil(s/365)}},{key:"Loading",value:function(t,i,r,u,f,e,o){var s=0;return i>new Date(1934,6,1)&&t>n.Birthday31July1(i)?(s=0,r<=t&&(s=u&&u<=r&&f?n.Formula345(t,r,f,e,o):u&&u>r&&f?n.Formula341(t,r,u,i)+n.Formula345(t,r,f,e,o):n.Formula341(t,r,u,i)),Math.min(.7,s/100)):null}},{key:"deintersect",value:function(n){var o=!1,t,u,i,r,f,e;if(n.length>1)for(t=0;t<n.length-1;){for(u=n[t],i=1;i<n.length;){if(i!=t&&(r=n[i],u.intersects(r))){f=u.start;e=u.end;r.start<f&&(f=r.start);r.end>e&&(e=r.end);n[t].start=f;n[t].end=e;n.splice(i,1);o=!0;break}i++}if(o)break;t++}return o}},{key:"removeIntersections",value:function(t){var i=[],u;for(t.forEach(function(n){i.push(new r(n.start,n.end))}),u=0;u<i.length;)null===i[u].start||null===i[u].end?i.splice(u,1):u+=1;for(;n.deintersect(i););return i}},{key:"calculateGap",value:function(n,t,u){for(var l,f,o,c,s=!1,h=0;h<n.length;h++)if(l=n[h],t.start>=l.start&&t.end<=l.end){s=!0;break}if(!s){if(f=[],o=[],f.push(t),n.forEach(function(n){o=[];f.forEach(function(t){n.start<=t.start&&n.end>=t.end||(n.start>t.start&&n.end<t.end?(o.push(new r(t.start,i(n.end,-1))),o.push(new r(i(n.end,1),t.end))):n.start<=t.start&&n.end>=t.start&&n.end<=t.end?o.push(new r(i(n.end,1),t.end)):n.start>=t.start&&n.start<t.end&&n.end>=t.end?o.push(new r(t.start,i(-1,n.start))):o.push(t))});f=e(o)}),f.length>0&&u>0)for(;u>0&&f.length>0;){if(c=f[0].totalDays+1,!(c<=u)){u-=c;break}u-=c;f.splice(0,1)}s=0==f.length}return{gap:s,bonusDays:u}}},{key:"dayCount",value:function(t,u,f,e){for(var o=u.length-1,s=u[o].totalDays+1,h=t,c=i(u[o].start,-1);--o>=0;){h=i(u[o].end,1);var a=new r(h,c),l=n.calculateGap(f,a,e),v=l.gap;if(e=l.bonusDays,!v)break;s+=u[o].totalDays+1;c=i(u[o].start,-1)}return{days:s,bonus:e}}},{key:"totalDaysContinuousToEnd",value:function(t,i,r,u,f,o){var s;i=(i=n.removeIntersections(i)).sort(function(n,t){return n.start.getTime()-t.start.getTime()});s=[].concat(e(null!=r?r:[]),e(null!=u?u:[]),e(null!=f?f:[]));s=(s=n.removeIntersections(s)).sort(function(n,t){return n.start.getTime()-t.start.getTime()});var l=o?1094:0,h=n.dayCount(t,i,s,l),c=h.days,a=h.bonus;return!0===o&&a<0&&(c=n.dayCount(t,i,s,0).days),c}}])}();t.exports={LHC:nt,Mode:l,QuestionType:{DATE:0,YESNO:1,NUMBER:2,MULTIDATE:3,MULTIDATE_RESTRICTED:4},Reason:{LoadingApplies:0,LoadingDoesNotApply:1,NoMedicare:2,NotRegisteredMedicare:3,ExistingLoadingApplies:4,Medicare12DateInFuture:5,ReferToFund:6,Not2007Rules:7,DoesNotApply:8,IsSatisfied:9,IsNotSatisfied:10}}},{"./daterange":"DC6C","./date-fns":"Rztx"}],tTEy:[function(n,t,i){var r=n("./date-fns"),u=r.FormatDate;t.exports={props:["date","label","add","remove","disabled"],data:function(){return{d:this.date?this.date.getDate():"",m:this.date?this.date.getMonth():"",y:this.date?this.date.getFullYear():null}},computed:{enteredDate:function(){return new Date(this.y,this.m,this.d)},enteredDateIsDate:function(){return 4==this.y.toString().length&&this.enteredDate.getFullYear()==this.y&&this.enteredDate.getDate()==this.d&&this.enteredDate.getMonth()==this.m},validDate:function(){return this.enteredDateIsDate?this.enteredDate:null},formattedDate:function(){return this.validDate?u(this.date):""}},methods:{yearUpdated:function(n){this.y=n.target.value;this.dateUpdated()},dateUpdated:function(){""!==this.d&&""!==this.m&&this.y&&this.$emit("update:date",this.validDate)}}},function(){var n=i.default||t.exports;"function"==typeof n&&(n=n.options);Object.assign(n,{render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{staticClass:"col-auto date-entry"},[n.label?t("label",[n._v(n._s(n.label))]):n._e(),n._v(" "),t("select",{directives:[{name:"model",rawName:"v-model.number",value:n.d,expression:"d",modifiers:{number:!0}}],staticClass:"day",attrs:{disabled:n.disabled,name:"ddlDay",tabindex:"0"},on:{change:[function(t){var i=Array.prototype.filter.call(t.target.options,function(n){return n.selected}).map(function(t){var i="_value"in t?t._value:t.value;return n._n(i)});n.d=t.target.multiple?i:i[0]},n.dateUpdated]}},[t("option",{attrs:{disabled:"",value:""}},[n._v("Day")]),n._v(" "),t("option",{attrs:{value:"1"}},[n._v("1")]),n._v(" "),t("option",{attrs:{value:"2"}},[n._v("2")]),n._v(" "),t("option",{attrs:{value:"3"}},[n._v("3")]),n._v(" "),t("option",{attrs:{value:"4"}},[n._v("4")]),n._v(" "),t("option",{attrs:{value:"5"}},[n._v("5")]),n._v(" "),t("option",{attrs:{value:"6"}},[n._v("6")]),n._v(" "),t("option",{attrs:{value:"7"}},[n._v("7")]),n._v(" "),t("option",{attrs:{value:"8"}},[n._v("8")]),n._v(" "),t("option",{attrs:{value:"9"}},[n._v("9")]),n._v(" "),t("option",{attrs:{value:"10"}},[n._v("10")]),n._v(" "),t("option",{attrs:{value:"11"}},[n._v("11")]),n._v(" "),t("option",{attrs:{value:"12"}},[n._v("12")]),n._v(" "),t("option",{attrs:{value:"13"}},[n._v("13")]),n._v(" "),t("option",{attrs:{value:"14"}},[n._v("14")]),n._v(" "),t("option",{attrs:{value:"15"}},[n._v("15")]),n._v(" "),t("option",{attrs:{value:"16"}},[n._v("16")]),n._v(" "),t("option",{attrs:{value:"17"}},[n._v("17")]),n._v(" "),t("option",{attrs:{value:"18"}},[n._v("18")]),n._v(" "),t("option",{attrs:{value:"19"}},[n._v("19")]),n._v(" "),t("option",{attrs:{value:"20"}},[n._v("20")]),n._v(" "),t("option",{attrs:{value:"21"}},[n._v("21")]),n._v(" "),t("option",{attrs:{value:"22"}},[n._v("22")]),n._v(" "),t("option",{attrs:{value:"23"}},[n._v("23")]),n._v(" "),t("option",{attrs:{value:"24"}},[n._v("24")]),n._v(" "),t("option",{attrs:{value:"25"}},[n._v("25")]),n._v(" "),t("option",{attrs:{value:"26"}},[n._v("26")]),n._v(" "),t("option",{attrs:{value:"27"}},[n._v("27")]),n._v(" "),t("option",{attrs:{value:"28"}},[n._v("28")]),n._v(" "),t("option",{attrs:{value:"29"}},[n._v("29")]),n._v(" "),t("option",{attrs:{value:"30"}},[n._v("30")]),n._v(" "),t("option",{attrs:{value:"31"}},[n._v("31")])]),n._v(" "),t("select",{directives:[{name:"model",rawName:"v-model.number",value:n.m,expression:"m",modifiers:{number:!0}}],staticClass:"month",attrs:{disabled:n.disabled,name:"ddlMonth",tabindex:"0"},on:{change:[function(t){var i=Array.prototype.filter.call(t.target.options,function(n){return n.selected}).map(function(t){var i="_value"in t?t._value:t.value;return n._n(i)});n.m=t.target.multiple?i:i[0]},n.dateUpdated]}},[t("option",{attrs:{disabled:"",selected:"",value:""}},[n._v("Month")]),n._v(" "),t("option",{attrs:{value:"0"}},[n._v("January")]),n._v(" "),t("option",{attrs:{value:"1"}},[n._v("February")]),n._v(" "),t("option",{attrs:{value:"2"}},[n._v("March")]),n._v(" "),t("option",{attrs:{value:"3"}},[n._v("April")]),n._v(" "),t("option",{attrs:{value:"4"}},[n._v("May")]),n._v(" "),t("option",{attrs:{value:"5"}},[n._v("June")]),n._v(" "),t("option",{attrs:{value:"6"}},[n._v("July")]),n._v(" "),t("option",{attrs:{value:"7"}},[n._v("August")]),n._v(" "),t("option",{attrs:{value:"8"}},[n._v("September")]),n._v(" "),t("option",{attrs:{value:"9"}},[n._v("October")]),n._v(" "),t("option",{attrs:{value:"10"}},[n._v("November")]),n._v(" "),t("option",{attrs:{value:"11"}},[n._v("December")])]),n._v(" "),t("input",{staticClass:"year",attrs:{disabled:n.disabled,name:"txtYear",pattern:"[0-9]*",type:"number",placeholder:"Year",tabindex:"0"},domProps:{value:n.y},on:{keyup:n.yearUpdated}}),n._v(" "),n.add?t("button",{staticClass:"action",attrs:{title:"Add a new row"},on:{click:function(){return n.$emit("add")}}},[n._v(n._s(n.add))]):n._e(),n._v(" "),n.remove?t("button",{staticClass:"action",attrs:{title:"Remove this row"},on:{click:function(){return n.$emit("remove")}}},[n._v(n._s(n.remove))]):n._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})}()},{"./date-fns":"Rztx"}],nCrZ:[function(n,t,i){var f=n("./date.vue"),e=n("./date-fns"),o=e.FormatDate,s=n("./daterange"),u=s.DateRange,h=n("./lhc-calc"),r=h.QuestionType;t.exports={components:{date:f},props:["question","active","dates","hasPrevious"],data:function(){return{date:void 0,number:"",choice:null,ranges:3===this.question.type?[new u(null,null,1e3)]:[new u(this.dateLoadingCommenced,null,0),new u(null,this.coverDate,1)],rangeid:2}},watch:{coverDate:function(n){4===this.question.type&&(this.ranges[this.ranges.length-1].end=n)},dateLoadingCommenced:function(n){4===this.question.type&&(this.ranges[0].start=n)}},computed:{coverDate:function(){return this.dates.COVERDATE},dateLoadingCommenced:function(){return this.dates.DATELOADINGCOMMENCED},hasEntered:function(){return this.question.type===r.DATE?void 0!==this.date&&null!==this.date:this.question.type===r.NUMBER?""!==this.number:this.question.type===r.MULTIDATE||this.question.type===r.MULTIDATE_RESTRICTED?this.isValid:void 0},isDateInFuture:function(){return this.date>=new Date((new Date).setHours(0,0,0))},isValid:function(){return this.question.type===r.DATE?this.hasEntered&&null!=this.date:this.question.type===r.YESNO?0==this.choice||1==this.choice:this.question.type===r.NUMBER?this.number==parseInt(this.number):(this.question.type===r.MULTIDATE||this.question.type==r.MULTIDATE_RESTRICTED)&&0===this.ranges.filter(function(n){return!n.isValid}).length},canSubmit:function(){return this.question.type===r.DATE?this.hasEntered&&null!=this.date&&!(!this.question.futureDates&&this.isDateInFuture)&&null===this.validatorMessage:this.question.type===r.YESNO?this.isValid:this.question.type===r.NUMBER?this.isValid&&null===this.validatorMessage:(this.question.type===r.MULTIDATE||this.question.type===r.MULTIDATE_RESTRICTED)&&this.isValid&&null===this.validatorMessage},validatorMessage:function(){switch(this.question.type){case r.DATE:return this.question.validator&&this.hasEntered?this.question.validator(this.date):null;case r.NUMBER:return this.question.validator&&""!=this.number?this.question.validator(this.number):null;default:return null}},error:function(){switch(this.question.type){case r.DATE:return this.hasEntered?this.isValid?!this.question.futureDates&&this.isDateInFuture?"Please enter a date in the past.":null:"Please enter a valid date.":null;case r.NUMBER:return this.hasEntered?this.IsValid?"Please enter a valid whole number":"":null;case r.MULTIDATE_RESTRICTED:case r.MULTIDATE:if(this.hasEntered){if(!this.isValid)return"Please ensure that all dates are valid.";if(this.ranges.filter(function(n){return!n.isOrdered}).length>0)return"Please ensure that the start dates are earlier than the end dates."}return null;default:return null}},firstRange:function(){return 0},lastRange:function(){return this.ranges.length-1}},methods:{handleKeypress:function(n){var t=null;13===n.keyCode&&this.canSubmit?t=document.getElementById("submitButton"):"y"===n.key?t=document.getElementById("yes"):"n"===n.key&&(t=document.getElementById("no"));t&&(t.focus(),t.click(),n.preventDefault())},format:function(n){var t=this;return n.replace(/\{([A-Z]+)\}/g,function(n,i){return i in t.dates?o(t.dates[i]):"ERROR"})},setValue:function(){switch(this.question.type){case r.DATE:this.$emit("answered",{q:this.question.id,a:this.date});break;case r.YESNO:this.$emit("answered",{q:this.question.id,a:1==this.choice});break;case r.NUMBER:this.$emit("answered",{q:this.question.id,a:this.number});break;case r.MULTIDATE_RESTRICTED:case r.MULTIDATE:this.$emit("answered",{q:this.question.id,a:this.ranges})}},canRemoveRange:function(n){return n>this.firstRange&&n<this.lastRange},addRange:function(){this.ranges.splice(-1,0,new u(null,null,this.rangeid++))},removeRange:function(n){this.ranges.splice(n,1)}}},function(){var n=i.default||t.exports;"function"==typeof n&&(n=n.options);Object.assign(n,{render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return n.active||n.question.answer?t("div",{staticClass:"question","class":{active:n.active,answered:n.question.answered},on:{keypress:n.handleKeypress}},[t("p",[n._v(n._s(this.format(n.question.text)))]),n._v(" "),n.question.hint&&n.active?t("div",{staticClass:"hint"},[n._v(" "+n._s(this.format(n.question.hint))+" ")]):n._e(),n._v(" "),n.active&&(n.error||n.isValid&&n.validatorMessage)?t("div",{staticClass:"alert alert-danger"},[n._v(n._s(n.error)+" "+n._s(n.validatorMessage))]):n._e(),n._v(" "),!n.active&&3!==n.question.type&&4!==n.question.type&&n.question.answer?t("p",{staticClass:"answer"},[n._v(" "+n._s(n.question.answer)+" ")]):n._e(),n._v(" "),n.active||3!==n.question.type&&4!==n.question.type||!n.question.answer?n._e():t("ul",{staticClass:"answer"},n._l(n.question.answer,function(i){return t("li",{key:i.id},[n._v(n._s(i.string))])}),0),n._v(" "),n.active&&0==n.question.type?t("div",{staticClass:"control form-row"},[t("date",{attrs:{date:n.date},on:{"update:date":function(t){n.date=t}}})],1):n._e(),n._v(" "),n.active&&1===n.question.type?t("div",{staticClass:"control form-row"},[t("label",{staticClass:"radio-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:n.choice,expression:"choice"}],attrs:{type:"radio",id:"yes",name:"yesno",value:"1",tabindex:"0",accesskey:"y"},domProps:{checked:n._q(n.choice,"1")},on:{change:function(){n.choice="1"}}}),n._v("Yes")]),n._v(" "),t("label",{staticClass:"radio-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:n.choice,expression:"choice"}],attrs:{type:"radio",id:"no",name:"yesno",value:"0",tabindex:"0",accesskey:"n"},domProps:{checked:n._q(n.choice,"0")},on:{change:function(){n.choice="0"}}}),n._v("No")])]):n._e(),n._v(" "),n.active&&2===n.question.type?t("div",{staticClass:"control form-inline"},[t("div",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model.number",value:n.number,expression:"number",modifiers:{number:!0}}],attrs:{name:"value",pattern:"[0-9]*",tabindex:"0",type:"number"},domProps:{value:n.number},on:{input:function(t){t.target.composing||(n.number=n._n(t.target.value))},blur:function(){return n.$forceUpdate()}}})])]):n._e(),n._v(" "),n.active&&3===n.question.type?t("div",n._l(n.ranges,function(i,r){return t("div",{key:i.identifier,staticClass:"control form-row"},[t("date",{attrs:{date:i.start,label:"From:"},on:{"update:date":function(n){i.start=n}}}),n._v(" "),t("date",{attrs:{date:i.end,label:"To:",add:r==n.lastRange?"+":"",remove:r!=n.lastRange?"-":""},on:{"update:date":function(n){i.end=n},add:n.addRange,remove:function(){return n.removeRange(r)}}})],1)}),0):n._e(),n._v(" "),n.active&&4===n.question.type?t("div",n._l(n.ranges,function(i,r){return t("div",{key:i.identifier,staticClass:"control form-row"},[t("date",{attrs:{date:i.start,label:"From:",disabled:r==n.firstRange},on:{"update:date":function(n){i.start=n}}}),n._v(" "),t("date",{attrs:{date:i.end,label:"To:",add:r==n.lastRange?"+":"",remove:n.canRemoveRange(r)?"-":"",disabled:r==n.lastRange},on:{"update:date":function(n){i.end=n},add:n.addRange,remove:function(){return n.removeRange(r)}}})],1)}),0):n._e(),n._v(" "),n.active?t("div",{staticClass:"buttons"},[n.hasPrevious?t("button",{staticClass:"left secondary",attrs:{id:"cancelButton",type:"button",tabindex:"0"},on:{click:function(){return n.$emit("previous",n.question.id)}}},[n._v(" Previous ")]):n._e(),n._v(" "),t("button",{staticClass:"navigation right","class":{disabled:!this.canSubmit},attrs:{id:"submitButton",type:"button",disabled:!this.canSubmit,tabindex:"0"},on:{click:n.setValue}},[n._v(" Next ")])]):n._e()]):n._e()},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})}()},{"./date.vue":"tTEy","./date-fns":"Rztx","./daterange":"DC6C","./lhc-calc":"wWRZ"}],O9o4:[function(n,t,i){var f=n("./lhc-calc"),r=f.Reason,e=n("./date-fns"),u=e.FormatDate;t.exports={props:["active","answers","reason","coverDate","baseDate","loading","dates","coverCancelled","dateOfBirth","allowClientSave","allowPrint"],computed:{not2007Rules:function(){return this.reason===r.Not2007Rules},referToFund:function(){return this.reason===r.ReferToFund},noMedicare:function(){return this.reason===r.NoMedicare},notRegisteredMedicare:function(){return this.reason===r.NotRegisteredMedicare},existingLoading:function(){return this.reason===r.ExistingLoadingApplies},medicareDateIsInTheFuture:function(){return this.reason===r.Medicare12DateInFuture},applies:function(){return this.reason===r.LoadingApplies},baseDateInTheFuture:function(){return this.baseDate>=this.coverDate},formattedCoverDate:function(){return u(this.coverDate)},formattedBaseDate:function(){return u(this.baseDate)},formattedLoading:function(){return new Intl.NumberFormat("en-AU",{style:"percent"}).format(this.loading)},clientSaveAvailable:function(){return!!this.allowClientSave}},methods:{print:function(){window.print&&window.print()},format:function(n){var t=this;return n.replace(/\{([A-Z]+)\}/g,function(n,i){return i in t.dates?u(t.dates[i]):"ERROR"})}}},function(){var n=i.default||t.exports;"function"==typeof n&&(n=n.options);Object.assign(n,{render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{staticClass:"summary"},[t("h5",[n._v("Questions Answered")]),n._v(" "),t("ul",n._l(n.answers,function(i){return t("li",{key:i.id},[n._v(" "+n._s(n.format(i.text))+" "),t("strong",[n._v(n._s(i.answer))])])}),0),n._v(" "),t("h5",[n._v("Lifetime Health Cover")]),n._v(" "),t("h6",[n._v(" Cover date: "),t("strong",[n._v(n._s(n.formattedCoverDate))])]),n._v(" "),n.not2007Rules?t("div",[t("h6",[n._v("Please contact the Private Health Insurance Ombudsman")]),n._v(" "),n._m(0)]):n.referToFund?t("div",[t("h6",[n._v(" Please contact your Private Health Insurer to determine your correct Lifetime Health Cover loading. ")]),n._v(" "),t("p",[n._v(" To calculate your loading (if any) your insurer will also require information about past periods of hospital cover, including suspensions of cover; any periods of alternative cover; and time spent overseas. ")])]):n.medicareDateIsInTheFuture?t("div",[t("h6",[n._v("Lifetime Health Cover loading does not yet apply")]),n._v(" "),t("p",[n._v(" Your initial LHC base date is in the future ("+n._s(n.formattedBaseDate)+"). If you do not obtain hospital cover on or before your base date, you may have to pay a LHC loading when you obtain hospital cover in the future. ")])]):n.noMedicare?t("div",[t("h6",[n._v("Lifetime Health Cover does not apply")]),n._v(" "),t("p",[n._v(" Until new migrants become registered as eligible for Medicare, Lifetime Health Cover loadings do not apply. ")])]):n.notRegisteredMedicare?t("div",[t("h6",[n._v("Lifetime Health Cover does not apply")]),n._v(" "),t("p",[n._v(" Until registered as eligible for Medicare, Lifetime Health Cover loadings do not apply. ")])]):n.existingLoading?t("div",[t("h6",[n._v("Existing Lifetime Health Cover applies")]),n._v(" "),t("p",[n._v(" This calculator will provide you with information based on legislation which commenced on 1 April 2007. If you had hospital cover on 31 March 2007 and that cover is continuing, your LHC loading, if any, is based on the previous legislation. Your health fund can provide you with details of that loading. ")])]):n.applies?t("div",[t("h6",[n._v("Lifetime Health Cover applies")]),n._v(" "),t("p",[n._v(" Because you are within the specified age limits, the Lifetime Health Cover rules apply and your hospital cover insurance premiums may have an additional loading (see below). ")]),n._v(" "),t("h6",[n._v(" Base date for Lifetime Health Cover: "),t("strong",[n._v(n._s(n.formattedBaseDate))])]),n._v(" "),t("p",[n._v(" The base date for Lifetime Health Cover is determined by age, time spent overseas, and for new arrivals, the Medicare eligibility day. "),n.baseDateInTheFuture?t("span",[n._v("If you do not obtain hospital cover on or before your base date, you may have to pay a LHC loading when you obtain hospital cover in the future.")]):n._e()]),n._v(" "),t("h6",[n._v(" Lifetime Health Cover loading: "),t("strong",[n._v(n._s(n.formattedLoading))])]),n._v(" "),t("p",[n._v(" Your original loading is "+n._s(n.formattedLoading)+". If you have held hospital cover for 10 continuous years and your loading has not yet been removed, please contact your insurer for more information. ")]),n._v(" "),n.coverCancelled?t("p",[n._v(" If your loading has been removed then please note loading may apply again if you rejoin private health insurance later. Contact an insurer or the Private Health Insurance Ombudsmans office for more information. ")]):n._e(),n._v(" "),t("p",[n._v(" The cost of health insurance premiums for hospital cover increases by a loading if you have passed your base day. The loading is based on your age at the time you purchase private hospital cover. ")])]):t("div",[t("h6",[n._v("Lifetime Health Cover does not apply")]),n._v(" "),t("p",[n._v(" Lifetime Health Cover does not apply because you are not within the specified age limits. ")])]),n._v(" "),t("button",{staticClass:"secondary",attrs:{id:"startAgainButton",type:"button",tabindex:"0"},on:{click:function(){return n.$emit("restart")}}},[n._v(" Start again ")]),n._v(" "),n.allowPrint?t("button",{staticClass:"action",attrs:{id:"printButton",type:"button",tabindex:"0"},on:{click:n.print}},[n._v(" Print ")]):n._e(),n._v(" "),n.clientSaveAvailable?t("button",{staticClass:"action",attrs:{id:"saveButton",type:"button",tabindex:"0"},on:{click:function(){return n.$emit("save")}}},[n._v(" Save result ")]):n._e()])},staticRenderFns:[function(){var t=this.$createElement,n=this._self._c||t;return n("p",[this._v(" We cannot calculate your Lifetime Health Cover Loading because you are in a special category of people who established a loading prior to 23 April 2004. Please call the Private Health Insurance Ombudsman on 1300 737 299 or "),n("a",{attrs:{href:"//www.feedback.privatehealth.gov.au/003",title:"ask a question",target:"_blank"}},[this._v("ask a question")]),this._v(" for assistance in calculating your current loading. ")])}],_compiled:!0,_scopeId:null,functional:void 0})}()},{"./lhc-calc":"wWRZ","./date-fns":"Rztx"}],n11v:[function(n,t,i){t.exports={props:["loading","finished"],computed:{loadingAsInt:function(){return 100*this.loading}},methods:{ok:function(){SearchApp.SetLTL(this.loadingAsInt);$("#Search_LHCModal").modal("hide");this.$emit("closed")},cancel:function(){$("#Search_LHCModal").modal("hide");this.$emit("closed")}}},function(){var n=i.default||t.exports;"function"==typeof n&&(n=n.options);Object.assign(n,{render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",[this.finished?n("button",{staticClass:"action",on:{click:this.ok}},[this._v("OK")]):this._e(),this._v(" "),n("button",{staticClass:"secondary",on:{click:this.cancel}},[this._v("Cancel")])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})}()},{}],UspY:[function(n,t){function h(n){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,b(i.key),i)}function p(n,t,i){return t&&y(n.prototype,t),i&&y(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function b(n){var t=k(n,"string");return"symbol"==h(t)?t:t+""}function k(n,t){var i,r;if("object"!=h(n)||!n)return n;if(i=n[Symbol.toPrimitive],void 0!==i){if(r=i.call(n,t||"default"),"object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===t?String:Number)(n)}var c=n("./lhc-calc"),l=c.LHC,f=c.Mode,u=c.QuestionType,e=c.Reason,d=n("./question.vue"),g=n("./loading.vue"),nt=n("./lhc-modal-controls.vue"),w=n("./date-fns"),a=w.AddMonths,o=w.TotalDays,i={DateOfBirth:0,CoverOld:1,CoverOldCurrent:2,Exemption:3,NewArrival:4,FirstEnterAustraliaDate:5,AustralianCitizen:6,HasMedicare:7,MedicareEligibilityDate:8,Overseas31Birthday:9,Overseas31ReturnDate:10,RegisteredWithMedicare:11,AustralianCitizenMedicare:12,MedicareEligibilityDate2010:13,OverseasInitialBaseDate:14,EnterAustraliaAfterInitialBaseDate:15,CoverBaseDate:16,CoverDateCommenced:17,CoverStillCurrent:18,CoverCeaseDate:19,FinishedLoading:20,Over31OverseasReturn:21,Over31OverseasReturnDate:22,CoverSinceCeaseDate:23,CoverDaysCovered:24,OverseasSinceCeaseDate:25,CoverDaysOverseas:26},r=function(){return p(function n(t,i,r,u,f){v(this,n);this.id=t;this.type=i;this.text=r;this.hint=u;this.validator=f;this.futureDates=!1;this.value=null;this.answered=!1},[{key:"reset",value:function(){this.value=null;this.answered=!1}},{key:"answer",get:function(){if(null!=this.value){if(this.type===u.DATE)return new Intl.DateTimeFormat("en-AU",{day:"numeric",month:"long",year:"numeric"}).format(this.value);if(this.type===u.YESNO)return this.value?"Yes":"No";if(this.type===u.NUMBER)return this.value}return null}}])}(),tt=function(){return p(function n(){v(this,n);this.View=null;this.MainElementID="lhc-calculator";this.AutoStart=!0},[{key:"Init",value:function(){var n=this;null===this.View&&(this.View=new Vue({el:"#lhc-calculator",components:{question:d,results:g,controls:nt,clientmodal:ClientTemplate},data:{questions:[new r(i.DateOfBirth,u.DATE,"What is your date of birth?",""),new r(i.CoverOld,u.YESNO,"Did you have complying hospital cover on 31 March 2007?","Overseas visitors cover, overseas students cover, travel insurance and health cover that is provided by an international policy are NOT considered as complying hospital cover for the purposes of Lifetime Health Cover. People who are entitled to have their health care covered by the Australian Defence Forces, the Antarctic Division or under a Department of Veterans’ Affairs Gold Card are considered to have held complying hospital cover for the period that the services were covered. Hospital cover provided by a registered Australian private health insurer is complying hospital cover."),new r(i.CoverOldCurrent,u.YESNO,"Is that cover still current?",""),new r(i.Exemption,u.YESNO,"Were you granted an exemption when LHC was introduced?","When Lifetime Health Cover was introduced, there were transitional provisions for people to obtain an exemption to the general rules relating to Lifetime Health Cover providing they met specific conditions. The closing date for applications for the hardship provision was 1 July 2002. There is no discretionary power under which the Minister or the Department of Health and Ageing may extend this deadline."),new r(i.NewArrival,u.YESNO,"Did you first enter Australia on or after 1 July 2000?",""),new r(i.FirstEnterAustraliaDate,u.DATE,"When did you first enter Australia?","",function(n){return n<new Date(2e3,6,1)?"Please enter a date that is on or after 1 July 2000.":null}),new r(i.AustralianCitizen,u.YESNO,"Were you an Australian citizen or permanent resident when you first entered Australia?","If you were an Australian citizen or permanent resident returning to Australia after a period of time spent living overseas, select 'Yes'. If you were a new Australian entering Australia as a permanent resident or citizen for the first time, select 'No'."),new r(i.HasMedicare,u.YESNO,"Are you registered with Medicare?","Australian citizens born in Australia are usually registered by their parents as babies. If you have registered with Medicare for an interim (usually blue) or full (usually green) Medicare card you should answer YES to this question. If you are registered with Medicare under a Reciprocal Health Care Agreement only you should answer NO to this question. If you are unsure of your registration status please contact Medicare Australia."),new r(i.MedicareEligibilityDate,u.DATE,"What is your Medicare registration day?","This is the date that you were registered by Medicare as eligible for Medicare benefits equivalent to those of a permanent resident. If you are unsure of your Medicare registration day please contact Medicare Australia."),new r(i.Overseas31Birthday,u.YESNO,"Were you overseas on {OVERSEASDATE}?","If you were overseas but returned to Australia for a period of less than 90 days that included {OVERSEASDATE}, that counts as being overseas on {OVERSEASDATE}. Time spent living on Norfolk Island prior to 1 July 2016 counts as time spent overseas. From 1 July 2016 onwards, time spent on Norfolk Island counts as time in Australia."),new r(i.Overseas31ReturnDate,u.DATE,"When did you return to Australia?","Your return for LHC purposes is your first return to Australia for a period of 90 days or more.",function(t){return t<n.july1AfterBirthday31?"Please enter a date that is on or after ".concat(n.formattedDate(n.july1AfterBirthday31),"."):null}),new r(i.RegisteredWithMedicare,u.YESNO,"Are you registered with Medicare?","Australian citizens born in Australia are usually registered by their parents as babies. If you have registered with Medicare for an interim (usually blue) or full (usually green) Medicare card you should answer YES to this question. If you are registered with Medicare under a Reciprocal Health Care Agreement only you should answer NO to this question. If you are unsure of your registration status please contact Medicare Australia."),new r(i.AustralianCitizenMedicare,u.YESNO,"Were you an Australian Citizen when you registered with Medicare?",""),new r(i.MedicareEligibilityDate2010,u.DATE,"What is your Medicare registration day?","This is the date that you were registered by Medicare as eligible for Medicare benefits equivalent to those of a permanent resident. If you are unsure of your Medicare registration day please contact Medicare Australia."),new r(i.OverseasInitialBaseDate,u.YESNO,"Were you overseas on {INITIALBASEDATEDISPLAY}?","If you were overseas but returned to Australia for a period of less than 90 days that included {INITIALBASEDATEDISPLAY}, that counts as being overseas on {INITIALBASEDATEDISPLAY}. Time spent living on Norfolk Island prior to 1 July 2016 counts as time spent overseas. From 1 July 2016 onwards, time spent on Norfolk Island counts as time in Australia."),new r(i.EnterAustraliaAfterInitialBaseDate,u.DATE,"When did you first enter or return to Australia after {INITIALBASEDATEDISPLAY}?",""),new r(i.CoverBaseDate,u.YESNO,"Did you have complying hospital cover on or at any time since {BASEDATE}?","Overseas visitors cover, overseas students cover, travel insurance and health cover that is provided by an international policy are NOT considered as complying hospital cover for the purposes of Lifetime Health Cover. People who are entitled to have their health care covered by the Australian Defence Forces, the Antarctic Division or under a Department of Veterans’ Affairs Gold Card are considered to have held complying hospital cover for the period that the services were covered. Hospital cover provided by a registered Australian private health insurer is complying hospital cover."),new r(i.CoverDateCommenced,u.DATE,"When did you first obtain that hospital cover?","",function(t){return t<n.baseDate?"Please enter a date that is after ".concat(n.formattedDate(n.baseDate),"."):null}),new r(i.CoverStillCurrent,u.YESNO,"Is that hospital cover still current?",""),new r(i.CoverCeaseDate,u.DATE,"When did that hospital cover cease?","",function(t){return t<=n.coverCommenceDate?"Please enter a date that is after ".concat(n.formattedDate(n.coverCommenceDate>n.baseDate?n.coverCommenceDate:n.baseDate),"."):null}),new r(i.FinishedLoading,u.YESNO,"Were you advised by your Private Health insurer that you no longer needed to pay a loading on your hospital cover premiums?",""),new r(i.Over31OverseasReturn,u.YESNO,"When you returned to Australia after 1 July 2000, had you been overseas for a continuous period of more than one year?","If you returned to Australia for a period of less than 90 days that period counts as part of the period overseas. Time spent living on Norfolk Island prior to 1 July 2016 counts as time spent overseas. From 1 July 2016 onwards, time spent on Norfolk Island counts as time in Australia."),new r(i.Over31OverseasReturnDate,u.DATE,"When did you return to Australia?","",function(t){return t<=n.overseasDate?"Please enter a date that is after ".concat(n.formattedDate(n.overseasDate),"."):null}),new r(i.CoverSinceCeaseDate,u.YESNO,"Since {OVERSEASCEASEDATE} have you had hospital cover?","Overseas visitors cover, overseas students cover, travel insurance and health cover that is provided by an international policy are not counted as hospital cover for the purposes of Lifetime Health Cover. People who are entitled to have their health care covered by the Australian Defence Forces, the Antarctic Division or under a Department of Veterans’ Affairs Gold Card are considered to have held hospital cover for the period that the services were covered."),new r(i.CoverDaysCovered,u.NUMBER,"Since {OVERSEASCEASEDATE} how many days, including suspended days, did you have hospital cover for?","A suspension of health cover means that, you may stop paying your premiums for an agreed period of time. You will not be able to claim any benefits during your suspension. You must apply to your health insurer to suspend your cover. Periods of suspension are at the discretion of your health insurer. Not paying premiums during a period of suspension is different from cancelling your cover."),new r(i.OverseasSinceCeaseDate,u.YESNO,"Since {OVERSEASCEASEDATE} have you been overseas for a continuous period of more than one year?","If you returned to Australia for a period of less than 90 days that period counts as part of a continuous period overseas. Time spent living on Norfolk Island prior to 1 July 2016 counts as time spent overseas. From 1 July 2016 onwards, time spent on Norfolk Island counts as time in Australia."),new r(i.CoverDaysOverseas,u.NUMBER,"Since {OVERSEASCEASEDATE}, how many days were you overseas?","If you returned to Australia for a period of less than 90 days that period counts as part of the period overseas. Details are available on your international movement record from the Department of Immigration and Citizenship.",function(n){return n<365?"The number of days overseas should be at least 365":null})],mode:f.UNKNOWN,dateOfBirth:null,activeQuestionID:i.DateOfBirth,not2007Rules:!1,referToFund:!1,medicareEligibilityDate:null,coverCommenceDate:null,coverCeaseDate:null,returnToAustraliaDate:null,initialBaseDate:null,overseasInitialBaseDateReturnDate:null,overseasReturnDate:null,coverDaysCovered:0,coverDaysOverseas:0,baseDate:new Date(2e3,6,1),coverDate:new Date(new Date(Date.now()).setHours(0,0,0)),reason:null,loading:0,stack:[],ClientInfo:"undefined"==typeof SearchApp?new Client(ClientMode.Calculator):SearchApp.ClientInfo},computed:{july1AfterBirthday31:function(){return this.dateOfBirth?new Date(this.dateOfBirth.getFullYear()+31+(this.dateOfBirth.getMonth()>5?1:0),6,1):null},initialBaseDateDisplay:function(){return this.initialBaseDate?this.initialBaseDate<new Date(2e3,6,1)?new Date(2e3,6,1):this.initialBaseDate:null},overseasDate:function(){var n=new Date(2e3,6,1);return this.dateOfBirth&&this.dateOfBirth.getTime()!==new Date(1969,6,1).getTime()&&this.july1AfterBirthday31>n?this.july1AfterBirthday31:n},overseasCeaseDate:function(){return this.coverCeaseDate&&this.overseasReturnDate?this.coverCeaseDate>this.overseaseReturnDate?this.coverCeaseDate:this.overseasReturnDate:this.coverCeaseDate?this.coverCeaseDate:this.overseasReturnDate?this.overseasReturnDate:null},medicareEligibilityDate12:function(){return a(this.medicareEligibilityDate,12)},answers:function(){return this.questions.filter(function(n){return null!==n.answer})},existingLoading:function(){return!0===this.answerTo(i.CoverOldCurrent)||!0===this.answerTo(i.CoverStillCurrent)&&this.coverCommenceDate<=new Date(2007,2,31)},newArrivalNoMedicare:function(){return!1===this.answerTo(i.HasMedicare)||!1===this.answerTo(i.RegisteredWithMedicare)},coverCancelled:function(){return!1===this.answerTo(i.CoverStillCurrent)},loadingAsInt:function(){return 100*this.loading},clientAgeRange:function(){var t=new Date-this.dateOfBirth,n=Math.floor(t/315576e5);return n<30?0:30==n?1:n<65?2:n<70?3:4}},methods:{answer:function(n){var t=n.q,i=n.a;this.questions[t].value=i;this.questions[t].answered=!0;this.activeQuestionID=this.next(t,i);this.activeQuestionID||this.calculateLoading()},previous:function(n){this.activeQuestionID=this.prev(n)},isAnswered:function(n){return this.questions[n].answered},answerTo:function(n){return this.questions[n].value},formattedDate:function(n){return Intl.DateTimeFormat("en-AU",{day:"numeric",month:"long",year:"numeric"}).format(n)},reset:function(){this.mode=f.UNKNOWN;this.dateOfBirth=null;this.activeQuestionID=i.DateOfBirth;this.not2007Rules=!1;this.referToFund=!1;this.medicareEligibilityDate=null;this.coverCommenceDate=null;this.coverCeaseDate=null;this.returnToAustraliaDate=null;this.initialBaseDate=null;this.overseasInitialBaseDateReturnDate=null;this.overseasReturnDate=null;this.baseDate=new Date(2e3,6,1);this.coverDate=new Date(new Date(Date.now()).setHours(0,0,0));this.stack=[];this.reason=null;this.loading=0;this.questions.forEach(function(n){n.reset()})},prev:function(n){if(0==this.stack.length)return null;var t=this.stack.pop();switch(this.questions[t].answered=!1,this.questions[n].reset(),n){case r.Exemption:this.coverCommenceDate=null;this.coverCeaseDate=null;break;case r.MedicareEligibilityDate:this.medicareEligibilityDate=null;break;case r.Overseas31ReturnDate:this.overseasInitialBaseDateReturnDate=null;this.coverCeaseDate=null;break;case r.MedicareEligibilityDate2010:this.medicareEligibilityDate=null;break;case r.CoverBaseDate:this.baseDate=new Date(2e3,6,1);break;case r.CoverDateCommenced:this.coverCommenceDate=null;this.not2007Rules=!1;break;case r.CoverCeaseDate:this.coverCeaseDate=null;break;case r.FinishedLoading:this.referToFund=!1;break;case r.Over31OverseasReturn:this.overseasReturnDate=null;break;case r.CoverDaysCovered:this.coverDaysCovered=0;break;case r.CoverDaysOverseas:this.daysOverseas=0}return t},next:function(n,t){var r=null,u,e;switch(this.stack.push(n),n){default:case null:r=i.DateOfBirth;break;case i.DateOfBirth:this.dateOfBirth=t;this.july1AfterBirthday31<=this.coverDate&&(this.mode=t>new Date(1978,6,1)?f.MODE2010:f.MODE2007,this.coverDate>this.july1AfterBirthday31&&(this.dateOfBirth>new Date(1975,3,1)?r=this.mode===f.MODE2007?i.Exemption:i.RegisteredWithMedicare:this.dateOfBirth>new Date(1934,6,1)&&(r=i.CoverOld)));break;case i.CoverOld:r=!0===t?i.CoverOldCurrent:this.mode===f.MODE2007?i.Exemption:i.RegisteredWithMedicare;break;case i.CoverOldCurrent:r=!0===t?null:this.mode===f.MODE2007?i.Exemption:i.RegisteredWithMedicare;break;case i.Exemption:!0===t?(this.coverCommenceDate=new Date(2e3,6,1),this.coverCeaseDate=new Date(2e3,6,2),r=i.CoverSinceCeaseDate):r=i.NewArrival;break;case i.NewArrival:r=!0===t?i.FirstEnterAustraliaDate:this.july1AfterBirthday31>this.coverDate?i.CoverBaseDate:i.Overseas31Birthday;break;case i.FirstEnterAustraliaDate:this.returnToAustraliaDate=t;this.returnToAustraliaDate<new Date(2010,6,1)?r=i.AustralianCitizen:(this.mode=f.MODE2010,r=i.RegisteredWithMedicare);break;case i.AustralianCitizen:!0===t?this.july1AfterBirthday31>this.coverDate?this.baseDate<=this.coverDate&&(r=i.CoverBaseDate):r=i.Overseas31Birthday:r=i.HasMedicare;break;case i.HasMedicare:!0===t?r=i.MedicareEligibilityDate:this.july1AfterBirthday31>this.coverDate&&this.baseDate<=this.coverDate&&(r=i.CoverBaseDate);break;case i.Overseas31Birthday:!0===t?(u=new Date(2e3,6,1),new Date(this.dateOfBirth.getFullYear()+31,this.dateOfBirth.getMonth(),this.dateOfBirth.getDate())<=u?(this.coverCommenceDate=new Date(2e3,6,1),this.coverCeaseDate=new Date(2e3,6,2),r=i.Over31OverseasReturn):r=i.Overseas31ReturnDate):this.baseDate<this.coverDate&&(r=i.CoverBaseDate);break;case i.Overseas31ReturnDate:this.overseasInitialBaseDateReturnDate=t;this.baseDate<this.coverDate&&(r=i.CoverBaseDate);break;case i.MedicareEligibilityDate:this.medicareEligibilityDate=t;a(this.medicareEligibilityDate,12)<this.coverDate&&(r=i.CoverBaseDate);break;case i.RegisteredWithMedicare:!0===t&&(r=i.AustralianCitizenMedicare);break;case i.AustralianCitizenMedicare:!0===t?(this.initialBaseDate=this.july1AfterBirthday31,r=this.isAnswered(i.Overseas31Birthday)?i.CoverBaseDate:i.OverseasInitialBaseDate):null==this.medicareEligibilityDate?r=i.MedicareEligibilityDate2010:(this.initialBaseDate=this.medicareEligibilityDate12>this.july1AfterBirthday31?this.medicareEligibilityDate12:this.july1AfterBirthday31,r=i.OverseasInitialBaseDate);break;case i.MedicareEligibilityDate2010:this.medicareEligibilityDate=t;a(this.medicareEligibilityDate,12)<this.coverDate&&(this.initialBaseDate=this.medicareEligibilityDate12>this.july1AfterBirthday31?this.medicareEligibilityDate12:this.july1AfterBirthday31,r=this.isAnswered(i.Overseas31Birthday)?i.CoverBaseDate:i.OverseasInitialBaseDate);break;case i.OverseasInitialBaseDate:r=!0===t?i.EnterAustraliaAfterInitialBaseDate:i.CoverBaseDate;break;case i.EnterAustraliaAfterInitialBaseDate:this.overseasInitialBaseDateReturnDate=t;r=i.CoverBaseDate;break;case i.CoverBaseDate:!0===t&&(r=i.CoverDateCommenced);break;case i.CoverDateCommenced:this.coverCommenceDate=t;this.coverCommenceDate>this.baseDate&&this.coverCommenceDate<new Date(2004,3,23)?this.not2007Rules=!0:r=i.CoverStillCurrent;break;case i.CoverStillCurrent:!1===t&&(r=i.CoverCeaseDate);break;case i.CoverCeaseDate:this.coverCeaseDate=t;e=o(this.coverCommenceDate,this.coverCeaseDate);this.baseDate<this.coverCommenceDate&&e>l.daysInTenYears?r=i.FinishedLoading:o(this.coverCeaseDate,this.coverDate)>=1094&&(r=i.CoverSinceCeaseDate);break;case i.FinishedLoading:!1===t?o(this.coverCeaseDate,this.coverDate)>1094&&(r=i.CoverSinceCeaseDate):this.referToFund=!0;break;case i.Over31OverseasReturn:r=!0===t?i.Over31OverseasReturnDate:i.CoverSinceCeaseDate;break;case i.Over31OverseasReturnDate:this.overseasReturnDate=t;this.coverDaysCovered=o(this.overseasReturnDate,this.coverCeaseDate);r=o(this.overseasReturnDate,this.coverDate)<1094?null:i.CoverSinceCeaseDate;break;case i.CoverSinceCeaseDate:r=!0===t?i.CoverDaysCovered:i.OverseasSinceCeaseDate;break;case i.CoverDaysCovered:this.questions[i.Over31OverseasReturnDate].answered?this.coverDaysCovered+=t:this.coverDaysCovered=t;r=i.OverseasSinceCeaseDate;break;case i.OverseasSinceCeaseDate:!0===t&&(r=i.CoverDaysOverseas);break;case i.CoverDaysOverseas:this.coverDaysOverseas=t}return n===i.Exemption&&!0===t?(this.baseDate=new Date(2e3,6,1),this.mode===f.MODE2007&&this.baseDate>new Date(2009,5,30)&&(this.mode=f.MODE2010,r=i.RegisteredWithMedicare)):n===i.MedicareEligibilityDate&&this.answerTo(i.MedicareEligibilityDate)>new Date(2009,5,30)&&a(this.answerTo(i.MedicareEligibilityDate),12)<this.coverDate?(this.initialBaseDate=this.medicareEligibilityDate12>this.july1AfterBirthday31?this.medicareEligibilityDate12:this.july1AfterBirthday31,r=i.OverseasInitialBaseDate,this.mode=f.MODE2010):r!==i.CoverBaseDate&&r!==i.Over31OverseasReturn||(this.baseDate=l.CalculateBaseDate(this.mode,this.dateOfBirth,this.medicareEligibilityDate,this.overseasInitialBaseDateReturnDate),this.baseDate>this.coverDate?r=null:this.mode===f.MODE2007&&this.baseDate>new Date(2010,5,30)&&(null!==this.medicareEligibilityDate?(this.initialBaseDate=this.medicareEligibilityDate12>this.july1AfterBirthday31?this.medicareEligibilityDate12:this.july1AfterBirthday31,r=i.OverseasInitialBaseDate):r=i.RegisteredWithMedicare,this.mode=f.MODE2010)),r},calculateLoading:function(){if(this.loading=0,!0===this.not2007Rules)this.reason=e.Not2007Rules;else if(!0===this.referToFund)this.reason=e.ReferToFund;else if(this.medicareEligibilityDate&&this.medicareEligibilityDate12>=this.coverDate)this.reason=e.Medicare12DateInFuture,this.baseDate=this.medicareEligibilityDate12;else if(this.newArrivalNoMedicare||this.existingLoading)this.reason=this.existingLoading?e.ExistingLoadingApplies:null===this.medicareEligibilityDate?e.NotRegisteredMedicare:e.NoMedicare;else{var t=l.CalculateBaseDate(this.mode,this.dateOfBirth,this.medicareEligibilityDate,this.overseasInitialBaseDateReturnDate),n=l.Loading(this.coverDate,this.dateOfBirth,t,this.coverCommenceDate,this.coverCeaseDate,this.coverDaysCovered,this.coverDaysOverseas);n?(this.reason=e.LoadingApplies,this.loading=n):this.reason=e.LoadingDoesNotApply}},save:function(){this.ClientInfo.LHC={Loading:this.loadingAsInt,AgeRangeIndex:this.clientAgeRange};this.ClientInfo.show=!0}},watch:{},mounted:function(){this.stack=[];var n=document.querySelector('#lhc-calculator [tabindex]:not([tabindex="-1"])');n&&n.focus()},updated:function(){this.$nextTick(function(){var t=document.querySelector('#lhc-calculator [tabindex]:not([tabindex="-1"])'),n,r;t&&t.focus();n=document.getElementsByClassName("question active");n&&n.length>0?this.activeQuestionID!=i.DateOfBirth&&(r=n[0].offsetTop+window.innerHeight/2,window.scrollTo(0,r)):document.getElementById("lhc-calculator").scrollIntoView()})}}))}},{key:"Clear",value:function(){null!==this.View&&(this.View.$destroy(),this.View=null)}},{key:"SetElementID",value:function(n){this.Clear();this.MainElementID=n;this.Init()}}])}(),s=new tt;t.exports={MyCalculatorManager:s,QuestionType:u,Questions:i,Reason:e};$(function(){SAT.IsFunction(ManuallyHandleCalculatorLoad)&&ManuallyHandleCalculatorLoad(s);s.AutoStart&&1===$("#"+s.MainElementID).length&&s.Init()})},{"./lhc-calc":"wWRZ","./question.vue":"nCrZ","./loading.vue":"O9o4","./lhc-modal-controls.vue":"n11v","./date-fns":"Rztx"}]},{},["UspY"],null)