import{p}from"./pick.103d2550.js";import{r as u,c as v,u as s}from"./framework.e8f655c8.js";const k=[{name:"\u6B63\u9898\u540D",searchKey:"title"},{name:"\u51FA\u5904",searchKey:"sourceName"},{name:"\u5173\u952E\u8BCD",searchKey:"keyword"}];function g(h){function o(){return k.map(e=>p(e,["name","searchKey"]))}let t=u(!0),r=u([]),n=v(()=>o(s(h))),l=u(!1);function i(e){let a=s(n).reduce((c,m)=>{const{searchKey:d}=m;return c.push(d),c},[]);e?(r.value=a,t.value=!!e,l.value=!1):(r.value=[a[0]],t.value=!1,l.value=!0)}function f(e){let a=e.length;t.value=a===n.value.length,l.value=a>0&&a<n.value.length}return{checkAll:t,isIndeterminate:l,checkedList:n,checked:r,handleCheckAllChange:i,handleCheckedChange:f}}export{k as C,g as u};
