{"version":3,"sources":["webpack:///./src/components/custom/preloader/preloader.vue?a787","webpack:///./src/components/custom/preloader/preloader.js","webpack:///./src/components/custom/preloader/preloader.js?69e3","webpack:///./src/components/custom/preloader/preloader.vue","webpack:///./src/components/custom/preloader/preloader.css?e23a","webpack:///./src/views/profile/profile.vue?3a03","webpack:///./src/views/profile/profile.js","webpack:///./src/views/profile/profile.js?f71c","webpack:///./src/views/profile/profile.vue","webpack:///./src/views/profile/profile.css?8ae4"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","$t","_e","staticRenderFns","props","delay","type","Number","default","data","show","computed","methods","start","created","setTimeout","component","$store","state","SettingStorage","ref","dynamicValidateFormEmail","rulesEmail","labelPosition","model","value","callback","$$v","$set","expression","on","$event","submitForm","login","firmName","dynamicValidateForm","rules","country","popupWidth","slot","resetForm","referent","emailReferent","telephonReferent","components","Preloader","validateEmail","rule","match","validateOldPass","checkOldPass","validateNewPass","length","profileResult","profileResultError","profileResultEmail","profileResultErrorEmail","tourIndex","email","currentPassword","newPassword","required","validator","trigger","readOnly","userName","UserStorage","lang","language","toLowerCase","dispatch","PROFILE_GET_PASSRESULT","oldPassword","then","resp","status","catch","changeLanguage","loadProfile","formName","$refs","validate","valid","saveProfile","resetFields","PROFILE_GET_DATA","PROFILE_SAVE_DATA_EMAIL","PROFILE_SAVE_DATA","mounted","EventBus","$on","EVENT_CHANGE_LANGUAGE","beforeDestroy","$off"],"mappings":"oIAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAQ,KAAEI,EAAG,aAAa,CAACE,MAAM,CAAC,KAAO,YAAY,CAACF,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACE,MAAM,CAAC,IAAM,mBAAmB,IAAM,UAAUF,EAAG,KAAK,CAACA,EAAG,OAAO,CAACG,YAAY,oBAAoBP,EAAIQ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GxCe,KAAKC,IACe,KAAfA,EAAKC,QACPnF,KAAK+D,oBAAqB,EAC1B/D,KAAKgE,yBAA0B,EAC/BhE,KAAKsF,gBAELtF,KAAK+D,oBAAqB,EAC1B/D,KAAKgE,yBAA0B,KAGlCoB,MAAM,KACLpF,KAAK+D,oBAAqB,EAC1B/D,KAAKgE,yBAA0B,IAGnChE,KAAKyB,OACFqD,SAASiB,QAAmB,CAC3B9E,KAAM,CACJ+D,YAAahF,KAAK2C,oBAAoBwB,gBACtCC,YAAapE,KAAK2C,oBAAoByB,eAGzCa,KAAKC,IACe,KAAfA,EAAKC,QACPnF,KAAK6D,eAAgB,EACrB7D,KAAK8D,oBAAqB,EAC1B9D,KAAKsF,gBAELtF,KAAK6D,eAAgB,EACrB7D,KAAK8D,oBAAqB,KAG7BsB,MAAM,KACLpF,KAAK6D,eAAgB,EACrB7D,KAAK8D,oBAAqB,MAKpCkC,UACEC,OAASC,IAAIC,OAAuBnG,KAAKqF,iBAE3C/D,UACEtB,KAAKsF,eAEPc,gBACEH,OAASI,KAAKF,OAAuBnG,KAAKqF,kBCtN8O,I,wBCQxR7D,EAAY,eACd,EACA1B,EACAa,GACA,EACA,KACA,KACA,MAIa,aAAAa,E,kECnBf,yBAAqW,EAAG","file":"js/profile.b7d2ef35.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('transition',{attrs:{\"name\":\"preload\"}},[_c('div',{staticClass:\"preloader\"},[_c('img',{attrs:{\"src\":\"/images/logo.svg\",\"alt\":\"logo\"}}),_c('h3',[_c('span',{staticClass:\"el-icon-loading\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"preloading_load\")))])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\r\n props: {\r\n delay: {\r\n type: Number,\r\n default: 0\r\n }\r\n },\r\n data() {\r\n return {\r\n show: false\r\n };\r\n },\r\n computed: {},\r\n methods: {\r\n start() {\r\n this.show = true;\r\n }\r\n },\r\n created() {\r\n setTimeout(this.start, this.delay);\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!./preloader.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!./preloader.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./preloader.vue?vue&type=template&id=b210f8e2&\"\nimport script from \"./preloader.js?vue&type=script&lang=js&\"\nexport * from \"./preloader.js?vue&type=script&lang=js&\"\nimport style0 from \"./preloader.css?vue&type=style&index=0&lang=css&\"\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--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!./preloader.css?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!./preloader.css?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"profile-container flex-column-center\"},[(_vm.$store.state.SettingStorage.preload)?_c('Preloader'):_vm._e(),_c('Header'),_c('div',{staticClass:\"profile-content\"},[_c('div',[_c('div',{staticClass:\"profile-element\"},[_c('el-form',{ref:\"dynamicValidateFormEmail\",attrs:{\"model\":_vm.dynamicValidateFormEmail,\"status-icon\":\"\",\"rules\":_vm.rulesEmail,\"label-width\":\"180px\",\"label-position\":_vm.labelPosition}},[_c('div',[_c('div',{staticClass:\"form-input-wrap_left\"},[_c('el-form-item',{attrs:{\"prop\":\"email\",\"label\":_vm.$t('profile_email')}},[_c('el-input',{attrs:{\"maxlength\":\"50\"},model:{value:(_vm.dynamicValidateFormEmail.email),callback:function ($$v) {_vm.$set(_vm.dynamicValidateFormEmail, \"email\", $$v)},expression:\"dynamicValidateFormEmail.email\"}})],1),_c('div',[_c('div',{staticClass:\"form-input-wrap_button\"},[_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"success\"},on:{\"click\":function($event){return _vm.submitForm('dynamicValidateFormEmail')}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"profile_send\"))+\" \")])],1)],1),_c('div',{staticClass:\"form-input-wrap_alert\"},[(_vm.profileResultEmail)?_c('el-alert',{attrs:{\"title\":_vm.$t('profile_alert_success'),\"type\":\"success\",\"closable\":true,\"show-icon\":\"\"}}):_vm._e(),(_vm.profileResultErrorEmail)?_c('el-alert',{attrs:{\"title\":_vm.$t('profile_alert_error'),\"type\":\"error\",\"closable\":true,\"show-icon\":\"\"}}):_vm._e()],1)])],1),_c('div',{staticClass:\"form-input-wrap_right\"},[_c('el-form-item',{attrs:{\"label\":_vm.$t('profile_login')}},[_c('el-input',{attrs:{\"disabled\":true},model:{value:(_vm.login),callback:function ($$v) {_vm.login=$$v},expression:\"login\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('profile_firm')}},[_c('el-input',{attrs:{\"disabled\":true},model:{value:(_vm.firmName),callback:function ($$v) {_vm.firmName=$$v},expression:\"firmName\"}})],1)],1)])]),_c('el-form',{ref:\"dynamicValidateForm\",attrs:{\"model\":_vm.dynamicValidateForm,\"status-icon\":\"\",\"rules\":_vm.rules,\"label-width\":\"180px\",\"label-position\":_vm.labelPosition}},[_c('div',[_c('div',{staticClass:\"form-input-wrap_right\"},[_c('el-form-item',{attrs:{\"prop\":\"currentPassword\",\"label\":_vm.$t('profile_current_password'),\"label-position\":\"top\"}},[_c('el-input',{attrs:{\"maxlength\":\"20\",\"type\":'password'},model:{value:(_vm.dynamicValidateForm.currentPassword),callback:function ($$v) {_vm.$set(_vm.dynamicValidateForm, \"currentPassword\", $$v)},expression:\"dynamicValidateForm.currentPassword\"}})],1)],1),_c('div',{staticClass:\"form-input-wrap_right\"},[_c('el-form-item',{attrs:{\"label\":_vm.$t('profile_country')}},[_c('el-input',{attrs:{\"disabled\":true},model:{value:(_vm.country),callback:function ($$v) {_vm.country=$$v},expression:\"country\"}})],1)],1)]),_c('div',[_c('div',{staticClass:\"form-input-wrap_left\"},[_c('el-form-item',{attrs:{\"prop\":\"newPassword\",\"label\":_vm.$t('profile_new_password'),\"label-position\":\"top\"}},[_c('el-popover',{attrs:{\"placement\":\"top-end\",\"title\":\"\",\"width\":_vm.popupWidth,\"trigger\":\"click\",\"content\":_vm.$t('profile_new_password_popup')}},[_c('el-input',{attrs:{\"slot\":\"reference\",\"maxlength\":\"20\",\"show-password\":\"\"},slot:\"reference\",model:{value:(_vm.dynamicValidateForm.newPassword),callback:function ($$v) {_vm.$set(_vm.dynamicValidateForm, \"newPassword\", $$v)},expression:\"dynamicValidateForm.newPassword\"}})],1)],1),_c('div',[_c('div',{staticClass:\"form-input-wrap_button\"},[_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"success\"},on:{\"click\":function($event){return _vm.submitForm('dynamicValidateForm')}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"profile_send\"))+\" \")]),_c('el-button',{on:{\"click\":function($event){return _vm.resetForm('dynamicValidateForm')}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"profile_reset\"))+\" \")])],1)],1),_c('div',{staticClass:\"form-input-wrap_alert\"},[(_vm.profileResult)?_c('el-alert',{attrs:{\"title\":_vm.$t('profile_alert_success'),\"type\":\"success\",\"closable\":true,\"show-icon\":\"\"}}):_vm._e(),(_vm.profileResultError)?_c('el-alert',{attrs:{\"title\":_vm.$t('profile_alert_error'),\"type\":\"error\",\"closable\":true,\"show-icon\":\"\"}}):_vm._e()],1)])],1),_c('div',{staticClass:\"form-input-wrap_right\"},[_c('div',{staticClass:\"form-input-wrap\"},[_c('el-form-item',{attrs:{\"label\":_vm.$t('profile_referent')}},[_c('el-input',{attrs:{\"disabled\":true},model:{value:(_vm.referent),callback:function ($$v) {_vm.referent=$$v},expression:\"referent\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('profile_emailreferent')}},[_c('el-input',{attrs:{\"disabled\":true},model:{value:(_vm.emailReferent),callback:function ($$v) {_vm.emailReferent=$$v},expression:\"emailReferent\"}})],1)],1)])]),_c('div',[_c('div',{staticClass:\"form-input-wrap_right\"}),_c('div',{staticClass:\"form-input-wrap_right\"},[_c('el-form-item',{attrs:{\"label\":_vm.$t('profile_telephonreferent')}},[_c('el-input',{attrs:{\"disabled\":true},model:{value:(_vm.telephonReferent),callback:function ($$v) {_vm.telephonReferent=$$v},expression:\"telephonReferent\"}})],1)],1)])])],1)])]),_c('div',{staticClass:\"flex-column-between-stretch-center profile-footer-container\"},[_c('Footer')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Preloader from \"../../components/custom/preloader/preloader.vue\";\r\nimport {\r\n PROFILE_GET_DATA,\r\n PROFILE_GET_PASSRESULT,\r\n PROFILE_SAVE_DATA,\r\n PROFILE_SAVE_DATA_EMAIL\r\n} from \"../../util/mutationTypes.js\";\r\n\r\nimport { EventBus } from \"../../util/eventBus\";\r\nimport { EVENT_CHANGE_LANGUAGE } from \"../../util/eventType\";\r\n\r\nexport default {\r\n components: {\r\n Preloader\r\n },\r\n data() {\r\n var validateEmail = (rule, value, callback) => {\r\n if (value === \"\") {\r\n callback(this.$t(\"profile_warn_email\"));\r\n } else if (\r\n value.match(\r\n /^([A-Za-z0-9_\\-\\.])+\\@([A-Za-z0-9_\\-\\.])+\\.([A-Za-z]{2,4})$/\r\n ) === null\r\n ) {\r\n callback(this.$t(\"profile_valid_email\"));\r\n } else {\r\n callback();\r\n }\r\n };\r\n\r\n var validateOldPass = (rule, value, callback) => {\r\n this.checkOldPass(value, callback);\r\n };\r\n\r\n var validateNewPass = (rule, value, callback) => {\r\n if (!value) {\r\n callback(this.$t(\"profile_warn_new_password\"));\r\n } else if (value.length < 6) {\r\n callback(this.$t(\"profile_warn_more_5_letters\"));\r\n } else if (value.match(/\\d+/) === null) {\r\n callback(this.$t(\"profile_warn_new_password_digit\"));\r\n } else if (value.match(/[A-Za-z]/) === null) {\r\n callback(this.$t(\"profile_warn_new_password_letter\"));\r\n } else {\r\n callback();\r\n }\r\n };\r\n\r\n return {\r\n labelPosition: \"top\",\r\n login: \"\",\r\n firmName: \"\",\r\n country: \"\",\r\n referent: \"\",\r\n emailReferent: \"\",\r\n telephonReferent: \"\",\r\n profileResult: false,\r\n profileResultError: false,\r\n profileResultEmail: false,\r\n profileResultErrorEmail: false,\r\n tourIndex: \"\",\r\n dynamicValidateFormEmail: {\r\n email: \"\"\r\n },\r\n dynamicValidateForm: {\r\n currentPassword: \"\",\r\n newPassword: \"\"\r\n },\r\n rulesEmail: {\r\n email: [\r\n {\r\n required: true,\r\n validator: validateEmail,\r\n trigger: [\"blur\", \"change\"]\r\n }\r\n ]\r\n },\r\n rules: {\r\n currentPassword: [\r\n { required: true, validator: validateOldPass, trigger: \"blur\" }\r\n ],\r\n newPassword: [\r\n { required: true, validator: validateNewPass, trigger: \"blur\" }\r\n ]\r\n }\r\n };\r\n },\r\n props: {\r\n readOnly: {\r\n default: false\r\n }\r\n },\r\n computed: {\r\n userName() {\r\n return this.$store.state.UserStorage.login;\r\n },\r\n lang() {\r\n return this.$store.state.SettingStorage.language.toLowerCase();\r\n },\r\n popupWidth() {\r\n return this.$store.state.SettingStorage.language.toLowerCase() == \"en\"\r\n ? 230\r\n : 300;\r\n }\r\n },\r\n methods: {\r\n checkOldPass(value, callback) {\r\n this.$store\r\n .dispatch(PROFILE_GET_PASSRESULT, { data: { oldPassword: value } })\r\n .then(resp => {\r\n if (resp.status == 200) {\r\n setTimeout(() => {\r\n callback();\r\n }, 500);\r\n } else {\r\n setTimeout(() => {\r\n callback(this.$t(\"profile_warn_old_password_wrong\"));\r\n }, 500);\r\n }\r\n })\r\n .catch(() => {\r\n setTimeout(() => {\r\n callback(this.$t(\"profile_warn_old_password_wrong\") + \"!\");\r\n }, 500);\r\n });\r\n },\r\n changeLanguage() {\r\n this.loadProfile();\r\n },\r\n submitForm(formName) {\r\n this.$refs[formName].validate(valid => {\r\n if (valid) {\r\n this.saveProfile(formName);\r\n } else {\r\n return false;\r\n }\r\n });\r\n },\r\n resetForm(formName) {\r\n this.$refs[formName].resetFields();\r\n },\r\n loadProfile() {\r\n this.$store\r\n .dispatch(PROFILE_GET_DATA, { data: { lang: this.lang } })\r\n .then(data => {\r\n this.login = data.login;\r\n this.firmName = data.firmName;\r\n this.country = data.country;\r\n this.referent = data.referent;\r\n this.emailReferent = data.emailReferent;\r\n this.telephonReferent = data.telephonReferent;\r\n this.dynamicValidateFormEmail.email = data.email;\r\n this.tourIndex = data.tourIndex;\r\n });\r\n },\r\n saveProfile(formName) {\r\n this.profileResult = false;\r\n this.profileResultError = false;\r\n this.profileResultEmail = false;\r\n this.profileResultErrorEmail = false;\r\n\r\n if (formName == \"dynamicValidateFormEmail\") {\r\n this.$store\r\n .dispatch(PROFILE_SAVE_DATA_EMAIL, {\r\n data: {\r\n email: this.dynamicValidateFormEmail.email\r\n }\r\n })\r\n .then(resp => {\r\n if (resp.status == 200) {\r\n this.profileResultEmail = true;\r\n this.profileResultErrorEmail = false;\r\n this.loadProfile();\r\n } else {\r\n this.profileResultEmail = false;\r\n this.profileResultErrorEmail = true;\r\n }\r\n })\r\n .catch(() => {\r\n this.profileResultEmail = false;\r\n this.profileResultErrorEmail = true;\r\n });\r\n } else {\r\n this.$store\r\n .dispatch(PROFILE_SAVE_DATA, {\r\n data: {\r\n oldPassword: this.dynamicValidateForm.currentPassword,\r\n newPassword: this.dynamicValidateForm.newPassword\r\n }\r\n })\r\n .then(resp => {\r\n if (resp.status == 200) {\r\n this.profileResult = true;\r\n this.profileResultError = false;\r\n this.loadProfile();\r\n } else {\r\n this.profileResult = false;\r\n this.profileResultError = true;\r\n }\r\n })\r\n .catch(() => {\r\n this.profileResult = false;\r\n this.profileResultError = true;\r\n });\r\n }\r\n }\r\n },\r\n mounted() {\r\n EventBus.$on(EVENT_CHANGE_LANGUAGE, this.changeLanguage);\r\n },\r\n created() {\r\n this.loadProfile();\r\n },\r\n beforeDestroy() {\r\n EventBus.$off(EVENT_CHANGE_LANGUAGE, this.changeLanguage);\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!./profile.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!./profile.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./profile.vue?vue&type=template&id=7b62558c&\"\nimport script from \"./profile.js?vue&type=script&lang=js&\"\nexport * from \"./profile.js?vue&type=script&lang=js&\"\nimport style0 from \"./profile.css?vue&type=style&index=0&lang=css&\"\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--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!./profile.css?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!./profile.css?vue&type=style&index=0&lang=css&\""],"sourceRoot":""}