n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 1.98 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(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js"],(function(e,t){var n,a,s,i,r,o,c,l,u;return e("t",(function(){const e=u(),t=r(),d=s(),f=n([]),y=n({}),v=n([]),p=n(!1),b=n(!1),g=a((()=>d.hasScope("externalSecretsProvider:create"))),h=a((()=>d.hasScope("externalSecretsProvider:update"))),S=a((()=>p.value||b.value)),w=a((()=>e.isEnterpriseFeatureEnabled[i.ExternalSecrets])),E=a((()=>[...v.value].sort(((e,t)=>t.name.localeCompare(e.name)))));return{providerTypes:a((()=>f.value)),fetchProviderTypes:async function(){p.value=!0;try{f.value=await c(t.restApiContext)}finally{p.value=!1}},activeProviders:E,fetchActiveConnections:async function(){if(d.hasScope("externalSecretsProvider:list")){b.value=!0;try{v.value=await o(t.restApiContext)}catch{v.value=[]}finally{b.value=!1}}},fetchConnection:async function(e){const n=await l(t.restApiContext,e),a=v.value.findIndex((t=>t.name===e));-1!==a&&(v.value[a]=n)},canCreate:g,canUpdate:h,isLoading:S,isEnterpriseExternalSecretsEnabled:w,secrets:a((()=>y.value))}})),{setters:[function(e){n=e.Ft,a=e.S},function(e){s=e.mi},function(e){i=e.Qc},function(e){r=e.t},function(e){o=e.At,c=e.jt,l=e.kt,u=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]="cc544778-1d9d-4298-ba11-97327c7e9e1b",e._sentryDebugIdIdentifier="sentry-dbid-cc544778-1d9d-4298-ba11-97327c7e9e1b")}catch(e){}var e,t}}}));
//# sourceMappingURL=useSecretsProvidersList.ee-legacy-CYxg4xAm.js.map