UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.57 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]=`3d8e619c-7744-482e-ab73-b4e8cc7d6d2f`,e._sentryDebugIdIdentifier=`sentry-dbid-3d8e619c-7744-482e-ab73-b4e8cc7d6d2f`)})()}catch{}import{w as e}from"./users.store-xP93bV7X.js";import{$i as t,Ai as n,Et as r,ia as i,mr as a,pa as o,tt as s}from"./constants-DuQbSl-q.js";function c(e,n){let r=e.getNodeType(n.type,n.typeVersion);if(!r?.credentials)return[];let a=r.credentials,o=i(r.properties,n.parameters,!0,!1,n,r)??n.parameters;return a.filter(e=>t(o,e,n,r))}function l(e,t){return c(e,t).length>0}function u(e,t){return e.credentials?!!e.credentials[t]:!1}function d(e,t){return c(e,t).every(e=>u(t,e.name))}var f=[a,r,s];function p(e){let t=[];return n(e.parameters,t),t.length>0||f.includes(e.type)||e.type.includes(`vectorStore`)&&e.parameters?.mode===`retrieve-as-tool`||o(e.type)}function m(n,r){if(!r)return n;let a=r?.type?e().getNodeType(r.type,r.typeVersion):null;if(!a||!Array.isArray(a.properties))return n;let o=i(a.properties,r.parameters,!0,!1,r,a)??r.parameters;return n.filter(e=>!e.displayOptions&&!e.disabledOptions?!0:t(o,e,r,a,void 0,`displayOptions`))}export{m as a,c as i,d as n,p as o,l as r,f as t}; //# sourceMappingURL=nodeTransforms-lrtn9NPZ.js.map