n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.76 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 a,n,s,i,o,r,l,u,c,f,d,p;return{setters:[function(e){a=e.$,n=e.Ft,s=e.N,i=e.Nt,o=e.w},function(e){r=e.bt},function(e){l=e._t},function(e){},function(e){u=e.As,c=e.Tr,f=e.t},function(e){d=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:{},(m=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[m]="0ba037f7-ee79-477a-95fc-df1e3343f48e",t._sentryDebugIdIdentifier="sentry-dbid-0ba037f7-ee79-477a-95fc-df1e3343f48e")}catch(t){}var t,m;e("default",s({__name:"SetupView",setup(e){const t=u(),s=f(),m=c(),b=r(),g=l(),y=n(!1),h=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"}}]}),w=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:d.HOMEPAGE}):await g.push({name:d.USERS_SETTINGS})}catch(a){m.showError(a,b.baseText("auth.setup.settingUpOwnerError"))}y.value=!1};return(e,t)=>(a(),o(p,{form:h,"form-loading":y.value,"data-test-id":"setup-form",onSubmit:w},null,8,["form","form-loading"]))}}))}}}));
//# sourceMappingURL=SetupView-legacy-DgzYWvdm.js.map