UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.14 kB
!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","./constants-legacy-2_ytuuS3.js","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js"],(function(e,t){var o,n,r,s,a,l,i,c,d,u,f,g,p;return{setters:[function(e){o=e.Ft,n=e.S},function(e){e.Ho,r=e.Uo},function(e){s=e.T,a=e.t},function(e){l=e.G,i=e.J,c=e.K,d=e.W,u=e.X,f=e.Y,g=e.q,p=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(y=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[y]="2b273cf6-ac33-49a5-8a8b-db6e9622d170",t._sentryDebugIdIdentifier="sentry-dbid-2b273cf6-ac33-49a5-8a8b-db6e9622d170")}catch(t){}var t,y;e("t",s("roles",(()=>{const e=a(),t=p(),s=o({global:[],project:[],credential:[],workflow:[],secretsProviderConnection:[]}),y=o(["project:viewer","project:chatUser","project:editor","project:admin"]),w=n((()=>new Map(y.value.map(((e,t)=>[e,t]))))),b=n((()=>s.value.project.filter((e=>e.slug!==r)).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=n((()=>s.value.credential.filter((e=>"credential:owner"!==e.slug)))),R=n((()=>s.value.workflow.filter((e=>"workflow:owner"!==e.slug))));return{roles:s,processedProjectRoles:b,processedCredentialRoles:j,processedWorkflowRoles:R,fetchRoles:async()=>{s.value=await f(e.restApiContext)},createProjectRole:async t=>await d(e.restApiContext,t),fetchRoleBySlug:async t=>await g(e.restApiContext,t),updateProjectRole:async(t,o)=>await u(e.restApiContext,t,o),deleteProjectRole:async t=>await l(e.restApiContext,t),fetchRoleAssignments:async t=>await c(e.restApiContext,t),fetchRoleProjectMembers:async(t,o)=>await i(e.restApiContext,t,o)}})))}}})); //# sourceMappingURL=roles.store-legacy-Bhhux2Kq.js.map