Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.15.28.86
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
snap /
lxd /
33246 /
share /
lxd-ui /
assets /
[ HOME SHELL ]
Name
Size
Permission
Action
font
[ DIR ]
drwxr-xr-x
img
[ DIR ]
drwxr-xr-x
js
[ DIR ]
drwxr-xr-x
scripts
[ DIR ]
drwxr-xr-x
AutoExpandingTextArea-BXFyAEiG...
151
B
-rw-r--r--
BaseLayout-CiF2D8RH.js
280
B
-rw-r--r--
BulkDeleteButton-B-fvVwh0.js
1.08
KB
-rw-r--r--
CancelOperationBtn-BW2TAzI_.js
1.08
KB
-rw-r--r--
CertificateAdd-BGVwf-VB.js
2.84
KB
-rw-r--r--
CertificateGenerate-bNGS6BFl.j...
9.87
KB
-rw-r--r--
ClusterGroupForm-BiXmM-NU.js
3.25
KB
-rw-r--r--
ClusterList-CZFDB46f.js
5.17
KB
-rw-r--r--
ClusterMemberSelector-B2lzDpCI...
3.71
KB
-rw-r--r--
ClusterSpecificInput-BdiLVA9B....
1.97
KB
-rw-r--r--
ClusterSpecificSelect-DrKUzNev...
2.2
KB
-rw-r--r--
ConfigFieldDescription-BnRkdbo...
335
B
-rw-r--r--
CreateClusterGroup-C6s3qbZf.js
463
B
-rw-r--r--
CreateInstance-BXX4Xa4W.js
27.97
KB
-rw-r--r--
CreateInstanceFromImageBtn-BiE...
527
B
-rw-r--r--
CreateNetwork-BQw2A27w.js
2.88
KB
-rw-r--r--
CreateNetworkForward-BgZF8duA....
1.71
KB
-rw-r--r--
CreateProfile-CCJYKSCK.js
4.04
KB
-rw-r--r--
CreateProject-DTBqJzUb.js
2.83
KB
-rw-r--r--
CreateStoragePool-CuOutvs3.js
2.46
KB
-rw-r--r--
CreateStorageVolume-B0HvyGnH.j...
2.47
KB
-rw-r--r--
CustomIsoList-CQVv4whx.js
5.48
KB
-rw-r--r--
DeleteStoragePoolBtn-BeXLuEnA....
1.62
KB
-rw-r--r--
DeleteStorageVolumeBtn-DIIVYGa...
1.88
KB
-rw-r--r--
DiskSizeSelector-IT5APek6.js
1010
B
-rw-r--r--
EditClusterGroup-DiNIL0Lx.js
761
B
-rw-r--r--
EditNetworkForward-DtcWepYC.js
1.99
KB
-rw-r--r--
ExpandableList-EDeaeb6c.js
323
B
-rw-r--r--
FormEditButton-Cs2eW7Js.js
278
B
-rw-r--r--
FormFooterLayout-B3kcadYt.js
738
B
-rw-r--r--
FormLink-BaU-zsbe.js
879
B
-rw-r--r--
FormMenuItem-ChXfQsFA.js
2.23
MB
-rw-r--r--
FormMenuItem-DyX1CsEw.css
66.66
KB
-rw-r--r--
GroupOrIdentityChangesTable-DQ...
5.11
KB
-rw-r--r--
GroupSelectionActions-Dq47oQd-...
3.18
KB
-rw-r--r--
HelpLink-4LTOsqZO.js
294
B
-rw-r--r--
ImageList-yKBGTFZU.js
11.7
KB
-rw-r--r--
InstanceDetail-BV9hr65t.js
481.49
KB
-rw-r--r--
InstanceDetail-Beg8tuEN.css
3.88
KB
-rw-r--r--
InstanceLinkChip-DfVC8U01.js
4.24
KB
-rw-r--r--
InstanceList-CTEYE5e7.js
24.67
KB
-rw-r--r--
ItemName-DSOx0T0r.js
185
B
-rw-r--r--
Login-CsUYa7ns.js
1.41
KB
-rw-r--r--
Meter-BsdJ73XW.js
487
B
-rw-r--r--
NetworkDetail-RgSS_6Vw.js
12.8
KB
-rw-r--r--
NetworkForwardForm-C18aehvo.js
6.49
KB
-rw-r--r--
NetworkList-B4gWmGGm.js
6.32
KB
-rw-r--r--
NetworkListTable-Ba2LzF-J.js
3.31
KB
-rw-r--r--
NotificationRow-CotZPNAQ.js
157
B
-rw-r--r--
OperationList-D4--05cO.js
3.35
KB
-rw-r--r--
PageHeader-CExPjRLH.js
549
B
-rw-r--r--
PermissionGroups-CkGxgQmn.js
30.89
KB
-rw-r--r--
PermissionIdentities-DDmb7V-C....
12.93
KB
-rw-r--r--
PermissionIdpGroups-yggiVbcG.j...
13.38
KB
-rw-r--r--
ProfileDetail-CQHhNWwW.js
10.94
KB
-rw-r--r--
ProfileDetailsForm-C-rMcUGO.js
2.45
KB
-rw-r--r--
ProfileInstances-DeravO8Q.js
1.46
KB
-rw-r--r--
ProfileList-C7yC3g6E.js
7.11
KB
-rw-r--r--
ProgressBar-CQ2HKUqQ.js
170
B
-rw-r--r--
ProjectConfiguration-rKP8dZtz....
9.04
KB
-rw-r--r--
ProjectForm-GhClr0iv.js
15.12
KB
-rw-r--r--
ProtectedRoute-DYKGChU3.js
214
B
-rw-r--r--
ProxyDeviceForm-B5UDgi1V.js
38.9
KB
-rw-r--r--
RenameHeader-fmgiouA6.js
13.29
KB
-rw-r--r--
ResourceIcon-DZQOrBLA.js
532
B
-rw-r--r--
ResourceLabel-PzB_6v5p.js
317
B
-rw-r--r--
ResourceLink-CS7mH0C3.js
302
B
-rw-r--r--
ScrollableContainer-MJpEXCww.j...
646
B
-rw-r--r--
ScrollableTable-DWT33Lms.js
561
B
-rw-r--r--
SelectableMainTable-C8l8QdDe.j...
2.21
KB
-rw-r--r--
SelectedTableNotification-2DZb...
974
B
-rw-r--r--
Settings-BYi8qROs.js
9.75
KB
-rw-r--r--
SidePanel-DNeaRMst.js
2.84
KB
-rw-r--r--
SnapshotForm-DF9sGEzn.js
1.49
KB
-rw-r--r--
StoragePoolDetail-DT58PBIr.js
6.45
KB
-rw-r--r--
StoragePoolForm-Z62B6Fuh.js
17.07
KB
-rw-r--r--
StoragePoolSelectTable-CXuxJSN...
1.61
KB
-rw-r--r--
StoragePoolSelector-DEvMjaMu.j...
1.48
KB
-rw-r--r--
StoragePoolSize-DyBNKBKy.js
467
B
-rw-r--r--
StoragePools-DK0Gkjq9.js
3.99
KB
-rw-r--r--
StorageUsedBy-sdKGRlgM.js
2.12
KB
-rw-r--r--
StorageVolumeDetail-fQzbPWNW.j...
24.87
KB
-rw-r--r--
StorageVolumeForm-ZPfwK39D.js
8.42
KB
-rw-r--r--
StorageVolumes-DPotlIN6.js
7.26
KB
-rw-r--r--
StorageVolumesFilter-B7pR3OeF....
1.01
KB
-rw-r--r--
TabLinks-BIG_Rdvk.js
360
B
-rw-r--r--
UploadCustomIso-DG12FhN0.js
2.83
KB
-rw-r--r--
UsedByItem-VHA3kVFG.js
945
B
-rw-r--r--
VolumeAddSnapshotBtn-8Qz9xFE-....
4.87
KB
-rw-r--r--
WarningList-DZNTQSpg.js
1.99
KB
-rw-r--r--
YamlNotification-BnmI52ws.js
634
B
-rw-r--r--
YamlSwitch-BXLuxWUh.js
40.62
KB
-rw-r--r--
certificate-kcThcTS9.js
279.99
KB
-rw-r--r--
clusterGroups-BWQNdGSD.js
3.63
KB
-rw-r--r--
images-Du2fhDUO.js
1.22
KB
-rw-r--r--
index-BeIaaTgz.css
661.94
KB
-rw-r--r--
index-BkTFFYvy.js
690.52
KB
-rw-r--r--
index-DW_MHI2K.js
34.19
KB
-rw-r--r--
index.esm-auJ3G_FM.js
38.36
KB
-rw-r--r--
instanceDelete-Bn3xn_NE.js
12.2
KB
-rw-r--r--
instanceOptions-BuFjjn-P.js
1.19
KB
-rw-r--r--
network-forwards-B-h1Yzp9.js
856
B
-rw-r--r--
operations-DIvBacJG.js
757
B
-rw-r--r--
projects-CvA2zMPN.js
789
B
-rw-r--r--
scroll-DPmbgfny.js
26.97
KB
-rw-r--r--
searchAndFilter-DtC_P-vv.js
361
B
-rw-r--r--
snapshots-CEDJtMaf.js
670
B
-rw-r--r--
storage-volumes-tfXkh9eB.js
2.46
KB
-rw-r--r--
useGroups-CCX3qCzO.js
2.91
KB
-rw-r--r--
useImages-LgCYWVgs.js
1.64
KB
-rw-r--r--
useNetworks-D3nHf8AE.js
3.63
KB
-rw-r--r--
useSmallScreen-BvsjT919.js
169
B
-rw-r--r--
useSortTableData-BoXaK1oA.js
393
B
-rw-r--r--
useVolumes-BvpfNVaA.js
1.27
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : PermissionIdentities-DDmb7V-C.js
import{j as e,d as r,a5 as C,r as S,l as M,k as K,c0 as z,q as v,c1 as V,c2 as W,c as J,c3 as X,c4 as Z,ay as ee,c5 as te,p as se,n as ne,au as oe,u as ae,c6 as q,L as ie,C as re}from"./index-BkTFFYvy.js";import{S as le}from"./ScrollableTable-DWT33Lms.js";import{S as ce}from"./SelectableMainTable-C8l8QdDe.js";import{S as de}from"./SelectedTableNotification-2DZbBMZx.js";import{u as ue}from"./useSortTableData-BoXaK1oA.js";import{u as E,g as me,p as pe,G as he,a as ge,b as fe,A as ye,Q as be,T as xe,P as je}from"./GroupOrIdentityChangesTable-DQUOSRjf.js";import{u as $,S as F,p as Ie}from"./SidePanel-DNeaRMst.js";import{P as D}from"./PageHeader-CExPjRLH.js";import{N as O}from"./NotificationRow-CotZPNAQ.js";import{H as Se}from"./HelpLink-4LTOsqZO.js";import{u as Ne,a as Ce}from"./useGroups-CCX3qCzO.js";import{R as ve}from"./ResourceLink-CS7mH0C3.js";import{G as Ge,a as ke}from"./GroupSelectionActions-Dq47oQd-.js";import{B as we}from"./BulkDeleteButton-B-fvVwh0.js";import{I as Te}from"./ItemName-DSOx0T0r.js";import{R as Be}from"./ResourceLabel-PzB_6v5p.js";import{u as Le}from"./useSmallScreen-BvsjT919.js";import"./searchAndFilter-DtC_P-vv.js";import"./ResourceIcon-DZQOrBLA.js";import"./ScrollableContainer-MJpEXCww.js";const Pe=({identities:s,className:a,...u})=>{const{canEditIdentity:m}=E(),l=$(),d=s.length>1?`Modify groups for ${s.length} identities`:"Modify groups",o=s.filter(n=>!m(n)),p=()=>{const n=o.map(i=>` - ${i.name}`).join("");return`You do not have permission to modify ${o.length>1?"some of the selected":"the selected"} ${C("identity",o.length)}:${n}`};return e.jsx(e.Fragment,{children:e.jsxs(r.Button,{onClick:()=>{l.openIdentityGroups()},"aria-label":"Modify groups",title:o.length?p():"Modify groups",className:a,disabled:!!o.length||!s.length||!!l.panel,hasIcon:!0,...u,children:[e.jsx(r.Icon,{name:"user-group"}),e.jsx("span",{children:d})]})})},Fe=({onConfirm:s,close:a,addedGroups:u,removedGroups:m,selectedIdentities:l})=>{const[d,o]=S.useState(!1),p=r.useNotify(),n=$(),i=M(),g=K(),x=me(l,u,m),f=pe(x),j=()=>{o(!0);const w=ge(u,m,l),I=l.map(h=>({...h,groups:w[h.id]}));z(I).then(()=>{i.invalidateQueries({predicate:T=>[v.identities,v.authGroups].includes(T.queryKey[0])});const h=Object.keys(x),G=h.length>1?`Updated groups for ${h.length} identities`:e.jsxs(e.Fragment,{children:["Updated groups for"," ",e.jsx(ve,{type:"oidc-identity",value:h[0],to:"/ui/permissions/identities"})]});g.success(G),n.clear(),p.clear()}).catch(h=>{p.failure("Update groups failed",h)}).finally(()=>{o(!1),s()})};return e.jsx(r.ConfirmationModal,{confirmButtonLabel:"Confirm changes",confirmButtonAppearance:"positive",onConfirm:j,close:a,title:"Confirm modification",className:"permission-confirm-modal",confirmButtonLoading:d,children:e.jsx(he,{identityGroupsChangeSummary:x,groupIdentitiesChangeSummary:f,identities:l,initialGroupBy:"identity"})})},De=({identities:s,onClose:a})=>{var R;const u=$(),m=r.useNotify(),[l,d]=S.useState(!1),{data:o=[],error:p,isLoading:n}=Ne(),{desiredState:i,save:g,undo:x}=Ce({initialState:{groupsAdded:new Set,groupsRemoved:new Set}});p&&m.failure("Loading panel details failed",p),S.useEffect(()=>{if(!s.length){u.clear();return}},[s]);const{groupsForAllIdentities:f,groupsForSomeIdentities:j,groupsForNoIdentities:w}=fe(o,s),I=new Set(i.groupsAdded);for(const c of f)i.groupsRemoved.has(c)||I.add(c);const h=new Set(j.filter(c=>!I.has(c)&&!i.groupsRemoved.has(c))),G=()=>{const c=new Set;for(const b of f)I.has(b)||c.add(b);for(const b of j)h.has(b)||c.add(b);for(const b of w)I.has(b)&&c.add(b);return c},T=(c,b)=>{g(b?{groupsAdded:new Set,groupsRemoved:new Set(o.map(L=>L.name))}:{groupsAdded:new Set(c),groupsRemoved:new Set})},B=c=>{const b=I.has(c),L=h.has(c),P=new Set(i.groupsAdded),k=new Set(i.groupsRemoved);b||L?(P.delete(c),k.add(c)):(P.add(c),k.delete(c)),g({groupsAdded:P,groupsRemoved:k})},A=()=>{u.clear(),m.clear(),d(!1),a()},t=()=>{m.clear(),d(!1)},y=G(),N=s.length>1?`Change groups for ${s.length} identities`:`Change groups for ${(R=s[0])==null?void 0:R.name}`;return e.jsxs(e.Fragment,{children:[e.jsxs(F,{isOverlay:!0,loading:n,hasError:!o,onClose:A,children:[e.jsx(F.Header,{children:e.jsx(F.HeaderTitle,{children:N})}),e.jsx(O,{className:"u-no-padding"}),e.jsx(F.Content,{className:"u-no-padding",children:e.jsx(Ge,{groups:o,modifiedGroups:y,parentItemName:"identity",parentItems:s,selectedGroups:I,setSelectedGroups:T,indeterminateGroups:h,toggleGroup:B,scrollDependencies:[y.size,m.notification]})}),e.jsx(F.Footer,{className:"u-align--right",children:e.jsx(ke,{modifiedGroups:y,undoChange:x,closePanel:A,onSubmit:()=>{d(!0)},disabled:y.size===0})})]}),l&&e.jsx(Fe,{close:t,onConfirm:t,selectedIdentities:s,addedGroups:i.groupsAdded,removedGroups:i.groupsRemoved})]})},Ae=({identities:s})=>{const a=M(),u=r.useNotify(),m=K(),l=`Delete ${C("identity",s.length)}`,[d,o]=S.useState(!1),{canDeleteIdentity:p}=E(),n=[],i=[];s.forEach(f=>{p(f)?i.push(f):n.push(f)});const g=()=>{o(!0);const f=`${i.length} ${C("identity",i.length)} successfully deleted`;V(i).then(()=>{a.invalidateQueries({predicate:j=>[v.identities,v.authGroups].includes(j.queryKey[0])}),m.success(f),o(!1),close()}).catch(j=>{u.failure("Identity deletion failed",j),o(!1)})},x=()=>{if(n.length)return[`${i.length} ${C("identity",i.length)} will be deleted.`,`${n.length} ${C("identity",n.length)} that you do not have permission to delete will be ignored.`]};return e.jsx(we,{entities:s,deletableEntities:i,entityType:"identity",onDelete:g,disabledReason:i.length?void 0:`You do not have permission to delete the selected ${C("identity",s.length)}`,className:"u-no-margin--bottom",confirmationButtonProps:{loading:d},buttonLabel:l,bulkDeleteBreakdown:x()})},H=({identity:s,truncate:a})=>{const u=s.authentication_method=="tls"?"certificate":"oidc-identity";return e.jsx(Be,{type:u,value:s.type,truncate:a})},Re=({identity:s})=>{const a=M(),u=r.useNotify(),m=K(),[l,d]=S.useState(!1),{canDeleteIdentity:o}=E(),p=()=>{d(!0),W(s).then(()=>{a.invalidateQueries({predicate:n=>[v.identities,v.authGroups].includes(n.queryKey[0])}),m.success(e.jsxs(e.Fragment,{children:["Identity ",e.jsx(H,{identity:s})," deleted."]})),d(!1),close()}).catch(n=>{d(!1),u.failure("Identity deletion failed",n,e.jsx(H,{identity:s}))})};return e.jsx(r.ConfirmationButton,{onHoverText:o(s)?"Delete identity":"You do not have permission to delete this identity",appearance:"base","aria-label":"Delete identity",className:"has-icon u-no-margin--bottom",confirmationModalProps:{title:"Confirm delete",children:e.jsxs("p",{children:["This will permanently delete ",e.jsx(Te,{item:s,bold:!0}),".",e.jsx("br",{}),"This action cannot be undone, and can result in data loss."]}),confirmButtonLabel:"Delete",onConfirm:p},shiftClickEnabled:!0,showShiftClickHint:!0,loading:l,disabled:!o(s),children:e.jsx(r.Icon,{name:"delete"})})},Me=({onClose:s})=>{const[a,u]=S.useState(null),[m,l]=S.useState(!1),[d,o]=S.useState(!1),p=M(),n=J({initialValues:{identityName:""},onSubmit:g=>{l(!1),X(g.identityName).then(x=>{const f=Z(x);u(f),p.invalidateQueries({queryKey:[v.identities]})}).catch(()=>{l(!0)})}}),i=async()=>{if(a)try{await navigator.clipboard.writeText(a),o(!0),setTimeout(()=>{o(!1)},5e3)}catch(g){console.error(g)}};return e.jsxs(r.Modal,{close:s,className:"create-tls-identity",title:a?"Identity has been created":"Generate trust token",buttonRow:e.jsxs(e.Fragment,{children:[a&&e.jsxs(e.Fragment,{children:[e.jsx(r.Button,{"aria-label":d?"Copied to clipboard":"Copy to clipboard",title:"Copy token",className:"u-no-margin--bottom",onClick:async()=>i(),type:"button",hasIcon:!0,children:e.jsx(r.Icon,{name:d?"task-outstanding":"copy"})}),e.jsx(r.Button,{"aria-label":"Close",className:"u-no-margin--bottom",onClick:s,type:"button",children:"Close"})]}),!a&&e.jsx(r.ActionButton,{"aria-label":"Generate token",appearance:"positive",className:"u-no-margin--bottom",onClick:()=>void n.submitForm(),disabled:n.values.identityName.length===0||n.isSubmitting,loading:n.isSubmitting,children:"Generate token"})]}),children:[m&&e.jsx(r.Notification,{severity:"negative",title:"Token creation failed"}),!a&&e.jsx(r.Input,{id:"identityName",type:"text",label:"Identity Name",onBlur:n.handleBlur,onChange:n.handleChange,value:n.values.identityName}),a&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"The token below can be used to log in as the new identity."}),e.jsx(r.Notification,{severity:"caution",title:"Make sure to copy the token now as it will not be shown again."}),e.jsx("div",{className:"token-code-block",children:e.jsx("code",{children:a})})]})]})},Ee=()=>{const s=Le(),{openPortal:a,closePortal:u,isOpen:m,Portal:l}=r.usePortal(),{canCreateIdentities:d}=ee();return e.jsxs(e.Fragment,{children:[m&&e.jsx(l,{children:e.jsx(Me,{onClose:u})}),e.jsxs(r.Button,{appearance:"positive",className:"u-float-right u-no-margin--bottom",onClick:a,hasIcon:!s,title:d()?"":"You do not have permission to create identities",disabled:!d(),children:[!s&&e.jsx(r.Icon,{name:"plus",light:!0}),e.jsx("span",{children:"Create TLS Identity"})]})]})},at=()=>{const s=r.useNotify(),{data:a=[],error:u,isLoading:m}=te(),{data:l}=se(),d=ne(),o=$(),[p]=oe(),[n,i]=S.useState([]),{hasAccessManagementTLS:g}=ae(),{canEditIdentity:x}=E();S.useEffect(()=>{const t=new Set(a.map(N=>N.id)),y=n.filter(N=>t.has(N));y.length!==n.length&&i(y)},[a]),u&&s.failure("Loading identities failed",u);const f=[{content:"Name",className:"name",sortKey:"name"},{content:"ID",sortKey:"id"},{content:"Auth method",sortKey:"authmethod",className:"auth-method"},{content:"Type",sortKey:"type"},{content:"Groups",sortKey:"groups",className:"u-align--right group-count"},{"aria-label":"Actions",className:"u-align--right actions"}],j={queries:p.getAll(be),authMethod:p.getAll(ye)},w=a.filter(t=>!(!j.queries.every(y=>t.name.toLowerCase().includes(y)||t.id.toLowerCase().includes(y))||j.authMethod.length>0&&!j.authMethod.includes(t.authentication_method))),I=a.filter(t=>n.includes(t.id)),h=w.map(t=>{var c;const y=(l==null?void 0:l.auth_user_name)===t.id,N=()=>{o.openIdentityGroups(t.id),i([t.id])},R=()=>{var k,U,_,Q,Y;if(x(t))return e.jsx(r.Button,{appearance:"link",dense:!0,onClick:N,children:((k=t.groups)==null?void 0:k.length)||0});const b=C("group",((U=t.groups)==null?void 0:U.length)??0),L=(_=t.groups)==null?void 0:_.join(` - `),P=`Assigned ${b}: - ${L}`;return e.jsx("div",{title:(Q=t.groups)!=null&&Q.length?P:"",children:((Y=t.groups)==null?void 0:Y.length)||0})};return{key:t.id,name:q(t)?"":t.id,className:"u-row",columns:[{content:e.jsxs(e.Fragment,{children:[t.name," ",e.jsx(xe,{isVisible:y,children:"You"})]}),role:"cell","aria-label":"Name",className:"u-truncate",title:t.name},{content:t.id,role:"cell","aria-label":"ID",className:"u-truncate",title:t.id},{content:t.authentication_method.toUpperCase(),role:"cell","aria-label":"Auth method",className:"auth-method"},{content:e.jsx(H,{identity:t,truncate:!1}),role:"cell","aria-label":"Type",className:"u-truncate"},{content:R(),role:"cell",className:"u-align--right group-count","aria-label":"Groups for this identity"},{content:!q(t)&&e.jsxs(e.Fragment,{children:[e.jsx(r.Button,{appearance:"base",className:"u-no-margin--bottom",hasIcon:!0,dense:!0,onClick:N,type:"button","aria-label":"Manage groups",title:x()?"Manage groups":"You do not have permission to modify this identity",disabled:!x(t),children:e.jsx(r.Icon,{name:"user-group"})}),g&&e.jsx(Re,{identity:t})]}),className:"actions u-align--right",role:"cell","aria-label":"Actions"}],sortData:{id:t.id,name:t.name.toLowerCase(),authentication_method:t.authentication_method,type:t.type,groups:((c=t.groups)==null?void 0:c.length)||0}}}),{rows:G,updateSort:T}=ue({rows:h,defaultSort:"name"}),B=a.filter(t=>!q(t));if(m)return e.jsx(ie,{text:"Loading identities"});const A=()=>{const t=h.length>1?`Showing all ${h.length} identities`:"Showing 1 out of 1 identity";return n.length>0?e.jsx(de,{totalCount:B.length??0,itemName:"identity",selectedNames:n,setSelectedNames:i,filteredNames:B.map(y=>y.id),hideActions:!!o.panel}):t};return e.jsxs(e.Fragment,{children:[e.jsxs(re,{contentClassName:"u-no-padding--bottom",header:e.jsxs(D,{children:[e.jsxs(D.Left,{children:[e.jsx(D.Title,{children:e.jsx(Se,{href:`${d}/explanation/authorization`,title:"Learn more about permissions",children:"Identities"})}),!n.length&&!o.panel&&e.jsx(D.Search,{children:e.jsx(je,{})}),!!n.length&&e.jsx(Pe,{identities:I,className:"u-no-margin--bottom"}),!!n.length&&g&&e.jsx(Ae,{identities:I})]}),e.jsx(D.BaseActions,{children:e.jsx(Ee,{})})]}),children:[!o.panel&&e.jsx(O,{}),e.jsx(r.Row,{children:e.jsx(le,{dependencies:[a],tableId:"identities-table",belowIds:["status-bar"],children:e.jsx(r.TablePagination,{data:G,id:"pagination",itemName:"identity",className:"u-no-margin--top","aria-label":"Table pagination control",description:A(),children:e.jsx(ce,{id:"identities-table",className:"permission-identities",headers:f,rows:G,sortable:!0,emptyStateMsg:"No identities found matching this search",onUpdateSort:T,itemName:"identity",parentName:"",selectedNames:n,setSelectedNames:i,disabledNames:[],filteredNames:B.map(t=>t.id),disableSelect:!!o.panel})})})})]}),o.panel===Ie.identityGroups&&e.jsx(De,{identities:I,onClose:()=>{i([])}})]})};export{at as default};
Close