"use strict";(self.webpackChunkparsizteb=self.webpackChunkparsizteb||[]).push([[959],{30959:(e,l,r)=>{r.r(l),r.d(l,{default:()=>p});var t=r(35298),a=r(33132),n=r(2988),i=r(42820),s=r(37072),d=r(67648),c=r(39302),o=r(25384),h=r(15980),x=r(73906),u=r(70579);const p=()=>{var e,l;const{states:{reportData:r,loading:p}}=(0,t.k)(),b=r;return(0,u.jsx)(u.Fragment,{children:b?(0,u.jsxs)(a.A,{spacing:1,children:[(0,u.jsx)("h1",{className:"w-full text-center text-slate-700",children:b.title}),(0,u.jsxs)(n.A,{className:"!relative h-[75vh]  border rounded-lg",children:[p&&(0,u.jsx)(x.A,{}),(0,u.jsx)(i.A,{className:" !absolute top-0 bottom-0 left-0 right-0 !w-full !mb-[5px] overflow-auto rounded-lg",children:(0,u.jsxs)(s.A,{size:"small",stickyHeader:!0,children:[(0,u.jsxs)(d.A,{children:[(0,u.jsxs)(c.A,{children:[(0,u.jsx)(o.A,{width:120,align:"center",variant:"head",className:"!px-1 !bg-blue-500 !text-white border",rowSpan:2,children:"\u0645\u0627\u0647"}),null===(e=b.headers)||void 0===e?void 0:e.map((e=>{var l,r,t,a,n;return(0,u.jsx)(o.A,{width:e.width||"".concat(null!==(l=e.children.length)&&void 0!==l?l:150),align:"center",variant:"head",className:"!px-1  border",colSpan:null===(r=e.children)||void 0===r?void 0:r.length,rowSpan:null!==(t=e.children)&&void 0!==t&&t.length?1:2,sx:{minWidth:150*(e.children.length||1),backgroundColor:null!==(a=e.backgroundColor)&&void 0!==a?a:"#3b6df6",color:null!==(n=e.color)&&void 0!==n?n:"#ffffff"},children:e.title},e.title)})),(0,u.jsx)(o.A,{width:200,align:"center",variant:"head",className:"!px-1 !bg-blue-500 !text-white border",rowSpan:2,children:"\u062c\u0645\u0639"})]}),(0,u.jsx)(c.A,{className:"sticky top-[38px]",children:null===(l=b.headers)||void 0===l?void 0:l.flatMap((e=>e.children)).map((e=>{var l,r;return(0,u.jsx)(o.A,{width:e.width,align:"center",variant:"head",className:"!px-1  border",sx:{backgroundColor:null!==(l=e.backgroundColor)&&void 0!==l?l:"#475569",color:null!==(r=e.color)&&void 0!==r?r:"#ffffff"},children:e.title},e.title)}))})]}),(0,u.jsx)(h.A,{children:b.list?(0,u.jsx)(u.Fragment,{children:b.list.map((e=>(0,u.jsx)(c.A,{className:"cursor-pointer odd:bg-white even:bg-slate-100",children:Object.entries(e).map((e=>{let[l,r]=e;return(0,u.jsx)(o.A,{className:"!px-1 border",variant:"body",align:"center",children:r},l)}))},Object.values(e)[0])))}):(0,u.jsx)(c.A,{children:(0,u.jsx)(o.A,{colSpan:7,align:"center",children:p?"\u062f\u0631 \u062d\u0627\u0644 \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a ...":"\u0645\u0648\u0631\u062f\u06cc \u062c\u0647\u062a \u0646\u0645\u0627\u06cc\u0634 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f"})})})]})})]})]}):(0,u.jsx)("h2",{className:"w-full p-8 text-center text-slate-700",children:"\u062f\u0627\u062f\u0647 \u0627\u06cc \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f"})})}}}]);
//# sourceMappingURL=959.85ee0398.chunk.js.map