n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.96 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.16.1"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./core-legacy-VD8c7QJ-.js","./src-legacy-B67uuxhB.js","./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./AuthView-legacy-Wj84asB_.js"],(function(e,t){var a,n,i,r,s,o,u,l,c,f,p,d,b,g;return{setters:[function(e){a=e.$,n=e.Ft,i=e.N,r=e.S,s=e.X,o=e.w},function(e){u=e.at},function(e){l=e.ct,c=e.lt},function(e){f=e.Pn,p=e.t},function(e){d=e.Qo},function(e){b=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(m=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[m]="a9a241a7-e0fe-4bcd-aeb9-b5f004015b59",t._sentryDebugIdIdentifier="sentry-dbid-a9a241a7-e0fe-4bcd-aeb9-b5f004015b59")}catch(t){}var t,m;g=i({__name:"SignupView",setup(e){const i=p(),g=f(),m=u(),y=c(),h=l(),w={title:m.baseText("auth.signup.setupYourAccount"),buttonText:m.baseText("auth.signup.finishAccountSetup"),inputs:[{name:"firstName",properties:{label:m.baseText("auth.firstName"),maxlength:32,required:!0,autocomplete:"given-name",capitalize:!0,focusInitially:!0}},{name:"lastName",properties:{label:m.baseText("auth.lastName"),maxlength:32,required:!0,autocomplete:"family-name",capitalize:!0}},{name:"password",properties:{label:m.baseText("auth.password"),type:"password",validationRules:[{name:"DEFAULT_PASSWORD_RULES"}],required:!0,infoText:m.baseText("auth.defaultPasswordRequirements"),autocomplete:"new-password",capitalize:!0}},{name:"agree",properties:{label:m.baseText("auth.agreement.label"),type:"checkbox"}}]},v=n(!1),T=n(null),E=n(void 0),x=r((()=>T.value?m.baseText("settings.signup.signUpInviterInfo",{interpolate:{firstName:T.value.firstName,lastName:T.value.lastName}}):""));async function S(e){if(E.value){try{if(v.value=!0,await i.acceptInvitation({...e,token:E.value}),!0===e.agree)try{await i.submitContactEmail(e.email.toString(),e.agree)}catch{}await y.push({name:d.HOMEPAGE})}catch(t){g.showError(t,m.baseText("auth.signup.setupYourAccountError"))}v.value=!1}else g.showError(new Error(m.baseText("auth.signup.tokenValidationError")),m.baseText("auth.signup.setupYourAccountError"))}return s((async()=>{const e=(a="token",h.query[a]&&"string"==typeof h.query[a]?h.query[a]:null);var a;try{if(!e)throw new Error(m.baseText("auth.signup.missingTokenError"));E.value=e,T.value=(await i.validateSignupToken({token:E.value})).inviter}catch(t){g.showError(t,m.baseText("auth.signup.tokenValidationError")),y.replace({name:d.SIGNIN})}})),(e,t)=>(a(),o(b,{form:w,"form-loading":v.value,subtitle:x.value,onSubmit:S},null,8,["form-loading","subtitle"]))}}),e("default",g)}}}));
//# sourceMappingURL=SignupView-legacy-2MdGieIV.js.map