"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l="__RC_CASCADER_SPLIT__",s="SHOW_PARENT",a="SHOW_CHILD";function r(t){return t.join(l)}function f(t){return t.map(r)}function c(t){return t.split(l)}function u(t){const{label:e,value:o,children:i}=t||{},n=o||"value";return{label:e||"label",value:n,key:n,children:i||"children"}}function P(t,e){return t.isLeaf??!t[e.children]?.length}function h(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})}exports.SHOW_CHILD=a;exports.SHOW_PARENT=s;exports.VALUE_SPLIT=l;exports.fillFieldNames=u;exports.isLeaf=P;exports.scrollIntoParentView=h;exports.toPathKey=r;exports.toPathKeys=f;exports.toPathValueStr=c;
