(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7215],{57887:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store/CardStore",function(){return n(52138)}])},52138:function(t,e,n){"use strict";n.r(e);var o=n(85893),i=n(99226),r=n(66242),a=n(15861),s=n(42412),l=n(67294),d=n(87066),c=n(81406);e.default=t=>{let{GetallData:e}=t,[n,u]=(0,l.useState)([]);return(0,l.useEffect)(()=>{let fetchData=async()=>{let t=window.localStorage.getItem(s.Z.storageTokenKeyName);try{let e=await d.Z.get("".concat(c.Ao,"/api/organization-stores/status-counts"),{headers:{Authorization:"Bearer ".concat(t)}});u(e.data),setIsLoading(!1)}catch(t){console.error("Error fetching data:",t)}};fetchData()},[e]),console.log(n,"dataaa"),(0,o.jsx)(r.Z,{sx:{padding:0,borderRadius:2,boxShadow:"none !important",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",margin:"0 -12px",background:"#00000000"},children:(0,o.jsxs)(i.Z,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:[(0,o.jsx)(r.Z,{sx:{padding:"1.5rem",textAlign:"center",borderRadius:2,display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative",flex:1,margin:3,backgroundColor:"#003366"},children:(0,o.jsxs)(i.Z,{sx:{paddingBottom:1},children:[(0,o.jsx)(a.Z,{variant:"body2",fontWeight:"700",color:"white",fon:!0,gutterBottom:!0,children:"Total Stores"}),(0,o.jsx)(a.Z,{variant:"h5",sx:{fontWeight:"bold",paddingTop:1,color:"white"},children:null==n?void 0:n.total})]})}),(0,o.jsx)(r.Z,{sx:{padding:"1.5rem",textAlign:"center",borderRadius:2,display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative",flex:1,margin:3,backgroundColor:"#2F4F4F"},children:(0,o.jsxs)(i.Z,{sx:{paddingBottom:1},children:[(0,o.jsx)(a.Z,{variant:"body2",fontWeight:"700",color:"white",gutterBottom:!0,children:"Active Stores"}),(0,o.jsx)(a.Z,{variant:"h5",sx:{fontWeight:"bold",paddingTop:1,color:"white"},children:null==n?void 0:n.active})]})}),(0,o.jsx)(r.Z,{sx:{padding:"1.5rem",textAlign:"center",borderRadius:2,display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative",flex:1,margin:3,backgroundColor:"#8B0000"},children:(0,o.jsxs)(i.Z,{sx:{paddingBottom:1},children:[(0,o.jsx)(a.Z,{variant:"body2",fontWeight:"700",color:"white",gutterBottom:!0,children:"Inactive Stores"}),(0,o.jsx)(a.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=57887)}),_N_E=t.O()}]);