(this.webpackJsonpstreamlit_tree_select=this.webpackJsonpstreamlit_tree_select||[]).push([[0],{110:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),o=n(36),l=n.n(o),i=n(14),c=n(47),u=n(115),d=n(73);function s(e){var t=Array.from(document.getElementsByClassName("ant-select-dropdown")),n=0;return t.forEach((function(e){var t=e.offsetHeight;t&&t%1===0&&(n=t)})),n+=100}var f=Object(c.b)((function(e){var t=Object(a.useState)(void 0),n=Object(i.a)(t,2),o=n[0],l=n[1],f=e.args,m=f.treeData,h=f.allowClear,p=f.bordered,v=f.max_height,g=f.width_dropdown,w=f.disabled,b=(f.dropdownStyle,f.filterTreeNode),E=f.multiple,x=f.placeholder,C=f.placement,_=f.showArrow,y=f.showSearch,F=f.treeCheckable,S=f.treeDefaultExpandAll,T=f.treeDefaultExpandedKes,A=f.treeLine,D=f.on_change,H=f.on_select,j=f.on_search,k=f.defaultValue,O=f.min_height_dropdown,V=f.maxTagCount,B=f.key;Object(a.useEffect)((function(){c.a.setFrameHeight()}),[]);if(D)var I=Function(D);else I=Function();if(H)var N=Function(H);else N=Function();if(j)var J=Function(j);else J=Function();if(k)var K=k;else K=void 0;var L=m;return function e(t){t.forEach((function(t){var n;t.title&&"string"===typeof t.title&&(t.title=(n=t.title,Object(d.b)(n,{replace:function(e){if(e instanceof d.a&&"remove"===e.attribs.class)return r.a.createElement(r.a.Fragment,null)}}))),t.children&&e(t.children)}))}(L),r.a.createElement(u.a,{id:B,showSearch:y,showArrow:_,filterTreeNode:b,multiple:E,disabled:w,treeCheckable:F,treeLine:A,treeDefaultExpandedKeys:T,placement:C,style:{width:g,marginTop:"10px"},onSearch:function(e){J()},onSelect:function(e){N()},defaultValue:K,value:o,dropdownStyle:{maxHeight:v,overflow:"auto",width:g},placeholder:x,allowClear:h,treeDefaultExpandAll:S,onChange:function(e){l(e),c.a.setComponentValue(e),I()},treeData:L,onDropdownVisibleChange:function(){setTimeout((function(){var e=function(e){var t,n;return null==(null===(t=document.getElementById(e))||void 0===t?void 0:t.getAttribute("aria-expanded"))?"first_time":null===(n=document.getElementById(e))||void 0===n?void 0:n.getAttribute("aria-expanded")}(B),t=s();console.log("State",e);var n=0;n=t<O?O:t,"true"==e?c.a.setFrameHeight(n):c.a.setFrameHeight(O)}),1)},onTreeExpand:function(){var e=s();setTimeout((function(){var t=0;t=0==(e=s())?O:e,c.a.setFrameHeight(t)}),1)},maxTagCount:V,onClear:function(){c.a.setComponentValue(void 0)},bordered:p})}));l.a.render(r.a.createElement(r.a.StrictMode,null,r.a.createElement(f,null)),document.getElementById("root"))},93:function(e,t,n){e.exports=n(110)}},[[93,1,2]]]);
//# sourceMappingURL=main.9aa500bf.chunk.js.map