import{P as m}from"./Page.1bc06f71.js";import{f as t,j as r,S as p,T as n,s as u,ao as e,at as h,au as g}from"./index.b24f7692.js";import{G as o,C as d}from"./Grid.b97a55f1.js";const x=u(d)(({theme:a})=>({boxShadow:"none",padding:a.spacing(2),color:"black",backgroundColor:a.palette.grey[200]})),b=[{name:"Requested",value:0,color:e.dark.primary.dark},{name:"Approval",value:0,color:e.dark.warning.dark},{name:"Disbrusment",value:0,color:e.dark.success.dark},{name:"Rejected",value:0,color:e.dark.error.dark}];function k({data:a}){return t(x,{children:[r(p,{sx:{mb:1},children:r(n,{variant:"body2",children:"Claim Status"})}),r(o,{container:!0,spacing:2,children:a?a.map(({name:i,value:l,color:s},c)=>r(o,{item:!0,xs:6,sm:3,children:t(d,{sx:{paddingX:1,borderRadius:.75,borderColor:s,borderStyle:"solid",borderWidth:"1px",padding:2,flex:1,textAlign:"center"},children:[r(n,{component:"p",variant:"body2",children:i}),r(n,{component:"p",variant:"h5",sx:{marginTop:2},children:l}),r(n,{component:"p",variant:"body2",sx:{marginTop:2},children:"Cases"})]})},c)):b.map(({name:i,value:l,color:s},c)=>r(o,{item:!0,xs:6,sm:3,children:t(d,{sx:{paddingX:1,borderRadius:.75,borderColor:s,borderStyle:"solid",borderWidth:"1px",padding:2,flex:1,textAlign:"center"},children:[r(n,{component:"p",variant:"body2",children:i}),r(n,{component:"p",variant:"h5",sx:{marginTop:2},children:l}),r(n,{component:"p",variant:"body2",sx:{marginTop:2},children:"Cases"})]})},c))})]})}const v=[{name:"Requested",value:15,color:e.dark.primary.dark},{name:"Approval",value:20,color:e.dark.warning.dark},{name:"Disbrusment",value:20,color:e.dark.success.dark},{name:"Rejected",value:20,color:e.dark.error.dark}];function S(){const{themeStretch:a}=h();return r(m,{title:"Claim Reports",children:r(g,{maxWidth:a?!1:"xl",children:t(o,{container:!0,spacing:2,children:[r(o,{item:!0,xs:12,lg:12,md:12,children:r(k,{data:v})}),r(o,{item:!0,xs:12,lg:12,md:12,children:r(d,{})})]})})})}export{S as default};
