import{isCheckDisabled as f}from"./valueUtil.mjs";const S="SHOW_ALL",l="SHOW_PARENT",s="SHOW_CHILD";function H(e,c,i,u){const n=new Set(e);return c===s?e.filter(o=>{const t=i[o];return!(t&&t.children&&t.children.some(({node:r})=>n.has(r[u.value]))&&t.children.every(({node:r})=>f(r)||n.has(r[u.value])))}):c===l?e.filter(o=>{const t=i[o],r=t?t.parent:null;return!(r&&!f(r.node)&&n.has(r.key))}):e}export{S as SHOW_ALL,s as SHOW_CHILD,l as SHOW_PARENT,H as formatStrategyValues};
