import{ci as u,aA as c,dV as m,j as l,k as d,bc as p,bd as y,aG as h,h as s}from"./bundle.CHKSNOJF.js";import{u as P}from"./usePaymentColumns-zwaRTrRi.js";import{u as f}from"./useActions-BtyXkkEY.js";import"./PaymentStatus-PiMe9xXa.js";import"./payment-status-BqcWIXYh.js";import"./payments-C1sjF6lG.js";function E(){const{id:t}=u(),i=c(),o=P(),a=m(),n=f();return l.jsx(d,{resource:"payment",endpoint:s("/api/v1/payments?include=client,invoices&client_id=:id&sort=id|desc",{id:t}),columns:o,customActions:n,customFilters:a,customFilterPlaceholder:"status",withResourcefulActions:!0,bulkRoute:"/api/v1/payments/bulk",linkToCreate:s("/payments/create?client=:id",{id:t}),linkToEdit:"/payments/:id/edit",excludeColumns:["client_id"],showRestore:e=>!e.is_deleted,linkToCreateGuards:[h("create_payment")],hideEditableOptions:!i("edit_payment"),showRestoreBulk:e=>e.every(r=>p(r)===y.Archived),withoutPageAsPreference:!0,withoutStoringSearchFilter:!0})}export{E as default};
