forked from sindresorhus/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
2496-850d4e76f28b08fc.js.download
2 lines (2 loc) · 20 KB
/
2496-850d4e76f28b08fc.js.download
1
2
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2496],{63399:function(e,t,i){i.d(t,{Z:function(){return _}});var r,n=i(2784),o="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:{};let s;s="undefined"!==typeof window?window:"undefined"!==typeof self?self:o;let a=null,l=null;const c=s.clearTimeout,u=s.setTimeout,d=s.cancelAnimationFrame||s.mozCancelAnimationFrame||s.webkitCancelAnimationFrame,h=s.requestAnimationFrame||s.mozRequestAnimationFrame||s.webkitRequestAnimationFrame;function f(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}null==d||null==h?(a=c,l=function(e){return u(e,20)}):(a=function([e,t]){d(e),c(t)},l=function(e){const t=h((function(){c(i),e()})),i=u((function(){d(t),e()}),20);return[t,i]}),r={createDetectElementResize:function(e){let t,i,r,n,o,c,u;const d="undefined"!==typeof document&&document.attachEvent;if(!d){c=function(e){const t=e.__resizeTriggers__,i=t.firstElementChild,r=t.lastElementChild,n=i.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,n.style.width=i.offsetWidth+1+"px",n.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},u=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;c(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=l((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(i){i.call(t,e)})))}))};let e=!1,s="";r="animationstart";const d="Webkit Moz O ms".split(" ");let h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let i=0;i<d.length;i++)if(void 0!==t.style[d[i]+"AnimationName"]){f=d[i],s="-"+f.toLowerCase()+"-",r=h[i],e=!0;break}}i="resizeanim",t="@"+s+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",n=s+"animation: 1ms "+i+"; "}return{addResizeListener:function(o,a){if(d)o.attachEvent("onresize",a);else{if(!o.__resizeTriggers__){const a=o.ownerDocument,l=s.getComputedStyle(o);l&&"static"===l.position&&(o.style.position="relative"),function(i){if(!i.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(n||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=i.head||i.getElementsByTagName("head")[0],s=i.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=r:s.appendChild(i.createTextNode(r)),o.appendChild(s)}}(a),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=a.createElement("div")).className="resize-triggers";const d=a.createElement("div");d.className="expand-trigger",d.appendChild(a.createElement("div"));const h=a.createElement("div");h.className="contract-trigger",o.__resizeTriggers__.appendChild(d),o.__resizeTriggers__.appendChild(h),o.appendChild(o.__resizeTriggers__),c(o),o.addEventListener("scroll",u,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===i&&c(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(a)}},removeResizeListener:function(e,t){if(d)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(i){}}}}}};class p extends n.Component{constructor(...e){super(...e),f(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0}),f(this,"_autoSizer",null),f(this,"_detectElementResize",null),f(this,"_parentNode",null),f(this,"_resizeObserver",null),f(this,"_onResize",(()=>{const{disableHeight:e,disableWidth:t,onResize:i}=this.props;if(this._parentNode){var r,n,o,s;const a=window.getComputedStyle(this._parentNode)||{},l=parseInt(null!==(r=a.paddingLeft)&&void 0!==r?r:"0",10),c=parseInt(null!==(n=a.paddingRight)&&void 0!==n?n:"0",10),u=parseInt(null!==(o=a.paddingTop)&&void 0!==o?o:"0",10),d=parseInt(null!==(s=a.paddingBottom)&&void 0!==s?s:"0",10),h=this._parentNode.getBoundingClientRect(),f=h.height-u-d,p=h.width-l-c,_=this._parentNode.offsetHeight-u-d,m=this._parentNode.offsetWidth-l-c;(e||this.state.height===_&&this.state.scaledHeight===f)&&(t||this.state.width===m&&this.state.scaledWidth===p)||(this.setState({height:_,width:m,scaledHeight:f,scaledWidth:p}),"function"===typeof i&&i({height:_,scaledHeight:f,scaledWidth:p,width:m}))}})),f(this,"_setRef",(e=>{this._autoSizer=e}))}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!==typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=(0,r.createDetectElementResize)(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:i,disableHeight:r,disableWidth:o,nonce:s,onResize:a,style:l,tagName:c="div",...u}=this.props,{height:d,scaledHeight:h,scaledWidth:f,width:p}=this.state,_={overflow:"visible"},m={};let g=!1;return r||(0===d&&(g=!0),_.height=0,m.height=d,m.scaledHeight=h),o||(0===p&&(g=!0),_.width=0,m.width=p,m.scaledWidth=f),(0,n.createElement)(c,{ref:this._setRef,style:{..._,...l},...u},!g&&e(m))}}f(p,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var _=p},31667:function(e,t,i){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},r.apply(this,arguments)}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}i.d(t,{NC:function(){return W}});var s=i(2784);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},a.apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}var d=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function h(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(r=e[i],n=t[i],!(r===n||d(r)&&d(n)))return!1;var r,n;return!0}var f=function(e,t){var i;void 0===t&&(t=h);var r,n=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&i===this&&t(s,n)||(r=e.apply(this,s),o=!0,i=this,n=s),r}},p="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function _(e){cancelAnimationFrame(e.id)}function m(e,t){var i=p();var r={id:requestAnimationFrame((function n(){p()-i>=t?e.call(null):r.id=requestAnimationFrame(n)}))};return r}var g=-1;function v(e){if(void 0===e&&(e=!1),-1===g||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",document.body.appendChild(t),g=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return g}var y=null;function z(e){if(void 0===e&&(e=!1),null===y||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";var r=document.createElement("div"),n=r.style;return n.width="100px",n.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?y="positive-descending":(t.scrollLeft=1,y=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),y}return y}var S=function(e,t){return e};function b(e){var t,i=e.getItemOffset,r=e.getEstimatedTotalSize,n=e.getItemSize,o=e.getOffsetForIndexAndAlignment,c=e.getStartIndexForOffset,d=e.getStopIndexForStartIndex,h=e.initInstanceProps,p=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,l(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:l(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=f((function(e,t,i,n){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:n})})),r._callOnScroll=void 0,r._callOnScroll=f((function(e,t,i){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,s=o.direction,a=o.itemSize,l=o.layout,c=r._getItemStyleCache(p&&a,p&&l,p&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=i(r.props,e,r._instanceProps),d=n(r.props,e,r._instanceProps),h="horizontal"===s||"horizontal"===l,f="rtl"===s,_=h?u:0;c[e]=t={position:"absolute",left:f?void 0:_,right:f?_:void 0,top:h?0:u,height:h?"100%":d,width:h?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=f((function(e,t,i){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,n=t.scrollLeft,o=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===n)return null;var t=r.props.direction,s=n;if("rtl"===t)switch(z()){case"negative":s=-n;break;case"positive-descending":s=o-i-n}return s=Math.max(0,Math.min(s,o-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<n?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,n=t.scrollHeight,o=t.scrollTop;r.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,n-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&_(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=m(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}u(t,e),t.getDerivedStateFromProps=function(e,t){return O(e,t),g(e),null};var y=t.prototype;return y.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},y.scrollToItem=function(e,t){void 0===t&&(t="auto");var i=this.props,r=i.itemCount,n=i.layout,s=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===n?l.scrollWidth>l.clientWidth?v():0:l.scrollHeight>l.clientHeight?v():0}this.scrollTo(o(this.props,e,t,s,this._instanceProps,a))},y.componentDidMount=function(){var e=this.props,t=e.direction,i=e.initialScrollOffset,r=e.layout;if("number"===typeof i&&null!=this._outerRef){var n=this._outerRef;"horizontal"===t||"horizontal"===r?n.scrollLeft=i:n.scrollTop=i}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props,t=e.direction,i=e.layout,r=this.state,n=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===i)if("rtl"===t)switch(z()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var s=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-s-n}else o.scrollLeft=n;else o.scrollTop=n}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&_(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,i=e.className,n=e.direction,o=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemCount,h=e.itemData,f=e.itemKey,p=void 0===f?S:f,_=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,z=e.width,b=this.state.isScrolling,O="horizontal"===n||"horizontal"===_,w=O?this._onScrollHorizontal:this._onScrollVertical,R=this._getRangeToRender(),T=R[0],I=R[1],C=[];if(d>0)for(var N=T;N<=I;N++)C.push((0,s.createElement)(t,{data:h,key:p(N,h),index:N,isScrolling:y?b:void 0,style:this._getItemStyle(N)}));var x=r(this.props,this._instanceProps);return(0,s.createElement)(m||g||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:a({position:"relative",height:o,width:z,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:n},v)},(0,s.createElement)(c||u||"div",{children:C,ref:l,style:{height:O?"100%":x,pointerEvents:b?"none":void 0,width:O?x:"100%"}}))},y._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],i=e[1],r=e[2],n=e[3];this._callOnItemsRendered(t,i,r,n)}if("function"===typeof this.props.onScroll){var o=this.state,s=o.scrollDirection,a=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},y._getRangeToRender=function(){var e=this.props,t=e.itemCount,i=e.overscanCount,r=this.state,n=r.isScrolling,o=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var a=c(this.props,s,this._instanceProps),l=d(this.props,a,s,this._instanceProps),u=n&&"backward"!==o?1:Math.max(1,i),h=n&&"forward"!==o?1:Math.max(1,i);return[Math.max(0,a-u),Math.max(0,Math.min(t-1,l+h)),a,l]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var O=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},w=b({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,i,r,n,o){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,h="horizontal"===s||"horizontal"===u?d:a,f=Math.max(0,l*c-h),p=Math.min(f,t*c),_=Math.max(0,t*c-h+c+o);switch("smart"===i&&(i=r>=_-h&&r<=p+h?"auto":"center"),i){case"start":return p;case"end":return _;case"center":var m=Math.round(_+(p-_)/2);return m<Math.ceil(h/2)?0:m>f+Math.floor(h/2)?f:m;default:return r>=_&&r<=p?r:r<_?_:p}},getStartIndexForOffset:function(e,t){var i=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(i-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,i){var r=e.direction,n=e.height,o=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,u="horizontal"===r||"horizontal"===a?l:n,d=Math.ceil((u+i-c)/s);return Math.max(0,Math.min(o-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var T=function(e){var t=e.createRecord,i=e.shouldUpdateRecords,n=e.updateRecord,o=e.updateRecordOnNewData;return function(e,s,a){var l,c=e.treeWalker;void 0===a&&(a={});var u=[],d=r({},s.records),h=c(null!=(l=a.refreshNodes)&&l);if(i(a))for(var f in d)n(d[f],f,a);for(var p=!1;;){var _=h.next(p),m=_.done,g=_.value;if(m||!g)break;var v=void 0;if("string"===typeof g||"symbol"===typeof g)v=g;else{var y=d[v=g.id];y?(y.data=g,o(y,a)):d[v]=t(g,a,s)}d[v]&&(u.push(v),p=d[v].isOpen)}return{order:u,records:d}}},I=function(e){function t(t,i){var r;return(r=e.call(this,t,i)||this).list=s.createRef(),r.state={component:t.children,recomputeTree:r.recomputeTree.bind(R(r)),records:{}},r}o(t,e),t.getDerivedStateFromProps=function(e,t){var i=e.children,n=e.itemData,o=e.treeWalker,s=t.computeTree,a=t.order;return r({component:i,treeData:n,treeWalker:o},o===t.treeWalker&&a?null:s(e,t,{refreshNodes:!0}))};var i=t.prototype;return i.recomputeTree=function(e){var t=this;return new Promise((function(i){t.setState((function(i){return i.computeTree(t.props,i,e)}),i)}))},i.scrollTo=function(e){var t;null==(t=this.list.current)||t.scrollTo(e)},i.scrollToItem=function(e,t){var i;null==(i=this.list.current)||i.scrollToItem(this.state.order.indexOf(e),t)},t}(s.PureComponent);I.defaultProps={rowComponent:function(e){var t=e.index,i=e.data,r=i.component,n=i.treeData,o=i.order,a=i.records,l=e.style,c=e.isScrolling;return s.createElement(r,Object.assign({},a[o[t]],{style:l,isScrolling:c,treeData:n}))}};var C=I,N=function(e){var t=e.opennessState,i=e.useDefaultOpenness;return!!t||void 0!==i&&i},x=function(e,t,i){var r,n=i.opennessState,o=i.useDefaultOpenness,s=void 0!==o&&o;e.isOpen=s?e.data.isOpenByDefault:null!=(r=null==n?void 0:n[t])?r:e.isOpen},E=function(e,t){var i=t.useDefaultOpenness;void 0!==i&&i&&(e.isOpen=e.data.isOpenByDefault)},D=T({createRecord:function(e,t,i){var r,n=t.opennessState,o=i.recomputeTree,s={data:e,isOpen:null!=(r=null==n?void 0:n[e.id])?r:e.isOpenByDefault,toggle:function(){return s.isOpen=!s.isOpen,o({refreshNodes:s.isOpen})}};return s},shouldUpdateRecords:N,updateRecord:x,updateRecordOnNewData:E}),W=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).state=r({},n.state,{computeTree:D}),n}return o(t,e),t.prototype.render=function(){var e=this.props,t=(e.children,e.treeWalker,e.rowComponent),i=function(e,t){if(null==e)return{};var i,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)i=o[r],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,["children","treeWalker","rowComponent"]);return s.createElement(w,Object.assign({},i,{itemCount:this.state.order.length,itemData:this.state,ref:this.list}),t)},t}(C);T({createRecord:function(e,t,i){var r,n=t.opennessState,o=i.recomputeTree,s=i.resetAfterId,a={data:e,height:e.defaultHeight,isOpen:null!=(r=null==n?void 0:n[e.id])?r:e.isOpenByDefault,resize:function(e,t){a.height=e,s(a.data.id,t)},toggle:function(){return a.isOpen=!a.isOpen,o({refreshNodes:a.isOpen,useDefaultHeight:!0})}};return a},shouldUpdateRecords:function(e){var t;return N(e)||null!=(t=e.useDefaultHeight)&&t},updateRecord:function(e,t,i){i.useDefaultHeight&&(e.height=e.data.defaultHeight),x(e,t,i)},updateRecordOnNewData:function(e,t){E(e,t),t.useDefaultHeight&&(e.height=e.data.defaultHeight)}})}}]);
//# sourceMappingURL=2496-850d4e76f28b08fc.js.map