import"./bootstrap.esm-Bb7dPm-H.js";import{d as a}from"./datatables-I6jthWPb.js";import{i as r}from"./tooltip-manager-D9RaGGY4.js";import"./datatables-Bo82YvhT.js";/* empty css                                  */document.addEventListener("DOMContentLoaded",function(){const t=document.getElementById("permissions-table");if(!t)return;const n=t.dataset.recordsUrl;$("#permissions-table").DataTable({...a.getDefaultConfig(),serverSide:!0,pageLength:-1,lengthMenu:[[50,100,-1],[50,100,"All"]],dom:'<"d-flex justify-content-between align-items-center mb-3"<"d-flex align-items-center"l><"d-flex align-items-center"f>>t<"d-flex justify-content-between align-items-center mt-3"<"d-flex align-items-center"i><"d-flex align-items-center"p>>',ajax:{url:n,type:"GET",headers:{Authorization:"Bearer "+document.querySelector('meta[name="api-token"]').getAttribute("content")}},columns:[{data:"name",name:"name",render:function(e){return`<code class="small">${e}</code>`}},{data:"scope",name:"scope",orderable:!1,render:function(e){return`<span class="badge bg-secondary">${e}</span>`}},{data:"description",name:"description",orderable:!1,render:function(e){return`<span class="text-muted small">${e}</span>`}},{data:"roles_count",name:"roles_count",render:function(e){return e===0?'<span class="text-muted">0</span>':`<span class="badge bg-primary">${e}</span>`}}],drawCallback:function(){r()}})});
