1import{E as l,M as m,Tt as o,X as a,q as u,t as _,w as t}from"./vue.esm-bundler-oxAUYVOu.js";import{t as p}from"./axios-CYWqtgGi.js";import{n as c}from"./i18n-BYvtSVlQ.js";import{h as d}from"./useApi-BPuI6ZR9-CdqwwY9R.js";import{n as v}from"./BaseError-VGoTG76J.js";import{t as f}from"./OrbitLoadingIndicator-V8MOoKwO.js";import{t as y}from"./RolesEdit-CK7wbH29.js";_();var g={"data-role-edit-page":""},b=m({__name:"RoleEdit",setup(h){const r=d(),i=o(!0),s=o(""),e=o({company:{id:0,uuid:"",name:""},role:{id:0,name:"",permissions:[],users:[]},role_permissions:{},user_permissions:[],action:""});return u(async()=>{try{const n=await p.get(`/company/${r.params.company}/role/${r.params.role}/edit`,{headers:{Accept:"application/json"}});e.value=n.data}catch{s.value=c("something_went_wrong_please_try_again")}finally{i.value=!1}}),(n,k)=>(a(),l("div",g,[i.value?(a(),t(f,{key:0,class:"mx-auto my-8"})):s.value?(a(),t(v,{key:1,text:s.value},null,8,["text"])):(a(),t(y,{key:2,company:e.value.company,"role-permissions":e.value.role_permissions,"role-object":e.value.role,action:e.value.action,"user-permissions":e.value.user_permissions},null,8,["company","role-permissions","role-object","action","user-permissions"]))]))}}),q=b;export{q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.