UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.42 kB
!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(["./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./nodeTransforms-legacy-CEnqyD1g.js","./templateTransforms-legacy-bPWknje4.js"],(function(e,t){var n,o,a,s,r,i,l,d;async function c(e,t){const n=e.getFullTemplateById(t);return n||(await e.fetchTemplateById(t),e.getFullTemplateById(t))}return e({n:async function(e){const{nodeTypesStore:t,templateId:n,templatesStore:o}=e,[l]=await Promise.all([c(o,n),t.loadNodeTypesIfNotLoaded()]);r(l),function(e,t){return t.workflow.nodes.some((t=>i(e,t)))}(t,l)?await async function(e){const{router:t,templateId:n,inNewBrowserTab:o=!1,telemetry:a,source:r}=e;a.track("User opened cred setup",{source:r});const i={name:s.TEMPLATE_SETUP,params:{id:n}};if(o){const e=t.resolve(i);window.open(e.href,"_blank")}else await t.push(i)}(e):await async function(e){const{externalHooks:t,templateId:n,templatesStore:o,inNewBrowserTab:r,router:i}=e,l={name:s.TEMPLATE_IMPORT,params:{id:n}},d={source:"workflow",template_id:a(n),wf_template_repo_session_id:o.currentSessionId};if(await t.run("templatesWorkflowView.openWorkflow",d),r){const e=i.resolve(l);window.open(e.href,"_blank")}else await i.push(l)}(e)},t:async function(e){const{credentialOverrides:t,nodeTypeProvider:a,rootStore:s,template:r,workflowsStore:i}=e,c=await o(s.restApiContext,{name:r.name});let f=l(a,r.workflow.nodes,t);e.clearResourceLocators&&(f=d(f));const u=n(f),w=r.workflow.connections,p={name:c.name,nodes:u,connections:w,active:!1,meta:{templateId:r.id.toString()},pinData:r.readyToDemo?r.workflow.pinData??{}:{}};return await i.createNewWorkflow(p)}}),{setters:[function(e){n=e.Gn,o=e.Oa,a=e.Ta},function(e){s=e.ms},function(e){r=e.v},function(e){i=e.r},function(e){l=e.i,d=e.t}],execute:function(){try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(t=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e73c14ea-66fb-4574-bd37-12622226aa07",e._sentryDebugIdIdentifier="sentry-dbid-e73c14ea-66fb-4574-bd37-12622226aa07")}catch(e){}var e,t}}})); //# sourceMappingURL=templateActions-legacy-CUe9p3Wy.js.map