(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9888],{34328:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/organization/CardOrganization",function(){return n(55574)}])},55574:function(t,e,n){"use strict";n.r(e);var i=n(85893),o=n(99226),a=n(66242),r=n(15861),l=n(42412),d=n(67294),c=n(87066),s=n(81406);e.default=t=>{let{GetallData:e}=t,[n,x]=(0,d.useState)([]);return(0,d.useEffect)(()=>{let fetchData=async()=>{let t=window.localStorage.getItem(l.Z.storageTokenKeyName);try{let e=await c.Z.get("".concat(s.Ao,"/api/organization/card-counts"),{headers:{Authorization:"Bearer ".concat(t)}});x(e.data),setIsLoading(!1)}catch(t){console.error("Error fetching data:",t)}};fetchData()},[e]),console.log(n,"dataaa"),(0,i.jsx)(a.Z,{sx:{padding:0,borderRadius:2,boxShadow:"none !important",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",margin:"0 -12px",background:"#00000000"},children:(0,i.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:[(0,i.jsx)(a.Z,{sx:{padding:"1.5rem",textAlign:"center",borderRadius:2,display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative",flex:1,margin:3,backgroundColor:"#1E3A5F"},children:(0,i.jsxs)(o.Z,{sx:{paddingBottom:1},children:[(0,i.jsx)(r.Z,{variant:"body2",fontWeight:"700",textTransform:"capitalize",color:"white",fon:!0,gutterBottom:!0,children:"Total Organization"}),(0,i.jsx)(r.Z,{variant:"h5",sx:{fontWeight:"bold",paddingTop:1,color:"white"},children:null==n?void 0:n.total})]})}),(0,i.jsx)(a.Z,{sx:{padding:"1.5rem",textAlign:"center",borderRadius:2,display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative",flex:1,margin:3,backgroundColor:"#228B22"},children:(0,i.jsxs)(o.Z,{sx:{paddingBottom:1},children:[(0,i.jsx)(r.Z,{variant:"body2",fontWeight:"700",textTransform:"capitalize",color:"white",gutterBottom:!0,children:"Active Organization"}),(0,i.jsx)(r.Z,{variant:"h5",sx:{fontWeight:"bold",paddingTop:1,color:"white"},children:null==n?void 0:n.active})]})}),(0,i.jsx)(a.Z,{sx:{padding:"1.5rem",textAlign:"center",borderRadius:2,display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative",flex:1,margin:3,backgroundColor:"#B71C1C"},children:(0,i.jsxs)(o.Z,{sx:{paddingBottom:1},children:[(0,i.jsx)(r.Z,{variant:"body2",fontWeight:"700",textTransform:"capitalize",color:"white",gutterBottom:!0,children:"Inactive Organization"}),(0,i.jsx)(r.Z,{variant:"h5",sx:{fontWeight:"bold",paddingTop:1,color:"white"},children:null==n?void 0:n.inActive})]})})]})})}}},function(t){t.O(0,[9774,2888,179],function(){return t(t.s=34328)}),_N_E=t.O()}]);