import{r as e,j as t,b as s}from"./app-2b14cdc4.js";import{C as n}from"./index-d3bc68b3.js";function o(s){const{checked:o}=s,[r,c]=e.useState(o??!1);return t.jsx(n,{className:"reset-t-checkbox",checked:r,onChange:e=>{c(e),s.onChange&&s.onChange(e)}})}const r=(e,t={status:"NEW"},n="is_checked")=>{const o=[];for(let r=0;r<e.length;r++){const c=e[r];if(c[n]){const e=Object.keys(t);for(let n=0;n<e.length;n++){const r=e[n];if(c[r]){if(c[r]!==t[r])return void s("所选撤销行不满足条件","error");o.push(c.id)}}}}if(o.length)return o;s("未选择行")};export{o as C,r as g};
