{"version":3,"sources":["webpack:///./src/views/auth/component/ForgotPassword.vue?9aaa","webpack:///./src/scripts/auth/component/forgotPassword.js","webpack:///./src/scripts/auth/component/forgotPassword.js?85fe","webpack:///./src/views/auth/component/ForgotPassword.vue","webpack:///./node_modules/vue-recaptcha/dist/vue-recaptcha.es.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","directives","name","rawName","value","expression","attrs","staticStyle","_v","_s","$lang","forgotPassword","slogan","ref","forgotPasswordForm","rules","email","on","$event","type","indexOf","keyCode","submitForm","model","callback","$$v","$set","verifyRecaptcha","expiredRecaptcha","renderRecaptcha","errorRecaptcha","_e","canExecute","sendRequest","openComponentView","cancel","staticRenderFns","homepage","process","enableRecaptcha","props","location","String","default","extends","baseComponent","components","VueRecaptcha","data","delayNotification","isLoading","enabledRecaptcha","deviceInformation","recaptchaToken","required","message","validationRequiredEmail","trigger","validationTypeEmail","computed","methods","formName","$refs","validate","valid","JSON","stringify","getInformationClient","authApi","forgotPasswordUser","then","res","setTimeout","errorCode","GPURENTAL_STATUS_CODE","ForgotPassword_Success","commonActionHandle","showCustomSuccess","dialog","success","postRecoverySuccess","resetRecaptcha","$store","dispatch","error","catch","showCustomWarning","response","recaptchaComp","reset","id","componentName","$emit","component","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","defer","state","callbacks","resolve","val","len","cb","push","deferred","resolved","promise","ownProp","createRecaptcha","notify","wait","ele","options","window","grecaptcha","widgetId","assertLoaded","execute","checkRecaptchaLoad","Error","recaptcha","vueRecaptchaApiLoaded","sitekey","theme","badge","size","tabindex","loadRecaptchaScript","Boolean","recaptchaScriptId","recaptchaHost","language","beforeMount","document","getElementById","script","createElement","src","async","head","appendChild","mounted","_this","opts","$props","emitVerify","emitExpired","emitError","container","$slots","$el","children","$widgetId","h"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IA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,YACzB,iBAAkBlK,KAAKmK,YAGrBC,EAAYpK,KAAKqK,OAAO,WAAarK,KAAKsK,IAAIC,SAAS,GAAKvK,KAAKsK,IACrE9B,EAAU1I,OAAOsK,EAAWL,GAAM,SAAUhE,GAC1C+D,EAAMU,UAAYzE,EAElB+D,EAAM7D,MAAM,SAAUF,OAG1B9B,QAAS,CACP6B,MAAO,WACL0C,EAAU1C,MAAM9F,KAAKwK,YAEvBnC,QAAS,WACPG,EAAUH,QAAQrI,KAAKwK,YAEzBP,WAAY,SAAoBrE,GAC9B5F,KAAKiG,MAAM,SAAUL,IAEvBsE,YAAa,WACXlK,KAAKiG,MAAM,YAEbkE,UAAW,WACTnK,KAAKiG,MAAM,WAGfnG,OAAQ,SAAgB2K,GACtB,OAAOA,EAAE,MAAO,GAAIzK,KAAKqK,OAAO,cAIrB","file":"js/chunk-47086f2f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"login-form-block d-flex flex-fill align-content-center align-items-center justify-content-center\"},[_c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.isLoading),expression:\"isLoading\"}],staticClass:\"input-login-block d-flex flex-grow-1 align-content-center justify-center flex-row\"},[_c('v-card-text',[_c('div',{staticClass:\"layout column align-center mt-3\"},[_c('a',{attrs:{\"title\":\"https://irendering.net/\",\"href\":\"https://irendering.net/\",\"target\":\"_blank\"}},[_c('img',{staticClass:\"my-4 mb-0 mt-0 irender-logo-text\",staticStyle:{\"width\":\"15rem\"},attrs:{\"src\":\"/logo/Gpuhub-logo-text.svg\",\"height\":\"30\"}})]),_c('span',{staticClass:\"font-size-8 no-select mt-1 flex text-muted mt-0 mb-7\"},[_vm._v(_vm._s(_vm.$lang.forgotPassword.slogan))])]),_c('el-form',{ref:\"forgotPasswordForm\",attrs:{\"model\":_vm.forgotPasswordForm,\"rules\":_vm.rules,\"onsubmit\":\"return false;\"}},[_c('el-form-item',{staticClass:\"d-flex justify-content-center\",attrs:{\"prop\":\"email\"}},[_c('el-input',{staticStyle:{\"width\":\"25rem\"},attrs:{\"placeholder\":_vm.$lang.forgotPassword.email,\"prefix-icon\":\"fas fa-envelope\",\"type\":\"email\",\"clearable\":\"\",\"autocomplete\":\"on\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&$event.keyCode!==13){ return null; }return _vm.submitForm('forgotPasswordForm')}},model:{value:(_vm.forgotPasswordForm.email),callback:function ($$v) {_vm.$set(_vm.forgotPasswordForm, \"email\", $$v)},expression:\"forgotPasswordForm.email\"}})],1),(_vm.enabledRecaptcha)?_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('vue-recaptcha',{ref:\"recaptchaComp\",attrs:{\"sitekey\":\"6LcgNc0ZAAAAAIyb-rgYyJUT7a5YeoIq5TbNLpX9\"},on:{\"verify\":_vm.verifyRecaptcha,\"expired\":_vm.expiredRecaptcha,\"render\":_vm.renderRecaptcha,\"error\":_vm.errorRecaptcha}})],1):_vm._e(),_c('el-form-item',{staticClass:\"d-flex justify-content-center mt-8 mb-0\"},[_c('el-button',{staticStyle:{\"width\":\"25rem\"},attrs:{\"disabled\":!_vm.canExecute,\"type\":\"primary\",\"round\":\"\"},on:{\"click\":function($event){return _vm.submitForm('forgotPasswordForm')}}},[_vm._v(_vm._s(_vm.$lang.forgotPassword.sendRequest))])],1),_c('el-form-item',{staticClass:\"d-flex justify-content-center mb-0\"},[_c('el-button',{staticStyle:{\"color\":\"#757575\"},attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.openComponentView('Login')}}},[_vm._v(_vm._s(_vm.$lang.forgotPassword.cancel))])],1)],1)],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import authApi from \"@/api/auth\";\r\nimport commonActionHandle from \"@/commonActionHandle\";\r\nimport { GPURENTAL_STATUS_CODE } from \"@/constant/config\";\r\nimport baseComponent from '@/scripts/baseComponent';\r\nimport VueRecaptcha from 'vue-recaptcha';\r\nconst homepage = process.env.VUE_APP_HOMEPAGE;\r\nconst enableRecaptcha = (process.env.VUE_APP_ENABLED_RECAPTCHA == 'true');\r\n\r\nexport default {\r\n props: {\r\n location: {\r\n type: String,\r\n default: null\r\n },\r\n },\r\n extends: baseComponent,\r\n components: { VueRecaptcha },\r\n\r\n data() {\r\n return {\r\n homepage: homepage,\r\n delayNotification: 1000,\r\n isLoading: false,\r\n enabledRecaptcha: enableRecaptcha,\r\n forgotPasswordForm: {\r\n email: \"\",\r\n deviceInformation: '',\r\n recaptchaToken: \"\",\r\n },\r\n rules: {\r\n email: [\r\n {\r\n required: true,\r\n message: this.$lang.forgotPassword.validationRequiredEmail,\r\n trigger: \"blur\"\r\n },\r\n {\r\n type: \"email\",\r\n message: this.$lang.forgotPassword.validationTypeEmail,\r\n trigger: [\"blur\", \"change\"]\r\n }\r\n ]\r\n }\r\n };\r\n },\r\n\r\n computed: {\r\n canExecute() {\r\n return (!this.enabledRecaptcha || this.forgotPasswordForm.recaptchaToken !== '');\r\n }\r\n },\r\n methods: {\r\n\r\n // Submit form forgot password\r\n submitForm(formName) {\r\n this.$refs[formName].validate(valid => {\r\n if (valid) {\r\n this.isLoading = true;\r\n this.forgotPasswordForm.deviceInformation = JSON.stringify(this.getInformationClient());\r\n authApi\r\n .forgotPasswordUser(this.forgotPasswordForm)\r\n .then(res => {\r\n setTimeout(() => {\r\n try {\r\n this.isLoading = false;\r\n switch (res.errorCode) {\r\n case GPURENTAL_STATUS_CODE.ForgotPassword_Success:\r\n commonActionHandle.showCustomSuccess(\r\n this.$lang.dialog.success,\r\n `A recovery e-mail has been sent to ${this.forgotPasswordForm.email} , please check and follow the instructions written in the e-mail.`,\r\n this.postRecoverySuccess\r\n );\r\n break;\r\n default:\r\n this.resetRecaptcha();\r\n this.$store.dispatch(\"common/showUnkownError\", res, 'Password recovery failed ...');\r\n break;\r\n }\r\n } catch (error) {\r\n this.resetRecaptcha();\r\n this.$store.dispatch(\"common/showUnkownError\", error, 'Password recovery failed ...');\r\n }\r\n }, this.delayNotification);\r\n })\r\n .catch(error => {\r\n setTimeout(() => {\r\n try {\r\n this.isLoading = false;\r\n if (error.name === 'Error') {\r\n this.resetRecaptcha();\r\n this.$store.dispatch(\"common/showCommonError\", error);\r\n } else {\r\n commonActionHandle.showCustomWarning(\r\n 'Password recovery failed ...',\r\n \"We couldn't find your account with that information.\"\r\n );\r\n this.resetRecaptcha();\r\n }\r\n } catch (error) {\r\n this.resetRecaptcha();\r\n this.$store.dispatch(\"common/showUnkownError\", error, 'Password recovery failed ...');\r\n }\r\n }, this.delayNotification);\r\n });\r\n } else {\r\n this.isLoading = false;\r\n return false;\r\n }\r\n });\r\n },\r\n\r\n // Post recovery password success\r\n postRecoverySuccess() {\r\n this.openComponentView('Login');\r\n },\r\n\r\n verifyRecaptcha(response) {\r\n //console.log(\"verifyRecaptcha\", response);\r\n this.$set(this.forgotPasswordForm, \"recaptchaToken\", response);\r\n },\r\n expiredRecaptcha() {\r\n //console.log(\"expiredRecaptcha\");\r\n if (this.enabledRecaptcha) {\r\n this.$set(this.forgotPasswordForm, \"recaptchaToken\", \"\");\r\n if (this.$refs.recaptchaComp) this.$refs.recaptchaComp.reset();\r\n this.enabledRecaptcha = false;\r\n this.enabledRecaptcha = process.env.VUE_APP_ENABLED_RECAPTCHA;\r\n }\r\n },\r\n renderRecaptcha(id) {\r\n //console.log(\"renderRecaptcha\", id);\r\n },\r\n errorRecaptcha() {\r\n //console.log(\"errorRecaptcha\");\r\n },\r\n resetRecaptcha() {\r\n if (this.enabledRecaptcha) {\r\n this.$set(this.forgotPasswordForm, \"recaptchaToken\", \"\");\r\n this.$refs.recaptchaComp.reset();\r\n this.enabledRecaptcha = false;\r\n this.enabledRecaptcha = process.env.VUE_APP_ENABLED_RECAPTCHA;\r\n }\r\n },\r\n // Open component view\r\n openComponentView(componentName) {\r\n this.$emit(\"openComponentView\", componentName);\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!./forgotPassword.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!./forgotPassword.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ForgotPassword.vue?vue&type=template&id=37c0c8fa&\"\nimport script from \"@/scripts/auth/component/forgotPassword.js?vue&type=script&lang=js&\"\nexport * from \"@/scripts/auth/component/forgotPassword.js?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","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nvar defer = function defer() {\n var state = false; // Resolved or not\n\n var callbacks = [];\n\n var resolve = function resolve(val) {\n if (state) {\n return;\n }\n\n state = true;\n\n for (var i = 0, len = callbacks.length; i < len; i++) {\n callbacks[i](val);\n }\n };\n\n var then = function then(cb) {\n if (!state) {\n callbacks.push(cb);\n return;\n }\n\n cb();\n };\n\n var deferred = {\n resolved: function resolved() {\n return state;\n },\n resolve: resolve,\n promise: {\n then: then\n }\n };\n return deferred;\n};\n\nvar ownProp = Object.prototype.hasOwnProperty;\nfunction createRecaptcha() {\n var deferred = defer();\n return {\n notify: function notify() {\n deferred.resolve();\n },\n wait: function wait() {\n return deferred.promise;\n },\n render: function render(ele, options, cb) {\n this.wait().then(function () {\n cb(window.grecaptcha.render(ele, options));\n });\n },\n reset: function reset(widgetId) {\n if (typeof widgetId === 'undefined') {\n return;\n }\n\n this.assertLoaded();\n this.wait().then(function () {\n return window.grecaptcha.reset(widgetId);\n });\n },\n execute: function execute(widgetId) {\n if (typeof widgetId === 'undefined') {\n return;\n }\n\n this.assertLoaded();\n this.wait().then(function () {\n return window.grecaptcha.execute(widgetId);\n });\n },\n checkRecaptchaLoad: function checkRecaptchaLoad() {\n if (ownProp.call(window, 'grecaptcha') && ownProp.call(window.grecaptcha, 'render')) {\n this.notify();\n }\n },\n assertLoaded: function assertLoaded() {\n if (!deferred.resolved()) {\n throw new Error('ReCAPTCHA has not been loaded');\n }\n }\n };\n}\nvar recaptcha = createRecaptcha();\n\nif (typeof window !== 'undefined') {\n window.vueRecaptchaApiLoaded = recaptcha.notify;\n}\n\nvar VueRecaptcha = {\n name: 'VueRecaptcha',\n props: {\n sitekey: {\n type: String,\n required: true\n },\n theme: {\n type: String\n },\n badge: {\n type: String\n },\n type: {\n type: String\n },\n size: {\n type: String\n },\n tabindex: {\n type: String\n },\n loadRecaptchaScript: {\n type: Boolean,\n \"default\": false\n },\n recaptchaScriptId: {\n type: String,\n \"default\": '__RECAPTCHA_SCRIPT'\n },\n recaptchaHost: {\n type: String,\n \"default\": 'www.google.com'\n },\n language: {\n type: String,\n \"default\": ''\n }\n },\n beforeMount: function beforeMount() {\n if (this.loadRecaptchaScript) {\n if (!document.getElementById(this.recaptchaScriptId)) {\n // Note: vueRecaptchaApiLoaded load callback name is per the latest documentation\n var script = document.createElement('script');\n script.id = this.recaptchaScriptId;\n script.src = \"https://\" + this.recaptchaHost + \"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl=\" + this.language;\n script.async = true;\n script.defer = true;\n document.head.appendChild(script);\n }\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n recaptcha.checkRecaptchaLoad();\n\n var opts = _extends({}, this.$props, {\n callback: this.emitVerify,\n 'expired-callback': this.emitExpired,\n 'error-callback': this.emitError\n });\n\n var container = this.$slots[\"default\"] ? this.$el.children[0] : this.$el;\n recaptcha.render(container, opts, function (id) {\n _this.$widgetId = id;\n\n _this.$emit('render', id);\n });\n },\n methods: {\n reset: function reset() {\n recaptcha.reset(this.$widgetId);\n },\n execute: function execute() {\n recaptcha.execute(this.$widgetId);\n },\n emitVerify: function emitVerify(response) {\n this.$emit('verify', response);\n },\n emitExpired: function emitExpired() {\n this.$emit('expired');\n },\n emitError: function emitError() {\n this.$emit('error');\n }\n },\n render: function render(h) {\n return h('div', {}, this.$slots[\"default\"]);\n }\n};\n\nexport default VueRecaptcha;\n"],"sourceRoot":""}