n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.52 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","./settings.store-legacy-I6rZOvfF.js","./AuthView-legacy-Wj84asB_.js"],(function(e,t){var a,n,s,i,o,r,l,u,d,c,p,f;return{setters:[function(e){a=e.$,n=e.Ft,s=e.N,i=e.Nt,o=e.w},function(e){r=e.at},function(e){l=e.lt},function(e){u=e.Pn,d=e.t},function(e){c=e.Qo},function(e){p=e.t},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:{},(m=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[m]="59b4cf05-3225-45b1-8d6c-66b63e34a8d7",t._sentryDebugIdIdentifier="sentry-dbid-59b4cf05-3225-45b1-8d6c-66b63e34a8d7")}catch(t){}var t,m;e("default",s({__name:"SetupView",setup(e){const t=p(),s=d(),m=u(),b=r(),g=l(),y=n(!1),w=i({title:b.baseText("auth.setup.setupOwner"),buttonText:b.baseText("auth.setup.next"),inputs:[{name:"email",properties:{label:b.baseText("auth.email"),type:"email",required:!0,validationRules:[{name:"VALID_EMAIL"}],autocomplete:"email",capitalize:!0}},{name:"firstName",properties:{label:b.baseText("auth.firstName"),maxlength:32,required:!0,autocomplete:"given-name",capitalize:!0}},{name:"lastName",properties:{label:b.baseText("auth.lastName"),maxlength:32,required:!0,autocomplete:"family-name",capitalize:!0}},{name:"password",properties:{label:b.baseText("auth.password"),type:"password",required:!0,validationRules:[{name:"DEFAULT_PASSWORD_RULES"}],infoText:b.baseText("auth.defaultPasswordRequirements"),autocomplete:"new-password",capitalize:!0}},{name:"agree",properties:{label:b.baseText("auth.agreement.label"),type:"checkbox"}}]}),h=async e=>{try{const a=t.showSetupPage;if(y.value=!0,await s.createOwner(e),!0===e.agree)try{await s.submitContactEmail(e.email.toString(),e.agree)}catch{}a?await g.push({name:c.HOMEPAGE}):await g.push({name:c.USERS_SETTINGS})}catch(a){m.showError(a,b.baseText("auth.setup.settingUpOwnerError"))}y.value=!1};return(e,t)=>(a(),o(f,{form:w,"form-loading":y.value,"data-test-id":"setup-form",onSubmit:h},null,8,["form","form-loading"]))}}))}}}));
//# sourceMappingURL=SetupView-legacy--bxl04RL.js.map