{"version":3,"sources":["webpack:///./src/views/Flow/Step1LicensePlateCompany/Step1LicensePlateCompany.styles.scss?3601","webpack:///./src/views/Flow/Step1LicensePlateCompany/Step1LicensePlateCompany.vue?2aca","webpack:///./src/views/Flow/Step1LicensePlateCompany/Step1LicensePlateCompany.controller.js","webpack:///./src/views/Flow/Step1LicensePlateCompany/Step1LicensePlateCompany.controller.js?3a2f","webpack:///./src/views/Flow/Step1LicensePlateCompany/Step1LicensePlateCompany.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","directives","name","rawName","_v","class","loadingState","licensePlate","on","$event","checkLicensePlate","staticRenderFns","components","LicensePlate","Title","props","data","computed","mapGetters","company","garages","tireCodes","methods","mapActions","getCustomerData","getGarages","getTireCodes","mapMutations","setCompanyMutation","urlParts","window","location","href","split","pop","then","validationFlow","validateStep1LicensePlate","catch","router","push","created","length","component"],"mappings":"kHAAA,yBAA8c,EAAG,G,kECAjd,I,EAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACG,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,iBAAiB,CAACT,EAAIU,GAAG,sBAAsBN,EAAG,IAAI,CAACG,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,gBAAgBH,YAAY,UAAU,CAACN,EAAIU,GAAG,oBAAoBN,EAAG,KAAK,CAACE,YAAY,mBAAmBF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,IAAI,CAACG,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,gBAAgBH,YAAY,sBAAsB,CAACN,EAAIU,GAAG,oBAAoBN,EAAG,IAAI,CAACG,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,gBAAgBH,Y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B9C,KAAKyB,QAAQsB,QACf/C,KAAK8B,aAEuB,IAA1B9B,KAAK0B,UAAUqB,QACjB/C,KAAK+B,iBCxEyT,I,wBCQhUiB,EAAY,eACd,EACAlD,EACAkB,GACA,EACA,KACA,KACA,MAIa,aAAAgC,E","file":"js/chunk-2d16cbc6.279b59cf.js","sourcesContent":["import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./Step1LicensePlateCompany.styles.scss?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./Step1LicensePlateCompany.styles.scss?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"l-container\"},[_c('Title',[_c('h1',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"Step 1 - Title\")])]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}],staticClass:\"u-hide\"},[_vm._v(\"Step 1 - Title\")]),_c('hr',{staticClass:\"hr--full-width\"}),_c('div',{staticClass:\"m-component\"},[_c('div',{staticClass:\"m-component__info\"},[_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}],staticClass:\"m-component__title\"},[_vm._v(\"Step 1 - Intro\")]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}],staticClass:\"u-text-bold u-margin-bottom-2x\"},[_vm._v(\"Step 1 - Browser info\")])]),_c('div',{staticClass:\"m-component__container\"},[_c('LicensePlate')],1)]),_c('hr'),_c('div',{staticClass:\"a-button__flow-container\"},[_c('div',{staticClass:\"a-button a-button--primary\",class:{ 'a-button--is-loading': _vm.loadingState, 'a-button--disabled': _vm.licensePlate === '' },on:{\"click\":function($event){return _vm.checkLicensePlate()}}},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"General - Next\")]),_c('div',{staticClass:\"a-spinner\"})])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {\r\n mapActions,\r\n mapGetters,\r\n mapMutations,\r\n} from 'vuex';\r\n\r\nimport {\r\n LicensePlate,\r\n Title,\r\n} from '@/components';\r\n\r\nimport router from '@/router';\r\n\r\nimport validationFlow from '@/validation-flow';\r\n\r\nexport default {\r\n name: 'Step1LicensePlateCompany',\r\n components: {\r\n [LicensePlate.name]: LicensePlate,\r\n [Title.name]: Title,\r\n },\r\n props: {},\r\n data: () => ({\r\n\r\n }),\r\n computed: {\r\n ...mapGetters('appointment', {\r\n licensePlate: 'getLicensePlate',\r\n loadingState: 'getLoadingState',\r\n company: 'getCompany',\r\n }),\r\n ...mapGetters('garage', {\r\n garages: 'getGarages',\r\n tireCodes: 'getTireCodes',\r\n }),\r\n },\r\n methods: {\r\n ...mapActions('appointment', {\r\n getCustomerData: 'FETCH_DATA_CUSTOMER',\r\n }),\r\n ...mapActions('garage', {\r\n getGarages: 'SEARCH_GARAGES',\r\n getTireCodes: 'FETCH_DATA_TIRECODES',\r\n }),\r\n ...mapMutations('appointment', {\r\n setCompanyMutation: 'SET_COMPANY',\r\n }),\r\n checkLicensePlate() {\r\n if (this.licensePlate !== '' && !this.loadingState) {\r\n // Set company\r\n const urlParts = window.location.href.split('/');\r\n const company = urlParts.pop() || urlParts.pop();\r\n\r\n this.getCustomerData({ licensePlate: this.licensePlate, company: company }).then(() => {\r\n validationFlow.validateStep1LicensePlate();\r\n\r\n if (company !== '') {\r\n this.setCompanyMutation(company);\r\n }\r\n }).catch(() => {\r\n router.push({\r\n name: 'error',\r\n });\r\n });\r\n }\r\n },\r\n },\r\n created() {\r\n if (this.garages.length === 0) {\r\n this.getGarages();\r\n }\r\n if (this.tireCodes.length === 0) {\r\n this.getTireCodes();\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/eslint-loader/index.js??ref--13-0!./Step1LicensePlateCompany.controller.js?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/eslint-loader/index.js??ref--13-0!./Step1LicensePlateCompany.controller.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Step1LicensePlateCompany.vue?vue&type=template&id=aeaae352&\"\nimport script from \"./Step1LicensePlateCompany.controller.js?vue&type=script&lang=js&\"\nexport * from \"./Step1LicensePlateCompany.controller.js?vue&type=script&lang=js&\"\nimport style0 from \"./Step1LicensePlateCompany.styles.scss?vue&type=style&index=0&lang=scss&\"\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":""}