n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.84 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(["./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js"],(function(e,n){var t,o,i,d;function r(e){const[n,r,a]=(e??"").split("/"),s=t(n)?n:o.Output,u=i(r)?r:d.Main;let c=parseInt(a,10);return isNaN(c)&&(c=0),{mode:s,type:u,index:c}}function a({mode:e,type:n=d.Main,index:t=0}){return`${e}/${n}/${t}`}return e({a:function(e,n,t){return{source:e.id,sourceHandle:a({mode:o.Output,type:t[0].type,index:t[0].index}),target:n.id,targetHandle:a({mode:o.Input,type:t[1].type,index:t[1].index})}},c:r,i:function(e,n,t){const o=e?.name??"",{type:i,index:d}=r(t.sourceHandle),a=n?.name??"",{type:s,index:u}=r(t.targetHandle);return[{node:o,type:i,index:d},{node:a,type:s,index:u}]},l:function(e){return["INPUT","TEXTAREA"].includes(e.tagName)||null!==e.closest("[contenteditable]")||null!==e.closest(".ignore-key-press-canvas")},n:a,o:function(e,n){const t=[],i=new Map(n.map((e=>[e.name,e.id])));return Object.keys(e).forEach((n=>{const d=i.get(n)??"";Object.keys(e[n]).forEach((r=>{e[n][r]?.forEach(((e,s)=>{e?.forEach((e=>{const u=e.node,c=i.get(u)??"",l=e.type,f=e.index,y=a({mode:o.Output,type:r,index:s}),p=a({mode:o.Input,type:l,index:f}),g=`[${(x={source:d,sourceHandle:y,target:c,targetHandle:p}).source}/${x.sourceHandle}][${x.target}/${x.targetHandle}]`;var x;d&&c&&t.push({id:g,source:d,target:c,sourceHandle:y,targetHandle:p,data:{source:{node:n,index:s,type:r},target:{node:u,index:f,type:l}}})}))}))}))})),t},r:function(e,n=0){const t=[...e],o=4-n-(t.length-n);if(t.length<4)for(let i=0;i<o;i++)t.splice(n+i,0,null);return t},s:function(e,n=[]){return"string"==typeof e?(console.warn("Node endpoints have not been evaluated",e),[]):e.map(((t,o)=>{const r="string"==typeof t?t:t.type,a=i(r)?r:d.Main,s="string"==typeof t?n[o]:t.displayName,u=e.slice(0,o+1).filter((e=>("string"==typeof e?e:e.type)===a)).length-1,c="string"!=typeof t&&t.required,l="string"==typeof t?void 0:t.maxConnections;return{type:a,index:u,label:s,...l?{maxConnections:l}:{},...c?{required:c}:{}}}))},t:function(e,n){return!(e.x+e.width<=n.x||n.x+n.width<=e.x||e.y+e.height<=n.y||n.y+n.height<=e.y)}}),{setters:[function(e){t=e.ci,o=e.mi,i=e.ui},function(e){e.K,d=e.ho}],execute:function(){try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(n=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="070281ee-2ca7-4cb1-ac6a-f092bd997730",e._sentryDebugIdIdentifier="sentry-dbid-070281ee-2ca7-4cb1-ac6a-f092bd997730")}catch(e){}var e,n}}}));
//# sourceMappingURL=canvas.utils-legacy-BYFKir1g.js.map