(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-183c2b6e"],{"0c81":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"f",(function(){return r})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"a",(function(){return o}));var s=function(t){return"".concat(t," har blivit tillagt!")},r=function(t){return"".concat(t," sparades!")},a="Något gick fel!",i="Din åtgärd har blivit raderad!",l="Är du säker?",c="Ja",o="Avbryt"},"69b9":function(t,e,n){"use strict";n("c004")},"8a21":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"settings-page"},[n("section",[n("h1",{staticClass:"section-header"},[t._v(" Inställningar ")]),n("div",{staticClass:"box box--outline mt-5"},[n("div",{staticClass:"d-flex justify-content-between"},[n("div",{staticClass:"col-xl-3 col-lg-4 col-sm-4 col-md-4 col-6"},[n("div",{staticClass:"box-title mb-5"},[t._v("Milersättning")]),n("input-field",{attrs:{type:"number","append-content":"kr/mil",label:"Diesel"},model:{value:t.fuelCost.diesel,callback:function(e){t.$set(t.fuelCost,"diesel",t._n(e))},expression:"fuelCost.diesel"}}),n("input-field",{staticClass:"mt-3",attrs:{type:"number","append-content":"kr/mil",label:"Bensin"},model:{value:t.fuelCost.gasoline,callback:function(e){t.$set(t.fuelCost,"gasoline",t._n(e))},expression:"fuelCost.gasoline"}}),n("input-field",{staticClass:"mt-3",attrs:{type:"number","append-content":"kr/mil",label:"El"},model:{value:t.fuelCost.electric,callback:function(e){t.$set(t.fuelCost,"electric",t._n(e))},expression:"fuelCost.electric"}}),n("input-field",{staticClass:"mt-3",attrs:{type:"number","append-content":"kr/mil",label:"Hybrid"},model:{value:t.fuelCost.hybrid,callback:function(e){t.$set(t.fuelCost,"hybrid",t._n(e))},expression:"fuelCost.hybrid"}})],1),t._m(0)]),n("div",{staticClass:"d-flex justify-content-end"},[n("app-button",{staticClass:"btn--blue",on:{click:t.save}},[t._v("Spara")])],1)])])])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-6"},[n("div",{staticClass:"box box--outline note-box pb-4",staticStyle:{height:"auto"}},[n("h2",{staticClass:"mt-1"},[t._v("Hur fungerar det?")]),t._v(" Här kan du som administratör på företaget ställa in förarnas milersättning för samtliga drivmedel. Genom att ange kronor/mil räknas det beloppet gånger körda mil, både för privat och tjänsteresor. Föraren och företagets administratörer hittar totala milersättningen i Fordonsexporten som görs under Översikt. ")])])}],a=n("1da1"),i=(n("96cf"),n("bc3a")),l=n.n(i),c={getSettings:function(){return l.a.get("/settings/company")},setFuelCost:function(t){return l.a.put("/settings/company",{fuelCost:t})}},o=n("0c81"),u={name:"Settings",data:function(){return{fuelCost:{diesel:0,electric:0,gasoline:0,hybrid:0}}},methods:{save:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.setFuelCost(t.fuelCost);case 3:t.$notify.success("Sparat!"),e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](0),t.$notify.error(o["e"]);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))()}},created:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.getSettings();case 3:n=e.sent,t.fuelCost=n.fuelCost,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})))()}},f=u,d=(n("69b9"),n("2877")),p=Object(d["a"])(f,s,r,!1,null,"30bc796f",null);e["default"]=p.exports},c004:function(t,e,n){}}]); //# sourceMappingURL=chunk-183c2b6e.b72c35c7.js.map