{"version":3,"sources":["webpack:///./src/router/views/import-fuelly.vue?c135","webpack:///src/router/views/import-fuelly.vue","webpack:///./src/router/views/import-fuelly.vue?ff0d","webpack:///./src/router/views/import-fuelly.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","attrs","on","$event","preventDefault","importFuelly","class","file","model","value","callback","$$v","expression","_s","uploadButtonLabel","isMobile","name","_e","tryingToCreate","errors","_l","error","key","staticRenderFns","page","title","meta","components","computed","props","user","type","Object","required","data","methods","errorMessage","formData","append","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,KAAK,CAACE,YAAY,SAAS,CAACN,EAAIO,GAAG,4BAA4BH,EAAG,MAAMA,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,IAAI,CAACE,YAAY,YAAY,CAACN,EAAIO,GAAG,uCAAuCH,EAAG,KAAK,CAACA,EAAG,KAAK,CAACJ,EAAIO,GAAG,kFAAkFH,EAAG,IAAI,CAACI,MAAM,CAAC,KAAO,mDAAmD,OAAS,cAAc,CAACR,EAAIO,GAAG,UAAUP,EAAIO,GAAG,OAAOH,EAAG,KAAK,CAACJ,EAAIO,GAAG,+EAA+EH,EAAG,KAAK,CAACJ,EAAIO,GAAG,+HAA+HH,EAAG,KAAK,CAACJ,EAAIO,GAAG,uBAAuBH,EAAG,IAAI,CAACJ,EAAIO,GAAG,cAAcP,EAAIO,GAAG,SAASH,EAAG,IAAI,CAACJ,EAAIO,GAAG,mBAAmBP,EAAIO,GAAG,uHAAuHH,EAAG,KAAK,CAACJ,EAAIO,GAAG,mCAAmCH,EAAG,IAAI,CAACJ,EAAIO,GAAG,eAA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var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Layout',[_c('div',{staticClass:\"columns box\"},[_c('div',{staticClass:\"column\"},[_c('h1',{staticClass:\"title\"},[_vm._v(\"Import from Fuelly\")])])]),_c('br'),_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column\"},[_c('p',{staticClass:\"subtitle\"},[_vm._v(\" Steps to import data from Fuelly\")]),_c('ol',[_c('li',[_vm._v(\"Export your data from Fuelly in the CSV format. Steps to do that can be found \"),_c('a',{attrs:{\"href\":\"http://docs.fuelly.com/acar-import-export-center\",\"target\":\"_nofollow\"}},[_vm._v(\"here\")]),_vm._v(\".\")]),_c('li',[_vm._v(\"Make sure that you have already created the vehicles in Hammond platform.\")]),_c('li',[_vm._v(\"Make sure that the Vehicle nickname in Hammond is exactly the same as the name on Fuelly CSV or the import will not work.\")]),_c('li',[_vm._v(\"Make sure that the \"),_c('u',[_vm._v(\"Currency\")]),_vm._v(\" and \"),_c('u',[_vm._v(\"Distance Unit\")]),_vm._v(\" are set correctly in Hammond. Import will not autodetect Currency from the CSV but use the one set for the user.\")]),_c('li',[_vm._v(\"Similiarly, make sure that the \"),_c('u',[_vm._v(\"Fuel Unit\")]),_vm._v(\" and \"),_c('u',[_vm._v(\"Fuel Type\")]),_vm._v(\" are correctly set in the Vehicle.\")]),_c('li',[_vm._v(\"Once you have checked all these points,just import the CSV below.\")]),_c('li',[_c('b',[_vm._v(\"Make sure that you do not import the file again and that will create repeat entries.\")])])])])]),_c('div',{staticClass:\"section box\"},[_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column is-two-thirds\"},[_c('p',{staticClass:\"subtitle\"},[_vm._v(\"Choose the Fuelly CSV and press the import button.\")])]),_c('div',{staticClass:\"column is-one-third is-flex is-align-content-center\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.importFuelly($event)}}},[_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column\"},[_c('b-field',{staticClass:\"file is-primary\",class:{ 'has-name': !!_vm.file }},[_c('b-upload',{staticClass:\"file-label\",attrs:{\"accept\":\".csv\"},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}},[_c('span',{staticClass:\"file-cta\"},[_c('b-icon',{staticClass:\"file-icon\",attrs:{\"icon\":\"upload\"}}),_c('span',{staticClass:\"file-label\"},[_vm._v(_vm._s(_vm.uploadButtonLabel))])],1),(_vm.file)?_c('span',{staticClass:\"file-name\",class:_vm.isMobile ? 'file-name-mobile' : 'file-name-desktop'},[_vm._v(\" \"+_vm._s(_vm.file.name)+\" \")]):_vm._e()])],1)],1),_c('div',{staticClass:\"column\"},[_c('b-button',{staticClass:\"control\",attrs:{\"tag\":\"input\",\"native-type\":\"submit\",\"disabled\":_vm.tryingToCreate,\"type\":\"is-primary\",\"value\":\"Upload File\"}},[_vm._v(\" Import \")])],1)])])])])]),(_vm.errors.length)?_c('b-message',{attrs:{\"type\":\"is-danger\"}},[_c('ul',_vm._l((_vm.errors),function(error){return _c('li',{key:error},[_vm._v(_vm._s(error))])}),0)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n
\n
\n
Import from Fuelly
\n
\n
\n \n
\n
\n
Steps to import data from Fuelly
\n \n
Export your data from Fuelly in the CSV format. Steps to do that can be found\n here.
\n
Make sure that you have already created the vehicles in Hammond platform.
\n
Make sure that the Vehicle nickname in Hammond is exactly the same as the name on Fuelly CSV or the import will not work.
\n
Make sure that the Currency and Distance Unit are set correctly in Hammond. Import will not autodetect Currency from the\n CSV but use the one set for the user.
\n
Similiarly, make sure that the Fuel Unit and Fuel Type are correctly set in the Vehicle.
\n
Once you have checked all these points,just import the CSV below.
\n
Make sure that you do not import the file again and that will create repeat entries.
\n \n
\n
\n
\n
\n
Choose the Fuelly CSV and press the import button.
\n
\n \n
\n
\n
\n \n
\n
{{ error }}
\n
\n \n \n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./import-fuelly.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./import-fuelly.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./import-fuelly.vue?vue&type=template&id=4b62b3fc&\"\nimport script from \"./import-fuelly.vue?vue&type=script&lang=js&\"\nexport * from \"./import-fuelly.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}