(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{237:function(t,e,o){},238:function(t,e,o){t.exports=o.p+"img/9a07848.png"},239:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAMAAADwSaEZAAAAe1BMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////NgkbwAAAAKXRSTlMAAgwSFx0iJScrEQsIFCAFJCMKHgkBDiEDGhAoFgQmKQcqBhsTGB8cDVSzHW8AAAGvSURBVFjDtZhZdoJAEEUfiEKFQQkgEGTSqOx/hfnQk2hk6uZ5F3APbVeXVQ8YwzBX1npjOyKOvVlbH64BTTw/kBcC31M3bf2dDBD6WyXVZySjRPFcU7LfyCTpfpYry2UWeTbt+ipkJs7UxyWWKHBIxlxlKkqk5Ug92KKIPVglXiXKVAM1HNeiQdFbck0hWhRNj8sRTZwXm7ETbXb/e0kuC8ifXXtZxNNbMIplsuLxoJYsxHq4yXaprP17CZEsJvp9RkLgeJetGbLTzXUU4X2az5H5AICQIwtpP7+IiAfgwJIdAKQsWQBkLUvWJjCFhotvnmyFM092xoUnu8DmyWxUPFkFhydz0PJkLVdGPSb1AqilQS1a6nOiPnRqCyI2x4zbtrl/KDFLFgNglW0I8M55Gw+2HNl93DsRRyrKTNUeiWPolTkgN+8Z3blLBXXdWVge+TtXRDS1rqvuWYVNzfpo3b4lXfMSuv74oNM4ad0NBhvKs4IzEs2VgWLbL0eDJaVOaSUTOVU3P/LqZoRxV14YB8CcERNu3NkBZkwLMO/R6uAaqhqtkkPf3jh6NRFH/wD63q1W1ELRHwAAAABJRU5ErkJggg=="},240:function(t,e,o){"use strict";o(82);var r={props:{value:{type:Number,default:0},min:{type:[Number,String],default:0},max:{type:[Number,String],default:10}},data:function(){return{slider:this.value||0,options:{dotSize:31,height:9,min:this.min,max:this.max,interval:1,clickable:!0,duration:.5,tooltip:"none"}}}},l=(o(244),o(6)),component=Object(l.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("no-ssr",[o("div",[o("div",{staticClass:"range-block form-group"},[o("vue-slider",t._b({ref:"slider",on:{change:function(e){return t.$emit("input",t.slider)}},model:{value:t.slider,callback:function(e){t.slider=e},expression:"slider"}},"vue-slider",t.options,!1)),t._v(" "),o("div",{staticClass:"range-years"},[o("span",{staticClass:"start"},[t._v(t._s(t.options.min)+" years")]),t._v(" "),o("span",[t._v(t._s(t.slider)+" years in debt")]),t._v(" "),o("span",{staticClass:"end"},[t._v(t._s(t.options.max)+" years")])])],1)])])}),[],!1,null,null,null);e.a=component.exports},244:function(t,e,o){"use strict";var r=o(237);o.n(r).a},246:function(t,e,o){},247:function(t,e,o){},248:function(t,e,o){},267:function(t,e,o){"use strict";var r=o(246);o.n(r).a},268:function(t,e,o){"use strict";var r=o(247);o.n(r).a},269:function(t,e,o){"use strict";var r=o(248);o.n(r).a},273:function(t,e,o){"use strict";o.r(e);o(5);var r=o(2),l=o(99),n=o(98),c=o(100),d={components:{AppFieldText:l.a,AppFieldSelect:n.a,AppLoader:c.a},data:function(){return{modalShow:!1,form:{breakfast:8,lunch:15,dinner:15,drink:0,quantity:0},options:[1,2,3,4,5],loading:!1}},methods:{onSubmit:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.form.validate();case 2:e.sent&&(o=30*(parseInt(t.form.breakfast)+parseInt(t.form.lunch)+parseInt(t.form.dinner)+parseInt(t.form.drink)*parseInt(t.form.drink)),t.$emit("change:food",o),t.modalShow=!1,t.$refs.form.reset());case 4:case"end":return e.stop()}}),e)})))()}},watch:{"form.drink":{handler:function(t){this.form.quantity=t>0?1:""},deep:!0}}},m=(o(267),o(6)),f=Object(m.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("b-modal",{staticClass:"modal fade",attrs:{"modal-class":"food",id:"modal-food","hide-header":"","body-class":"p-0","hide-footer":"",centered:""},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[r("app-loader",{model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[r("div",{staticClass:"modal-content food-content"},[r("ValidationObserver",{ref:"form",scopedSlots:t._u([{key:"default",fn:function(e){var l=e.invalid;return[r("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[r("h2",{staticClass:"modal-title"},[t._v("Food Cost Estimator")]),t._v(" "),r("button",{staticClass:"modal-close",attrs:{type:"button"},on:{click:function(e){t.modalShow=!1}}},[r("img",{attrs:{src:o(150),alt:""}})]),t._v(" "),r("div",{staticClass:"modal-body"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"breakfast",label:"Breakfast",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.breakfast,callback:function(e){t.$set(t.form,"breakfast",e)},expression:"form.breakfast"}})]}}],null,!0)}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"lunch",label:"Lunch",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.lunch,callback:function(e){t.$set(t.form,"lunch",e)},expression:"form.lunch"}})]}}],null,!0)}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"dinner",label:"Dinner",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.dinner,callback:function(e){t.$set(t.form,"dinner",e)},expression:"form.dinner"}})]}}],null,!0)}),t._v(" "),r("h5",[t._v("Please specify your daily food expenses")]),t._v(" "),r("div",{staticClass:"food-drink"},[r("app-field-text",{attrs:{name:"drink",placeholder:"Cost per drink"},model:{value:t.form.drink,callback:function(e){t.$set(t.form,"drink",e)},expression:"form.drink"}}),t._v(" "),r("app-field-select",{staticClass:"select-arrow",attrs:{options:t.options,name:"quantity","input-classes":"custom-select",placeholder:"N of drinks"},model:{value:t.form.quantity,callback:function(e){t.$set(t.form,"quantity",e)},expression:"form.quantity"}})],1)],1),t._v(" "),r("div",{staticClass:"modal-footer"},[r("button",{staticClass:"default-submit",class:{disabled:l},attrs:{type:"submit",disabled:l}},[r("span",[t._v("Ok")])]),t._v(" "),r("button",{staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){t.modalShow=!1}}},[r("span",[t._v("Cancel")])])])])]}}])})],1)])],1)],1)}),[],!1,null,null,null).exports,h={components:{AppFieldText:l.a,AppFieldSelect:n.a,AppLoader:c.a},data:function(){return{modalShow:!1,loading:!1,form:{monthly:"",insurance:"",gas:""}}},methods:{onSubmit:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.form.validate();case 2:e.sent&&(o=parseInt(t.form.monthly)+parseInt(t.form.insurance)+parseInt(t.form.gas),t.$emit("change:car",o),t.modalShow=!1,t.$refs.form.reset());case 4:case"end":return e.stop()}}),e)})))()}}},v=Object(m.a)(h,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("b-modal",{staticClass:"modal fade",attrs:{"modal-class":"transport",id:"modal-transportation","hide-header":"","body-class":"p-0","hide-footer":"",centered:""},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[r("app-loader",{model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[r("div",{staticClass:"modal-content transport-content"},[r("ValidationObserver",{ref:"form",scopedSlots:t._u([{key:"default",fn:function(e){var l=e.invalid;return[r("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[r("h2",{staticClass:"modal-title"},[t._v("Car Payment Cost Estimator")]),t._v(" "),r("button",{staticClass:"modal-close",attrs:{type:"button"},on:{click:function(e){t.modalShow=!1}}},[r("img",{attrs:{src:o(150),alt:""}})]),t._v(" "),r("div",{staticClass:"modal-body"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"monthly",label:"Monthly lease/loan payment",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.monthly,callback:function(e){t.$set(t.form,"monthly",e)},expression:"form.monthly"}})]}}],null,!0)}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"insurance",label:"Insurance monthly payment",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.insurance,callback:function(e){t.$set(t.form,"insurance",e)},expression:"form.insurance"}})]}}],null,!0)}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"gas",label:"Gas montly cost",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.gas,callback:function(e){t.$set(t.form,"gas",e)},expression:"form.gas"}})]}}],null,!0)})],1),t._v(" "),r("div",{staticClass:"modal-footer"},[r("button",{staticClass:"default-submit",class:{disabled:l},attrs:{type:"submit",disabled:l}},[r("span",[t._v("Ok")])]),t._v(" "),r("button",{staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){t.modalShow=!1}}},[r("span",[t._v("Cancel")])])])])]}}])})],1)])],1)],1)}),[],!1,null,null,null).exports,_={components:{AppFieldText:l.a,AppFieldSelect:n.a,AppLoader:c.a},data:function(){return{modalShow:!1,loading:!1,form:{heat:"",electricity:"",internet:"",phone:""}}},methods:{onSubmit:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.form.validate();case 2:e.sent&&(o=parseInt(t.form.heat)+parseInt(t.form.electricity)+parseInt(t.form.internet)+parseInt(t.form.phone),t.$emit("change:utilities",o),t.modalShow=!1,t.$refs.form.reset());case 4:case"end":return e.stop()}}),e)})))()}}},y=Object(m.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("b-modal",{staticClass:"modal fade",attrs:{"modal-class":"transport",id:"modal-utilities","hide-header":"","body-class":"p-0","hide-footer":"",centered:""},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[r("app-loader",{model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[r("div",{staticClass:"modal-content transport-content"},[r("ValidationObserver",{ref:"form",scopedSlots:t._u([{key:"default",fn:function(e){var l=e.invalid;return[r("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[r("h2",{staticClass:"modal-title"},[t._v("How much will you be paying for utilities")]),t._v(" "),r("button",{staticClass:"modal-close",attrs:{type:"button"},on:{click:function(e){t.modalShow=!1}}},[r("img",{attrs:{src:o(150),alt:""}})]),t._v(" "),r("div",{staticClass:"modal-body"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"Heat",label:"Heat",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.heat,callback:function(e){t.$set(t.form,"heat",e)},expression:"form.heat"}})]}}],null,!0)}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"Electricity",label:"Electricity",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.electricity,callback:function(e){t.$set(t.form,"electricity",e)},expression:"form.electricity"}})]}}],null,!0)}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"Internet",label:"Internet",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.internet,callback:function(e){t.$set(t.form,"internet",e)},expression:"form.internet"}})]}}],null,!0)}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"Phone",label:"Phone",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})]}}],null,!0)})],1),t._v(" "),r("div",{staticClass:"modal-footer"},[r("button",{staticClass:"default-submit",class:{disabled:l},attrs:{type:"submit",disabled:l}},[r("span",[t._v("Ok")])]),t._v(" "),r("button",{staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){t.modalShow=!1}}},[r("span",[t._v("Cancel")])])])])]}}])})],1)])],1)],1)}),[],!1,null,null,null).exports,S=(o(58),o(21),o(16),o(9),o(29),o(28)),C=(o(83),o(4)),k=(o(82),o(240)),w=o(81),x=o(38),O=o.n(x);function $(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}var A={components:{AppFieldText:l.a,AppFieldSelect:n.a,AppFieldRange:k.a,AppLoader:c.a},props:{value:{type:Object,default:function(){return null}},formModalUtilities:{type:[Number,String],default:null},formModalTransportation:{type:[Number,String],default:null},formModalFood:{type:[Number,String],default:null}},data:function(){return{loading:!1,loadingState:!1,changeYears:!1,form:this.value||{state:"",major:"",level:1,salary:"",school:"",school_cost:0,school_years:0,school1:"",school1_cost:0,school1_years:0,amount:0,life:"",life_cost:0,utilities:"",utilities_cost:this.formModalUtilities||0,transportation:"",transportation_cost:this.formModalTransportation||0,food:"",food_cost:this.formModalFood||0,travel:"",travel_cost:0,out:"",out_cost:0,retirement:"",retirement_cost:0,years:5},slider:0,schoolsFirst:[],schoolsSecond:[],schoolsFirstYears:{code:1,label:"1"},schoolsSecondYears:{code:1,label:"1"},quantity:{code:1,label:"$0-$30,000"},quantityOptions:[{code:1,label:"$0-$30,000"},{code:2,label:"$30,001-$48,000"},{code:3,label:"$48,001- $75,000"},{code:4,label:"$75,001-$110,000"},{code:5,label:"$110,000+"}],schoolsYearsOptions:[{code:1,label:"1"},{code:2,label:"2"},{code:3,label:"3"},{code:4,label:"4"}],selectedSchoolFirst:null,selectedSchoolSecond:null,notInputSchoolFirstCost:!1,notInputSchoolSecondCost:!1,selectedFirstYears:null,selectedSecondYears:null,avg1:"N/A",avg2:"N/A"}},computed:function(t){for(var i=1;i1?-1!==this["selectedSchool".concat(t)]["AvgPrivateTuition"+this.form.level]?this["selectedSchool".concat(t)]["AvgPrivateTuition"+this.form.level]:this["selectedSchool".concat(t)].Cost:this["selectedSchool".concat(t)]["AvgInStateTuition"+this.form.level]?this["selectedSchool".concat(t)]["AvgInStateTuition"+this.form.level]:this["selectedSchool".concat(t)].Cost;this.form[e]=this["schools".concat(t,"Years")].code*r,this.form[o]=this["schools".concat(t,"Years")].code,this.calcAvg()}},calcAvg:function(){this.avg1=this.form.school.Control>1?this.form.school["AvgPrivateTuition".concat(this.form.level)]:this.form.school["AvgInStateTuition".concat(this.form.level)],this.avg2=this.form.school1.Control>1?this.form.school1["AvgPrivateTuition".concat(this.form.level)]:this.form.school1["AvgInStateTuition".concat(this.form.level)]}},mounted:function(){this.form.state=this.defaultSearch.state,this.form.major=this.defaultSearch.major,this.form.salary=this.defaultSearch.salary,this.defaultSearch.state&&this.onSearch("*",["schoolsFirst","schoolsSecond"],this.form.state)},watch:{"form.level":{handler:function(t){this.calcSchoolCost("First","school_cost","school_years"),this.calcSchool1Cost("Second","school1_cost","school1_years"),this.calcAvg(t)},deep:!0},value:{handler:function(t){this.form=t},deep:!0},formModalUtilities:{handler:function(t){this.form.utilities_cost=t},deep:!0},formModalTransportation:{handler:function(t){this.form.transportation_cost=t},deep:!0},formModalFood:{handler:function(t){this.form.food_cost=t},deep:!0},"form.state":{handler:function(t){t&&this.form.major&&this.getSalary(this)},deep:!0},"form.major":{handler:function(t){t&&this.form.state&&this.getSalary(this)},deep:!0},"form.retirement_cost":{handler:function(t){this.form.retirement_cost=Math.round(t)},deep:!0}}},F=(o(268),Object(m.a)(A,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("app-loader",{model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[r("ValidationObserver",{ref:"form",scopedSlots:t._u([{key:"default",fn:function(e){var l=e.invalid;return[r("form",{staticClass:"calculator__form",on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[r("div",{staticClass:"calculator__form-top"},[r("app-field-select",{staticClass:"default-button select-arrow select-left",attrs:{reduce:function(t){return t.code},options:t.states,name:"state","input-classes":"custom-select",placeholder:"Select your state"},on:{input:function(e){return t.onSearch("*",["schoolsFirst","schoolsSecond"],e)}},model:{value:t.form.state,callback:function(e){t.$set(t.form,"state",e)},expression:"form.state"}}),t._v(" "),r("app-field-select",{staticClass:"default-button select-right",attrs:{reduce:function(t){return t.code},options:t.majors,name:"major","input-classes":"custom-select",placeholder:"Select your major"},model:{value:t.form.major,callback:function(e){t.$set(t.form,"major",e)},expression:"form.major"}})],1),t._v(" "),r("div",{staticClass:"calculator__form-personality"},[r("div",{staticClass:"select-arrow level"},[r("h3",{staticClass:"default-name"},[t._v("Family Income Level:")]),t._v(" "),r("app-field-select",{staticClass:"default-button select-arrow select-left",attrs:{options:t.quantityOptions,name:"level","input-classes":"custom-select select-level",reduse:function(t){return t.code}},on:{change:function(e){t.form.level=e}},model:{value:t.quantity,callback:function(e){t.quantity=e},expression:"quantity"}})],1),t._v(" "),r("div",{staticClass:"salary"},[r("h3",{staticClass:"default-name"},[t._v("Salary after bachelor’s degree:")]),t._v(" "),r("app-field-text",{attrs:{name:"salary",mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.salary,callback:function(e){t.$set(t.form,"salary",e)},expression:"form.salary"}}),t._v(" "),t.form.salary?r("label",[t._v("estimated - $"+t._s(t.form.salary))]):t._e()],1),t._v(" "),r("h3",{staticClass:"default-name univer"},[t._v("Universities:")]),t._v(" "),r("div",{staticClass:"school"},[r("div",{staticClass:"search-form"},[r("app-loader",{model:{value:t.loadingState,callback:function(e){t.loadingState=e},expression:"loadingState"}},[r("app-field-select",{staticClass:"default-button",attrs:{options:t.schoolsFirst,reduseKey:!1,labelName:"Name",name:"state","input-classes":"custom-select",label:"First school",placeholder:"Search for your university",disabled:!t.form.state},on:{change:t.changeFirstSchool},model:{value:t.form.school,callback:function(e){t.$set(t.form,"school",e)},expression:"form.school"}})],1)],1),t._v(" "),r("div",{staticClass:"total-form"},[r("app-field-select",{staticClass:"default-button",attrs:{options:t.schoolsYearsOptions,label:"Number Of Years","input-classes":"custom-select",disabled:!t.form.state,reduse:function(t){return t.code}},on:{change:t.changeFirstYears,input:t.inputFirstYears},model:{value:t.schoolsFirstYears,callback:function(e){t.schoolsFirstYears=e},expression:"schoolsFirstYears"}})],1),t._v(" "),r("div",{staticClass:"total-form"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{label:"Total cost",mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},on:{input:function(e){t.notInputSchoolFirstCost=!0}},model:{value:t.form.school_cost,callback:function(e){t.$set(t.form,"school_cost",e)},expression:"form.school_cost"}})]}}],null,!0)})],1)]),t._v(" "),r("div",{staticClass:"total"},[r("p",[t._v("In state tuition: $"+t._s(t.form.school.InStateTuition||"N/A"))]),t._v(" "),r("p",[t._v("Total cost: $"+t._s(t.form.school.Cost||"N/A"))]),t._v(" "),r("p",[t._v("Average Tuition: $"+t._s(-1!==t.avg1?t.avg1:"N/A"))])]),t._v(" "),r("div",{staticClass:"school second-school"},[r("div",{staticClass:"form-group search-form"},[r("app-loader",{model:{value:t.loadingState,callback:function(e){t.loadingState=e},expression:"loadingState"}},[r("app-field-select",{staticClass:"default-button",attrs:{options:t.schoolsSecond,labelName:"Name",reduseKey:!1,"input-classes":"custom-select",label:"Second school",placeholder:"Optional transfer university",disabled:!t.form.state},on:{change:t.changeSecondSchool},model:{value:t.form.school1,callback:function(e){t.$set(t.form,"school1",e)},expression:"form.school1"}})],1)],1),t._v(" "),r("div",{staticClass:"total-form"},[r("app-field-select",{staticClass:"default-button",attrs:{options:t.schoolsYearsOptions,label:"Number Of Years","input-classes":"custom-select",disabled:!t.form.state,reduse:function(t){return t.code}},on:{change:t.changeSecondYears,input:t.inputSecondYears},model:{value:t.schoolsSecondYears,callback:function(e){t.schoolsSecondYears=e},expression:"schoolsSecondYears"}})],1),t._v(" "),r("div",{staticClass:"total-form"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{label:"Total cost",name:"zip",mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},on:{input:function(e){t.notInputSchoolSecondCost=!0}},model:{value:t.form.school1_cost,callback:function(e){t.$set(t.form,"school1_cost",e)},expression:"form.school1_cost"}})]}}],null,!0)})],1)]),t._v(" "),r("div",{staticClass:"total"},[r("p",[t._v("In state tuition: $"+t._s(t.form.school1.InStateTuition||"N/A"))]),t._v(" "),r("p",[t._v("Total cost: $"+t._s(t.form.school1.Cost||"N/A"))]),t._v(" "),r("p",[t._v("Average Tuition: $"+t._s(-1!==t.avg2?t.avg2:"N/A"))])]),t._v(" "),r("div",{staticClass:"amount"},[r("h3",{staticClass:"default-name"},[t._v("\n Amount contributed by you or on"),r("br"),t._v("\n your behalf towards your undergraduate education:\n ")]),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"amount",mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",e)},expression:"form.amount"}})]}}],null,!0)})],1)]),t._v(" "),r("h2",{staticClass:"default-title"},[t._v("Lets look at your life after graduation ")]),t._v(" "),r("div",{staticClass:"calculator__form-result"},[r("div",{staticClass:"range"},[r("h3",{staticClass:"default-name"},[t._v("Years in student loan debt after graduation")]),t._v(" "),r("app-field-range",{attrs:{min:1,name:"years"},model:{value:t.form.years,callback:function(e){t.$set(t.form,"years",e)},expression:"form.years"}})],1),t._v(" "),r("h3",{staticClass:"default-name"},[t._v("Where do you want to live?")]),t._v(" "),r("div",{staticClass:"item-group"},[r("app-field-select",{staticClass:"select-arrow",attrs:{name:"life","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.stateAveragesWhereDoYouWantToLive(t.form.state)},on:{change:function(e){t.form.life_cost=e}},model:{value:t.form.life,callback:function(e){t.$set(t.form,"life",e)},expression:"form.life"}}),t._v(" "),r("div",{staticClass:"form-cost"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"life_cost",label:"Enter your own cost",mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.life_cost,callback:function(e){t.$set(t.form,"life_cost",e)},expression:"form.life_cost"}})]}}],null,!0)})],1)],1),t._v(" "),r("h3",{staticClass:"default-name"},[t._v("How much will you be paying for Utilities?")]),t._v(" "),r("div",{staticClass:"item-group"},[r("app-field-select",{staticClass:"select-arrow",attrs:{name:"utilities","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.stateAveragesHowMuchWillYouBePayingForUtilities(t.form.state)},on:{change:function(e){t.form.utilities_cost=e}},model:{value:t.form.utilities,callback:function(e){t.$set(t.form,"utilities",e)},expression:"form.utilities"}}),t._v(" "),r("div",{staticClass:"form-cost"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"utilities_cost",label:"Enter your own cost",mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.utilities_cost,callback:function(e){t.$set(t.form,"utilities_cost",e)},expression:"form.utilities_cost"}})]}}],null,!0)})],1),t._v(" "),r("button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-utilities",modifiers:{"modal-utilities":!0}}],staticClass:"default-submit show-modal",attrs:{type:"button"}},[r("img",{attrs:{src:o(148),alt:""}})])],1),t._v(" "),r("h3",{staticClass:"default-name"},[t._v("Transportation")]),t._v(" "),r("div",{staticClass:"item-group"},[r("app-field-select",{staticClass:"select-arrow",attrs:{name:"transportation","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.constants.Transportation},on:{change:function(e){t.form.transportation_cost=e}},model:{value:t.form.transportation,callback:function(e){t.$set(t.form,"transportation",e)},expression:"form.transportation"}}),t._v(" "),r("div",{staticClass:"form-cost"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"transportation_cost",label:"Enter your own cost",mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.transportation_cost,callback:function(e){t.$set(t.form,"transportation_cost",e)},expression:"form.transportation_cost"}})]}}],null,!0)})],1),t._v(" "),r("button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-transportation",modifiers:{"modal-transportation":!0}}],staticClass:"default-submit show-modal",attrs:{type:"button"}},[r("img",{attrs:{src:o(148),alt:""}})])],1),t._v(" "),r("h3",{staticClass:"default-name"},[t._v("How much do you want to spend on food")]),t._v(" "),r("div",{staticClass:"item-group"},[r("app-field-select",{staticClass:"select-arrow",attrs:{name:"food","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.stateAveragesHowMuchDoYouWantToSpendOnFood(t.form.state)},on:{change:function(e){t.form.food_cost=e}},model:{value:t.form.food,callback:function(e){t.$set(t.form,"food",e)},expression:"form.food"}}),t._v(" "),r("div",{staticClass:"form-cost"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"food_cost",label:"Enter your own cost",mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.food_cost,callback:function(e){t.$set(t.form,"food_cost",e)},expression:"form.food_cost"}})]}}],null,!0)})],1),t._v(" "),r("button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-food",modifiers:{"modal-food":!0}}],staticClass:"default-submit show-modal",attrs:{type:"button"}},[r("img",{attrs:{src:o(148),alt:""}})])],1),t._v(" "),r("h3",{staticClass:"default-name"},[t._v("How much do you want to travel?")]),t._v(" "),r("div",{staticClass:"item-group"},[r("app-field-select",{staticClass:"select-arrow",attrs:{name:"travel","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.constants.HowMuchDoYouWantToTravel},on:{change:function(e){t.form.travel_cost=e}},model:{value:t.form.travel,callback:function(e){t.$set(t.form,"travel",e)},expression:"form.travel"}}),t._v(" "),r("div",{staticClass:"form-cost"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"travel_cost",label:"Enter your own cost",state:o.length||!1,e:o[0],mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.travel_cost,callback:function(e){t.$set(t.form,"travel_cost",e)},expression:"form.travel_cost"}})]}}],null,!0)})],1)],1),t._v(" "),r("h3",{staticClass:"default-name"},[t._v("Do you want to go out?")]),t._v(" "),r("div",{staticClass:"item-group"},[r("app-field-select",{staticClass:"select-arrow",attrs:{name:"out","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.constants.DoYouWantToGoOut},on:{change:function(e){t.form.out_cost=e}},model:{value:t.form.out,callback:function(e){t.$set(t.form,"out",e)},expression:"form.out"}}),t._v(" "),r("div",{staticClass:"form-cost"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"out_cost",label:"Enter your own cost",state:o.length||!1,e:o[0],mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.out_cost,callback:function(e){t.$set(t.form,"out_cost",e)},expression:"form.out_cost"}})]}}],null,!0)})],1)],1),t._v(" "),r("h3",{staticClass:"default-name"},[t._v("You should start saving for retirement")]),t._v(" "),r("div",{staticClass:"item-group"},[r("app-field-select",{staticClass:"select-arrow",attrs:{name:"retirement","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.constants.YouShouldStartSavingForRetirement},on:{change:function(e){t.form.retirement_cost=t.form.salary/12*e}},model:{value:t.form.retirement,callback:function(e){t.$set(t.form,"retirement",e)},expression:"form.retirement"}}),t._v(" "),r("div",{staticClass:"form-cost"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:"Enter your percentage",name:"retirement_cost",label:"Enter your own cost",state:o.length||!1,e:o[0],mask:{alias:"decimal",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.retirement_cost,callback:function(e){t.$set(t.form,"retirement_cost",e)},expression:"form.retirement_cost"}})]}}],null,!0)})],1)],1)]),t._v(" "),r("button",{staticClass:"default-submit calculator-submit",class:{disabled:l},attrs:{type:"submit",disabled:l}},[r("span",[t._v("Show Results")])])])]}}])})],1)],1)}),[],!1,null,null,null).exports);o(101);function Y(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}var T={components:{AppFieldText:l.a,AppFieldSelect:n.a,AppFieldRange:k.a,AppLoader:c.a},props:{value:{type:Object,default:function(){return null}},formModalUtilities:{type:[Number,String],default:null},formModalTransportation:{type:[Number,String],default:null},formModalFood:{type:[Number,String],default:null}},data:function(){return{loading:!1,loadingState:!1,tabIndex:1,accordionId:null,form:this.value||{state:"",major:"",level:1,salary:"",school:"",school_cost:0,school_years:0,school1:"",school1_cost:0,school1_years:0,amount:0,life:"",life_cost:0,utilities:"",utilities_cost:this.formModalUtilities||0,transportation:"",transportation_cost:this.formModalTransportation||0,food:"",food_cost:this.formModalFood||0,travel:"",travel_cost:0,out:"",out_cost:0,retirement:"",retirement_cost:0,years:5,tabIndex:1},slider:0,quantity:{code:1,label:"$0-$30,000"},quantityOptions:[{code:1,label:"$0-$30,000"},{code:2,label:"$30,001-$48,000"},{code:3,label:"$48,001- $75,000"},{code:4,label:"$75,001-$110,000"},{code:5,label:"$110,000+"}],schoolsFirst:[],schoolsSecond:[],schoolsFirstYears:{code:1,label:"1"},schoolsSecondYears:{code:1,label:"1"},schoolsYearsOptions:[{code:1,label:"1"},{code:2,label:"2"},{code:3,label:"3"},{code:4,label:"4"}],selectedSchoolFirst:null,selectedSchoolSecond:null,notInputSchoolFirstCost:!1,notInputSchoolSecondCost:!1,selectedFirstYears:null,selectedSecondYears:null}},computed:function(t){for(var i=1;i1?-1!==this["selectedSchool".concat(t)]["AvgPrivateTuition"+this.form.level]?this["selectedSchool".concat(t)]["AvgPrivateTuition"+this.form.level]:this["selectedSchool".concat(t)].Cost:this["selectedSchool".concat(t)]["AvgInStateTuition"+this.form.level]?this["selectedSchool".concat(t)]["AvgInStateTuition"+this.form.level]:this["selectedSchool".concat(t)].Cost;this.form[e]=this["schools".concat(t,"Years")].code*r,this.form[o]=this["schools".concat(t,"Years")].code}}},mounted:function(){var t=this;this.form.state=this.defaultSearch.state,this.form.major=this.defaultSearch.major,this.form.salary=this.defaultSearch.salary,this.defaultSearch.state&&this.onSearch("*",["schoolsFirst","schoolsSecond"],this.form.state),this.$root.$on("bv::collapse::state",(function(e,o){if(o){var r=e.split("-");t.accordionId=+r[1]}}))},watch:{"form.level":{handler:function(t){this.calcSchoolCost("First","school_cost","school_years"),this.calcSchool1Cost("Second","school1_cost","school1_years")},deep:!0},value:{handler:function(t){this.form=t},deep:!0},formModalUtilities:{handler:function(t){this.form.utilities_cost=t},deep:!0},formModalTransportation:{handler:function(t){this.form.transportation_cost=t},deep:!0},formModalFood:{handler:function(t){this.form.food_cost=t},deep:!0},"form.state":{handler:function(t){t&&this.form.major&&this.getSalary(this)},deep:!0},"form.major":{handler:function(t){t&&this.form.state&&this.getSalary(this)},deep:!0},"form.retirement_cost":{handler:function(t){this.form.retirement_cost=Math.round(t)},deep:!0}}},j=(o(269),{components:{AppFormCalculatorDekstop:F,AppFormCalculatorMobile:Object(m.a)(T,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("app-loader",{model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[r("div",{staticClass:"calculator__wrapper calculator__wrapper_mobile default-container"},[r("ValidationObserver",{ref:"form",scopedSlots:t._u([{key:"default",fn:function(e){var l=e.invalid;return[r("form",{staticClass:"calculator__form",on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[r("div",{staticClass:"accordion",attrs:{role:"tablist",id:"accordion"}},[r("b-card",{staticClass:"card",attrs:{"no-body":""}},[r("b-card-header",{attrs:{"header-tag":"header",role:"tab"}},[r("h2",{staticClass:"mb-0"},[r("span",[t._v("1")]),t._v(" "),r("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.accordion-1",modifiers:{"accordion-1":!0}}],staticClass:"btn btn-link",attrs:{type:"button"}},[t._v("\n College Cost And Future Lifestile Calculator\n ")])])]),t._v(" "),r("b-collapse",{staticClass:"collapse show",attrs:{id:"accordion-1",visible:"",accordion:"my-accordion",role:"tabpanel"}},[r("img",{staticClass:"circle-bg",attrs:{src:o(238),alt:""}}),t._v(" "),r("img",{staticClass:"circle-bg-small",attrs:{src:o(239),alt:""}}),t._v(" "),r("b-card-body",{staticClass:"card-body"},[t._v("\n On this page you can customize the many parameters that go into estimating your post-graduation lifestile. \n Select up to two universities, adjust your expected starting salary and select the kind of lifestyle you expect to have after graduation. \n You can override each value with your own $$ amount.\n "),r("div",{staticClass:"calculator__form-top"},[r("app-field-select",{staticClass:"default-button select-arrow select-left",attrs:{reduce:function(t){return t.code},options:t.states,name:"state","input-classes":"custom-select",placeholder:"Select your state"},on:{input:function(e){return t.onSearch("*",["schoolsFirst","schoolsSecond"],e)}},model:{value:t.form.state,callback:function(e){t.$set(t.form,"state",e)},expression:"form.state"}}),t._v(" "),r("app-field-select",{staticClass:"default-button select-right",attrs:{reduce:function(t){return t.code},options:t.majors,name:"major","input-classes":"custom-select",placeholder:"Select your major"},model:{value:t.form.major,callback:function(e){t.$set(t.form,"major",e)},expression:"form.major"}})],1)])],1)],1),t._v(" "),r("b-card",{staticClass:"card",attrs:{"no-body":""}},[r("b-card-header",{attrs:{"header-tag":"header",role:"tab"}},[r("h2",{staticClass:"mb-0"},[r("span",[t._v("2")]),t._v(" "),r("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.accordion-2",modifiers:{"accordion-2":!0}}],staticClass:"btn btn-link",attrs:{type:"button"}},[t._v("\n Family Income Level:\n ")])])]),t._v(" "),r("b-collapse",{staticClass:"collapse show",attrs:{id:"accordion-2",accordion:"my-accordion",role:"tabpanel"}},[r("img",{staticClass:"circle-bg",attrs:{src:o(238),alt:""}}),t._v(" "),r("img",{staticClass:"circle-bg-small",attrs:{src:o(239),alt:""}}),t._v(" "),r("b-card-body",{staticClass:"card-body card-body-2"},[r("div",{staticClass:"calculator__form-personality"},[r("app-field-select",{staticClass:"default-button select-arrow select-left",attrs:{options:t.quantityOptions,name:"level","input-classes":"custom-select",reduse:function(t){return t.code}},on:{change:function(e){t.form.level=e}},model:{value:t.quantity,callback:function(e){t.quantity=e},expression:"quantity"}}),t._v(" "),r("h3",{staticClass:"default-name"},[t._v("Salary after bachelor’s degree:")]),t._v(" "),r("div",{staticClass:"form-group"},[r("app-field-text",{attrs:{name:"salary",mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.salary,callback:function(e){t.$set(t.form,"salary",e)},expression:"form.salary"}}),t._v(" "),t.form.salary?r("label",[t._v("estimated - $"+t._s(t.form.salary))]):t._e()],1),t._v(" "),r("h3",{staticClass:"default-name mt"},[t._v("Amount contributed by you or on\n your behalf towards your undergraduate education:\n ")]),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"amount",mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",e)},expression:"form.amount"}})]}}],null,!0)})],1)])],1)],1),t._v(" "),r("b-card",{staticClass:"card",attrs:{"no-body":""}},[r("b-card-header",{attrs:{"header-tag":"header",role:"tab"}},[r("h2",{staticClass:"mb-0"},[r("span",[t._v("3")]),t._v(" "),r("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.accordion-3",modifiers:{"accordion-3":!0}}],staticClass:"btn btn-link",attrs:{type:"button"}},[t._v("\n Universities:\n ")])])]),t._v(" "),r("b-collapse",{staticClass:"collapse show",attrs:{id:"accordion-3",accordion:"my-accordion",role:"tabpanel"}},[r("img",{staticClass:"circle-bg",attrs:{src:o(238),alt:""}}),t._v(" "),r("img",{staticClass:"circle-bg-small",attrs:{src:o(239),alt:""}}),t._v(" "),r("b-card-body",{staticClass:"card-body"},[r("div",{staticClass:"calculator__form-personality"},[r("div",{staticClass:"your-school"},[r("app-loader",{model:{value:t.loadingState,callback:function(e){t.loadingState=e},expression:"loadingState"}},[r("app-field-select",{staticClass:"default-button",attrs:{options:t.schoolsFirst,labelName:"Name",reduseKey:!1,name:"state","input-classes":"custom-select",label:"First school",placeholder:"Search for your university",disabled:!t.form.state},on:{change:t.changeFirstSchool},model:{value:t.form.school,callback:function(e){t.$set(t.form,"school",e)},expression:"form.school"}})],1),t._v(" "),r("div",{staticClass:"total-form"},[r("app-field-select",{staticClass:"default-button",attrs:{options:t.schoolsYearsOptions,label:"Number Of Years","input-classes":"custom-select",disabled:!t.form.state,reduse:function(t){return t.code}},on:{change:t.changeFirstYears,input:t.inputFirstYears},model:{value:t.schoolsFirstYears,callback:function(e){t.schoolsFirstYears=e},expression:"schoolsFirstYears"}})],1),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{label:"Total cost",name:"zip",mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},on:{input:function(e){t.notInputSchoolFirstCost=!0}},model:{value:t.form.school_cost,callback:function(e){t.$set(t.form,"school_cost",e)},expression:"form.school_cost"}})]}}],null,!0)}),t._v(" "),r("p",{staticClass:"mt"},[t._v("In state tuition: $"+t._s(t.form.school.InStateTuition||"N/A"))]),t._v(" "),r("p",[t._v("Total cost: $"+t._s(t.form.school.Cost||"N/A"))]),t._v(" "),r("p",[t._v("Average payed for your\n income bracket: $"+t._s(t.form.school.Control>1?t.form.school["AvgPrivateTuition"+t.form.level]:t.form.school["AvgInStateTuition"+t.form.level]||"N/A")+"\n ")])],1),t._v(" "),r("div",{staticClass:"your-school"},[r("app-loader",{model:{value:t.loadingState,callback:function(e){t.loadingState=e},expression:"loadingState"}},[r("app-field-select",{staticClass:"default-button",attrs:{options:t.schoolsSecond,labelName:"Name",reduseKey:!1,name:"state","input-classes":"custom-select",label:"Second school",placeholder:"Optional transfer university",disabled:!t.form.state},on:{change:t.changeSecondSchool},model:{value:t.form.school1,callback:function(e){t.$set(t.form,"school1",e)},expression:"form.school1"}})],1),t._v(" "),r("app-field-select",{staticClass:"default-button",attrs:{options:t.schoolsYearsOptions,label:"Number Of Years","input-classes":"custom-select",disabled:!t.form.state,reduse:function(t){return t.code}},on:{change:t.changeSecondYears,input:t.inputSecondYears},model:{value:t.schoolsSecondYears,callback:function(e){t.schoolsSecondYears=e},expression:"schoolsSecondYears"}}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{label:"Total cost",name:"zip",mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},on:{change:t.changeSecondYears,input:t.inputSecondYears},model:{value:t.form.school1_cost,callback:function(e){t.$set(t.form,"school1_cost",e)},expression:"form.school1_cost"}})]}}],null,!0)}),t._v(" "),r("p",{staticClass:"mt"},[t._v("In state tuition: $"+t._s(t.form.school1.InStateTuition||"N/A"))]),t._v(" "),r("p",[t._v("Total cost: $"+t._s(t.form.school1.Cost||"N/A"))]),t._v(" "),r("p",[t._v("Average Tuition Payed: $"+t._s(t.form.school1.Control>1?t.form.school1["AvgPrivateTuition"+t.form.level]:t.form.school1["AvgInStateTuition"+t.form.level]||"N/A"))])],1)])])],1)],1),t._v(" "),r("b-card",{staticClass:"card",attrs:{"no-body":""}},[r("b-card-header",{attrs:{"header-tag":"header",role:"tab"}},[r("h2",{staticClass:"mb-0"},[r("span",[t._v("4")]),t._v(" "),r("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.accordion-4",modifiers:{"accordion-4":!0}}],staticClass:"btn btn-link",attrs:{type:"button"}},[t._v("\n Lets look at your life after graduation\n ")])])]),t._v(" "),r("b-collapse",{staticClass:"collapse show",attrs:{id:"accordion-4",accordion:"my-accordion",role:"tabpanel"}},[r("img",{staticClass:"circle-bg",attrs:{src:o(238),alt:""}}),t._v(" "),r("img",{staticClass:"circle-bg-small",attrs:{src:o(239),alt:""}}),t._v(" "),r("b-card-body",{staticClass:"card-body"},[r("div",{staticClass:"calculator__form-personality"},[r("div",{staticClass:"form-group range"},[r("h3",{staticClass:"default-name"},[t._v("Years in student loan debt after graduation")]),t._v(" "),r("app-field-range",{attrs:{min:1,name:"years"},model:{value:t.form.years,callback:function(e){t.$set(t.form,"years",e)},expression:"form.years"}})],1),t._v(" "),r("div",{staticClass:"items-select"},[r("h3",{staticClass:"default-name"},[t._v("Where do you want to live?")]),t._v(" "),r("app-field-select",{staticClass:"select-arrow",attrs:{name:"life","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.stateAveragesWhereDoYouWantToLive(t.form.state)},on:{change:function(e){t.form.life_cost=e}},model:{value:t.form.life,callback:function(e){t.$set(t.form,"life",e)},expression:"form.life"}}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"life_cost",label:"Enter your own cost",mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.life_cost,callback:function(e){t.$set(t.form,"life_cost",e)},expression:"form.life_cost"}})]}}],null,!0)})],1),t._v(" "),r("div",{staticClass:"items-select"},[r("h3",{staticClass:"default-name"},[t._v("How much will you be paying for Utilities?")]),t._v(" "),r("app-field-select",{staticClass:"select-arrow",attrs:{name:"utilities","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.stateAveragesHowMuchWillYouBePayingForUtilities(t.form.state)},on:{change:function(e){t.form.utilities_cost=e}},model:{value:t.form.utilities,callback:function(e){t.$set(t.form,"utilities",e)},expression:"form.utilities"}}),t._v(" "),r("div",{staticClass:"form-modal"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"utilities_cost",label:"Enter your own cost",mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.utilities_cost,callback:function(e){t.$set(t.form,"utilities_cost",e)},expression:"form.utilities_cost"}})]}}],null,!0)}),t._v(" "),r("button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-utilities",modifiers:{"modal-utilities":!0}}],staticClass:"default-submit show-modal",attrs:{type:"button"}},[r("img",{attrs:{src:o(148),alt:""}})])],1)],1),t._v(" "),r("div",{staticClass:"items-select"},[r("h3",{staticClass:"default-name"},[t._v("Transportation")]),t._v(" "),r("app-field-select",{staticClass:"select-arrow",attrs:{name:"transportation","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.constants.Transportation},on:{change:function(e){t.form.transportation_cost=e}},model:{value:t.form.transportation,callback:function(e){t.$set(t.form,"transportation",e)},expression:"form.transportation"}}),t._v(" "),r("div",{staticClass:"form-modal"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"transportation_cost",label:"Enter your own cost",mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.transportation_cost,callback:function(e){t.$set(t.form,"transportation_cost",e)},expression:"form.transportation_cost"}})]}}],null,!0)}),t._v(" "),r("button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-transportation",modifiers:{"modal-transportation":!0}}],staticClass:"default-submit show-modal",attrs:{type:"button"}},[r("img",{attrs:{src:o(148),alt:""}})])],1)],1),t._v(" "),r("div",{staticClass:"items-select"},[r("h3",{staticClass:"default-name"},[t._v("How much do you want to spend on food")]),t._v(" "),r("app-field-select",{staticClass:"select-arrow",attrs:{name:"food","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.stateAveragesHowMuchDoYouWantToSpendOnFood(t.form.state)},on:{change:function(e){t.form.food_cost=e}},model:{value:t.form.food,callback:function(e){t.$set(t.form,"food",e)},expression:"form.food"}}),t._v(" "),r("div",{staticClass:"form-modal"},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"food_cost",label:"Enter your own cost",mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1},state:o.length||!1,e:o[0]},model:{value:t.form.food_cost,callback:function(e){t.$set(t.form,"food_cost",e)},expression:"form.food_cost"}})]}}],null,!0)}),t._v(" "),r("button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-food",modifiers:{"modal-food":!0}}],staticClass:"default-submit show-modal",attrs:{type:"button"}},[r("img",{attrs:{src:o(148),alt:""}})])],1)],1),t._v(" "),r("div",{staticClass:"items-select"},[r("h3",{staticClass:"default-name"},[t._v("How much do you want to travel?")]),t._v(" "),r("app-field-select",{staticClass:"select-arrow",attrs:{name:"travel","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.constants.HowMuchDoYouWantToTravel},on:{change:function(e){t.form.travel_cost=e}},model:{value:t.form.travel,callback:function(e){t.$set(t.form,"travel",e)},expression:"form.travel"}}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"travel_cost",label:"Enter your own cost",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.travel_cost,callback:function(e){t.$set(t.form,"travel_cost",e)},expression:"form.travel_cost"}})]}}],null,!0)})],1),t._v(" "),r("div",{staticClass:"items-select"},[r("h3",{staticClass:"default-name"},[t._v("Do you want to go out?")]),t._v(" "),r("app-field-select",{staticClass:"select-arrow",attrs:{name:"out","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.constants.DoYouWantToGoOut},on:{change:function(e){t.form.out_cost=e}},model:{value:t.form.out,callback:function(e){t.$set(t.form,"out",e)},expression:"form.out"}}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{attrs:{name:"out_cost",label:"Enter your own cost",state:o.length||!1,e:o[0],mask:{regex:"[0-9]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.out_cost,callback:function(e){t.$set(t.form,"out_cost",e)},expression:"form.out_cost"}})]}}],null,!0)})],1),t._v(" "),r("div",{staticClass:"items-select"},[r("h3",{staticClass:"default-name"},[t._v("You should start saving for retirement")]),t._v(" "),r("app-field-select",{staticClass:"select-arrow",attrs:{name:"retirement","input-classes":"custom-select",placeholder:"Select",searchable:!1,options:t.constants.YouShouldStartSavingForRetirement},on:{change:function(e){t.form.retirement_cost=t.form.salary/12*e}},model:{value:t.form.retirement,callback:function(e){t.$set(t.form,"retirement",e)},expression:"form.retirement"}}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.errors;return[r("app-field-text",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:"Enter your percentage",name:"retirement_cost",label:"Enter your own cost",state:o.length||!1,e:o[0],mask:{regex:"[0-9.]*",autoGroup:!0,showMaskOnHover:!1}},model:{value:t.form.retirement_cost,callback:function(e){t.$set(t.form,"retirement_cost",e)},expression:"form.retirement_cost"}})]}}],null,!0)})],1)])])],1)],1),t._v(" "),r("b-card",{staticClass:"card",attrs:{"no-body":""}},[r("b-card-header",{attrs:{"header-tag":"header",role:"tab"}},[r("h2",{staticClass:"mb-0"},[r("span",[t._v("5")]),t._v(" "),r("button",{staticClass:"btn btn-link",attrs:{type:"button","dv-b-toggle.accordion-5":""}},[t._v("\n Lets look at your life after graduation\n ")])])])],1)],1),t._v(" "),4==t.accordionId?r("button",{staticClass:"default-submit mod-sumbit",class:{disabled:l},attrs:{type:"submit",disabled:l}},[r("span",[t._v("Show Results")])]):r("button",{staticClass:"default-submit mod-sumbit",attrs:{type:"button"},on:{click:t.changeCollapse}},[r("span",[t._v("Go To Next Section")])])])]}}])})],1)])],1)}),[],!1,null,null,null).exports,AppModalTransportation:v,AppModalUtilities:y,AppModalFood:f},data:function(){return{calc:null,transportation:"",food:"",utilities:""}},methods:{goCalc:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var o,l,n,c,d,m,f,h,v,_;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.calc.school_years,l=t.calc.school.Cost,n=1===t.calc.school.Control?"AvgInStateTuition":"AvgPrivateTuition",c=0===t.calc.level?t.calc.school[n]>0?t.calc.school[n]*o:l*o:t.calc.school[n+t.calc.level]>0?t.calc.school[n+t.calc.level]*o:l*o,d=[{name:t.calc.school.Name,years:o,cost:c}],m=c,o,t.calc.school1&&(n=1===t.calc.school1.Control?"AvgInStateTuition":"AvgPrivateTuition",o=t.calc.school1_years,c=0===t.calc.level?t.calc.school1[n]>0?t.calc.school1[n]*o:l*o:t.calc.school1[n+t.calc.level]>0?t.calc.school1[n+t.calc.level]*o:l*o,d.push({name:t.calc.school1.Name,years:o,cost:c}),m+=c,o),f=Math.max(m-parseInt(t.calc.amount||0),0),h={DebtAmount:f,NumberOfYears:t.calc.years},v={summ:0,items:[]},t.calc.food_cost&&(v.items.push({name:"Food",value:t.calc.food_cost}),v.summ+=t.calc.food_cost),t.calc.life_cost&&(v.items.push({name:"Living Arrangements ("+(null===(_=t.calc.life)||void 0===_?void 0:_.label)+")",value:t.calc.life_cost}),v.summ+=t.calc.life_cost),t.calc.out_cost&&(v.items.push({name:"Going Out",value:t.calc.out_cost}),v.summ+=t.calc.out_cost),t.calc.utilities_cost&&(v.items.push({name:"Utilities",value:t.calc.utilities_cost}),v.summ+=t.calc.utilities_cost),t.calc.retirement_cost&&(v.items.push({name:"Retirement Investment",value:t.calc.retirement_cost}),v.summ+=t.calc.retirement_cost),t.calc.transportation_cost&&(v.items.push({name:"Transportation",value:t.calc.transportation_cost}),v.summ+=t.calc.transportation_cost),t.calc.travel_cost&&(v.items.push({name:"Travel",value:t.calc.travel_cost}),v.summ+=t.calc.travel_cost),e.next=20,t.$store.dispatch("local/formulas/calcOtherTax",{salary:parseInt(t.calc.salary)}).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("local/formulas/calcDebtPayment",h).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(r){var q;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:q={schools:d,totalCost:m,afterCost:f,contribution:t.calc.amount||0,monthly:r,income:o/12,expenses_summ:v.summ,expenses:v.items,balance:o/12-r-v.summ,salary:t.calc.salary,incomeTax:t.calc.salary-o,yearsLoan:t.calc.years},t.$router.push({path:"/result",query:{params:JSON.stringify(q)}});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 20:case"end":return e.stop()}}),e)})))()}}}),M=Object(m.a)(j,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("no-ssr",[o("div",{staticClass:"calculator"},[o("div",{staticClass:"calculator__wrapper calculator__wrapper_desk default-container"},[o("h1",{staticClass:"default-title"},[t._v("College Cost And Future Lifestile Calculator")]),t._v(" "),o("p",{staticClass:"top-text"},[t._v("On this page you can customize the many parameters that go into estimating your post-graduation lifestile. \n Select up to two universities, adjust your expected starting salary and select the kind of lifestyle you expect to have after graduation. \n You can override each value with your own $$ amount.\n ")]),t._v(" "),o("app-form-calculator-dekstop",{attrs:{"form-modal-utilities":t.utilities,"form-modal-transportation":t.transportation,"form-modal-food":t.food},on:{goto:t.goCalc},model:{value:t.calc,callback:function(e){t.calc=e},expression:"calc"}})],1),t._v(" "),o("app-form-calculator-mobile",{attrs:{"form-modal-utilities":t.utilities,"form-modal-transportation":t.transportation,"form-modal-food":t.food},on:{goto:t.goCalc},model:{value:t.calc,callback:function(e){t.calc=e},expression:"calc"}}),t._v(" "),o("app-modal-transportation",{on:{"change:car":function(e){t.transportation=e}}}),t._v(" "),o("app-modal-utilities",{on:{"change:utilities":function(e){t.utilities=e}}}),t._v(" "),o("app-modal-food",{on:{"change:food":function(e){t.food=e}}})],1)])}),[],!1,null,null,null);e.default=M.exports}}]);