UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.15 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,t){var o,s,r,n,l,a,c,i,d,u,f,y,g;return{setters:[function(e){o=e.Ft,s=e.S},function(e){r=e.$s,n=e.As,l=e.Qs,a=e.Zs,c=e.ec,i=e.nc,d=e.rc,u=e.tc},function(e){e.os,f=e.ss},function(e){y=e.j,g=e.r}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(p=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[p]="2733c3c2-23be-43d1-aedc-994d0aebf952",t._sentryDebugIdIdentifier="sentry-dbid-2733c3c2-23be-43d1-aedc-994d0aebf952")}catch(t){}var t,p;e("t",y("roles",(()=>{const e=g(),t=n(),y=o({global:[],project:[],credential:[],workflow:[],secretsProviderConnection:[]}),p=o(["project:viewer","project:chatUser","project:editor","project:admin"]),w=s((()=>new Map(p.value.map(((e,t)=>[e,t]))))),b=s((()=>y.value.project.filter((e=>e.slug!==f)).filter((e=>t.isChatFeatureEnabled||"project:chatUser"!==e.slug)).sort(((e,t)=>(w.value.get(e.slug)??Number.MAX_SAFE_INTEGER)-(w.value.get(t.slug)??Number.MAX_SAFE_INTEGER))))),j=s((()=>y.value.credential.filter((e=>"credential:owner"!==e.slug)))),A=s((()=>y.value.workflow.filter((e=>"workflow:owner"!==e.slug))));return{roles:y,processedProjectRoles:b,processedCredentialRoles:j,processedWorkflowRoles:A,fetchRoles:async()=>{y.value=await i(e.restApiContext)},createProjectRole:async t=>await a(e.restApiContext,t),fetchRoleBySlug:async t=>await c(e.restApiContext,t),updateProjectRole:async(t,o)=>await d(e.restApiContext,t,o),deleteProjectRole:async t=>await l(e.restApiContext,t),fetchRoleAssignments:async t=>await r(e.restApiContext,t),fetchRoleProjectMembers:async(t,o)=>await u(e.restApiContext,t,o)}})))}}})); //# sourceMappingURL=roles.store-legacy-DCbwnO8i.js.map