{"version":3,"sources":["webpack:///./src/views/Flow/Step6AppointmentInfo/Step6AppointmentInfo.vue?3fad","webpack:///./src/views/Flow/Step6AppointmentInfo/Step6AppointmentInfo.controller.js","webpack:///./src/views/Flow/Step6AppointmentInfo/Step6AppointmentInfo.controller.js?d384","webpack:///./src/views/Flow/Step6AppointmentInfo/Step6AppointmentInfo.vue","webpack:///./src/views/Flow/Step6AppointmentInfo/Step6AppointmentInfo.styles.scss?4fb8"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","$gettext","on","goToPreviousStep","directives","name","rawName","_v","ref","class","loadingState","isValidAppointment","$event","confirmAppointment","staticRenderFns","components","AppointmentOverview","Title","DateTimePicker","PersonalDataForm","Remark","ServiceCenterPicker","props","data","computed","mapGetters","customerDataRaw","appointmentPostObject","methods","mapActions","setAppointment","mapMutations","setCat","$router","push","personalDataForm","$refs","form","personalDataFormTitle","formPersonalDataTitle","validPersonalDataFormTitle","isValid","validate","then","validationFlow","validateStep6AppointmentInfo","catch","router","component"],"mappings":"yHAAA,I,EAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,QAAQ,CAACG,MAAM,CAAC,kBAAoBP,EAAIQ,SAAS,4BAA4BC,GAAG,CAAC,yBAAyBT,EAAIU,mBAAmB,CAACN,EAAG,KAAK,CAACO,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,iBAAiB,CAACb,EAAIc,GAAG,sBAAsBV,EAAG,IAAI,CAACO,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,gBAAgBP,YAAY,UAAU,CAACN,EAAIc,GAAG,6BAA6BV,EAAG,IAAI,CAACO,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,gBAAgBP,YAAY,UAAU,CAACN,EAAIc,GAAG,oBAAoBV,EAAG,KAAK,CAACE,YAAY,m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AACF,GAC5BA,GACE,EAAK9B,oBAAsB6B,IAA+B,EAAK9B,eACjE,EAAKsB,OAAO,SACZ,EAAKF,eAAe,EAAKH,uBACtBgB,MAAK,WACJC,OAAeC,kCACdC,OAAM,WACPC,OAAOb,KAAK,CACV7B,KAAM,qBCjEwS,I,wBCQ5T2C,EAAY,eACd,EACAxD,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAAkC,E,2CCnBf,yBAA0c,EAAG,G","file":"js/chunk-12526a92.012605b6.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"l-container\"},[_c('Title',{attrs:{\"previousStepTitle\":_vm.$gettext('Step 6 - Previous title')},on:{\"on-go-to-previous-step\":_vm.goToPreviousStep}},[_c('h1',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"Step 6 - Title\")])]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}],staticClass:\"u-hide\"},[_vm._v(\"Step 6 - Previous title\")]),_c('p',{directives:[{name:\"translate\",rawName:\"v-translate\"}],staticClass:\"u-hide\"},[_vm._v(\"Step 6 - Title\")]),_c('hr',{staticClass:\"hr--full-width\"}),_c('AppointmentOverview'),_c('hr'),_c('ServiceCenterPicker'),_c('hr'),_c('DateTimePicker'),_c('hr'),_c('PersonalDataForm',{ref:\"personalDataForm\"}),_c('hr'),_c('Remark',{attrs:{\"type\":\"\"}}),_c('hr'),_c('div',{staticClass:\"a-button__flow-container\"},[_c('div',{staticClass:\"a-button a-button--primary u-full-width u-margin-bottom-3x\",class:{ 'a-button--is-loading': _vm.loadingState, 'a-button--disabled': !_vm.isValidAppointment },on:{\"click\":function($event){return _vm.confirmAppointment()}}},[_c('span',{directives:[{name:\"translate\",rawName:\"v-translate\"}]},[_vm._v(\"General - Confirm appointment\")]),_c('div',{staticClass:\"a-spinner\"})])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {\r\n AppointmentOverview,\r\n Title,\r\n DateTimePicker,\r\n PersonalDataForm,\r\n Remark,\r\n ServiceCenterPicker,\r\n} from '@/components';\r\n\r\nimport router from '@/router';\r\n\r\nimport validationFlow from '@/validation-flow';\r\n\r\nimport {\r\n mapActions,\r\n mapGetters,\r\n mapMutations,\r\n} from 'vuex';\r\n\r\nexport default {\r\n name: 'step6AppointmentInfo',\r\n components: {\r\n [AppointmentOverview.name]: AppointmentOverview,\r\n [Title.name]: Title,\r\n [DateTimePicker.name]: DateTimePicker,\r\n [PersonalDataForm.name]: PersonalDataForm,\r\n [Remark.name]: Remark,\r\n [ServiceCenterPicker.name]: ServiceCenterPicker,\r\n },\r\n props: {},\r\n data: () => ({}),\r\n computed: {\r\n ...mapGetters('appointment', {\r\n customerDataRaw: 'getCustomerDataRaw',\r\n loadingState: 'getLoadingState',\r\n isValidAppointment: 'getIsValidAppointment',\r\n appointmentPostObject: 'getAppointmentPostObject',\r\n }),\r\n },\r\n methods: {\r\n ...mapActions('appointment', {\r\n setAppointment: 'SET_APPOINTMENT',\r\n }),\r\n ...mapMutations('appointment', {\r\n setCat: 'SET_CAT',\r\n }),\r\n goToPreviousStep() {\r\n this.$router.push({\r\n name: 'step5TireInfo',\r\n });\r\n },\r\n confirmAppointment() {\r\n const personalDataForm = this.$refs.personalDataForm.$refs.form;\r\n const personalDataFormTitle = this.$refs.personalDataForm.$refs.formPersonalDataTitle;\r\n const validPersonalDataFormTitle = personalDataFormTitle.isValid();\r\n\r\n personalDataForm.validate().then((isValid) => {\r\n if (isValid) {\r\n if (this.isValidAppointment && validPersonalDataFormTitle && !this.loadingState) {\r\n this.setCat('depot');\r\n this.setAppointment(this.appointmentPostObject)\r\n .then(() => {\r\n validationFlow.validateStep6AppointmentInfo();\r\n }).catch(() => {\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","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!./Step6AppointmentInfo.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!./Step6AppointmentInfo.controller.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Step6AppointmentInfo.vue?vue&type=template&id=74d5b204&\"\nimport script from \"./Step6AppointmentInfo.controller.js?vue&type=script&lang=js&\"\nexport * from \"./Step6AppointmentInfo.controller.js?vue&type=script&lang=js&\"\nimport style0 from \"./Step6AppointmentInfo.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","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!./Step6AppointmentInfo.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!./Step6AppointmentInfo.styles.scss?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}