n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.13 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"],(function(e,n){var t,o,a,i,s,r,c,d,l,f,u;return{setters:[function(e){t=e.$,o=e.E,a=e.N,i=e.X},function(e){s=e.bt},function(e){r=e._t,c=e.gt},function(e){},function(e){d=e.Dn,l=e.kr,f=e.s},function(e){u=e.ms},function(e){},function(e){},function(e){},function(e){}],execute:function(){try{n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(g=(new n.Error).stack)&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[g]="ebc50072-08fb-46d1-9c8b-16fb3ac5020a",n._sentryDebugIdIdentifier="sentry-dbid-ebc50072-08fb-46d1-9c8b-16fb3ac5020a")}catch(n){}var n,g;e("default",a({__name:"WorkflowOnboardingView",setup(e){const a=l(),g=d(),w=f(),y=r(),b=c(),p=s();return i((async()=>{const e=b.params.id;e&&"string"==typeof e?await(async e=>{try{a.startLoading();const n=await g.getFixedWorkflowTemplate(e);if(!n)throw new Error;const t=p.baseText("onboarding.title",{interpolate:{name:n.name}}),o=await w.createNewWorkflow({name:t,connections:n.workflow.connections,nodes:n.workflow.nodes.map(w.convertTemplateNodeToNodeUi),pinData:n.workflow.pinData,settings:n.workflow.settings,meta:{onboardingId:e}});await y.replace({name:u.WORKFLOW,params:{name:o.id},query:{onboardingId:e}}),a.stopLoading()}catch(n){throw await y.replace({name:u.NEW_WORKFLOW}),a.stopLoading(),new Error(`Could not load onboarding template ${e}`)}})(e):await y.replace({name:u.NEW_WORKFLOW})})),(e,n)=>(t(),o("div"))}}))}}}));
//# sourceMappingURL=WorkflowOnboardingView-legacy-CW4TiyA2.js.map