UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.37 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]=`432fab43-338c-4584-b88c-b1d19f9c62bb`,e._sentryDebugIdIdentifier=`sentry-dbid-432fab43-338c-4584-b88c-b1d19f9c62bb`)})()}catch{}import{S as e}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{cr as t,oa as n,ra as r,s as i}from"./users.store-xP93bV7X.js";function a(a){let o=t(),s=i(),c=e(()=>s.workflowObject),l=e(()=>s.workflowId?n(r(s.workflowId)):void 0);return e(()=>{if(!a.value)return;let e=s.workflowExecutionData,t=a.value.name;function n(){let n=(e?.data?.resultData.runData[t]??[])[0]?.source[0];if(n)return{name:n.previousNode,branchIndex:n.previousNodeOutput??0,runIndex:n.previousNodeRun??0};let r=c.value.getParentNodesByDepth(t,1);if(r.length>0)return{name:r[0].name,branchIndex:r[0].indicies[0]??0,runIndex:0}}return{localResolve:!0,envVars:o.variablesAsObject,workflow:c.value,execution:e,nodeName:t,additionalKeys:{},inputNode:n(),connections:l.value?.connectionsBySourceNode??{}}})}export{a as t}; //# sourceMappingURL=useExpressionResolveCtx-C0HlqAoX.js.map