n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 1.7 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","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js"],(function(e,t){var n,a,i,s,l,o,d,u,r,y;return{setters:[function(e){n=e.Ft,a=e.S},function(e){i=e.T,s=e.t},function(e){l=e.An,o=e.Sn,d=e.bn,u=e.vn,r=e.xn,y=e.yn}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(c=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="b14bd623-47be-492d-b6a1-22e73d6358eb",t._sentryDebugIdIdentifier="sentry-dbid-b14bd623-47be-492d-b6a1-22e73d6358eb")}catch(t){}var t,c;e("t",i(l.API_KEYS,(()=>{const e=n([]),t=n([]),i=s(),l=a((()=>e.value.sort(((e,t)=>t.createdAt.localeCompare(e.createdAt))))),c=a((()=>e.value.reduce(((e,t)=>(e[t.id]=t,e)),{})));return{getAndCacheApiKeys:async()=>(e.value.length||(e.value=await r(i.restApiContext)),e.value),createApiKey:async t=>{const n=await u(i.restApiContext,t),{rawApiKey:a,...s}=n;return e.value.push(s),n},deleteApiKey:async t=>{await y(i.restApiContext,t),e.value=e.value.filter((e=>e.id!==t))},updateApiKey:async(e,t)=>{await o(i.restApiContext,e,t),c.value[e].label=t.label,c.value[e].scopes=t.scopes},getApiKeyAvailableScopes:async()=>(t.value=await d(i.restApiContext),t.value),apiKeysSortByCreationDate:l,apiKeysById:c,apiKeys:e,availableScopes:t}})))}}}));
//# sourceMappingURL=apiKeys.store-legacy-C6epo5dQ.js.map