{"version":3,"sources":["webpack:///./src/views/Flow/MobileTTP/Step6AppointmentInfoMobileTPP/Step6AppointmentInfoMobileTPP.styles.scss?7eb2","webpack:///./src/views/Flow/MobileTTP/Step6AppointmentInfoMobileTPP/Step6AppointmentInfoMobileTPP.vue?3f41","webpack:///./src/views/Flow/MobileTTP/Step6AppointmentInfoMobileTPP/Step6AppointmentInfoMobileTPP.controller.js","webpack:///./src/views/Flow/MobileTTP/Step6AppointmentInfoMobileTPP/Step6AppointmentInfoMobileTPP.controller.js?ed80","webpack:///./src/views/Flow/MobileTTP/Step6AppointmentInfoMobileTPP/Step6AppointmentInfoMobileTPP.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","$gettext","on","goToPreviousStep","directives","name","rawName","_v","ref","class","loadingState","isValidAppointment","appointmet","debounceConfim","staticRenderFns","components","AppointmentOverview","Title","DateTimePicker","PersonalDataForm","Remark","ServiceCenterPicker","props","data","computed","mapGetters","customerDataRaw","appointmentPostObject","methods","mapActions","setAppointmentTpp","mapMutations","setCat","setHasApp","$router","push","confirmAppointment","personalDataForm","$refs","form","personalDataFormTitle","formPersonalDataTitle","validPersonalDataFormTitle","isValid","validate","then","validationFlow","validateStep6AppointmentInfo","catch","router","_","debounce","component"],"mappings":"kHAAA,yBAAke,EAAG,G,2CCAre,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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9B,KAAM,mBAGV+B,mBAbO,WAac,WACbC,EAAmB3C,KAAK4C,MAAMD,iBAAiBC,MAAMC,KACrDC,EAAwB9C,KAAK4C,MAAMD,iBAAiBC,MAAMG,sBAC1DC,EAA6BF,EAAsBG,UAEzDN,EAAiBO,WAAWC,MAAK,SAACF,GAC5BA,GACE,EAAKhC,oBAAsB+B,IAA+B,EAAKhC,eACjE,EAAKsB,OAAO,OACZ,EAAKF,kBAAkB,EAAKH,uBACzBkB,MAAK,WACJ,EAAKZ,WAAU,GACfa,OAAeC,kCACdC,OAAM,WACPC,OAAOd,KAAK,CACV9B,KAAM,kBAOpBQ,eAAgBqC,IAAEC,UAAS,WACzBzD,KAAK0C,uBACJ,QC/E8U,I,wBCQjVgB,EAAY,eACd,EACA5D,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAAsC,E","file":"js/chunk-7b9ea0b8.1005f129.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!./Step6AppointmentInfoMobileTPP.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!./Step6AppointmentInfoMobileTPP.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',{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\":\"arr\"}}),_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 || _vm.appointmet) },on:{\"click\":_vm.debounceConfim}},[_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 _ from 'lodash';\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: 'step6AppointmentInfoMobileTPP',\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 appointmet: 'getHasAppointment',\r\n }),\r\n },\r\n methods: {\r\n ...mapActions('appointment', {\r\n setAppointmentTpp: 'SET_APPOINTMENT_MOBILE_TPP',\r\n }),\r\n ...mapMutations('appointment', {\r\n setCat: 'SET_CAT',\r\n setHasApp: 'SET_HASAPPOINTMENT',\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('tpp');\r\n this.setAppointmentTpp(this.appointmentPostObject)\r\n .then(() => {\r\n this.setHasApp(true);\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 debounceConfim: _.debounce(function () {\r\n this.confirmAppointment();\r\n }, 150),\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!./Step6AppointmentInfoMobileTPP.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!./Step6AppointmentInfoMobileTPP.controller.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Step6AppointmentInfoMobileTPP.vue?vue&type=template&id=62f29425&\"\nimport script from \"./Step6AppointmentInfoMobileTPP.controller.js?vue&type=script&lang=js&\"\nexport * from \"./Step6AppointmentInfoMobileTPP.controller.js?vue&type=script&lang=js&\"\nimport style0 from \"./Step6AppointmentInfoMobileTPP.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":""}