import{j as u,I as d,aI as C}from"./mui-vendor-CkIVaoQP.js";import{r as n,u as m}from"./react-vendor-CmFgShSM.js";import{u as f,f as A}from"./redux-vendor-B7uoacJt.js";import{L as x,jW as j,h as F,p as h,jh as I,G as a,S as o}from"./index-Vwb3Bce5.js";import{S as E}from"./SimpleTable-B3_6HY_p.js";import{d as S}from"./Plagiarism-B6PD3EJO.js";import"./index-CgNdnt2v.js";import"./Close-8pFLGZ5w.js";import"./Search-CLlOaERQ.js";import"./Delete-DHYHiC8G.js";const b=()=>{const[c,i]=n.useState(),l=m(),s=f(),{registeredComplaints:r}=A(e=>e.provinceFinancialSlice);return n.useEffect(()=>{s(x()),s(j()).then(e=>{s(F())})},[]),n.useEffect(()=>{const e=r==null?void 0:r.map((t,p)=>[t.title,t.description,h(t==null?void 0:t.createDate),t.state==="pending"?"در حال بررسی":t.state==="accepted"?"تایید شده":"رد شده",u.jsx(d,{"aria-label":"delete",color:"primary",className:"avicultureActiveRequestsBtn",onClick:()=>l(I+t.poultryRequestId),children:u.jsx(S,{})},p)]);i(e)},[]),u.jsx(u.Fragment,{children:u.jsx(C,{display:"flex",justifyContent:"center",children:u.jsx(a,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:u.jsx(a,{container:!0,justifyContent:"space-between",gap:o.SMALL,children:u.jsx(a,{xs:12,children:u.jsx(a,{mt:o.SMAll,children:u.jsx(E,{name:"شکایات ثبت شده",columns:[" موضوع"," توضیحات"," تاریخ ثبت"," وضعیت"," پرونده"],data:c})})})})})})})};export{b as default};
