1import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{f as D,r as E}from"./createLucideIcon-CiWnlb16.js";import{r as C,N as R,E as M}from"./addLoader-p8WLB-bt.js";import{e as c,bm as P,sa as z,d as I,sb as J,L,aa as u,sc as S}from"./loginCallback-DUlVA6A0.js";import{B as j}from"./index-CQOuJFSK.js";import{C as k}from"./Collapsible-ZeW-gwxq.js";import{P as A}from"./PageTitle-BqRYU3UK.js";/* empty css */import"./config.release-CKeoGYk7.js";import"./ExpandMore-CyB2U8Q5.js";function O({handleShowFilters:x,toggle:h,setToggle:f,debtor:r,sorting:b,debtorReadJustments:l}){const g=c(P),n=c(z),o=I();C.useMediaQuery({maxWidth:641});const{id:i}=D(),m=(a,t,s=!1)=>()=>{o(S({id:t,isPlan:s,title:a}))};return E.useEffect(()=>{i&&o(J(i))},[]),e.jsxs("div",{children:[e.jsx(R,{title:"ÐÑÑеÑÑ / планÑ",handleShowFilters:x,toggle:h,setToggle:f}),n?e.jsx(M,{...n}):e.jsx("div",{className:"pl-6 pr-6",children:g?e.jsx(L,{}):e.jsxs("div",{className:"debtor-read-justments-table-wrapper",children:[e.jsx(A,{title:r?.debtorModel?.organization?.fullName?r?.debtorModel?.organization?.fullName:r?.debtorModel?.organization?.shortName,className:"debtor-read-justments-page-title"}),l?.length?e.jsx(e.Fragment,{children:b.map(a=>{let t=[];return a?t=l.filter(s=>s.plan.typeId==a):t=l,t.length?t.map((s,N)=>e.jsx("div",{className:"debtor-read-justments-table-items",children:e.jsxs(k,{title:`${s.plan?.title?s.plan.title:"Ðез плана"} / ÐÑÑеÑов: ${s.reports.length}`,children:[s.plan&&e.jsxs("ul",{className:"debtor-read-justments-table-item",children:[e.jsx("span",{children:u(s.plan?.date)}),e.jsxs("span",{children:[" ",s.plan?.title]}),e.jsx(j,{value:"ÐагÑÑзиÑÑ Ð¿Ð»Ð°Ð½",onClick:m(s.plan?.title,s.plan?.id,!0)})]}),e.jsx("ul",{className:"debtor-read-justments-table-list",children:s?.reports?.map(({id:d,planId:B,documentId:F,date:v,title:p})=>e.jsxs("li",{className:"debtor-read-justments-table-item",children:[e.jsx("span",{children:p}),e.jsx("span",{children:u(v)}),e.jsx(j,{value:"ÐагÑÑзиÑÑ Ð¾ÑÑеÑ",onClick:m(p,d)})]},d))})]})},N)):null})}):e.jsx(e.Fragment,{children:"ÐÑÑеÑов и планов не найдено"})]})})]})}export{O as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.