n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.31 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`cbdd07ad-41bb-41b4-93e6-23d756c72849`,e._sentryDebugIdIdentifier=`sentry-dbid-cbdd07ad-41bb-41b4-93e6-23d756c72849`)})()}catch{}import{$ as e,Ft as t,N as n,Nt as r,w as i}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{at as a}from"./core-Bz5WjPxS.js";import{lt as o}from"./src-XqE2yCpG.js";import{Pn as s,t as c}from"./users.store-xP93bV7X.js";import{Qo as l}from"./constants-DuQbSl-q.js";import{t as u}from"./settings.store-CAFiYCMH.js";import{t as d}from"./AuthView-Cz7XUKDy.js";var f=n({__name:`SetupView`,setup(n){let f=u(),p=c(),m=s(),h=a(),g=o(),_=t(!1),v=r({title:h.baseText(`auth.setup.setupOwner`),buttonText:h.baseText(`auth.setup.next`),inputs:[{name:`email`,properties:{label:h.baseText(`auth.email`),type:`email`,required:!0,validationRules:[{name:`VALID_EMAIL`}],autocomplete:`email`,capitalize:!0}},{name:`firstName`,properties:{label:h.baseText(`auth.firstName`),maxlength:32,required:!0,autocomplete:`given-name`,capitalize:!0}},{name:`lastName`,properties:{label:h.baseText(`auth.lastName`),maxlength:32,required:!0,autocomplete:`family-name`,capitalize:!0}},{name:`password`,properties:{label:h.baseText(`auth.password`),type:`password`,required:!0,validationRules:[{name:`DEFAULT_PASSWORD_RULES`}],infoText:h.baseText(`auth.defaultPasswordRequirements`),autocomplete:`new-password`,capitalize:!0}},{name:`agree`,properties:{label:h.baseText(`auth.agreement.label`),type:`checkbox`}}]}),y=async e=>{try{let t=f.showSetupPage;if(_.value=!0,await p.createOwner(e),e.agree===!0)try{await p.submitContactEmail(e.email.toString(),e.agree)}catch{}t?await g.push({name:l.HOMEPAGE}):await g.push({name:l.USERS_SETTINGS})}catch(e){m.showError(e,h.baseText(`auth.setup.settingUpOwnerError`))}_.value=!1};return(t,n)=>(e(),i(d,{form:v,"form-loading":_.value,"data-test-id":`setup-form`,onSubmit:y},null,8,[`form`,`form-loading`]))}});export{f as default};
//# sourceMappingURL=SetupView-59r8vTo6.js.map