import{ci as u,aA as a,e0 as n,j as d,k as l,aG as m,h as e}from"./bundle.CHKSNOJF.js";import{a as p,u as f}from"./hooks-9RDJr6hd.js";import{u as h}from"./useCustomBulkActions-2sCvVKfD.js";import"./CreditStatus-WHg8w3rC.js";import"./useInvoiceColumns-CGbyIb88.js";import"./InvoiceStatus-1S0ZEgN9.js";import"./invoice-status-C0SI5VYC.js";import"./useDownloadPdfs-CUk8lkB_.js";import"./payments-C1sjF6lG.js";import"./atoms-BuQpgpbC.js";function w(){const{id:t}=u(),i=a(),s=p(),r=n(),o=f(),c=h();return d.jsx(l,{resource:"credit",endpoint:e("/api/v1/credits?include=client&client_id=:id&sort=id|desc",{id:t}),columns:s,customActions:o,customBulkActions:c,customFilters:r,customFilterPlaceholder:"status",withResourcefulActions:!0,bulkRoute:"/api/v1/credits/bulk",linkToCreate:e("/credits/create?client=:id",{id:t}),linkToEdit:"/credits/:id/edit",excludeColumns:["client_id"],linkToCreateGuards:[m("create_credit")],hideEditableOptions:!i("edit_credit"),withoutPageAsPreference:!0,withoutStoringSearchFilter:!0})}export{w as default};
