{"version":3,"sources":["webpack:///./src/modules/autocheck-valuation/pages/AutocheckValuation.vue","webpack:///./src/modules/autocheck-valuation/stores/autocheck-valuation/state.js","webpack:///./src/modules/autocheck-valuation/stores/autocheck-valuation/getters.js","webpack:///./src/modules/autocheck-valuation/stores/autocheck-valuation/mutations.js","webpack:///./src/modules/autocheck-valuation/stores/autocheck-valuation/actions.js","webpack:///./src/modules/autocheck-valuation/stores/index.js","webpack:///./src/modules/autocheck-valuation/services/AutocheckValuationPdf/AutoCheckValuationPdf.html","webpack:///./src/modules/autocheck-valuation/services/AutocheckValuationPdf/index.js","webpack:///src/modules/autocheck-valuation/pages/AutocheckValuation.vue","webpack:///./src/modules/autocheck-valuation/pages/AutocheckValuation.vue?6f3e","webpack:///./src/modules/autocheck-valuation/pages/AutocheckValuation.vue?cff1","webpack:///./src/store/services/index.js","webpack:///./src/modules/autocheck-valuation/services/index.js"],"names":["render","_vm$response$cap","_vm$response","_vm$response$specs","_vm","this","_c","_self","response","staticClass","_b","on","autocheck","vrm","hasAutoCheck","precheck","$wait","is","showCheck","_m","_v","directives","name","rawName","value","placement","expression","attrs","mileage","$event","openModal","refresh","class","_s","formattedMileage","formatDate","valuationDate","glass","cap","capid","preventDefault","getValuationCertificate","apply","arguments","_e","specs","co2emissions","description","data","_objectSpread","date","staticRenderFns","valuation","loading","state","_ref","vin","_ref2","_ref3","_ref4","_ref5","createdAt","_ref6","capToken","getters","_getters$response","_getters$response$cap","token","_ref7","JSON","parse","_ref8","setValuation","reset","Object","assign","getOne","uuid","_asyncToGenerator","_regeneratorRuntime","mark","_callee","commit","_yield$node$get","wrap","_context","prev","next","node","get","concat","sent","t0","stop","namespaced","mutations","actions","helpers","formatMoney","text","utils","setPriceValue","retailPriceCode","regex","newPrice","exec","getValuationPdf","_data$glass","_data$glass2","_data$glass3","_data$glass4","_data$cap","_data$cap2","_data$cap3","percentOfOcn","depreciation","setDepreciation","getPdfUser","assetsUrl","process","glassNewPrice","glassCurrentRetail","glassFormattedMileage","formatNumber","inputMileage","glassFormattedAverageMileage","averageMileage","capNewPrice","newRetailPriceCode","capCurrentRetail","capInputMileage","pdfString","Mustache","pdfHtml","components","VehicleSpec","VehicleHeading","AutoCheckValuationResponse","watch","_this","getValuation","created","registerModule","store","$route","params","destroyed","computed","mapGetters","Intl","NumberFormat","format","methods","mapActions","_this2","_callee2","_context2","$notify","$router","push","catch","type","_this3","_callee3","valuations","request","_context3","start","autocheckValuation","end","finish","id","$modal","open","_this4","_callee4","pdf","_context4","getBatchPdfs","_this5","_callee5","_err$response","_err$response$data","msg","_context5","error","message","component","storeModule","exists","_modules","root","_children","create","_x","email","_response$cap","_yield$node$post","post","sendCapEmail","abrupt","updateValuationData","_x2","_yield$create","router"],"mappings":"yIAAIA,G,oBAAS,WAAiB,IAAAC,EAAAC,EAAAC,EAAKC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAAEF,EAAII,SAAUF,EAAG,UAAU,CAACG,YAAY,WAAW,CAACH,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,MAAM,CAACG,YAAY,eAAe,CAACH,EAAG,MAAM,CAACG,YAAY,wBAAwB,CAACH,EAAG,MAAM,CAACG,YAAY,gBAAgB,CAACH,EAAG,iBAAiBF,EAAIM,GAAG,CAACC,GAAG,CAAC,MAAQP,EAAIQ,YAAY,iBAAiB,CAC3XC,IAAKT,EAAIS,IACTC,aAAcV,EAAIU,aAClBC,SAAUX,EAAIY,MAAMC,GAAG,YACvBC,WAAW,IACX,IAAQZ,EAAG,MAAM,CAACG,YAAY,iEAAiE,CAACH,EAAG,MAAM,CAACG,YAAY,gBAAgB,CAACH,EAAG,MAAM,CAACG,YAAY,kCAAkC,CAACH,EAAG,MAAM,CAACG,YAAY,oBAAoB,CAACL,EAAIe,GAAG,GAAGb,EAAG,OAAO,CAACG,YAAY,4BAA4B,CAACL,EAAIgB,GAAG,aAA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js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.response)?_c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column is-4\"},[_c('div',{staticClass:\"columns is-multiline\"},[_c('div',{staticClass:\"column is-12\"},[_c('VehicleHeading',_vm._b({on:{\"check\":_vm.autocheck}},'VehicleHeading',{\n vrm: _vm.vrm,\n hasAutoCheck: _vm.hasAutoCheck,\n precheck: _vm.$wait.is('precheck'),\n showCheck: true\n },false)),_c('div',{staticClass:\"columns is-multiline is-marginless is-mobile is-size-7-mobile\"},[_c('div',{staticClass:\"column is-12\"},[_c('div',{staticClass:\"columns is-vcentered is-mobile\"},[_c('div',{staticClass:\"column is-narrow\"},[_vm._m(0),_c('span',{staticClass:\"has-text-weight-semibold\"},[_vm._v(\"Mileage\")]),_c('a',{directives:[{name:\"tippy\",rawName:\"v-tippy\",value:({ placement: 'right' }),expression:\"{ placement: 'right' }\"}],staticClass:\"icon has-text-soft\",attrs:{\"disabled\":!_vm.mileage,\"title\":\"Edit\"},on:{\"click\":function($event){return _vm.openModal(\n 'autocheck-valuation/AutocheckValuationMileage'\n )}}},[_c('i',{staticClass:\"fal fa-pencil\"})]),_c('a',{directives:[{name:\"tippy\",rawName:\"v-tippy\",value:({ placement: 'right' }),expression:\"{ placement: 'right' }\"}],staticClass:\"icon has-text-soft\",attrs:{\"title\":\"Use today's estimate\"},on:{\"click\":function($event){return _vm.refresh('mileage')}}},[_c('i',{staticClass:\"fal fa-sync\",class:{\n 'fa-spinner fa-pulse has-text-grey':\n _vm.$wait.is('mileage')\n }})])]),_c('div',{staticClass:\"column has-text-right\"},[(_vm.mileage)?_c('p',[_vm._v(\"\\n \"+_vm._s(_vm.formattedMileage)+\"\\n \")]):_c('p',[_vm._v(\"\\n ...\\n \")])])])]),_c('div',{staticClass:\"column is-12 has-background-light\"},[_c('div',{staticClass:\"columns is-vcentered is-mobile\"},[_c('div',{staticClass:\"column\"},[_vm._m(1),_c('span',{staticClass:\"has-text-weight-semibold\"},[_vm._v(\"Valuation date\")]),_c('a',{directives:[{name:\"tippy\",rawName:\"v-tippy\",value:({ placement: 'right' }),expression:\"{ placement: 'right' }\"}],staticClass:\"icon has-text-soft\",attrs:{\"title\":\"Refresh to today\"},on:{\"click\":function($event){return _vm.refresh('date')}}},[_c('i',{staticClass:\"fal fa-sync\",class:{\n 'fa-spinner fa-pulse has-text-grey':\n _vm.$wait.is('date')\n }})])]),_c('div',{staticClass:\"column is-narrow has-text-right\"},[_c('p',[_vm._v(\"\\n \"+_vm._s(_vm.formatDate(_vm.valuationDate))+\"\\n \")])])])]),(_vm.response.glass || _vm.response.cap?.capid)?_c('div',{staticClass:\"column is-12 notification has-background-info has-text-white\"},[_c('div',{staticClass:\"columns is-multiline is-mobile is-vcentered\"},[_vm._m(2),_c('div',{staticClass:\"column is-narrow has-text-right\"},[_c('button',{staticClass:\"button is-soft is-rounded is-size-7-touch\",class:{ 'is-loading': _vm.$wait.is('downloading') },on:{\"click\":function($event){$event.preventDefault();return _vm.getValuationCertificate.apply(null, arguments)}}},[_vm._m(3),_c('span',[_vm._v(\"Generate now\")])])])])]):_vm._e(),_vm._m(4)])],1)]),_c('VehicleSpec',{attrs:{\"preload\":_vm.specs,\"co2\":_vm.response?.specs?.co2emissions}})],1),_c('div',{staticClass:\"column is-8\"},[_c('div',{staticClass:\"columns is-multiline\"},[_c('div',{staticClass:\"column is-12\"},[_c('p',{staticClass:\"title is-6 has-text-grey-light\"},[_vm._v(\"\\n Vehicle overview\\n \")]),_c('p',{staticClass:\"subtitle is-4 is-size-5-mobile has-text-weight-bold\"},[_c('span',[_vm._v(_vm._s(_vm.response.description))])])]),_c('div',{staticClass:\"column is-12\"},[_c('div',{staticClass:\"box\"},[_c('AutoCheckValuationResponse',_vm._b({},'AutoCheckValuationResponse',{\n data: { ..._vm.response, vrm: _vm.vrm, mileage: _vm.mileage, date: _vm.valuationDate }\n },false))],1)])])])])])]):_c('button',{staticClass:\"button is-white is-loading\"})])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"icon\"},[_c('i',{staticClass:\"fal fa-tachometer\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"icon\"},[_c('i',{staticClass:\"fal fa-calendar-alt\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"column\"},[_c('p',{staticClass:\"title is-6 has-text-weight-semibold has-text-white\"},[_vm._v(\"\\n Valuation certificate\\n \")]),_c('p',{staticClass:\"subtitle is-7 has-text-white\"},[_vm._v(\"\\n Print-friendly PDF certificates\\n \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"icon\"},[_c('i',{staticClass:\"fal fa-file-certificate\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"column\"},[_c('p',{staticClass:\"has-text-soft is-size-6\"},[_c('span',{staticClass:\"icon is-small\"},[_c('i',{staticClass:\"fal fa-info-circle\"})]),_c('span',[_vm._v(\"\\n Updating the date or mileage will count as a separate\\n lookup\\n \")])])])\n}]\n\nexport { render, staticRenderFns }","export default () => ({\r\n valuation: null,\r\n loading: false\r\n})\r\n","export default {\r\n valuation: state => state.valuation,\r\n vrm: (state, { valuation }) => valuation?.vrm,\r\n vin: (state, { valuation }) => valuation?.vin,\r\n cap: (state, { valuation }) => valuation?.cap,\r\n glass: (state, { valuation }) => valuation?.glass,\r\n valuationDate: (state, { valuation }) => valuation?.createdAt,\r\n mileage: (state, { valuation }) => +valuation.mileage,\r\n capToken: (state, getters) => getters.response?.cap?.token,\r\n response: (state, { valuation }) =>\r\n valuation ? JSON.parse(valuation.response.response) : null,\r\n specs: (state, { response }) => response.specs\r\n}\r\n","export default {\r\n setValuation(state, data) {\r\n state.valuation = data\r\n },\r\n reset: (state, data) => Object.assign(state, data)\r\n}\r\n","import { node } from '@/plugins/axios'\r\nimport state from './state'\r\n\r\nexport default {\r\n async getOne({ commit }, uuid) {\r\n try {\r\n const { data } = await node.get(`/autocheck/valuation/${uuid}`)\r\n commit('setValuation', data.valuation)\r\n } catch (err) {\r\n throw err\r\n }\r\n },\r\n reset({ commit }) {\r\n commit('reset', state())\r\n }\r\n}\r\n","import state from './autocheck-valuation/state.js'\r\nimport getters from './autocheck-valuation/getters'\r\nimport mutations from './autocheck-valuation/mutations'\r\nimport actions from './autocheck-valuation/actions'\r\n\r\nexport default {\r\n namespaced: true,\r\n state: state(),\r\n mutations,\r\n getters,\r\n actions\r\n}\r\n","export default \"\\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
{{vrm}}
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Logged in as:\\r\\n
\\r\\n
{{name}}
\\r\\n
\\r\\n
\\r\\n
\\r\\n Account/Branch:\\r\\n
\\r\\n
\\r\\n {{organisationNumber}}/{{branchNumber}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Vehicle overview \\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n VIN\\r\\n
\\r\\n
{{vin}}
\\r\\n
\\r\\n
\\r\\n
\\r\\n Manufacturer\\r\\n
\\r\\n
\\r\\n {{#specs.make}}{{specs.make}}{{/specs.make}}\\r\\n {{^specs.make}}N/A{{/specs.make}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Model\\r\\n
\\r\\n
\\r\\n {{specs.model}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Trim\\r\\n
\\r\\n
\\r\\n {{#specs.trim}}{{specs.trim}}{{/specs.trim}}\\r\\n {{^specs.trim}}N/A{{/specs.trim}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Manufacturer year\\r\\n
\\r\\n
\\r\\n {{specs.year}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Body style\\r\\n
\\r\\n
\\r\\n {{#specs.bodyStyle}}{{specs.bodyStyle}}{{/specs.bodyStyle}}\\r\\n {{^specs.bodyStyle}}{{FALLBACK}}{{/specs.bodyStyle}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Transmission\\r\\n
\\r\\n
\\r\\n {{specs.transmission}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Fuel type\\r\\n
\\r\\n
\\r\\n {{specs.fuelType}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Engine capacity\\r\\n
\\r\\n
\\r\\n {{#specs.engineCapacity}}{{specs.engineCapacity}}cc{{/specs.engineCapacity}}\\r\\n {{^specs.engineCapacity}}{{FALLBACK}}{{/specs.engineCapacity}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Cylinders\\r\\n
\\r\\n
\\r\\n {{#specs.cylinders}}{{specs.cylinders}}{{/specs.cylinders}}\\r\\n {{^specs.cylinders}}N/A{{/specs.cylinders}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Engine number\\r\\n
\\r\\n
\\r\\n {{specs.engineNumber}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Power output\\r\\n
\\r\\n
\\r\\n {{#specs.powerOutputKw}}{{specs.powerOutputKw}}{{/specs.powerOutputKw}}\\r\\n {{^specs.powerOutputKw}}N/A{{/specs.powerOutputKw}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Colour\\r\\n
\\r\\n
\\r\\n {{specs.colour}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Registered in UK\\r\\n
\\r\\n
\\r\\n {{#formatDate}}{{specs.firstReg}}{{/formatDate}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n CO² emissions\\r\\n
\\r\\n
\\r\\n {{specs.co2emissions}}g/km\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n Valuation Details\\r\\n
\\r\\n
\\r\\n {{#glass.modelDetails}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
Glass's
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Vehicle description\\r\\n
\\r\\n
\\r\\n {{glass.modelDetails}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Insurance group\\r\\n
\\r\\n
\\r\\n {{glass.insuranceGroup}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Glass's reference\\r\\n
\\r\\n
\\r\\n {{glass.retailPriceCode}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Average mileage\\r\\n
\\r\\n
\\r\\n {{glassFormattedAverageMileage}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Current retail\\r\\n
\\r\\n
\\r\\n {{glassCurrentRetail}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Trade (average mileage)\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{glass.valueBasicTrade}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Trade ({{glassFormattedMileage}})\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{glass.adjustedValue}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n New price\\r\\n
\\r\\n
\\r\\n {{glassNewPrice}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n {{/glass.modelDetails}}\\r\\n
\\r\\n
\\r\\n {{#cap.capid}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
Cap's
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Vehicle Information\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Date\\r\\n
\\r\\n
\\r\\n {{date}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Model details\\r\\n
\\r\\n
\\r\\n {{cap.modelDetails}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Trim details\\r\\n
\\r\\n
\\r\\n {{cap.trimDetails}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Input mileage\\r\\n
\\r\\n
\\r\\n {{capInputMileage}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n CAP reference\\r\\n
\\r\\n
\\r\\n {{cap.newRetailPriceCode}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Price new\\r\\n
\\r\\n
\\r\\n {{capNewPrice}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Insurance group\\r\\n
\\r\\n
\\r\\n {{cap.insuranceGroup}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Message\\r\\n
\\r\\n
\\r\\n {{#cap.message}}{{cap.message}}{{/cap.message}}\\r\\n {{^cap.message}}N/A{{/cap.message}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Black Book\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Retail value\\r\\n
\\r\\n
\\r\\n {{capCurrentRetail}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Clean value\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{cap.valueClean}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Average value\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{cap.valueAvg}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Below average value\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{cap.valueBelowAvg}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Black Book Live\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Live retail value\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{cap.blackBookLiveRetail}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Live clean value\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{cap.blackBookLiveClean}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Live average value\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{cap.blackBookLiveAvg}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Live below average value\\r\\n
\\r\\n
\\r\\n {{#formatMoney}}{{cap.blackBookLiveBelowAvg}}{{/formatMoney}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n Black book commentary\\r\\n
\\r\\n
\\r\\n {{cap.blackBookLiveCommentary}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n {{/cap.capid}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n\\r\\n\\r\\n\\r\\n\"","import * as autocheck from '@/modules/autocheck/services'\r\n\r\nimport { getPdfUser, setDepreciation } from '@/modules/autocheck/services/pdfs'\r\nimport * as utils from '@/utils/date.utils.ts'\r\n\r\nimport Mustache from 'mustache'\r\nimport { formatMoney, formatNumber } from 'accounting'\r\n// eslint-disable-next-line import/no-webpack-loader-syntax\r\nimport pdfHtml from '!!raw-loader!./AutoCheckValuationPdf.html'\r\n\r\nconst helpers = {\r\n formatMoney: function () {\r\n return function (text, render) {\r\n return formatMoney(render(text), '£', 0)\r\n }\r\n },\r\n formatDate: function () {\r\n return function (text, render) {\r\n return utils.formatDate(render(text))\r\n }\r\n }\r\n}\r\n\r\nconst setPriceValue = (retailPriceCode, regex) => {\r\n if (retailPriceCode) {\r\n const newPrice = regex.exec(retailPriceCode)\r\n if (newPrice) {\r\n return formatMoney(newPrice[1], '£', 0)\r\n }\r\n }\r\n return 'N/A'\r\n}\r\n\r\nexport const getValuationPdf = data => {\r\n const percentOfOcn = autocheck.getPercentOfOcn(data)\r\n const depreciation = setDepreciation(percentOfOcn)\r\n\r\n Object.assign(data, getPdfUser())\r\n Object.assign(data, helpers)\r\n Object.assign(data, { percentOfOcn, depreciation })\r\n Object.assign(data, {\r\n assetsUrl: `${process.env.VUE_APP_IMAGE_ASSETS_URL}`\r\n })\r\n Object.assign(data, {\r\n glassNewPrice: setPriceValue(data?.glass?.retailPriceCode, /P(.*?)G/g),\r\n glassCurrentRetail: setPriceValue(data?.glass?.retailPriceCode, /R(.*?)$/g),\r\n glassFormattedMileage: formatNumber(data?.glass?.inputMileage),\r\n glassFormattedAverageMileage: formatNumber(data?.glass?.averageMileage)\r\n })\r\n Object.assign(data, {\r\n capNewPrice: setPriceValue(data?.cap?.newRetailPriceCode, /N(.*?)R/g),\r\n capCurrentRetail: setPriceValue(data?.cap?.newRetailPriceCode, /R(.*?)$/g),\r\n capInputMileage: formatNumber(data?.cap?.inputMileage)\r\n })\r\n\r\n const pdfString = Mustache.render(pdfHtml, data)\r\n return { pdfString, vrm: data.vrm }\r\n}\r\n","\r\n\r\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!./AutocheckValuation.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!./AutocheckValuation.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AutocheckValuation.vue?vue&type=template&id=07918e0c&\"\nimport script from \"./AutocheckValuation.vue?vue&type=script&lang=js&\"\nexport * from \"./AutocheckValuation.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","import store from '@/store'\r\n\r\nexport default (name, storeModule) => {\r\n const exists = store._modules.root._children[name]\r\n if (!exists) store.registerModule(name, storeModule)\r\n}\r\n","import { node } from '@/plugins/axios'\r\nimport { sendCapEmail } from 'modules/autocheck/services'\r\nimport router from '@/router'\r\n\r\nexport const create = async ({ request, email }) => {\r\n try {\r\n const { data } = await node.post('/autocheck/valuation', request)\r\n const response = JSON.parse(data.valuation.response.response)\r\n const capToken = response.cap?.token\r\n if (capToken) sendCapEmail({ capToken, email })\r\n\r\n return { uuid: data.valuation.uuid }\r\n } catch (err) {\r\n throw err\r\n }\r\n}\r\n\r\nexport const updateValuationData = async params => {\r\n try {\r\n const { uuid } = await create(params)\r\n router\r\n .push({ name: 'autocheck-valuation', params: { uuid } })\r\n .catch(() => {})\r\n } catch (error) {\r\n throw error\r\n }\r\n}\r\n"],"sourceRoot":""}