{"version":3,"sources":["webpack:///./src/views/Flow/MobileRegion/Step1LicensePlateMobileRegion/Step1LicensePlateMobileRegion.styles.scss?4f33","webpack:///./src/views/Flow/MobileRegion/Step1LicensePlateMobileRegion/Step1LicensePlateMobileRegion.vue?3b74","webpack:///./src/views/Flow/MobileRegion/Step1LicensePlateMobileRegion/Step1LicensePlateMobileRegion.controller.js","webpack:///./src/views/Flow/MobileRegion/Step1LicensePlateMobileRegion/Step1LicensePlateMobileRegion.controller.js?3940","webpack:///./src/views/Flow/MobileRegion/Step1LicensePlateMobileRegion/Step1LicensePlateMobileRegion.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","directives","name","rawName","_v","ref","staticStyle","class","loadingState","licensePlate","on","$event","checkLicensePlate","staticRenderFns","components","LicensePlate","Title","RegionDataForm","props","data","search","searchWatch","cityId","citiesFiltered","computed","mapGetters","vehicule","regionData","garages","tireCodes","methods","mapActions","getCustomerDataRegion","getGarages","getTireCodes","regionDataForm","$refs","form","validate","then","isValid","postalCode","zipCode","validationFlow","validateStep1LicensePlateMobileRegion","catch","router","push","created","length","component"],"mappings":"yIAAA,yBAAke,EAAG,G,yCCAre,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,K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CAACT,EAAIU,GAAG,2BAA2BN,EAAG,IAAI,CAACG,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,iBAAiB,CAACT,EAAIU,GAAG,kCAAkC,IACh/DS,EAAkB,G,uuBCcP,OACbX,KAAM,gCACNY,YAAU,SACPC,OAAab,KAAOa,QADb,IAEPC,OAAMd,KAAOc,QAFN,IAGPC,OAAef,KAAOe,QAHf,GAKVC,MAAO,GACPC,KAAM,iBAAO,CACXC,OAAQ,GACRC,YAAa,GACbC,OAAQ,GACRC,eAAgB,KAElBC,SAAU,EAAF,GACHC,eAAW,cAAe,CAC3BhB,aAAc,kBACdD,aAAc,kBACdkB,SAAU,kBACVC,WAAY,kBALR,GAOHF,eAAW,SAAU,CACtBG,QAAS,aACTC,UAAW,kBAGfC,QAAS,EAAF,GACFC,eAAW,cAAe,CAC3BC,sBAAuB,+BAFpB,GAIFD,eAAW,SAAU,CACtBE,WAAY,qBACZC,aAAc,yBANX,CAQLtB,kBARO,WAQa,WACZuB,EAAiBxC,KAAKyC,MAAMD,eAAeC,MAAMC,KAEvDF,EAAeG,WAAWC,MAAK,SAACC,GAC1BA,IAC0B,KAAtB,EAAK/B,cAAwB,EAAKD,cACpC,EAAKwB,sBAAsB,CAAEvB,aAAc,EAAKA,aAAcgC,WAAY,EAAKd,WAAWe,UAAWH,MAAK,WACxGI,OAAeC,2CACdC,OAAM,WAEPC,OAAOC,KAAK,CACV7C,KAAM,oBAStB8C,QAtDa,WAuDiB,IAAxBrD,KAAKiC,QAAQqB,QACftD,KAAKsC,aAEuB,IAA1BtC,KAAKkC,UAAUoB,QACjBtD,KAAKuC,iBC1E0U,I,wBCQjVgB,EAAY,eACd,EACAzD,EACAoB,GACA,EACA,KACA,KACA,MAIa,aAAAqC,E","file":"js/chunk-1bb410bd.5c452a54.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!./Step1LicensePlateMobileRegion.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!./Step1LicensePlateMobileRegion.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('RegionDataForm',{ref:\"regionDataForm\"}),_c('hr'),_c('div',{staticClass:\"a-button__flow-container\",staticStyle:{\"padding-bottom\":\"2rem\"}},[_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\"})])]),_c('div',{staticClass:\"u-hide\"},[_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"General - Page title\")]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"General - Go to\")]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"Url - Qteam homepage\")]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"Url - Qteam webshop\")]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"Url - Qteam contact page\")]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"Url - Qteam tire size\")]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"Url - Qteam runflat tires\")])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {\r\n mapActions,\r\n mapGetters,\r\n} from 'vuex';\r\n\r\nimport {\r\n LicensePlate,\r\n Title,\r\n RegionDataForm,\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: 'Step1LicensePlateMobileRegion',\r\n components: {\r\n [LicensePlate.name]: LicensePlate,\r\n [Title.name]: Title,\r\n [RegionDataForm.name]: RegionDataForm,\r\n },\r\n props: {},\r\n data: () => ({\r\n search: '',\r\n searchWatch: '',\r\n cityId: '',\r\n citiesFiltered: [],\r\n }),\r\n computed: {\r\n ...mapGetters('appointment', {\r\n licensePlate: 'getLicensePlate',\r\n loadingState: 'getLoadingState',\r\n vehicule: 'getVehiculeType',\r\n regionData: 'getRegionData',\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 getCustomerDataRegion: 'FETCH_DATA_CUSTOMER_REGION',\r\n }),\r\n ...mapActions('garage', {\r\n getGarages: 'FETCH_DATA_GARAGES',\r\n getTireCodes: 'FETCH_DATA_TIRECODES',\r\n }),\r\n checkLicensePlate() {\r\n const regionDataForm = this.$refs.regionDataForm.$refs.form;\r\n\r\n regionDataForm.validate().then((isValid) => {\r\n if (isValid) {\r\n if (this.licensePlate !== '' && !this.loadingState) {\r\n this.getCustomerDataRegion({ licensePlate: this.licensePlate, postalCode: this.regionData.zipCode }).then(() => {\r\n validationFlow.validateStep1LicensePlateMobileRegion();\r\n }).catch(() => {\r\n // console.log(error);\r\n router.push({\r\n name: 'error',\r\n });\r\n });\r\n }\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!./Step1LicensePlateMobileRegion.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!./Step1LicensePlateMobileRegion.controller.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Step1LicensePlateMobileRegion.vue?vue&type=template&id=1bbd5cb8&\"\nimport script from \"./Step1LicensePlateMobileRegion.controller.js?vue&type=script&lang=js&\"\nexport * from \"./Step1LicensePlateMobileRegion.controller.js?vue&type=script&lang=js&\"\nimport style0 from \"./Step1LicensePlateMobileRegion.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":""}