1import{j as s,aP as m,c,u as p,q as x,fa as y}from"./index-2CwtICst.js";import{I as j,a as h,b as f,c as g}from"./common_card_components-COGB2mOb.js";import{s as o}from"./pdc_request_card.module-cPafQjEb.js";import{C as r}from"./col-MZTILiOt.js";import{a as l}from"./index-keUnVeur.js";import{L as P}from"./index-b1S956hI.js";import{I as C}from"./infinte_scroll_container-CISyZ_Tc.js";import{g as b,s as n}from"./payment_requests.module-4gzMCwOR.js";import{g as N}from"./utils-Byo2OGEK.js";import"./format_date_utils-BWqE6PUs.js";import"./index-D3pD5RCc.js";import"./react-number-format.es-Dr0FQMRn.js";const I={payment_success:"success",payment_failed:"failed",payment_created:"processing"};function _(a){const{item:e}=a;if(e)return s.jsx("div",{className:o.cardContainer,children:s.jsxs(m,{gutter:0,align:"middle",children:[s.jsx(r,{span:6,children:s.jsx(j,{title:e.buyer_name})}),s.jsx(r,{span:6,children:s.jsx(h,{invoiceAmount:e.amount})}),s.jsx(r,{span:6,children:s.jsx(f,{date:e.payment_date})}),s.jsx(r,{span:6,children:s.jsx(g,{status:I[e.status]})})]})})}const v=()=>{const{isLoading:a,pdcPaymentsHistory:e}=l({business_type:"seller",history:!0}),i=e;return a?s.jsx(c,{}):s.jsx(P,{split:!0,rowKey:t=>t.uuid,dataSource:i,renderItem:t=>s.jsx(_,{item:t})})},H=()=>{const a=b();return s.jsx(m,{gutter:0,align:"middle",className:o.headerRow,children:a.map(e=>s.jsx(r,{span:e.size,children:s.jsx("span",{className:o.listHeader,children:e.title})},e.key))})};function B(){const[a,e]=p(),i=x(a),{isLoading:t,totalPaid:d}=l({business_type:"seller",history:!0}),u=()=>{!t&&y(meta)&&e({...i,pageNumber:1})};return t?s.jsx(c,{showText:!1}):s.jsxs("div",{className:n.mainContainer,children:[s.jsx("div",{className:n.tabSummaryContainer,children:s.jsxs("div",{children:[s.jsx("div",{className:n.summaryLabel,children:"Total Paid"}),s.jsx("div",{className:n.summaryValue,children:N(parseFloat(d))})]})}),s.jsx(H,{}),s.jsx(C,{loadMore:u,current_page:"1",PageComponent:v})]})}export{B as Component};
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.