n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.42 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.16.1"}}catch(e){}}(),System.register(["./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./useRootStore-legacy-CC08el-l.js","./nodeTransforms-legacy-BzsOh7r-.js","./templateTransforms-legacy-Ab-iJUKf.js"],(function(e,t){var o,n,a,s,r,i,l,d;async function c(e,t){const o=e.getFullTemplateById(t);return o||(await e.fetchTemplateById(t),e.getFullTemplateById(t))}return e({n:async function(e){const{nodeTypesStore:t,templateId:n,templatesStore:a}=e,[l]=await Promise.all([c(a,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:o,inNewBrowserTab:n=!1,telemetry:a,source:r}=e;a.track("User opened cred setup",{source:r});const i={name:s.TEMPLATE_SETUP,params:{id:o}};if(n){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:a,inNewBrowserTab:r,router:i}=e,l={name:s.TEMPLATE_IMPORT,params:{id:n}},d={source:"workflow",template_id:o(n),wf_template_repo_session_id:a.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:o,rootStore:s,template:r,workflowsStore:i}=e,c=await n(s.restApiContext,{name:r.name});let f=l(o,r.workflow.nodes,t);e.clearResourceLocators&&(f=d(f));const u=a(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){o=e.Ea,n=e.ka,a=e.ln},function(e){s=e.Qo},function(e){r=e.h},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]="d4975cbd-8680-4f14-990a-5ea02f22134e",e._sentryDebugIdIdentifier="sentry-dbid-d4975cbd-8680-4f14-990a-5ea02f22134e")}catch(e){}var e,t}}}));
//# sourceMappingURL=templateActions-legacy-BLa1ZN-O.js.map