import{$ as l}from"./datatables-Bo82YvhT.js";import{d as c}from"./datatables-K_hWx13i.js";/* empty css                                  */document.addEventListener("DOMContentLoaded",function(){const t=document.getElementById("massPaymentBtn"),r=document.getElementById("massPaymentCount"),a=document.getElementById("massPaymentSelectAll");if(t){const n=()=>{const e=document.querySelectorAll(".mass-payment-checkbox:checked");t.disabled=e.length<2,r&&(r.textContent=e.length)};document.querySelectorAll(".mass-payment-checkbox").forEach(e=>{e.addEventListener("change",n)}),a&&a.addEventListener("change",e=>{document.querySelectorAll(".mass-payment-checkbox").forEach(o=>{o.checked=e.target.checked}),n()})}const s=l("#invoicesTable");s.length!==0&&s.DataTable(c.getDefaultConfig({order:[[0,"desc"]],columnDefs:[{targets:0,responsivePriority:2,orderable:!0},{targets:1,responsivePriority:1,orderable:!0},{targets:2,responsivePriority:6,orderable:!0,className:"d-none d-md-table-cell"},{targets:3,responsivePriority:5,orderable:!0,className:"d-none d-lg-table-cell"},{targets:4,responsivePriority:7,orderable:!0,className:"d-none d-lg-table-cell"},{targets:5,responsivePriority:3,orderable:!0},{targets:6,responsivePriority:4,orderable:!0},{targets:7,responsivePriority:1,orderable:!1,searchable:!1,className:"text-end"}]}))});
