UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.47 kB
(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.13.4`}}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]=`6f80f9f3-4df6-44d7-bcff-128d4a329cc8`,e._sentryDebugIdIdentifier=`sentry-dbid-6f80f9f3-4df6-44d7-bcff-128d4a329cc8`)})()}catch{}import{$ as e,Ft as t,N as n,Nt as r,w as i}from"./vue.runtime.esm-bundler-D9KLAxvJ.js";import{bt as a}from"./_MapCache-CUJwh2qp.js";import{_t as o}from"./src-wni2AGA3.js";import"./sanitize-html-my1ogl5v.js";import{As as s,Tr as c,t as l}from"./users.store-BHWXXawf.js";import{ms as u}from"./constants-CIP7tKq1.js";import"./merge-BqvKZ38d.js";import"./_baseOrderBy-CaKruttV.js";import"./dateformat-CYfyw486.js";import"./useDebounce-CTeIt-cH.js";import"./sso.store-DmM4R1YZ.js";import{t as d}from"./AuthView-CVr-30Cu.js";var f=n({__name:`SetupView`,setup(n){let f=s(),p=l(),m=c(),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:u.HOMEPAGE}):await g.push({name:u.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-QnsPxCu2.js.map