(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),i=n.n(o),l=n(14),u=n(47),c=n(115),d=n(73);function s(){var e=Array.from(document.getElementsByClassName("ant-select-dropdown")),t=0;return e.forEach((function(e){var n=e.offsetHeight;n&&n%1===0&&(t=n)})),t+=100}var f=Object(u.b)((function(e){var t=Object(a.useState)(void 0),n=Object(l.a)(t,2),o=n[0],i=n[1],f=e.args,m=f.treeData,h=f.allowClear,p=f.bordered,g=f.max_height,v=f.width_dropdown,b=f.disabled,w=f.filterTreeNode,E=f.multiple,x=f.placeholder,C=f.status,_=f.showArrow,y=f.showSearch,F=f.treeCheckable,A=f.treeDefaultExpandAll,T=f.treeDefaultExpandedKeys,D=f.treeLine,S=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(){u.a.setFrameHeight()}),[]);if(S)var I=Function(S);else I=Function();if(H)var L=Function(H);else L=Function();if(j)var N=Function(j);else N=Function();if(k)var J=k;else J=void 0;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)}))}(m),r.a.createElement(c.a,{id:B,showSearch:y,showArrow:_,filterTreeNode:w,multiple:E,disabled:b,treeCheckable:F,treeLine:D,status:C,treeDefaultExpandedKeys:T,placement:"bottomLeft",style:{width:v,marginTop:"10px"},onSearch:function(){N()},onSelect:function(){L()},defaultValue:J,value:o,dropdownStyle:{maxHeight:g,overflow:"auto",width:v},dropdownAlign:{offset:[0,0]},placeholder:x,allowClear:h,treeDefaultExpandAll:A,onChange:function(e){i(e),u.a.setComponentValue(e),I()},treeData:m,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(),n=0;n=t<O?O:t,"true"==e?u.a.setFrameHeight(n):u.a.setFrameHeight(O)}),1)},onTreeExpand:function(){setTimeout((function(){var e=s(),t=0;t=0==e?O:e,u.a.setFrameHeight(t)}),1)},maxTagCount:V,onClear:function(){u.a.setComponentValue(void 0)},bordered:p})}));i.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.1b24aa1c.chunk.js.map