this.removeTab(child.key, e)}/>) : null;\n childrenWithClose.push(React.cloneElement(child, {\n tab: (\n {child.props.tab}\n {closeIcon}\n
),\n key: child.key || index,\n }));\n });\n // Add new tab handler\n if (!hideAdd) {\n tabBarExtraContent = (\n \n {tabBarExtraContent}\n );\n }\n }\n tabBarExtraContent = tabBarExtraContent ? ({tabBarExtraContent}
) : null;\n const tabBarProps = __rest(this.props, []);\n const contentCls = classNames(`${prefixCls}-${tabPosition}-content`, type.indexOf('card') >= 0 && `${prefixCls}-card-content`);\n return ( ()} renderTabContent={() => ()} onChange={this.handleChange}>\n {childrenWithClose.length > 0 ? childrenWithClose : children}\n );\n };\n }\n componentDidMount() {\n const NO_FLEX = ' no-flex';\n const tabNode = ReactDOM.findDOMNode(this);\n if (tabNode && !isFlexSupported && tabNode.className.indexOf(NO_FLEX) === -1) {\n tabNode.className += NO_FLEX;\n }\n }\n render() {\n return {this.renderTabs};\n }\n}\nTabs.TabPane = TabPane;\nTabs.defaultProps = {\n hideAdd: false,\n tabPosition: 'top',\n};\n","const isStyleSupport = (styleName) => {\n if (typeof window !== 'undefined' && window.document && window.document.documentElement) {\n const styleNameList = Array.isArray(styleName) ? styleName : [styleName];\n const { documentElement } = window.document;\n return styleNameList.some(name => name in documentElement.style);\n }\n return false;\n};\nexport const isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);\nexport default isStyleSupport;\n"],"sourceRoot":""}