import{ci as a,aA as c,g3 as n,g4 as d,cq as l,j as h,k as m,aG as p,h as s}from"./bundle.CHKSNOJF.js";import{u as _}from"./useCustomBulkActions-DRbsiY6I.js";import"./useDownloadPdfs-CUk8lkB_.js";function A(){const{id:e}=a(),r=c(),o=n(),t=d(),i=l(),u=_();return h.jsx(m,{resource:"purchase_order",endpoint:s("/api/v1/purchase_orders?include=vendor,expense&vendor_id=:id&sort=id|desc",{id:e}),columns:o,customFilters:t,customActions:i,customBulkActions:u,customFilterPlaceholder:"status",withResourcefulActions:!0,bulkRoute:"/api/v1/purchase_orders/bulk",linkToCreate:s("/purchase_orders/create?vendor=:id",{id:e}),linkToEdit:"/purchase_orders/:id/edit",excludeColumns:["vendor_id"],linkToCreateGuards:[p("create_purchase_order")],hideEditableOptions:!r("edit_purchase_order"),withoutPageAsPreference:!0,withoutStoringSearchFilter:!0})}export{A as default};
