{"version":3,"sources":["webpack:///./src/components/mixins/inputHelper.js","webpack:///./src/views/investor/profile/InvestorPhone.vue","webpack:///src/views/investor/profile/InvestorPhone.vue","webpack:///./src/views/investor/profile/InvestorPhone.vue?c5d1","webpack:///./src/views/investor/profile/InvestorPhone.vue?4d7a"],"names":["methods","reg","value","caps","trim","this","upper","trimSpaces","cleanTildes","toUpperCase","s","r","toLowerCase","replace","RegExp","uppercase","render","_vm","_c","_self","_v","staticClass","_s","user","phone","attrs","isUsaPhone","_e","class","colClass","hasError","errorText","isSuccess","on","onSelect","directives","name","rawName","expression","model","callback","$$v","errorMssg","changeUserPhone","saveBtnText","isSmsCodePopupActive","$event","nativeOn","reloadPage","apply","arguments","errorCodeMssg","staticStyle","validatingCode","type","indexOf","_k","keyCode","key","verifyCode","verificationCode","staticRenderFns","mixins","data","saveTemporaryPhoneStep","verifyCodeStep","updatePhoneNoVerificationStep","countryCallingCodeUsa","currentProcessStep","requiredRules","successMssg","requiredPlaceholder","countryCallingCode","processStep","computed","setTimeout","user_id","country_calling_code","process_step","verification_code","success","dialCode","showError","err","component"],"mappings":"kHAAe,QACbA,QAAS,CACPC,IAAIC,EAAOC,GAAO,EAAOC,GAAO,GAC9B,OAAY,MAATF,GAA0B,IAATA,EACX,GAGNC,EACME,KAAKC,MAAMJ,EAAOE,GAEnBA,EACCC,KAAKE,WAAWL,GAGhBA,GAGXI,MAAMJ,EAAOE,GAAO,GAClB,OAAa,MAATF,GAA0B,IAATA,EACZ,GAEFG,KAAKG,YAAYN,EAAOE,GAAMK,eAEvCD,YAAYE,EAAGN,GAAO,GACpB,IAAIO,EAAID,EAAEE,cAiBV,OAhBAD,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,WAAY,KAAK,KAC1CH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,IAAK,KAAK,MACnCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,IAAK,KAAK,KACnCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,SAAU,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C,gBAAgBpB,GAAG,CAAC,MAAQhB,EAAI0C,aAAa,CAAC1C,EAAIG,GAAG,gBAAgB,QAAQ,QAAQ,IAExxHyC,EAAkB,G,YCsHP,GACfzB,qBACA0B,gBACAC,OACA,OACAC,yBACAC,iBACAC,gCACAC,2BACAC,wBACAC,yBACA3B,eACAS,mBACAmB,iBACAzC,8BACA0C,kCACAC,wBACAhD,WACAoC,sBACAa,iBACA5B,wBACAQ,oBAGAqB,UACAhD,aACA,4DAEAkB,cACA,2DAGA5C,SACA,wBAEA,GADA,oBACA,kBAGA,OAFA,kDACA2E,wCAGA,kCACA,kBACAF,sCAEA,mCACA,IACA,4CACA,kBAEA,+BAIA,mBACA,wBACA,qDACA,IACA,mCACA,oBAGA,wBACA,0BACA,SACA,oBACA,+CACA,IACA,OACAG,oBACApD,iBACAqD,6CACAC,eACAC,+CAEA,qDACAC,KACA,qBACA,SACA,qBACA,kBAEA,UAEA,yBACA,mBAEA9C,mBAAA+C,IACA,+BAEAnD,YACA,2BAEAC,aACA,6BAEAC,aACA,qBACA,+BAEAkD,aACA,aACA,iEACA,uDACAC,2BAEA,4BACA,iBACAR,0CAEA,qBACAA,gDCtOqX,I,YCOjXS,EAAY,eACd,EACApE,EACA6C,GACA,EACA,KACA,KACA,MAIa,aAAAuB,E","file":"js/chunk-4f03981c.34f36997.js","sourcesContent":["export default {\n methods: {\n reg(value, caps = false, trim = false){\n if(value == null || value == ''){\n return \"\";\n }\n\n if(caps){\n return this.upper(value, trim);\n }\n else if(trim) {\n return this.trimSpaces(value);\n }\n else {\n return value;\n }\n },\n upper(value, trim = false) {\n if (value == null || value == '') {\n return \"\";\n }\n return this.cleanTildes(value, trim).toUpperCase();\n },\n cleanTildes(s, trim = false){\n var r = s.toLowerCase();\n r = r.replace(new RegExp(\"[àáâãäå]\", 'g'),\"a\");\n r = r.replace(new RegExp(\"æ\", 'g'),\"ae\");\n r = r.replace(new RegExp(\"ç\", 'g'),\"c\");\n r = r.replace(new RegExp(\"[èéêë]\", 'g'),\"e\");\n r = r.replace(new RegExp(\"[ìíîï]\", 'g'),\"i\");\n //r = r.replace(new RegExp(\"ñ\", 'g'),\"n\"); \n r = r.replace(new RegExp(\"[òóôõö]\", 'g'),\"o\");\n r = r.replace(new RegExp(\"œ\", 'g'),\"oe\");\n //r = r.replace(new RegExp(\"[ùúûü]\", 'g'),\"u\");\n r = r.replace(new RegExp(\"[ùúû]\", 'g'),\"u\");\n r = r.replace(new RegExp(\"[ýÿ]\", 'g'),\"y\");\n \n if(trim){\n r = r.replace(/\\s/g,'');\n }\n\n return r;\n },\n trimSpaces(s){\n return s.replace(/\\s/g,'');\n },\n uppercase(value){\n if (value == null || value == '') {\n return \"\";\n }\n return value.toUpperCase();\n }\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('big-title',[_vm._v(\" Número de \"),_c('span',[_vm._v(\"teléfono\")]),_vm._v(\". \")]),_c('vx-card',[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h2',[_vm._v(\"Número actual: \"),_c('span',{staticClass:\"text-primary\"},[_vm._v(_vm._s(_vm.user.phone))])]),_c('label',[_vm._v(\"Tu número puede usarse para enviarte notificaciones importantes o ayudarte a acceder a tu cuenta, mantenlo actualizado.\")]),_c('vs-divider',{attrs:{\"color\":\"dark\"}})],1)]),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h4',[_vm._v(\"¿Deseas cambiar tu número de teléfono?\")]),_c('label',[_vm._v(\"Para asegurarse de que este número sea tuyo, RedGirasol te enviará un \"),_c('strong',[_vm._v(\" código de verificación \")]),_vm._v(\". \"),(_vm.isUsaPhone)?_c('small',{staticClass:\"bold\"},[_c('br'),_vm._v(\" (Por el momento los télefonos de Estados Unidos no serán verificados) \")]):_vm._e()]),_c('div',{staticClass:\"vx-row\"},[_c('div',{class:_vm.colClass},[_c('div',{staticClass:\"flex\"},[_c('vue-country-code',{staticClass:\"vs-custom\",attrs:{\"name\":\"dialCode\",\"data-vv-name\":\"dialCode\",\"enableSearchField\":true,\"searchPlaceholderText\":\"Buscar código de país\",\"enabledCountryCode\":true,\"preferredCountries\":['MX'],\"danger\":_vm.hasError('dialCode'),\"danger-text\":_vm.errorText('dialCode'),\"success\":_vm.isSuccess('dialCode')},on:{\"onSelect\":_vm.onSelect}}),_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],attrs:{\"label\":\"\",\"name\":\"phone\",\"type\":\"tel\",\"danger\":_vm.hasError('phone'),\"danger-text\":_vm.errorText('phone'),\"success\":_vm.isSuccess('phone'),\"icon-pack\":\"feather\",\"placeholder\":\"(Requerido)\"},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=$$v},expression:\"phone\"}})],1)])]),(_vm.errorMssg)?_c('vs-alert',{staticClass:\"mb-5\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-alert-triangle\",\"color\":\"danger\"}},[_c('span',{staticClass:\"font-regular\"},[_vm._v(_vm._s(_vm.errorMssg))])]):_vm._e(),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vs-button',{on:{\"click\":_vm.changeUserPhone}},[_vm._v(_vm._s(_vm.saveBtnText))])],1)])],1)])]),_c('vs-popup',{attrs:{\"active\":_vm.isSmsCodePopupActive,\"title\":\"Código de verificación\"},on:{\"update:active\":function($event){_vm.isSmsCodePopupActive=$event}}},[_c('div',{staticClass:\"p-4 pt-0\"},[_c('div',[_c('h6',{staticClass:\"title-dark\"},[_vm._v(\" Acabamos de enviarte un SMS con un código. Ingrésalo para verificar tu teléfono. ¿No recibiste un SMS? \"),_c('span',[_c('router-link',{staticClass:\"bold ml-1 inline-link-primary\",attrs:{\"to\":\"\"},nativeOn:{\"click\":function($event){return _vm.reloadPage.apply(null, arguments)}}},[_vm._v(\"Volver a intentarlo.\")])],1)]),(_vm.errorCodeMssg)?_c('vs-alert',{staticClass:\"mt-3 mb-3\",staticStyle:{\"height\":\"auto\"},attrs:{\"color\":\"danger\"}},[_vm._v(_vm._s(_vm.errorCodeMssg))]):_vm._e(),_c('div',{staticClass:\"vx-row mt-4\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex items-center flex-grow justify-left mt-1\"},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required|numeric'),expression:\"'required|numeric'\"}],attrs:{\"type\":\"text\",\"name\":\"verificationCode\",\"maxlength\":\"6\",\"autocomplete\":\"off\",\"disabled\":_vm.validatingCode,\"placeholder\":\"Ingresa el código\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.verifyCode.apply(null, arguments)}},model:{value:(_vm.verificationCode),callback:function ($$v) {_vm.verificationCode=$$v},expression:\"verificationCode\"}}),_c('vs-button',{staticClass:\"ml-6\",attrs:{\"color\":\"primary\",\"disabled\":_vm.validatingCode},on:{\"click\":_vm.verifyCode}},[_vm._v(\"Verificar\")])],1)])])],1)])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n Número de teléfono. \n \n
\n
\n
Número actual: {{ user.phone }}
\n \n \n
\n
\n
\n
\n
¿Deseas cambiar tu número de teléfono?
\n \n
\n
\n
\n \n \n \n
\n
\n
\n \n {{ errorMssg }}\n \n
\n
\n {{saveBtnText}}\n
\n
\n
\n
\n \n \n
\n
\n
\n Acabamos de enviarte un SMS con un código. Ingrésalo para verificar tu teléfono.\n ¿No recibiste un SMS? Volver a intentarlo.
\n {{ errorCodeMssg }}\n
\n
\n
\n \n Verificar\n
\n
\n
\n
\n
\n \n
\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvestorPhone.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvestorPhone.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InvestorPhone.vue?vue&type=template&id=e653e49c&\"\nimport script from \"./InvestorPhone.vue?vue&type=script&lang=js&\"\nexport * from \"./InvestorPhone.vue?vue&type=script&lang=js&\"\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":""}