n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.05 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(t){}}(),System.register(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js"],(function(t,e){var n,i,o,a,r,s,c,u,d,l,f,y;return t("t",(function(t){const e=i(),g=n("initializing"),p=n(void 0),w=n(!1),C=n(!1);return{connectionState:g,connectionError:p,isLoading:w,isTesting:C,setConnectionState:function(t){g.value=t},getConnection:async function(n){w.value=!0;try{return t?await a(e.restApiContext,t,n):await y(e.restApiContext,n)}finally{w.value=!1}},createConnection:async function(n){return t?await f(e.restApiContext,t,{providerKey:n.providerKey,type:n.type,projectIds:[t],settings:n.settings}):await o(e.restApiContext,{...n,isGlobal:!0})},updateConnection:async function(n,i){return t?await s(e.restApiContext,t,n,{settings:i.settings}):await c(e.restApiContext,n,i)},testConnection:async function(n){C.value=!0;try{const{testState:i,error:o}=t?await d(e.restApiContext,t,n):await l(e.restApiContext,n);return g.value="tested"===i?"connected":i,p.value=o,g.value}catch{return g.value="error","error"}finally{C.value=!1}},reloadConnection:async function(t){return await u(e.restApiContext,t)},activateConnection:async function(t){return await r(e.restApiContext,t)}}})),{setters:[function(t){n=t.Ft},function(t){i=t.t},function(t){o=t.Ct,a=t.Dt,r=t.Et,s=t.Ft,c=t.It,u=t.Mt,d=t.Nt,l=t.Pt,f=t.St,y=t.kt}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(e=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="de85d16d-5987-4070-9279-a592ea2c5a21",t._sentryDebugIdIdentifier="sentry-dbid-de85d16d-5987-4070-9279-a592ea2c5a21")}catch(t){}var t,e}}}));
//# sourceMappingURL=useSecretsProviderConnection.ee-legacy-CNUlIa1x.js.map