n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 1.69 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.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./users.store-legacy-OKuN0qAC.js","./_baseOrderBy-legacy-PsQY_Pvh.js"],(function(e,t){var a,n,l,i,s,r,o,d,u,y;return{setters:[function(e){a=e.Ft,n=e.S},function(e){l=e.al,i=e.il,s=e.nl,r=e.rl,o=e.sl,d=e.tl},function(e){u=e.j,y=e.r}],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]="0a1c3290-e7e6-448b-a321-280a0a65d50e",t._sentryDebugIdIdentifier="sentry-dbid-0a1c3290-e7e6-448b-a321-280a0a65d50e")}catch(t){}var t,c;e("t",u(o.API_KEYS,(()=>{const e=a([]),t=a([]),o=y(),u=n((()=>e.value.sort(((e,t)=>t.createdAt.localeCompare(e.createdAt))))),c=n((()=>e.value.reduce(((e,t)=>(e[t.id]=t,e)),{})));return{getAndCacheApiKeys:async()=>(e.value.length||(e.value=await i(o.restApiContext)),e.value),createApiKey:async t=>{const a=await d(o.restApiContext,t),{rawApiKey:n,...l}=a;return e.value.push(l),a},deleteApiKey:async t=>{await s(o.restApiContext,t),e.value=e.value.filter((e=>e.id!==t))},updateApiKey:async(e,t)=>{await l(o.restApiContext,e,t),c.value[e].label=t.label,c.value[e].scopes=t.scopes},getApiKeyAvailableScopes:async()=>(t.value=await r(o.restApiContext),t.value),apiKeysSortByCreationDate:u,apiKeysById:c,apiKeys:e,availableScopes:t}})))}}}));
//# sourceMappingURL=apiKeys.store-legacy-BVkbnZIb.js.map