UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.73 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.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]=`69c0ae71-6a37-43eb-89d6-10ca6272ea50`,e._sentryDebugIdIdentifier=`sentry-dbid-69c0ae71-6a37-43eb-89d6-10ca6272ea50`)})()}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"./AuthView-Cz7XUKDy.js";var d=n({__name:`SamlOnboarding`,setup(n){let d=o(),f=a(),p=s(),m=c(),h=t(!1),g=r({title:f.baseText(`auth.signup.setupYourAccount`),buttonText:f.baseText(`auth.signup.finishAccountSetup`),inputs:[{name:`firstName`,initialValue:m.currentUser?.firstName,properties:{label:f.baseText(`auth.firstName`),maxlength:32,required:!0,autocomplete:`given-name`,capitalize:!0}},{name:`lastName`,initialValue:m.currentUser?.lastName,properties:{label:f.baseText(`auth.lastName`),maxlength:32,required:!0,autocomplete:`family-name`,capitalize:!0}}]}),_=e=>`firstName`in e&&`lastName`in e,v=async e=>{if(_(e))try{h.value=!0,await m.updateUserName(e),await d.push({name:l.HOMEPAGE})}catch(e){h.value=!1,p.showError(e,`Error`,e.message)}};return(t,n)=>(e(),i(u,{form:g,"form-loading":h.value,onSubmit:v},null,8,[`form`,`form-loading`]))}});export{d as default}; //# sourceMappingURL=SamlOnboarding-BtsKWgYt.js.map