UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 3.47 kB
!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 a,n,i,u,s,o,r,l,c,d,f,g,p,b;return{setters:[function(e){a=e.$,n=e.Ft,i=e.N,u=e.S,s=e.X,o=e.w},function(e){r=e.bt},function(e){l=e._t,c=e.gt},function(e){},function(e){d=e.Tr,f=e.t},function(e){g=e.ms},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){p=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(y=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[y]="ea2e8dae-44a1-49b9-9999-db7029e34042",t._sentryDebugIdIdentifier="sentry-dbid-ea2e8dae-44a1-49b9-9999-db7029e34042")}catch(t){}var t,y;b=i({__name:"SignupView",setup(e){const i=f(),b=d(),y=r(),m=l(),v=c(),h={title:y.baseText("auth.signup.setupYourAccount"),buttonText:y.baseText("auth.signup.finishAccountSetup"),inputs:[{name:"firstName",properties:{label:y.baseText("auth.firstName"),maxlength:32,required:!0,autocomplete:"given-name",capitalize:!0,focusInitially:!0}},{name:"lastName",properties:{label:y.baseText("auth.lastName"),maxlength:32,required:!0,autocomplete:"family-name",capitalize:!0}},{name:"password",properties:{label:y.baseText("auth.password"),type:"password",validationRules:[{name:"DEFAULT_PASSWORD_RULES"}],required:!0,infoText:y.baseText("auth.defaultPasswordRequirements"),autocomplete:"new-password",capitalize:!0}},{name:"agree",properties:{label:y.baseText("auth.agreement.label"),type:"checkbox"}}]},w=n(!1),T=n(null),E=n(void 0),x=n(void 0),I=n(void 0),S=u((()=>T.value?y.baseText("settings.signup.signUpInviterInfo",{interpolate:{firstName:T.value.firstName,lastName:T.value.lastName}}):""));async function j(e){if(I.value||E.value&&x.value){try{if(w.value=!0,await i.acceptInvitation({...e,inviterId:E.value,inviteeId:x.value,token:I.value}),!0===e.agree)try{await i.submitContactEmail(e.email.toString(),e.agree)}catch{}await m.push({name:g.HOMEPAGE})}catch(t){b.showError(t,y.baseText("auth.signup.setupYourAccountError"))}w.value=!1}else b.showError(new Error(y.baseText("auth.signup.tokenValidationError")),y.baseText("auth.signup.setupYourAccountError"))}function N(e){return v.query[e]&&"string"==typeof v.query[e]?v.query[e]:null}return s((async()=>{const e=N("inviterId"),a=N("inviteeId"),n=N("token");try{if(!n&&!e&&!a)throw new Error(y.baseText("auth.signup.missingTokenError"));E.value=e??void 0,x.value=a??void 0,I.value=n??void 0,T.value=(await i.validateSignupToken({inviteeId:x.value,inviterId:E.value,token:I.value})).inviter}catch(t){b.showError(t,y.baseText("auth.signup.tokenValidationError")),m.replace({name:g.SIGNIN})}})),(e,t)=>(a(),o(p,{form:h,"form-loading":w.value,subtitle:S.value,onSubmit:j},null,8,["form-loading","subtitle"]))}}),e("default",b)}}})); //# sourceMappingURL=SignupView-legacy-De_3ybBy.js.map