import{SHOW_CHILD as f}from"./commonUtil.mjs";function h(r,s,l){const i=new Set(r);return r.filter(u=>{const n=s[u],t=n?n.parent:null,e=n?n.children:null;return l===f?!(e&&e.some(o=>o.key&&i.has(o.key))):!(t&&!t.node.disabled&&i.has(t.key))})}function v(r,s,l,i=!1){let u=s;const n=[];for(let t=0;t<r.length;t+=1){const e=r[t],o=u?.findIndex(d=>{const a=d[l.value];return i?String(a)===String(e):a===e}),c=o!==-1?u?.[o]:null;n.push({value:c?.[l.value]??e,index:o,option:c}),u=c?.[l.children]}return n}export{h as formatStrategyValues,v as toPathOptions};
