"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./valueUtil.js"),S="SHOW_ALL",o="SHOW_PARENT",s="SHOW_CHILD";function H(r,u,l,a){const n=new Set(r);return u===s?r.filter(i=>{const t=l[i];return!(t&&t.children&&t.children.some(({node:e})=>n.has(e[a.value]))&&t.children.every(({node:e})=>c.isCheckDisabled(e)||n.has(e[a.value])))}):u===o?r.filter(i=>{const t=l[i],e=t?t.parent:null;return!(e&&!c.isCheckDisabled(e.node)&&n.has(e.key))}):r}exports.SHOW_ALL=S;exports.SHOW_CHILD=s;exports.SHOW_PARENT=o;exports.formatStrategyValues=H;
