{"version":3,"sources":["webpack:///./src/mixins/currentRegistration.js","webpack:///./src/services/accounts.js","webpack:///./src/views/PublicSite/Registration/selectionUserType.vue?1f24","webpack:///./src/views/PublicSite/Registration/selectionUserType.vue?812c","webpack:///src/views/PublicSite/Registration/selectionUserType.vue","webpack:///./src/views/PublicSite/Registration/selectionUserType.vue?5270","webpack:///./src/views/PublicSite/Registration/selectionUserType.vue?6c7c"],"names":["mixins","allConstantsMixin","computed","currentRegistrationInProcess","this","$store","getters","methods","startCurrentRegistration","userType","currentRegistrationCreateOrUpdate","currentStep","allConstants","registration","registrationSteps","collectBasicData","claim","dispatch","currentRegistrationInCreationClear","currentRegistrationInCreationGoForeward","actualRegistration","currentRegistrationInCreationGoBackward","createAccount","accountData","identificationNumber","collectedBasicData","name","surname","email","phone","toString","cellphone","address","region","collectedAddressData","city","province","commune","streetAddress","street","apartment","building","bank","code","roleId","security","userRolesCodes","claimant","includeCredentialCreation","passwordForCredential","secret","accountsService","create","apiAccounts","axios","baseURL","Vue","prototype","$Settings","all","accountsApi","url","withCredentials","headers","Accept","jwt","excecutionMode","axiosRetry","retries","shouldResetTimeout","retryDelay","retryCount","interceptors","request","use","configuration","currentUserAccount","$Authentication","getAccount","CurrentUserToken","token","response","error","status","config","store","Promise","reject","checkIsValidPasswordPattern","password","post","getByIdentification","number","btoa","exists","get","getByUserTypeAndIdentification","getById","id","getByRole","update","put","forceChangePassword","passwordData","sendOtp","verifyOtp","verifyOtpData","render","_vm","_h","$createElement","_c","_self","_m","staticClass","_v","staticStyle","attrs","nativeOn","$event","enter","userTypes","person","business","staticRenderFns","component"],"mappings":"qMAIe,QACXA,OAAQ,CAACC,QACTC,SAAU,CACNC,6BADM,WAEF,OAAOC,KAAKC,OAAOC,QAAQ,6CAGnCC,QAAS,CACLC,yBADK,SACoBC,GACrB,OAAOL,KAAKM,kCAAkC,CAC1CD,SAAUA,EACVE,YAAaP,KAAKQ,aAAaC,aAAaC,kBAAkBC,oBAGtEL,kCAPK,SAO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EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACG,YAAY,kCAAkCE,YAAY,CAAC,mBAAmB,yCAAyC,OAAS,UAAU,CAACL,EAAG,MAAM,CAACG,YAAY,qD,wBCwBzR,GACE,OAAF,gBACE,QAAF,CACI,MADJ,SACA,GAAM,IAAN,OACM,KAAN,6CACQ,EAAR,mCC9ByX,I,wBCQrXW,EAAY,eACd,EACAlB,EACAiB,GACA,EACA,KACA,WACA,MAIa,aAAAC,E","file":"js/chunk-4a0e409a.a548167b.js","sourcesContent":["import accountsService from \"@/services/accounts\"; \r\n\r\nimport allConstantsMixin from \"@/mixins/allConstants\";\r\n\r\nexport default {\r\n mixins: [allConstantsMixin],\r\n computed: {\r\n currentRegistrationInProcess() {\r\n return this.$store.getters[\"currentRegistration/currentRegistration\"];\r\n },\r\n },\r\n methods: {\r\n startCurrentRegistration(userType) {\r\n return this.currentRegistrationCreateOrUpdate({\r\n userType: userType,\r\n currentStep: this.allConstants.registration.registrationSteps.collectBasicData\r\n });\r\n },\r\n currentRegistrationCreateOrUpdate(claim) {\r\n return this.$store.dispatch(\"currentRegistration/createOrUpdate\", claim);\r\n },\r\n currentRegistrationInCreationClear() {\r\n return this.$store.dispatch(\"currentRegistration/clear\");\r\n },\r\n currentRegistrationInCreationGoForeward() {\r\n const actualRegistration = this.currentRegistrationInProcess;\r\n actualRegistration.currentStep++;\r\n return this.currentRegistrationCreateOrUpdate(actualRegistration);\r\n },\r\n currentRegistrationInCreationGoBackward() {\r\n const actualRegistration = this.currentRegistrationInProcess;\r\n actualRegistration.currentStep--;\r\n return this.currentRegistrationCreateOrUpdate(actualRegistration);\r\n },\r\n createAccount() {\r\n const accountData = {\r\n identificationNumber: this.currentRegistrationInProcess.collectedBasicData.identificationNumber,\r\n name: this.currentRegistrationInProcess.collectedBasicData.name,\r\n surname: this.currentRegistrationInProcess.collectedBasicData.surname,\r\n email: this.currentRegistrationInProcess.collectedBasicData.email,\r\n phone: this.currentRegistrationInProcess.collectedBasicData.phone.toString(),\r\n cellphone: this.currentRegistrationInProcess.collectedBasicData.cellphone.toString(),\r\n address: {\r\n region: this.currentRegistrationInProcess.collectedAddressData.region,\r\n city: this.currentRegistrationInProcess.collectedAddressData.province,\r\n commune: this.currentRegistrationInProcess.collectedAddressData.commune,\r\n streetAddress: this.currentRegistrationInProcess.collectedAddressData.street,\r\n apartment: this.currentRegistrationInProcess.collectedAddressData.apartment,\r\n building: this.currentRegistrationInProcess.collectedAddressData.building\r\n },\r\n bank: {\r\n code: \"0\"\r\n },\r\n roleId: this.allConstants.security.userRolesCodes.claimant,\r\n includeCredentialCreation: true,\r\n passwordForCredential: this.currentRegistrationInProcess.collectedBasicData.secret,\r\n userType: this.currentRegistrationInProcess.userType\r\n };\r\n\r\n return accountsService.create(accountData);\r\n }\r\n }\r\n};","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport axiosRetry from \"axios-retry\";\r\nimport store from \"@/store/index\";\r\n\r\nconst apiAccounts = axios.create({\r\n baseURL: `${Vue.prototype.$Settings.all.accountsApi.url}/useraccounts`,\r\n withCredentials: true, //true para soportar cookies de respuests\r\n headers: {\r\n Accept: \"application/json\",\r\n \"Content-Type\": \"application/json\",\r\n \"Authorization-Middleware\": `Basic ${Vue.prototype.$Settings.all.jwt}`,\r\n \"Execution-Mode\": `${Vue.prototype.$Settings.all.excecutionMode}`,\r\n },\r\n});\r\n\r\naxiosRetry(apiAccounts, {\r\n retries: 3,\r\n shouldResetTimeout: true,\r\n retryDelay: (retryCount) => {\r\n return retryCount * 1000;\r\n },\r\n});\r\n\r\napiAccounts.interceptors.request.use((configuration) => {\r\n const currentUserAccount = Vue.prototype.$Authentication.getAccount();\r\n if (currentUserAccount) {\r\n configuration.headers.CurrentUserToken = currentUserAccount.token;\r\n }\r\n return configuration;\r\n});\r\n\r\napiAccounts.interceptors.response.use(\r\n (response) => {\r\n return response;\r\n },\r\n (error) => {\r\n\r\n if (error.response && error.response.status == 500) {\r\n if (error.response.config.url!=\"/sendOtp\")\r\n store.dispatch(\r\n \"notifications/addError\",\r\n \"Servicio no disponible. Vuelva a intentar\"\r\n );\r\n }\r\n\r\n if (\r\n (error.response && error.response.status == 401) ||\r\n (error.response && error.response.status == 403)\r\n ) {\r\n store.dispatch(\"currentUser/logout\");\r\n\r\n store.dispatch(\"notifications/addInfo\", \"Su sesión ha expirado\");\r\n store.dispatch(\"notifications/setMiddleware\");\r\n }\r\n\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\nexport default {\r\n checkIsValidPasswordPattern(password) {\r\n return apiAccounts.post(\"/CheckIsValidPasswordPattern\", {\r\n password: password,\r\n });\r\n },\r\n getByIdentification(number) {\r\n return apiAccounts.post(\"/Information\", {\r\n identificationNumber: btoa(number),\r\n });\r\n },\r\n exists(number) {\r\n return apiAccounts.get(`/Exists/${number}`);\r\n },\r\n getByUserTypeAndIdentification(userType, number) {\r\n return apiAccounts.get(\r\n `/ByUserTypeAndIdentification/${userType}/${number}`\r\n );\r\n },\r\n getById(id) {\r\n return apiAccounts.get(`/ById/${id}`);\r\n },\r\n getByRole(roleId) {\r\n return apiAccounts.get(`/ByRole/${roleId}`);\r\n },\r\n create(accountData) {\r\n return apiAccounts.post(\"/\", accountData);\r\n },\r\n update(id, accountData) {\r\n return apiAccounts.put(`/${id}`, accountData);\r\n },\r\n forceChangePassword(passwordData) {\r\n return apiAccounts.post(\"/ForceChangePassword\", passwordData);\r\n },\r\n sendOtp(number) {\r\n return apiAccounts.post(`/sendOtp`, {\r\n identificationNumber: number,\r\n });\r\n },\r\n verifyOtp(verifyOtpData) {\r\n return apiAccounts.post(\"/verifyOtp\", verifyOtpData);\r\n },\r\n};\r\n","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!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selectionUserType.vue?vue&type=style&index=0&id=5f028e3a&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_c('section',{staticClass:\"container-fluid g-px-100--lg g-px-50--sm g-py-80\"},[_c('h1',{staticClass:\"g-font-weight-500 g-mb-15 font-color-title \"},[_vm._v(\"Registro de Usuario\")]),_c('hr',{staticClass:\"g-my-40\",staticStyle:{\"border\":\"1px solid\",\"color\":\"#555\"}}),_c('div',{staticClass:\"row no-gutters g-mx-minus-10\"},[_c('div',{staticClass:\"col-sm-6 col-lg-6 g-px-10 text-center font-color-subtitle \"},[_c('router-link',{staticClass:\"btn btn-xl u-btn-blue-b u-btn-content g-mr-2 g-mb-15\",attrs:{\"to\":\"#\"},nativeOn:{\"click\":function($event){return _vm.enter(_vm.allConstants.security.userTypes.person)}}},[_c('img',{attrs:{\"src\":\"assets/img/natural-person.svg\"}}),_vm._v(\" Persona Natural\")])],1),_c('div',{staticClass:\"col-sm-6 col-lg-6 g-px-10 text-center font-color-subtitle \"},[_c('router-link',{staticClass:\"btn btn-xl u-btn-cyan u-btn-content g-mr-2 g-mb-15\",attrs:{\"to\":\"#\"},nativeOn:{\"click\":function($event){return _vm.enter(_vm.allConstants.security.userTypes.business)}}},[_c('img',{attrs:{\"src\":\"assets/img/legal-person.svg \"}}),_vm._v(\" Persona Jurídica\")])],1)])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"g-bg-pos-center g-bg-size-cover\",staticStyle:{\"background-image\":\"url(assets/img/fondo-ingreso-wide.jpg)\",\"height\":\"300px\"}},[_c('div',{staticClass:\"container g-color-white text-center g-py-210\"})])}]\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n\r\n
\r\n Registro de Usuario
\r\n
\r\n \r\n
\r\n
Persona Natural\r\n
\r\n
\r\n
Persona Jurídica\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selectionUserType.vue?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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selectionUserType.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./selectionUserType.vue?vue&type=template&id=5f028e3a&scoped=true&\"\nimport script from \"./selectionUserType.vue?vue&type=script&lang=js&\"\nexport * from \"./selectionUserType.vue?vue&type=script&lang=js&\"\nimport style0 from \"./selectionUserType.vue?vue&type=style&index=0&id=5f028e3a&lang=scss&scoped=true&\"\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 \"5f028e3a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}