UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.93 kB
!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(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./_baseOrderBy-legacy-PsQY_Pvh.js"],(function(e,n){var t,a,r,s,i,c,o,l,u;return e("t",(function(){const e=r(),n=u(),d=s(),f=t([]),y=t({}),v=t([]),p=t(!1),b=t(!1),g=a((()=>d.hasScope("externalSecretsProvider:create"))),h=a((()=>d.hasScope("externalSecretsProvider:update"))),w=a((()=>p.value||b.value)),S=a((()=>e.isEnterpriseFeatureEnabled[l.ExternalSecrets])),E=a((()=>[...v.value].sort(((e,n)=>n.name.localeCompare(e.name)))));return{providerTypes:a((()=>f.value)),fetchProviderTypes:async function(){p.value=!0;try{f.value=await i(n.restApiContext)}finally{p.value=!1}},activeProviders:E,fetchActiveConnections:async function(){if(d.hasScope("externalSecretsProvider:list")){b.value=!0;try{v.value=await o(n.restApiContext)}catch{v.value=[]}finally{b.value=!1}}},fetchConnection:async function(e){const t=await c(n.restApiContext,e),a=v.value.findIndex((n=>n.name===e));-1!==a&&(v.value[a]=t)},canCreate:g,canUpdate:h,isLoading:w,isEnterpriseExternalSecretsEnabled:S,secrets:a((()=>y.value))}})),{setters:[function(e){t=e.Ft,a=e.S},function(e){r=e.As,s=e.Cr,i=e.bc,c=e.vc,o=e.yc},function(e){l=e.pl},function(e){u=e.r}],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]="19ac02ab-934a-4e46-990f-406d57c03544",e._sentryDebugIdIdentifier="sentry-dbid-19ac02ab-934a-4e46-990f-406d57c03544")}catch(e){}var e,n}}})); //# sourceMappingURL=useSecretsProvidersList.ee-legacy-DOAt28qJ.js.map