1import{o as et,r,j as e,k as W,T as o,l as i,C as p}from"./index-D-AFl6v8.js";import{L as tt}from"./index-CfApN3LR.js";import{l as rt,g as V,c as st,u as nt,a as it,b as at,d as ot,e as lt}from"./superadmin-B2KQJapW.js";import{S as f}from"./Stack-7YBloGKc.js";import{P as Ce}from"./plus-BlbmGU0j.js";import{c as ct,P as be,I as w}from"./createLucideIcon-L7O1RZew.js";import{C as dt}from"./Card-C02Ei0wK.js";import{C as xt}from"./CardContent-Dm-G-azE.js";import{T as ve,a as Se,b as ye,c as k,d as n,e as We}from"./TableRow-KhikY9Mj.js";import{C as $}from"./server-Dz7pqCYN.js";import{T}from"./Tooltip-BvL3hbv5.js";import{P as ke}from"./pencil-DSafphu5.js";import{D as j,a as g,b as C,c as b}from"./DialogTitle-uYZLulBj.js";import{T as u,A as ht,F as ze,I as Fe,S as Re}from"./TextField-DdZmIhxv.js";import{C as ut}from"./copy-BGZq7eBy.js";import{M as z}from"./MenuItem-BOli6_Jj.js";import{F as mt}from"./FormControlLabel-HApM5u4z.js";import{C as pt}from"./Checkbox-B4iC--sI.js";import"./index-BZruhSgt.js";import"./send-D6l0clPM.js";import"./Link-DQbJ92mW.js";import"./createSvgIcon-DLxHainh.js";import"./check-X8X9CWkw.js";import"./x-BTs_WrB8.js";import"./Modal-CRLh7o4j.js";import"./wrench-Bn1myMGq.js";import"./Drawer-CBLHdxOe.js";import"./styled-C-2iXfty.js";import"./useThemeProps-DgQP1pEg.js";import"./Popper-vIybPXYE.js";import"./SwitchBase-YvJ2Pi69.js";/** 2 * @license lucide-react v0.545.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ft=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ue=ct("ban",ft),l="#0066FF",jt=v=>{try{return new Date(v).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return v}},Jt=()=>{const{auth:v}=et(),a=(v==null?void 0:v.token)??"",[G,Oe]=r.useState([]),[we,Te]=r.useState({}),[Ee,J]=r.useState(!0),[K,c]=r.useState(null),[Ae,E]=r.useState(!1),[d,A]=r.useState({name:"",description:"",admin_name:""}),[Q,Y]=r.useState(!1),[Ie,I]=r.useState(!1),[Z,ee]=r.useState(null),[S,L]=r.useState({name:"",description:""}),[te,re]=r.useState(!1),[De,q]=r.useState(!1),[se,X]=r.useState([]),[ne,ie]=r.useState(!1),[h,_e]=r.useState(null),[Be,D]=r.useState(!1),[F,ae]=r.useState(null),[oe,le]=r.useState(!1),[Me,_]=r.useState(!1),[x,R]=r.useState({name:"",email:"",role:"USER",issue_token:!0}),[ce,de]=r.useState(!1),[B,xe]=r.useState(null),[Pe,M]=r.useState(!1),[he,ue]=r.useState(null),[m,P]=r.useState({name:"",email:"",role:"USER"}),[me,pe]=r.useState(!1),[Ne,N]=r.useState(!1),[U,fe]=r.useState(null),[je,ge]=r.useState(!1),O=r.useCallback(async()=>{if(a){J(!0),c(null);try{const t=await rt(a);Oe(t);const s=await Promise.all(t.map(async y=>{try{const Ze=await V(a,y.id);return[y.id,Ze.length]}catch{return[y.id,0]}}));Te(Object.fromEntries(s))}catch{c("Failed to load organizations.")}finally{J(!1)}}},[a]);r.useEffect(()=>{O()},[O]);const Le=async()=>{if(!(!d.name.trim()||!d.admin_name.trim()||!d.description.trim())){Y(!0);try{await st(a,d),E(!1),A({name:"",description:"",admin_name:""}),await O()}catch{c("Failed to create organization.")}finally{Y(!1)}}},qe=t=>{ee(t),L({name:t.name,description:t.description??""}),I(!0)},Xe=async()=>{if(!(!Z||!S.name.trim())){re(!0);try{await nt(a,Z.id,{name:S.name,description:S.description}),I(!1),ee(null),await O()}catch{c("Failed to update organization.")}finally{re(!1)}}},He=async()=>{if(F){le(!0);try{await lt(a,F.id),D(!1),ae(null),await O()}catch{c("Failed to deactivate organization.")}finally{le(!1)}}},Ve=async t=>{_e(t),q(!0),ie(!0),X([]);try{const s=await V(a,t.id);X(s)}catch{c("Failed to load users.")}finally{ie(!1)}},H=r.useCallback(async()=>{if(!(!a||!h))try{const t=await V(a,h.id);X(t)}catch{c("Failed to refresh users.")}},[a,h]),$e=()=>{R({name:"",email:"",role:"USER",issue_token:!0}),_(!0)},Ge=async()=>{var t;if(!(!h||!x.name.trim())){de(!0);try{const s={name:x.name.trim(),email:x.email.trim()||void 0,role:x.role,issue_token:x.issue_token,organization_id:h.id},y=await it(a,s);_(!1),(t=y.auth_token)!=null&&t.token&&xe(y.auth_token.token),await H()}catch{c("Failed to create user.")}finally{de(!1)}}},Je=t=>{ue(t),P({name:t.name,email:t.email??"",role:t.role??"USER"}),M(!0)},Ke=async()=>
6{if(!(!he||!m.name.trim())){pe(!0);try{const t={name:m.name.trim(),email:m.email.trim()||null,role:m.role};await at(a,he.id,t),M(!1),ue(null),await H()}catch{c("Failed to update user.")}finally{pe(!1)}}},Qe=async()=>{if(U){ge(!0);try{await ot(a,U.id),N(!1),fe(null),await H()}catch{c("Failed to deactivate user.")}finally{ge(!1)}}},Ye=()=>{B&&navigator.clipboard.writeText(B).catch(()=>{})};return e.jsx(tt,{children:e.jsxs(W,{sx:{backgroundColor:"#f8f9fa",minHeight:"100vh",p:{xs:2,md:4}},children:[e.jsxs(f,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:2,sx:{mb:4},children:[e.jsx(W,{children:e.jsx(o,{variant:"h4",fontWeight:600,sx:{color:"#0A0A0A"},children:"Organizations"})}),e.jsx(i,{variant:"contained",startIcon:e.jsx(Ce,{size:18}),onClick:()=>E(!0),sx:{backgroundColor:l,textTransform:"none",borderRadius:"10px",fontWeight:600,px:2.5,py:1,boxShadow:"0 1px 2px rgba(0,0,0,0.08)","&:hover":{backgroundColor:"#0052CC",boxShadow:"0 2px 6px rgba(0,102,255,0.25)"}},children:"Create Organization"})]}),K&&e.jsx(be,{sx:{p:2,mb:3,backgroundColor:"#FEF2F2",border:"1px solid #FECACA",borderRadius:"10px"},children:e.jsx(o,{color:"#B91C1C",variant:"body2",children:K})}),e.jsx(dt,{sx:{borderRadius:"12px",boxShadow:"0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)",border:"1px solid #F0F0F0",overflow:"hidden"},children:e.jsx(xt,{sx:{p:0},children:e.jsx(ve,{component:W,children:e.jsxs(Se,{children:[e.jsx(ye,{children:e.jsxs(k,{sx:{backgroundColor:"#FAFAFA"},children:[e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem",textTransform:"uppercase",letterSpacing:"0.04em"},children:"Name"}),e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem",textTransform:"uppercase",letterSpacing:"0.04em"},children:"Description"}),e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem",textTransform:"uppercase",letterSpacing:"0.04em"},children:"Status"}),e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem",textTransform:"uppercase",letterSpacing:"0.04em"},children:"Created"}),e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem",textTransform:"uppercase",letterSpacing:"0.04em"},children:"Users"}),e.jsx(n,{align:"right",sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem",textTransform:"uppercase",letterSpacing:"0.04em"},children:"Actions"})]})}),e.jsx(We,{children:Ee?e.jsx(k,{children:e.jsx(n,{colSpan:6,align:"center",sx:{py:8},children:e.jsx(p,{size:28,sx:{color:l}})})}):G.length===0?e.jsx(k,{children:e.jsx(n,{colSpan:6,align:"center",sx:{py:8},children:e.jsx(o,{variant:"body2",color:"#9CA3AF",children:"No organizations found. Create one to get started."})})}):G.map(t=>e.jsxs(k,{sx:{"&:hover":{backgroundColor:"#F9FAFB"},"& .MuiTableCell-root":{borderBottom:"1px solid #F3F4F6"}},children:[e.jsx(n,{children:e.jsx(o,{variant:"body2",fontWeight:600,sx:{color:"#111827"},children:t.name})}),e.jsx(n,{children:e.jsx(o,{variant:"body2",sx:{color:"#6B7280",maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.description||"â"})}),e.jsx(n,{children:e.jsx($,{label:t.is_active?"Active":"Inactive",size:"small",sx:{backgroundColor:t.is_active?"#ECFDF5":"#F3F4F6",color:t.is_active?"#059669":"#6B7280",fontWeight:600,fontSize:"0.75rem",borderRadius:"6px",height:24}})}),e.jsx(n,{children:e.jsx(o,{variant:"body2",sx:{color:"#6B7280"},children:jt(t.created_at)})}),e.jsx(n,{children:e.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(o,{variant:"body2",sx:{color:"#374151",fontWeight:600},children:we[t.id]??"â"}),e.jsx(i,{size:"small",onClick:()=>Ve(t),sx:{color:l,textTransform:"none",minWidth:0,p:0,fontSize:"0.8125rem",fontWeight:600,"&:hover":{backgroundColor:"transparent"}},children:"View"})]})}),e.jsx(n,{align:"right",children:e.jsxs(f,{direction:"row",spacing:.5,justifyContent:"flex-end",children:[e.jsx(T,{title:"Edit",children:e.jsx(w,{size:"small",onClick:()=>qe(t),sx:{color:"#6B7280"},children:e.jsx(ke,{size:18})})}),e.jsx(T,{title:"Deactivate",children:e.jsx(w,{size:"small",onClick:()=>{ae(t),D(!0)}
6,sx:{color:"#6B7280"},children:e.jsx(Ue,{size:18})})})]})})]},t.id))})]})})})}),e.jsxs(j,{open:Ae,onClose:()=>E(!1),maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}},children:[e.jsx(g,{sx:{fontWeight:600,fontSize:"1.125rem"},children:"Create Organization"}),e.jsx(C,{children:e.jsxs(f,{spacing:2.5,sx:{mt:1},children:[e.jsx(u,{label:"Name",required:!0,fullWidth:!0,value:d.name,onChange:t=>A(s=>({...s,name:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}}),e.jsx(u,{label:"Description",fullWidth:!0,multiline:!0,minRows:2,value:d.description,onChange:t=>A(s=>({...s,description:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}}),e.jsx(u,{label:"Admin Name",required:!0,fullWidth:!0,value:d.admin_name,onChange:t=>A(s=>({...s,admin_name:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}})]})}),e.jsxs(b,{sx:{p:2.5,pt:1},children:[e.jsx(i,{onClick:()=>E(!1),sx:{color:"#6B7280",textTransform:"none",borderRadius:"10px",fontWeight:600},children:"Cancel"}),e.jsx(i,{variant:"contained",onClick:Le,disabled:Q||!d.name.trim()||!d.admin_name.trim()||!d.description.trim(),sx:{backgroundColor:l,textTransform:"none",borderRadius:"10px",fontWeight:600,minWidth:120,"&:hover":{backgroundColor:"#0052CC"}},children:Q?e.jsx(p,{size:20,color:"inherit"}):"Create"})]})]}),e.jsxs(j,{open:Ie,onClose:()=>I(!1),maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}},children:[e.jsx(g,{sx:{fontWeight:600,fontSize:"1.125rem"},children:"Edit Organization"}),e.jsx(C,{children:e.jsxs(f,{spacing:2.5,sx:{mt:1},children:[e.jsx(u,{label:"Name",required:!0,fullWidth:!0,value:S.name,onChange:t=>L(s=>({...s,name:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}}),e.jsx(u,{label:"Description",fullWidth:!0,multiline:!0,minRows:2,value:S.description,onChange:t=>L(s=>({...s,description:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}})]})}),e.jsxs(b,{sx:{p:2.5,pt:1},children:[e.jsx(i,{onClick:()=>I(!1),sx:{color:"#6B7280",textTransform:"none",borderRadius:"10px",fontWeight:600},children:"Cancel"}),e.jsx(i,{variant:"contained",onClick:Xe,disabled:te||!S.name.trim(),sx:{backgroundColor:l,textTransform:"none",borderRadius:"10px",fontWeight:600,minWidth:120,"&:hover":{backgroundColor:"#0052CC"}},children:te?e.jsx(p,{size:20,color:"inherit"}):"Save"})]})]}),e.jsxs(j,{open:De,onClose:()=>q(!1),maxWidth:"md",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}},children:[e.jsxs(g,{sx:{fontWeight:600,fontSize:"1.125rem",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs("span",{children:["Users",h?` â ${h.name}`:""]}),e.jsx(i,{variant:"contained",size:"small",startIcon:e.jsx(Ce,{size:16}),onClick:$e,disabled:ne,sx:{backgroundColor:l,textTransform:"none",borderRadius:"8px",fontWeight:600,fontSize:"0.8125rem","&:hover":{backgroundColor:"#0052CC"}},children:"Add User"})]}),e.jsxs(C,{children:[B&&e.jsxs(ht,{severity:"success",sx:{mb:2,borderRadius:"8px"},onClose:()=>xe(null),children:[e.jsx(o,{variant:"body2",fontWeight:600,gutterBottom:!0,children:"User created. Copy the access token now â it won't be shown again:"}),e.jsxs(f,{direction:"row",spacing:1,alignItems:"center",sx:{mt:.5},children:[e.jsx(be,{sx:{p:1,pr:2,backgroundColor:"#F9FAFB",border:"1px solid #E5E7EB",borderRadius:"6px",fontFamily:"monospace",fontSize:"0.8rem",wordBreak:"break-all",maxWidth:420},children:B}),e.jsx(T,{title:"Copy token",children:e.jsx(w,{size:"small",onClick:Ye,sx:{color:l},children:e.jsx(ut,{size:18})})})]})]}),ne?e.jsx(W,{sx:{display:"flex",justifyContent:"center",py:6},children:e.jsx(p,{size:28,sx:{color:l}})}):se.length===0?e.jsx(o,{variant:"body2",color:"#9CA3AF",sx:{py:4,textAlign:"center"},children:'No users found in this organization. Click "Add User" to create one.'}):e.jsx(ve,{component:W,sx:{mt:1},children:e.jsxs(Se,{size:"small",children:[e.jsx(ye,{children:e.jsxs(k,{sx:{backgroundColor:"#FAFAFA"},children:[e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem"},children:"Name"}),e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem"},children:"Email"}),e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem"},children:"Role"}),e.jsx(n,{sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem"},children:"Status"}),e.jsx(n,{align:"right",sx:{fontWeight:600,color:"#374151",fontSize:"0.8125rem"},children:"Actions"})]})}),e.jsx(We,{children:se.map(t=>e.jsxs(k,{children:[e.jsx(n,{children:e.jsx(o,{variant:"body2",fontWeight:600,sx:{color:"#111827"},children:t.name})}),e.jsx(n,{children:e.jsx(o,{variant:"body2",sx:{color:"#6B7280"},children:t.email||"â"})}),e.jsx(n,{children:e.jsx($,{label:t.role,size:"small",sx:{backgroundColor:"#EFF6FF",color:l,fontWeight:600,fontSize:"0.7rem",borderRadius:"6px",height:22}})}),e.jsx(n,{children:e.jsx($,{label:t.is_active?"Active":"Inactive",size:"small",sx:{backgroundColor:t.is_active?"#ECFDF5":"#FEF2F2",color:t.is_active?"#059669":"#B91C1C",fontWeight:600,fontSize:"0.7rem",borderRadius:"6px",height:22}})}),e.jsx(n,{align:"right",children:e.jsxs(f,{direction:"row",spacing:.5,justifyContent:"flex-end",children:[e.jsx(T,{title:"Edit user",children:e.jsx(w,{size:"small",onClick:()=>Je(t),sx:{color:"#6B7280"},children:e.jsx(ke,{size:16})})}),t.is_active&&e.jsx(T,{title:"Deactivate user",children:e.jsx(w,{size:"small",onClick:()=>{fe(t),N(!0)},sx:{color:"#6B7280"},children:e.jsx(Ue,{size:16})})})]})})]},t.id))})]})})]}),e.jsx(b,{sx:{p:2.5,pt:1},children:e.jsx(i,{onClick:()=>
6q(!1),sx:{color:"#6B7280",textTransform:"none",borderRadius:"10px",fontWeight:600},children:"Close"})})]}),e.jsxs(j,{open:Me,onClose:()=>_(!1),maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}},children:[e.jsxs(g,{sx:{fontWeight:600,fontSize:"1.125rem"},children:["Add User",h?` to ${h.name}`:""]}),e.jsx(C,{children:e.jsxs(f,{spacing:2.5,sx:{mt:1},children:[e.jsx(u,{label:"Name",required:!0,fullWidth:!0,value:x.name,onChange:t=>R(s=>({...s,name:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}}),e.jsx(u,{label:"Email",fullWidth:!0,value:x.email,onChange:t=>R(s=>({...s,email:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}}),e.jsxs(ze,{fullWidth:!0,children:[e.jsx(Fe,{children:"Role"}),e.jsxs(Re,{label:"Role",value:x.role,onChange:t=>R(s=>({...s,role:t.target.value})),sx:{borderRadius:"10px"},children:[e.jsx(z,{value:"USER",children:"USER"}),e.jsx(z,{value:"ADMIN",children:"ADMIN"}),e.jsx(z,{value:"XILOS_ADMIN",children:"XILOS_ADMIN"})]})]}),e.jsx(mt,{control:e.jsx(pt,{checked:x.issue_token,onChange:t=>R(s=>({...s,issue_token:t.target.checked})),sx:{color:l,"&.Mui-checked":{color:l}}}),label:e.jsx(o,{variant:"body2",sx:{color:"#374151"},children:"Issue access token"})})]})}),e.jsxs(b,{sx:{p:2.5,pt:1},children:[e.jsx(i,{onClick:()=>_(!1),sx:{color:"#6B7280",textTransform:"none",borderRadius:"10px",fontWeight:600},children:"Cancel"}),e.jsx(i,{variant:"contained",onClick:Ge,disabled:ce||!x.name.trim(),sx:{backgroundColor:l,textTransform:"none",borderRadius:"10px",fontWeight:600,minWidth:120,"&:hover":{backgroundColor:"#0052CC"}},children:ce?e.jsx(p,{size:20,color:"inherit"}):"Create"})]})]}),e.jsxs(j,{open:Pe,onClose:()=>M(!1),maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}},children:[e.jsx(g,{sx:{fontWeight:600,fontSize:"1.125rem"},children:"Edit User"}),e.jsx(C,{children:e.jsxs(f,{spacing:2.5,sx:{mt:1},children:[e.jsx(u,{label:"Name",required:!0,fullWidth:!0,value:m.name,onChange:t=>P(s=>({...s,name:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}}),e.jsx(u,{label:"Email",fullWidth:!0,value:m.email,onChange:t=>P(s=>({...s,email:t.target.value})),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}}}),e.jsxs(ze,{fullWidth:!0,children:[e.jsx(Fe,{children:"Role"}),e.jsxs(Re,{label:"Role",value:m.role,onChange:t=>P(s=>({...s,role:t.target.value})),sx:{borderRadius:"10px"},children:[e.jsx(z,{value:"USER",children:"USER"}),e.jsx(z,{value:"ADMIN",children:"ADMIN"}),e.jsx(z,{value:"XILOS_ADMIN",children:"XILOS_ADMIN"})]})]})]})}),e.jsxs(b,{sx:{p:2.5,pt:1},children:[e.jsx(i,{onClick:()=>M(!1),sx:{color:"#6B7280",textTransform:"none",borderRadius:"10px",fontWeight:600},children:"Cancel"}),e.jsx(i,{variant:"contained",onClick:Ke,disabled:me||!m.name.trim(),sx:{backgroundColor:l,textTransform:"none",borderRadius:"10px",fontWeight:600,minWidth:120,"&:hover":{backgroundColor:"#0052CC"}},children:me?e.jsx(p,{size:20,color:"inherit"}):"Save"})]})]}),e.jsxs(j,{open:Ne,onClose:()=>N(!1),maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}},children:[e.jsx(g,{sx:{fontWeight:600,fontSize:"1.125rem"},children:"Deactivate User"}),e.jsx(C,{children:e.jsxs(o,{variant:"body2",sx:{color:"#374151"},children:["Are you sure you want to deactivate"," ",e.jsx("strong",{children:U==null?void 0:U.name}),"? The user will lose access immediately."]})}),e.jsxs(b,{sx:{p:2.5,pt:1},children:[e.jsx(i,{onClick:()=>N(!1),sx:{color:"#6B7280",textTransform:"none",borderRadius:"10px",fontWeight:600},children:"Cancel"}),e.jsx(i,{variant:"contained",color:"error",onClick:Qe,disabled:je,sx:{textTransform:"none",borderRadius:"10px",fontWeight:600,minWidth:120},children:je?e.jsx(p,{size:20,color:"inherit"}):"Deactivate"})]})]}),e.jsxs(j,{open:Be,onClose:()=>D(!1),maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}},children:[e.jsx(g,{sx:{fontWeight:600,fontSize:"1.125rem"},children:"Deactivate Organization"}),e.jsx(C,{children:e.jsxs(o,{variant:"body2",sx:{color:"#374151"},children:["Are you sure you want to deactivate"," ",e.jsx("strong",{children:F==null?void 0:F.name}),"? Users in this organization will lose access."]})}),e.jsxs(b,{sx:{p:2.5,pt:1},children:[e.jsx(i,{onClick:()=>D(!1),sx:{color:"#6B7280",textTransform:"none",borderRadius:"10px",fontWeight:600},children:"Cancel"}),e.jsx(i,{variant:"contained",color:"error",onClick:He,disabled:oe,sx:{textTransform:"none",borderRadius:"10px",fontWeight:600,minWidth:120},children:oe?e.jsx(p,{size:20,color:"inherit"}):"Deactivate"})]})]})]})})};export{Jt 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.