const l="__RC_CASCADER_SPLIT__",s="SHOW_PARENT",i="SHOW_CHILD";function f(t){return t.join(l)}function c(t){return t.map(f)}function a(t){return t.split(l)}function u(t){const{label:e,value:o,children:r}=t||{},n=o||"value";return{label:e||"label",value:n,key:n,children:r||"children"}}function h(t,e){return t.isLeaf??!t[e.children]?.length}function T(t){const e=t.parentElement;if(!e)return;const o=t.offsetTop-e.offsetTop;o-e.scrollTop<0?e.scrollTo({top:o}):o+t.offsetHeight-e.scrollTop>e.offsetHeight&&e.scrollTo({top:o+t.offsetHeight-e.offsetHeight})}export{i as SHOW_CHILD,s as SHOW_PARENT,l as VALUE_SPLIT,u as fillFieldNames,h as isLeaf,T as scrollIntoParentView,f as toPathKey,c as toPathKeys,a as toPathValueStr};
