import{d as u,i as y,q as k,H as f,as as x,J as n,n as r,o as t,a as i,w as h,b as l,x as g,e as c,j as w,k as C}from"./index.29cf2edd.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              */import{_ as b}from"./Type.ec60a9ee.js";/* empty css              */import"./filters.69c883c5.js";const R={key:1},J=u({__name:"UserRole",setup(B){const d=[{title:"Role",dataIndex:"role",key:"role"},{title:"Name",dataIndex:"name",key:"name"},{title:"Role Policies",dataIndex:"details",key:"details"},{title:"Action",key:"action"}];let a=y();k(async()=>{await m()});const m=async()=>{f(),x.getRoles().then(e=>{n(),a.value=e.data}).catch(e=>{n(),r.error(e.message)})};return(e,o)=>{const p=g;return t(),i(p,{"data-source":l(a),columns:d},{bodyCell:h(({column:s,text:v,record:_,index:I})=>[s.key==="role"?(t(),i(b,{key:0,type:_.role},null,8,["type"])):c("",!0),s.key==="action"?(t(),w("span",R,[C("a",{onClick:o[0]||(o[0]=N=>l(r).warn("Can't modify, The process should do by technical team"))},"View")])):c("",!0)]),_:1},8,["data-source"])}}});export{J as default};
