UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.93 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]=`ecb35294-67df-4b3c-8c8e-aeec067ec510`,e._sentryDebugIdIdentifier=`sentry-dbid-ecb35294-67df-4b3c-8c8e-aeec067ec510`)})()}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{Tr as s,t as c}from"./users.store-BHWXXawf.js";import{ms as l}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 u}from"./AuthView-CVr-30Cu.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-DiinXApI.js.map