{"version":3,"sources":["webpack:///./src/views/supplier/profile/AccountPage.vue","webpack:///./src/components/supplier/widgets/ReferralCodeWidget.vue","webpack:///src/components/supplier/widgets/ReferralCodeWidget.vue","webpack:///./src/components/supplier/widgets/ReferralCodeWidget.vue?ec65","webpack:///./src/components/supplier/widgets/ReferralCodeWidget.vue?54ed","webpack:///src/views/supplier/profile/AccountPage.vue","webpack:///./src/views/supplier/profile/AccountPage.vue?91e1","webpack:///./src/views/supplier/profile/AccountPage.vue?2ff1","webpack:///./src/components/mixins/dateHelper.js","webpack:///./src/views/supplier/profile/AccountPage.vue?f022"],"names":["render","_vm","this","_c","_self","staticClass","_v","isMounted","attrs","_e","directives","name","rawName","value","expression","hasAlias","hasError","sent","errorText","isSuccess","model","alias","callback","$$v","on","$event","stopPropagation","saveAliasRequest","apply","arguments","editEmail","email","canEditEmail","editEmailRequest","userHasCancellationRequest","_s","userCancellationDate","userCancellationLimit","revokeAccountCancellation","closeAccountRequest","cancellationAccountNotValid","_l","cancellationAccountValidations","validation","idx","key","showPasswordFormPrompt","modelFormPromptIndication","alias_pwd","completeModelForm","$isLoading","doUpdateAlias","closeModelFormPrompt","showPasswordEmailFormPrompt","email_pwd","completeEmailForm","doUpdateEmail","closeEmailFormPrompt","staticRenderFns","_m","hasReferralCode","isEditing","referralCode","requestUpdateReferal","changeReferralCode","downloadQRCode","generateReferralCode","data","auxCode","mixins","computed","beforeMount","methods","title","text","color","position","location","console","getQRCode","window","type","acceptText","cancelText","accept","supplier_id","referral_code","validateCode","isValid","component","components","ReferralCodeWidget","new_email","password","code","email_error","loading_email","email_confirm_error","general_error","edit_email","set_alias","loading_alias","writing","alias_error","failed","userData","watch","openModelFormPrompt","openEmailFormPrompt","validations","mssg","constitutionDateFormat","moment","String","locale","format","constitutionPaymentDateFormat","explicitDateFormat","sessionFormat","regularDateFormat","yearDateFormat","midDateFormat","humanDateFormat","dateTimeFormat","dateTime12Format","compactDateFormat","logDateFormat","timeAgoFormat","fromNow","calculateAgeFromDate","diff","minDateForValidAge","years","subtract","calculateDaysDiff","m","n","validatedDate","getDateFromInputs","yy","mm","dd","yint","parseInt","mint","year","month","day","nextAccreditationDate","add","setDateToEndOfDay","d","endOf","end","setDateToStartOfDay","startOf","start","signatureFormatDate","signatureValidityDate","incomeSpecial","toUpperCase","timeStampFormat","formatDatepicker","isAfter","date","maxDate","limit","getPreviousMonth","step","getDay"],"mappings":"0IAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,KAAK,CAACE,YAAY,mCAAmC,CAACJ,EAAIK,GAAG,OAAOH,EAAG,OAAO,CAACE,YAAY,UAAU,CAACJ,EAAIK,GAAG,YAAYL,EAAIK,GAAG,OAAOH,EAAG,IAAI,CAACE,YAAY,2BAA2B,CAACJ,EAAIK,GAAG,wGAAyGL,EAAIM,UAAWJ,EAAG,UAAU,CAACE,YAAY,OAAOG,MAAM,CAAC,MAAQ,yBAAyB,CAACL,EAAG,uBAAuB,GAAGF,EAAIQ,KAAMR,EAAIM,UAAWJ,EAAG,UAAU,CAACE,YAAY,OAAOG,MAAM,CAAC,MAAQ,UAAU,CAACL,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,IAAI,CAACE,YAAY,QAAQ,CAACJ,EAAIK,GAAG,yHAAyHH,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,6CAA6C,CAACF,EAAG,WAAW,CAACO,WAAW,CAAC,CAACC,KAAK,WAAWC,QAAQ,aAAaC,MAAO,WAAYC,WAAW,eAAeT,YAAY,SAASG,MAAM,CAAC,MAAQP,EAAIc,SAAW,oCAAsC,uCAAuC,KAA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A,kBACA,kBACA,uBAIA,SACA,qBACAR,iBAGA,uBACA,IACA,iHACAE,wBACA,SACAF,iBAGAS,eACA,iCACA,SACA,MACA,wFACAC,MAGA,sCAEA,2BACA,wBACA,oBAOA,OALA,WACA,gHACAA,MAGA,GAEAxE,YACA,2BAEAE,aACA,6BAEAC,aACA,qBACA,iCCtL0X,I,YCOtXsE,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,oBCsKA,GACfpB,gBACA,gBACA,kBACA,2BACA,mBACA,qBACA,mBAEAqB,YACAC,sBAEAxB,OACA,OACApC,WACA6D,WACA7D,SACA8D,YACAC,SAEAzE,SACA0E,eACAC,iBACAC,uBACAC,iBACAC,cACAC,aACAC,iBACAC,WACAtD,eACAuD,eAEAhG,aACAiG,UACAzF,YACA+B,0BACAC,wEAEAM,+BACArB,gBAEAyE,YACAxF,QACAa,aACAwB,eAEAd,iCACAE,oCAGAgE,OACAP,sBACA,2BACA,gCACA,uBACA,oBACA,8BAGA7B,aACA,2CACArB,oBACA,6BAEAM,oBACA,6BAEArB,6BACA,+DAEAE,uBACA,0DACA,iFAGAC,wBACA,wDACA,+EAIAmC,SACA,oBACA,IACA,wEACA,0BACA,wCACA,+BACA,+BAEA,SACA,eAGAxD,YACA,2BAEAE,aACA,6BAEAC,aACA,qBACA,+BAEA,yBACA,aACA,8CACA,SAGA,kBAEA,kBACA,IACA,qDAAAE,mBACA,UACA,2BAGA,mGAGA,SACA,8BAGA,2BACA,iBACA4D,eACAN,eACAF,yBACAC,yDACAQ,uBACAC,sBACAC,mCAGA,sBACA,UACA,kCAAA/D,iBAAAwE,0BACA,iBACA,wBAEA,SACA,4BAEA,6BAEAc,sBACA,oBACA,gCAEAvD,uBACA,+BACA,qBAGA,yBACA,8CACA,SAGA,kBAEA,kBACA,IACA,gEAAArB,mBACA,gBAIA,2BAHA,gHAMA,SACA,8BAGA,sBACA,IACA,qBACA,yDACAA,iBACA8D,0BAEA,qBACA,oCACA,0E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,GAAMlD,OAAO,MAAMC,OAAO,U,2DCxL9C","file":"js/chunk-a812cc82.c83be3b7.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('vx-card',{staticClass:\"mb-6\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h1',{staticClass:\"rg-big-title extrabold rg-title\"},[_vm._v(\"Mi \"),_c('span',{staticClass:\"orange\"},[_vm._v(\"cuenta\")]),_vm._v(\".\")]),_c('p',{staticClass:\"text-subtitle mt-4 bold\"},[_vm._v(\" En este apartado podrás actualizar el alias y correo electrónico para acceder a tu cuenta. \")])])])]),(_vm.isMounted)?_c('vx-card',{staticClass:\"mb-5\",attrs:{\"title\":\"Código de referencia\"}},[_c('ReferralCodeWidget')],1):_vm._e(),(_vm.isMounted)?_c('vx-card',{staticClass:\"mb-5\",attrs:{\"title\":\"Alias\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"mb-4\"},[_vm._v(\"Tu alias es la manera en la que podrás identificarte en la Red. No podrá cambiarse o actualizarse una vez definido.\")]),_c('div',{staticClass:\"vx-row mb-5\"},[_c('div',{staticClass:\"vx-col lg:w-1/3 md:w-1/2 sm:w-full w-full\"},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"w-full\",attrs:{\"label\":_vm.hasAlias ? 'No es posible actualizar el alias' : 'Ingresa el alias que desees utilizar',\"type\":\"text\",\"danger\":_vm.hasError('alias') && _vm.sent,\"danger-text\":_vm.errorText('alias'),\"success\":_vm.isSuccess('alias'),\"disabled\":_vm.hasAlias,\"name\":\"alias\"},model:{value:(_vm.alias),callback:function ($$v) {_vm.alias=$$v},expression:\"alias\"}})],1)]),(!_vm.hasAlias)?_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex flex-wrap items-center\"},[_c('vs-button',{staticClass:\"mt-2\",on:{\"click\":function($event){$event.stopPropagation();return _vm.saveAliasRequest.apply(null, arguments)}}},[_vm._v(\"Agregar\")])],1)])]):_vm._e()])])]):_vm._e(),(_vm.isMounted)?_c('vx-card',{staticClass:\"mb-5\",attrs:{\"title\":\"Correo electrónico\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"mb-4\"},[_vm._v(\"Tu correo electrónico es otro medio importante para identificarte, además de que es el canal en donde más comunicación tendrás con la Red. Puedes consultarlo y actualizarlo aquí cuando lo necesites.\")]),_c('div',{staticClass:\"vx-row mb-5\"},[_c('div',{staticClass:\"vx-col lg:w-1/3 md:w-1/2 sm:w-full w-full\"},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required|email'),expression:\"'required|email'\"}],staticClass:\"w-full\",attrs:{\"label\":\"Tu correo electrónico\",\"type\":\"text\",\"danger\":_vm.hasError('email'),\"danger-text\":_vm.errorText('email'),\"success\":_vm.isSuccess('email'),\"disabled\":!_vm.editEmail,\"name\":\"email\"},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}})],1)]),(_vm.canEditEmail)?_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex flex-wrap items-center\"},[(!_vm.editEmail)?_c('vs-button',{staticClass:\"mt-2\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-edit\"},on:{\"click\":function($event){$event.stopPropagation();_vm.editEmail = true}}},[_vm._v(\"Modificar\")]):_vm._e(),(_vm.editEmail)?_c('vs-button',{staticClass:\"mt-2\",on:{\"click\":function($event){$event.stopPropagation();return _vm.editEmailRequest.apply(null, arguments)}}},[_vm._v(\"Guardar\")]):_vm._e()],1)])]):_vm._e()])])]):_vm._e(),(_vm.isMounted)?_c('vx-card',{staticClass:\"mb-5\",attrs:{\"title\":\"Cerrar mi cuenta.\"}},[(!_vm.userHasCancellationRequest)?_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col lg:w-3/4 w-full\"},[_c('p',{staticClass:\"mb-5\"},[_vm._v(\"En este apartado podrás cerrar tu cuenta en RedGirasol. Recuerda que para hacerlo tendrás que haber concluido cualquier compromiso como proveedor, es decir, que al momento de cerrarla no cuentes con proyectos:\")]),_c('ul',{staticClass:\"mb-5 ul-bullet ml-5\"},[_c('li',[_vm._v(\"Pendientes de ser revisados o aprobados sin estar archivados. En caso de tenerlos deberás archivarlos antes de cerrar tu cuenta.\")]),_c('li',[_vm._v(\"En proceso de fondeo, firma de contratos o en instalación.\")]),_c('li',[_vm._v(\"Entregados en un plazo menor a 6 meses. \")])]),_c('p',{staticClass:\"mb-base bold\"},[_vm._v(\"¡Esperamos que nunca te desconectes de la Red!\")]),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex flex-wrap items-center\"},[_c('vs-button',{attrs:{\"type\":\"border\",\"color\":\"dark\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.closeAccountRequest.apply(null, arguments)}}},[_vm._v(\"Cerrar cuenta\")])],1)])])])]):_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('p',{staticClass:\"mb-4 bold\"},[_vm._v(\"Tu cuenta está en proceso de ser cerrada. \")]),_c('p',[_vm._v(\"Realizaste la solicitud de cierre el \"),_c('span',{staticClass:\"bold\"},[_vm._v(\" \"+_vm._s(_vm.userCancellationDate))]),_vm._v(\".\")]),_c('p',{staticClass:\"mb-5\"},[_vm._v(\"Pasados 30 días, el acceso a tu cuenta se revocará, específicamente el día \"),_c('span',{staticClass:\"bold\"},[_vm._v(\" \"+_vm._s(_vm.userCancellationLimit))]),_vm._v(\".\")]),_c('p',{staticClass:\"mb-5\"},[_vm._v(\"Si deseas mantener tu cuenta con nosotros, limpiar el planeta y seguir impulsando la transición energética de México da clic en el botón que se encuentra a continuación. ¡No te desconectes!\")]),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('div',{staticClass:\"flex flex-wrap items-center\"},[_c('vs-button',{attrs:{\"type\":\"border\",\"color\":\"dark\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.revokeAccountCancellation.apply(null, arguments)}}},[_vm._v(\"Deseo continuar en la Red\")])],1)])])])])]):_vm._e(),_c('vs-popup',{attrs:{\"active\":_vm.cancellationAccountNotValid,\"title\":\"Cierre de cuenta\"},on:{\"update:active\":function($event){_vm.cancellationAccountNotValid=$event}}},[_c('div',{staticClass:\"p-3 pt-1\"},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('h5',[_vm._v(\"No es posible proceder con el cierre de cuenta.\")]),_c('p',{staticClass:\"mt-4 mb-5\"},[_vm._v(\" No es posible iniciar el proceso de cierre de tu cuenta, debido a que existen una o más condiciones que lo impiden: \")]),_vm._l((_vm.cancellationAccountValidations),function(validation,idx){return _c('p',{key:idx,staticClass:\"bold mb-3\"},[_vm._v(\" - \"+_vm._s(validation)+\" \")])})],2),_c('div',{staticClass:\"vx-col w-full mt-3\"},[_c('div',{staticClass:\"flex items-center flex-grow justify-left mt-1\"},[_c('vs-button',{attrs:{\"color\":\"dark\"},on:{\"click\":function($event){$event.stopPropagation();_vm.cancellationAccountNotValid = false}}},[_vm._v(\"Finalizar\")])],1)])])])]),_c('vs-popup',{attrs:{\"title\":\"Confirma tu alias\",\"active\":_vm.showPasswordFormPrompt},on:{\"update:active\":function($event){_vm.showPasswordFormPrompt=$event}}},[_c('div',{staticClass:\"con-exemple-prompt\"},[_c('p',{staticClass:\"mb-5 bold\"},[_vm._v(_vm._s(_vm.modelFormPromptIndication))]),_c('p',{staticClass:\"mb-5\"},[_vm._v(\"Tu alias será: \"),_c('strong',[_vm._v(_vm._s(_vm.alias))])]),_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"w-full mb-5\",attrs:{\"label\":\"Contraseña\",\"type\":\"password\",\"danger\":_vm.hasError('alias_pwd'),\"danger-text\":_vm.errorText('alias_pwd'),\"success\":_vm.isSuccess('alias_pwd'),\"name\":\"alias_pwd\"},model:{value:(_vm.alias_pwd),callback:function ($$v) {_vm.alias_pwd=$$v},expression:\"alias_pwd\"}}),_c('vs-button',{staticClass:\"mr-5 mt-2\",attrs:{\"disabled\":!_vm.completeModelForm || _vm.$isLoading,\"color\":\"primary\"},on:{\"click\":_vm.doUpdateAlias}},[_vm._v(\"Enviar\")]),_c('vs-button',{attrs:{\"disabled\":_vm.$isLoading,\"type\":\"flat\",\"color\":\"primary\"},on:{\"click\":_vm.closeModelFormPrompt}},[_vm._v(\"Cancelar\")])],1)]),_c('vs-popup',{attrs:{\"title\":\"Confirma tu correo electrónico\",\"active\":_vm.showPasswordEmailFormPrompt},on:{\"update:active\":function($event){_vm.showPasswordEmailFormPrompt=$event}}},[_c('div',{staticClass:\"con-exemple-prompt\"},[_c('p',{staticClass:\"mb-5 bold\"},[_vm._v(_vm._s(_vm.modelFormPromptIndication))]),_c('p',{staticClass:\"mb-5\"},[_vm._v(\"Tu correo electrónico será: \"),_c('strong',[_vm._v(_vm._s(_vm.email))])]),_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"w-full mb-5\",attrs:{\"label\":\"Contraseña\",\"type\":\"password\",\"danger\":_vm.hasError('email_pwd'),\"danger-text\":_vm.errorText('email_pwd'),\"success\":_vm.isSuccess('email_pwd'),\"name\":\"email_pwd\"},model:{value:(_vm.email_pwd),callback:function ($$v) {_vm.email_pwd=$$v},expression:\"email_pwd\"}}),_c('vs-button',{staticClass:\"mr-5 mt-2\",attrs:{\"disabled\":!_vm.completeEmailForm || _vm.$isLoading,\"color\":\"primary\"},on:{\"click\":_vm.doUpdateEmail}},[_vm._v(\"Enviar\")]),_c('vs-button',{attrs:{\"disabled\":_vm.$isLoading,\"type\":\"flat\",\"color\":\"primary\"},on:{\"click\":_vm.closeEmailFormPrompt}},[_vm._v(\"Cancelar\")])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"referral-code-widget\"}},[_c('div',{staticClass:\"vx-row mb-6\"},[_c('div',{staticClass:\"vx-col w-full\"},[_vm._m(0),(_vm.hasReferralCode)?_c('div',{staticClass:\"vx-col lg:w-1/3 md:w-1/2 sm:w-full w-full\"},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"w-full\",attrs:{\"label\":\"Tu código de referido\",\"type\":\"text\",\"danger\":_vm.hasError('referralCode'),\"danger-text\":_vm.errorText('referralCode'),\"success\":_vm.isSuccess('referralCode'),\"disabled\":_vm.hasReferralCode && !_vm.isEditing,\"name\":\"referralCode\"},model:{value:(_vm.referralCode),callback:function ($$v) {_vm.referralCode=$$v},expression:\"referralCode\"}}),_c('div',{staticClass:\"flex\"},[(!_vm.isEditing)?_c('vs-button',{staticClass:\"mt-4 mr-4\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-edit\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.changeReferralCode()}}},[_vm._v(\"Modificar\")]):_c('vs-button',{staticClass:\"mt-4 mr-4\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-save\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.requestUpdateReferal()}}},[_vm._v(\"Guardar\")]),(!_vm.isEditing)?_c('vs-button',{staticClass:\"mt-4 p-2\",attrs:{\"type\":\"border\",\"icon-pack\":\"feather\",\"icon\":\"icon-download-cloud\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.downloadQRCode()}}},[_vm._v(\"Descargar código QR\")]):_vm._e()],1)],1):_c('div',[(!_vm.hasReferralCode)?_c('vs-button',{staticClass:\"mt-4 p-2\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-grid\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.generateReferralCode()}}},[_vm._v(\"Solicitar Código\")]):_vm._e()],1)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mb-4\"},[_vm._v(\" Ahora tus \"),_c('span',{staticClass:\"bold\"},[_vm._v(\"clientes pueden crear sus propias solicitudes de crédito\")]),_vm._v(\" y asignarte como su \"),_c('span',{staticClass:\"bold\"},[_vm._v(\"proveedor de confianza\")]),_vm._v(\". Para que se registren en la red comparteles el siguiente \"),_c('span',{staticClass:\"bold\"},[_vm._v(\"código QR\")]),_vm._v(\" y así podrán crear su solicitud de crédito. \")])\n}]\n\nexport { render, staticRenderFns }","\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!./ReferralCodeWidget.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!./ReferralCodeWidget.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ReferralCodeWidget.vue?vue&type=template&id=6d2799dc&\"\nimport script from \"./ReferralCodeWidget.vue?vue&type=script&lang=js&\"\nexport * from \"./ReferralCodeWidget.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","\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!./AccountPage.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!./AccountPage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountPage.vue?vue&type=template&id=1fe02c6c&\"\nimport script from \"./AccountPage.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountPage.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AccountPage.vue?vue&type=style&index=0&id=1fe02c6c&prod&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 moment from 'moment'\nexport default {\n methods: {\n constitutionDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('LL');\n }\n },\n constitutionPaymentDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD [de] MMMM');\n }\n },\n explicitDateFormat(value) {\n if(value){\n return moment(String(value)).format('DD/MM/YYYY [a las] hh:mm a')\n }\n },\n sessionFormat(value) {\n if(value){\n return moment(String(value)).format('DD/MM/YYYY h:mm a')\n }\n },\n regularDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD/MM/YYYY')\n }\n },\n yearDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('YYYY/MM/DD')\n }\n },\n midDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD [de] MMMM [de] YYYY')\n }\n },\n humanDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('D MMM YYYY')\n }\n },\n dateTimeFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD/MM/YYYY HH:mm')\n }\n },\n dateTime12Format(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD/MM/YYYY h:mm a')\n }\n },\n compactDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD [de] MMM [´]YY')\n }\n },\n logDateFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD [de] MMMM [de] YYYY HH:mm')\n }\n },\n timeAgoFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").fromNow();\n }\n },\n calculateAgeFromDate(value){\n if(value){\n return moment().diff(value, 'years');\n }\n },\n minDateForValidAge(years){\n return moment().subtract(years, 'years').format();\n },\n calculateDaysDiff(value){\n if(value){\n let m = moment(String(value));\n let n = moment();\n return n.diff(m, 'days');\n }\n },\n validatedDate(value){\n if(value){\n let m = moment(String(value));\n if(m.isValid()){\n return m.locale(\"es\").format('DD/MM/YYYY');\n }\n else {\n return \"--\";\n }\n }\n },\n getDateFromInputs(yy,mm,dd){\n let yint = parseInt(yy);\n let mint = parseInt(mm);\n mint -= 1;\n if(yint <= 20){\n // suponer que el año es entre 2000 y 2010\n yint += 2000;\n }\n else {\n // suponer que el año es menor a 2000\n yint += 1900;\n }\n\n let m = moment({ year: yint, month: mint, day: dd});\n if(m.isValid()){\n return m.format('YYYY-MM-DD');\n }\n else {\n return false;\n }\n },\n nextAccreditationDate(value){\n if(value){\n let m = moment(String(value)).add(180, 'days');\n return m.locale(\"es\").format('DD/MM/YYYY');\n }\n else {\n return \"--\"\n }\n },\n setDateToEndOfDay(value){\n let m = moment(String(value)).add(1, 'days');\n let d = m.endOf('day')\n let end = d.locale(\"es\").format('YYYY-MM-DD HH:mm:ss');\n return end;\n },\n setDateToStartOfDay(value){\n let m = moment(String(value)).add(1, 'days');\n let d = m.startOf('day');\n let start = d.locale(\"es\").format('YYYY-MM-DD HH:mm:ss');\n return start;\n },\n signatureFormatDate(value){\n if(value){\n let m = moment(String(value));\n if(m.isValid()){\n return m.locale(\"es\").format('DD/MM/YYYY HH:mm:ss');\n }\n }\n return \"No establecido\";\n },\n signatureValidityDate(value){\n if(value){\n let m = moment(String(value));\n if(m.isValid()){\n return m.locale(\"es\").format('DD/MM/YYYY');\n }\n }\n return \"No establecido\";\n },\n incomeSpecial(value){\n if(value){\n let m = moment(String(value));\n if(m.isValid()){\n return m.locale(\"es\").format('MMMM - YYYY').toUpperCase();\n }\n }\n return \"No establecido\";\n },\n timeStampFormat(value) {\n if(value){\n return moment(String(value)).locale(\"es\").format('DD-MM-YYYY-HH_mm_ss')\n }\n },\n formatDatepicker(value)\n {\n if(value){\n return moment(String(value)).locale(\"es\").format('YYYY-MM-DD')\n }\n },\n isAfter(date, maxDate, limit = 'year')\n {\n return moment(date).isAfter(maxDate, limit); \n },\n getPreviousMonth(date, format = \"MMMM\", step = 1)\n {\n return moment(date).locale(\"es\").subtract(step, 'months').format(format);\n },\n getDay(date)\n {\n return moment(date).locale(\"es\").format('DD');\n }\n }\n}","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountPage.vue?vue&type=style&index=0&id=1fe02c6c&prod&lang=css&\""],"sourceRoot":""}