const e=require("./valueUtil.js");var t=`SHOW_ALL`,n=`SHOW_PARENT`,r=`SHOW_CHILD`;function i(t,n,r,i){let a=new Set(t);return n===`SHOW_CHILD`?t.filter(t=>{let n=r[t];return!(n&&n.children&&n.children.some(({node:e})=>a.has(e[i.value]))&&n.children.every(({node:t})=>e.isCheckDisabled(t)||a.has(t[i.value])))}):n===`SHOW_PARENT`?t.filter(t=>{let n=r[t],i=n?n.parent:null;return!(i&&!e.isCheckDisabled(i.node)&&a.has(i.key))}):t}exports.SHOW_ALL=t,exports.SHOW_CHILD=r,exports.SHOW_PARENT=n,exports.formatStrategyValues=i;