import{r as s,j as t}from"./vendor-ClLR6ncd.js";import{a as e,r as a}from"./useRoles-ILow3L6S.js";import{P as n,a as c,S as l,A as u,b as x,c as j}from"./ColorPicker-C_MxKI-N.js";import{i as y,f as d}from"./index-OtVJl4GC.js";import"./lodash-ZyeDnt0e.js";import{D as o}from"./Divider-DZzUGEvZ.js";import"./useEntity-C2GgsMNR.js";import"./model-C9Idzwgo.js";import"./Messages-BRmQDxrZ.js";import"./index-P0l3Ayr4.js";import"./CreateDialogContext-Buan56-U.js";import"./index-DY-IkI-n.js";import"./DialogContent-DR8Wx7Lo.js";import"./DialogTitle-i0lt2jWQ.js";import"./Box-Co2WcNPC.js";import"./index-GjHpFX-6.js";import"./pluralize-BF8NJH6e.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./ui-DWck426r.js";import"./Person-UulRDhfg.js";import"./Storage-DvymGqui.js";import"./MenuItem-CCerWMyq.js";import"./dividerClasses-DvO85-mA.js";import"./OptionallyDenseMuiTable-D7b58l1V.js";import"./TableRow-CGDSOtFZ.js";import"./TableContainer-CN5gAdqf.js";import"./Add-CLrXAvOx.js";import"./Delete-BD9BsoWc.js";import"./ui-C5v50YHw.js";import"./Toolbar-Dprnudzf.js";import"./ui-DKQGUVKw.js";import"./AccordionDetails-Bqc4B-Ut.js";import"./TypographyWithTooltip-BFAG3Va9.js";import"./SmallStandardSelect-7k6-Wr8Q.js";import"./ui-DKzyPIqx.js";import"./useNamespaces-B-2wwTCG.js";import"./model-DgFcCvKB.js";import"./WithMeasure-BDk9QPMF.js";import"./model-Dfrorm_S.js";import"./highlightSearch-BTHB3jgf.js";import"./TableSortLabel-BJFq2axQ.js";import"./Link-BLwKPJFF.js";import"./Autocomplete-Cjt7Q9VV.js";import"./Chip-DoCs8Smb.js";import"./index-BpKmttxq.js";import"./model-mC-LLJuv.js";import"./SyncingMessage-Y9_Q8a92.js";import"./usePrevious-BP64N3hu.js";import"./Check-zAjPzJBD.js";import"./ui-CUPIiWif.js";import"./Avatar-FLlqk0a0.js";async function f(m,r){return await y({url:d(m,r,"color")})}function yt(){const m=s.useCallback(({entityInfo:r,name:i,isFetching:p})=>t.jsxs(t.Fragment,{children:[t.jsx(n,{entityName:i,permissions:r.permissions}),t.jsx(o,{}),t.jsx(c,{isFetching:p,entityName:i,access:r.access}),t.jsx(o,{}),t.jsx(l,{isFetching:p,entityName:i,securityFilters:r.securityFilters}),t.jsx(o,{}),t.jsx(u,{entityName:i,entityKind:"roles"}),t.jsx(o,{}),t.jsx(x,{entityName:i,entityKind:"roles",colorFetcher:f})]}),[]);return t.jsx(j,{contextValue:a,useData:e,entityKind:"role",children:m})}export{yt as default};
