import{o as C,p as f,J as L,bl as N,R as E,e as o}from"./app-BgLa5dit.js";const p="assembly_line_columns_settings",F="assembly_line_column_size_settings";function A(r,t,d,c){const a=C(f.getQuickFilters(t)),i=L.get(N),l=c||!(i!=null&&i[t])?{added:[],removed:[]}:i[t];return E.useMemo(()=>{function S(){var _;const{quickFilter:s}=r,e=(_=a.data)==null?void 0:_.find(n=>n.id===s);return e?e.columns:[...o.getDefaultColumnFilterOptions(t,c).map(n=>n.id),...l.added].filter(n=>!l.removed.includes(n))}const m=new Set(S());if(!m.size){const s=new Set(o.getDefaultColumnFilterOptions(t).map(e=>e.id));return o.getAllColumnFilterOptions(d).reduce((e,u)=>({...e,[u.id]:s.has(u.id)}),{})}return o.getAllColumnFilterOptions(d).reduce((s,e)=>({...s,[e.id]:m.has(e.id)}),{})},[a.data,r,l.added.join(","),l.removed.join(",")])}export{F as A,p as a,A as u};
//# sourceMappingURL=Cs6SwFTB.chunk.js.map
