n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.73 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./sanitize-html-legacy-ChR3ikxn.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./merge-legacy-uu1aGqHK.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./dateformat-legacy-BxdD_OP7.js","./useDebounce-legacy-CT3oYGrC.js","./sso.store-legacy-VUs4UkgQ.js","./AuthView-legacy-D2ks9jRE.js"],(function(e,t){var s,o,n,a,r,i,l,d,u,f;return{setters:[function(e){s=e.$,o=e.Ft,n=e.N,a=e.S,r=e.w},function(e){i=e.bt},function(e){},function(e){},function(e){l=e.As,d=e.Tr,u=e.t},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){f=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(c=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="3906f853-e588-4d84-9a8c-33920894ed04",t._sentryDebugIdIdentifier="sentry-dbid-3906f853-e588-4d84-9a8c-33920894ed04")}catch(t){}var t,c;e("default",n({__name:"ForgotMyPasswordView",setup(e){const t=l(),n=u(),c=d(),g=i(),y=o(!1),m=a((()=>{const e=[{name:"email",properties:{label:g.baseText("auth.email"),type:"email",required:!0,validationRules:[{name:"VALID_EMAIL"}],autocomplete:"email",capitalize:!0,focusInitially:!0}}],s=[{name:"no-smtp-warning",properties:{label:g.baseText("forgotPassword.noSMTPToSendEmailWarning"),type:"info"}}],o={title:g.baseText("forgotPassword.recoverPassword"),redirectText:g.baseText("forgotPassword.returnToSignIn"),redirectLink:"/signin"};return t.isSmtpSetup?{...o,buttonText:g.baseText("forgotPassword.getRecoveryLink"),inputs:e}:{...o,inputs:s}})),b=async e=>{if((e=>"email"in e)(e)){try{y.value=!0,await n.sendForgotPasswordEmail(e),c.showMessage({type:"success",title:g.baseText("forgotPassword.recoveryEmailSent"),message:g.baseText("forgotPassword.emailSentIfExists",{interpolate:{email:e.email}})})}catch(t){let e=g.baseText("forgotPassword.smtpErrorContactAdministrator");if(t.httpStatusCode){const{httpStatusCode:s}=t;429===s?e=g.baseText("forgotPassword.tooManyRequests"):422===t.httpStatusCode&&(e=g.baseText(t.message)),c.showMessage({type:"error",title:g.baseText("forgotPassword.sendingEmailError"),message:e})}}y.value=!1}};return(e,t)=>(s(),r(f,{form:m.value,"form-loading":y.value,onSubmit:b},null,8,["form","form-loading"]))}}))}}}));
//# sourceMappingURL=ForgotMyPasswordView-legacy-Bi1ZseUQ.js.map