{"version":3,"sources":["webpack:///./node_modules/rc-tabs/lib/TabContent.js","webpack:///./node_modules/rc-tabs/lib/ScrollableInkTabBar.js","webpack:///./node_modules/rc-tabs/lib/InkTabBarNode.js","webpack:///./node_modules/rc-tabs/lib/TabBarTabsNode.js","webpack:///./node_modules/rc-tabs/node_modules/warning/warning.js","webpack:///./node_modules/rc-tabs/lib/TabBarRootNode.js","webpack:///./node_modules/rc-tabs/lib/ScrollableTabBarNode.js","webpack:///./node_modules/rc-tabs/lib/SaveRef.js","webpack:///./node_modules/rc-tabs/es/KeyCode.js","webpack:///./node_modules/rc-tabs/es/utils.js","webpack:///./node_modules/rc-tabs/es/Sentinel.js","webpack:///./node_modules/rc-tabs/es/TabPane.js","webpack:///./node_modules/rc-tabs/es/Tabs.js","webpack:///./node_modules/rc-tabs/es/TabContent.js","webpack:///./node_modules/rc-tabs/es/index.js","webpack:///./node_modules/rc-tabs/lib/utils.js"],"names":["Object","defineProperty","exports","value","_extends3","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_react2","_propTypes2","_classnames3","_utils","obj","__esModule","TabContent","_React$Component","this","__proto__","getPrototypeOf","apply","arguments","key","props","activeKey","children","newChildren","Children","forEach","child","active","push","cloneElement","destroyInactiveTabPane","rootPrefixCls","prefixCls","_classnames","className","tabBarPosition","animated","animatedWithMargin","direction","style","classes","activeIndex","getActiveIndex","animatedStyle","getMarginStyle","getTransformPropValue","getTransformByIndex","display","createElement","getTabPanes","Component","propTypes","bool","string","node","any","defaultProps","module","_objectWithoutProperties3","_InkTabBarNode2","_TabBarTabsNode2","_TabBarRootNode2","_ScrollableTabBarNode2","_SaveRef2","ScrollableInkTabBar","_props","renderTabBarNode","restProps","saveRef","getRef","func","_componentDidUpdate","component","init","_component$props","styles","panels","rootNode","wrapNode","inkBarNode","activeTab","inkBarNodeStyle","tabNode","transformSupported","isTransform3dSupported","setTransform","width","height","left","top","bottom","right","getLeft","offsetWidth","inkBar","undefined","parseFloat","getStyle","getTop","offsetHeight","InkTabBarNode","_this2","timeout","setTimeout","clearTimeout","inkBarAnimated","ref","object","_warning2","TabBarTabsNode","tabBarGutter","rst","index","cls","events","disabled","onClick","onTabClick","bind","gutter","length","marginProperty","isVertical","role","tab","number","warning","_react","TabBarRootNode","onKeyDown","extraContent","topOrBottom","tabBarExtraContentStyle","float","extraContentStyle","reverse","tabIndex","getDataAttr","oneOf","_classnames6","_debounce2","_resizeObserverPolyfill2","ScrollableTabBarNode","_this","call","prevTransitionEnd","e","propertyName","container","scrollToActiveTab","target","currentTarget","navWrap","needToSroll","isNextPrevShown","lastNextPrevShown","activeTabWH","getScrollWH","navWrapNodeWH","getOffsetWH","offset","wrapOffset","getOffsetLT","activeTabOffset","setOffset","prev","onPrevClick","navWrapNode","next","onNextClick","state","componentDidUpdate","debouncedResize","setNextPrev","resizeObserver","observe","prevProps","nextPrev","setState","disconnect","cancel","navNode","navTabsContainer","navNodeWH","containerWH","minOffset","_state","realOffset","setNext","setPrev","prop","getBoundingClientRect","checkNextPrev","Math","min","navOffset","navStyle","name","v","_classnames2","_classnames4","_state2","scrollAnimated","navWrapper","prevIcon","nextIcon","showNextPrev","prevButton","unselectable","onTransitionEnd","nextButton","navClassName","navClasses","isRequired","ele","SaveRef","_ref","_temp","_ret","_len","args","Array","_key","concat","toArray","c","keys","reduce","substr","SentinelContext","SentinelProvider","Provider","SentinelConsumer","Consumer","sentinelStyle","overflow","position","Sentinel","_ref2","which","shiftKey","_this$props","nextElement","prevElement","TAB","document","activeElement","focus","setRef","TabPane","id","forceRender","placeholder","_isActived","shouldRender","sentinelStart","sentinelEnd","setPanelSentinelStart","setPanelSentinelEnd","panelSentinelStart","panelSentinelEnd","getDefaultActiveKey","Tabs","defaultActiveKey","destroy","sentinelId","forceUpdate","renderTabContent","renderTabBar","tabBar","onNavKeyDown","tabContent","onChange","setActiveKey","setSentinelStart","setSentinelEnd","contents","onScroll","newState","map","indexOf","activeKeyIsValid","_this3","eventKeyCode","keyCode","KeyCode","preventDefault","nextKey","getNextActiveKey","previousKey","scrollLeft","updateSentinelContext","unshift","ret","i","arg","marginDirection","transform","translate","WebkitTransform","MozTransform","getActiveKey","window","atob","setTransition","transition","webkitTransition","MozTransition","setPxStyle","el","vertical","wrapperNode","getTypeValue","webkitTransform","mozTransform","property","getComputedStyle","getPropertyValue","replace","toNum","start","current","end","total","parentNode","childNodes","prototype","some","boxSizing"],"mappings":"2FAEAA,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAGT,IAEIC,EAAYC,EAFA,EAAQ,IAMpBC,EAAmBD,EAFA,EAAQ,IAM3BE,EAAmBF,EAFA,EAAQ,IAM3BG,EAAgBH,EAFA,EAAQ,KAMxBI,EAA8BJ,EAFA,EAAQ,IAMtCK,EAAaL,EAFA,EAAQ,IAMrBM,EAAUN,EAFD,EAAQ,IAMjBO,EAAcP,EAFD,EAAQ,IAMrBQ,EAAeR,EAFA,EAAQ,IAIvBS,EAAS,EAAQ,IAErB,SAAST,EAAuBU,GAAO,OAAOA,GAAOA,EAAIC,WAAaD,EAAM,CAAE,QAAWA,GAEzF,IAAIE,EAAa,SAAUC,GAGzB,SAASD,IAEP,OADA,EAAIV,EAA0B,SAAGY,KAAMF,IAChC,EAAIR,EAAqC,SAAGU,MAAOF,EAAWG,WAAapB,OAAOqB,eAAeJ,IAAaK,MAAMH,KAAMI,YAgEnI,OApEA,EAAIb,EAAoB,SAAGO,EAAYC,IAOvC,EAAIV,EAAuB,SAAGS,EAAY,CAAC,CACzCO,IAAK,cACLrB,MAAO,WACL,IAAIsB,EAAQN,KAAKM,MACbC,EAAYD,EAAMC,UAClBC,EAAWF,EAAME,SACjBC,EAAc,GAelB,OAbAjB,EAAiB,QAAEkB,SAASC,QAAQH,GAAU,SAAUI,GACtD,GAAKA,EAAL,CAGA,IAAIP,EAAMO,EAAMP,IACZQ,EAASN,IAAcF,EAC3BI,EAAYK,KAAKtB,EAAiB,QAAEuB,aAAaH,EAAO,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,EAGT,IAAIE,EAAanP,EAAQkP,WAAWC,WAuBpC,OArBAxG,MAAMyG,UAAUC,KAAKvL,KAAKqL,GAAY,SAAU/Q,GAC9C,IAAIf,EAAQuQ,OAAOc,iBAAiBtQ,GAEpC,OAAIA,IAAS4B,GACXiP,GAASJ,EAAMxR,EAAO,UAAYyR,GAClCG,GAAS7Q,EAAK2Q,GACdE,GAASJ,EAAMxR,EAAO,UAAY2R,GAEV,gBAApB3R,EAAMiS,YACRL,GAASJ,EAAMxR,EAAO,UAAYyR,EAAQ,UAAYD,EAAMxR,EAAO,UAAY2R,EAAM,YAEhF,IAKTC,GAASJ,EAAMxR,EAAO,UAAYyR,IAE3B,MAGFG","file":"npm.rc-tabs.c920b4ddeb9b68365139.js","sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _utils = require('./utils');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar TabContent = function (_React$Component) {\n (0, _inherits3['default'])(TabContent, _React$Component);\n\n function TabContent() {\n (0, _classCallCheck3['default'])(this, TabContent);\n return (0, _possibleConstructorReturn3['default'])(this, (TabContent.__proto__ || Object.getPrototypeOf(TabContent)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(TabContent, [{\n key: 'getTabPanes',\n value: function getTabPanes() {\n var props = this.props;\n var activeKey = props.activeKey;\n var children = props.children;\n var newChildren = [];\n\n _react2['default'].Children.forEach(children, function (child) {\n if (!child) {\n return;\n }\n var key = child.key;\n var active = activeKey === key;\n newChildren.push(_react2['default'].cloneElement(child, {\n active: active,\n destroyInactiveTabPane: props.destroyInactiveTabPane,\n rootPrefixCls: props.prefixCls\n }));\n });\n\n return newChildren;\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames;\n\n var props = this.props;\n var prefixCls = props.prefixCls,\n children = props.children,\n activeKey = props.activeKey,\n className = props.className,\n tabBarPosition = props.tabBarPosition,\n animated = props.animated,\n animatedWithMargin = props.animatedWithMargin,\n direction = props.direction;\n var style = props.style;\n\n var classes = (0, _classnames3['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-content', true), (0, _defineProperty3['default'])(_classnames, animated ? prefixCls + '-content-animated' : prefixCls + '-content-no-animated', true), _classnames), className);\n if (animated) {\n var activeIndex = (0, _utils.getActiveIndex)(children, activeKey);\n if (activeIndex !== -1) {\n var animatedStyle = animatedWithMargin ? (0, _utils.getMarginStyle)(activeIndex, tabBarPosition) : (0, _utils.getTransformPropValue)((0, _utils.getTransformByIndex)(activeIndex, tabBarPosition, direction));\n style = (0, _extends3['default'])({}, style, animatedStyle);\n } else {\n style = (0, _extends3['default'])({}, style, {\n display: 'none'\n });\n }\n }\n return _react2['default'].createElement(\n 'div',\n {\n className: classes,\n style: style\n },\n this.getTabPanes()\n );\n }\n }]);\n return TabContent;\n}(_react2['default'].Component);\n\nexports['default'] = TabContent;\n\n\nTabContent.propTypes = {\n animated: _propTypes2['default'].bool,\n animatedWithMargin: _propTypes2['default'].bool,\n prefixCls: _propTypes2['default'].string,\n children: _propTypes2['default'].node,\n activeKey: _propTypes2['default'].string,\n style: _propTypes2['default'].any,\n tabBarPosition: _propTypes2['default'].string,\n className: _propTypes2['default'].string,\n destroyInactiveTabPane: _propTypes2['default'].bool,\n direction: _propTypes2['default'].string\n};\n\nTabContent.defaultProps = {\n animated: true\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');\n\nvar _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _InkTabBarNode = require('./InkTabBarNode');\n\nvar _InkTabBarNode2 = _interopRequireDefault(_InkTabBarNode);\n\nvar _TabBarTabsNode = require('./TabBarTabsNode');\n\nvar _TabBarTabsNode2 = _interopRequireDefault(_TabBarTabsNode);\n\nvar _TabBarRootNode = require('./TabBarRootNode');\n\nvar _TabBarRootNode2 = _interopRequireDefault(_TabBarRootNode);\n\nvar _ScrollableTabBarNode = require('./ScrollableTabBarNode');\n\nvar _ScrollableTabBarNode2 = _interopRequireDefault(_ScrollableTabBarNode);\n\nvar _SaveRef = require('./SaveRef');\n\nvar _SaveRef2 = _interopRequireDefault(_SaveRef);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar ScrollableInkTabBar = function (_React$Component) {\n (0, _inherits3['default'])(ScrollableInkTabBar, _React$Component);\n\n function ScrollableInkTabBar() {\n (0, _classCallCheck3['default'])(this, ScrollableInkTabBar);\n return (0, _possibleConstructorReturn3['default'])(this, (ScrollableInkTabBar.__proto__ || Object.getPrototypeOf(ScrollableInkTabBar)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(ScrollableInkTabBar, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n renderTabBarNode = _props.children,\n restProps = (0, _objectWithoutProperties3['default'])(_props, ['children']);\n\n\n return _react2['default'].createElement(\n _SaveRef2['default'],\n null,\n function (saveRef, getRef) {\n return _react2['default'].createElement(\n _TabBarRootNode2['default'],\n (0, _extends3['default'])({ saveRef: saveRef }, restProps),\n _react2['default'].createElement(\n _ScrollableTabBarNode2['default'],\n (0, _extends3['default'])({ saveRef: saveRef, getRef: getRef }, restProps),\n _react2['default'].createElement(_TabBarTabsNode2['default'], (0, _extends3['default'])({ saveRef: saveRef, renderTabBarNode: renderTabBarNode }, restProps)),\n _react2['default'].createElement(_InkTabBarNode2['default'], (0, _extends3['default'])({ saveRef: saveRef, getRef: getRef }, restProps))\n )\n );\n }\n );\n }\n }]);\n return ScrollableInkTabBar;\n}(_react2['default'].Component); /* eslint-disable react/prefer-stateless-function */\n\n\nexports['default'] = ScrollableInkTabBar;\n\n\nScrollableInkTabBar.propTypes = {\n children: _propTypes2['default'].func\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _utils = require('./utils');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _componentDidUpdate(component, init) {\n var _component$props = component.props,\n styles = _component$props.styles,\n panels = _component$props.panels,\n activeKey = _component$props.activeKey,\n direction = _component$props.direction;\n\n var rootNode = component.props.getRef('root');\n var wrapNode = component.props.getRef('nav') || rootNode;\n var inkBarNode = component.props.getRef('inkBar');\n var activeTab = component.props.getRef('activeTab');\n var inkBarNodeStyle = inkBarNode.style;\n var tabBarPosition = component.props.tabBarPosition;\n var activeIndex = (0, _utils.getActiveIndex)(panels, activeKey);\n if (init) {\n // prevent mount animation\n inkBarNodeStyle.display = 'none';\n }\n if (activeTab) {\n var tabNode = activeTab;\n var transformSupported = (0, _utils.isTransform3dSupported)(inkBarNodeStyle);\n\n // Reset current style\n (0, _utils.setTransform)(inkBarNodeStyle, '');\n inkBarNodeStyle.width = '';\n inkBarNodeStyle.height = '';\n inkBarNodeStyle.left = '';\n inkBarNodeStyle.top = '';\n inkBarNodeStyle.bottom = '';\n inkBarNodeStyle.right = '';\n\n if (tabBarPosition === 'top' || tabBarPosition === 'bottom') {\n var left = (0, _utils.getLeft)(tabNode, wrapNode);\n var width = tabNode.offsetWidth;\n\n // If tabNode'width width equal to wrapNode'width when tabBarPosition is top or bottom\n // It means no css working, then ink bar should not have width until css is loaded\n // Fix https://github.com/ant-design/ant-design/issues/7564\n if (width === rootNode.offsetWidth) {\n width = 0;\n } else if (styles.inkBar && styles.inkBar.width !== undefined) {\n width = parseFloat(styles.inkBar.width, 10);\n if (width) {\n left += (tabNode.offsetWidth - width) / 2;\n }\n }\n if (direction === 'rtl') {\n left = (0, _utils.getStyle)(tabNode, 'margin-left') - left;\n }\n // use 3d gpu to optimize render\n if (transformSupported) {\n (0, _utils.setTransform)(inkBarNodeStyle, 'translate3d(' + left + 'px,0,0)');\n } else {\n inkBarNodeStyle.left = left + 'px';\n }\n inkBarNodeStyle.width = width + 'px';\n } else {\n var top = (0, _utils.getTop)(tabNode, wrapNode, true);\n var height = tabNode.offsetHeight;\n if (styles.inkBar && styles.inkBar.height !== undefined) {\n height = parseFloat(styles.inkBar.height, 10);\n if (height) {\n top += (tabNode.offsetHeight - height) / 2;\n }\n }\n if (transformSupported) {\n (0, _utils.setTransform)(inkBarNodeStyle, 'translate3d(0,' + top + 'px,0)');\n inkBarNodeStyle.top = '0';\n } else {\n inkBarNodeStyle.top = top + 'px';\n }\n inkBarNodeStyle.height = height + 'px';\n }\n }\n inkBarNodeStyle.display = activeIndex !== -1 ? 'block' : 'none';\n}\n\nvar InkTabBarNode = function (_React$Component) {\n (0, _inherits3['default'])(InkTabBarNode, _React$Component);\n\n function InkTabBarNode() {\n (0, _classCallCheck3['default'])(this, InkTabBarNode);\n return (0, _possibleConstructorReturn3['default'])(this, (InkTabBarNode.__proto__ || Object.getPrototypeOf(InkTabBarNode)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(InkTabBarNode, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n // ref https://github.com/ant-design/ant-design/issues/8678\n // ref https://github.com/react-component/tabs/issues/135\n // InkTabBarNode need parent/root ref for calculating position\n // since parent componentDidMount triggered after child componentDidMount\n // we're doing a quick fix here to use setTimeout to calculate position\n // after parent/root component mounted\n this.timeout = setTimeout(function () {\n _componentDidUpdate(_this2, true);\n }, 0);\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n _componentDidUpdate(this);\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n styles = _props.styles,\n inkBarAnimated = _props.inkBarAnimated;\n\n var className = prefixCls + '-ink-bar';\n var classes = (0, _classnames3['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, className, true), (0, _defineProperty3['default'])(_classnames, inkBarAnimated ? className + '-animated' : className + '-no-animated', true), _classnames));\n return _react2['default'].createElement('div', {\n style: styles.inkBar,\n className: classes,\n key: 'inkBar',\n ref: this.props.saveRef('inkBar')\n });\n }\n }]);\n return InkTabBarNode;\n}(_react2['default'].Component);\n\nexports['default'] = InkTabBarNode;\n\n\nInkTabBarNode.propTypes = {\n prefixCls: _propTypes2['default'].string,\n styles: _propTypes2['default'].object,\n inkBarAnimated: _propTypes2['default'].bool,\n saveRef: _propTypes2['default'].func,\n direction: _propTypes2['default'].string\n};\n\nInkTabBarNode.defaultProps = {\n prefixCls: '',\n inkBarAnimated: true,\n styles: {},\n saveRef: function saveRef() {}\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _warning = require('warning');\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _utils = require('./utils');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar TabBarTabsNode = function (_React$Component) {\n (0, _inherits3['default'])(TabBarTabsNode, _React$Component);\n\n function TabBarTabsNode() {\n (0, _classCallCheck3['default'])(this, TabBarTabsNode);\n return (0, _possibleConstructorReturn3['default'])(this, (TabBarTabsNode.__proto__ || Object.getPrototypeOf(TabBarTabsNode)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(TabBarTabsNode, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n children = _props.panels,\n activeKey = _props.activeKey,\n prefixCls = _props.prefixCls,\n tabBarGutter = _props.tabBarGutter,\n saveRef = _props.saveRef,\n tabBarPosition = _props.tabBarPosition,\n renderTabBarNode = _props.renderTabBarNode,\n direction = _props.direction;\n\n var rst = [];\n\n _react2['default'].Children.forEach(children, function (child, index) {\n if (!child) {\n return;\n }\n var key = child.key;\n var cls = activeKey === key ? prefixCls + '-tab-active' : '';\n cls += ' ' + prefixCls + '-tab';\n var events = {};\n if (child.props.disabled) {\n cls += ' ' + prefixCls + '-tab-disabled';\n } else {\n events = {\n onClick: _this2.props.onTabClick.bind(_this2, key)\n };\n }\n var ref = {};\n if (activeKey === key) {\n ref.ref = saveRef('activeTab');\n }\n\n var gutter = tabBarGutter && index === children.length - 1 ? 0 : tabBarGutter;\n\n var marginProperty = direction === 'rtl' ? 'marginLeft' : 'marginRight';\n var style = (0, _defineProperty3['default'])({}, (0, _utils.isVertical)(tabBarPosition) ? 'marginBottom' : marginProperty, gutter);\n (0, _warning2['default'])('tab' in child.props, 'There must be `tab` property on children of Tabs.');\n\n var node = _react2['default'].createElement(\n 'div',\n (0, _extends3['default'])({\n role: 'tab',\n 'aria-disabled': child.props.disabled ? 'true' : 'false',\n 'aria-selected': activeKey === key ? 'true' : 'false'\n }, events, {\n className: cls,\n key: key,\n style: style\n }, ref),\n child.props.tab\n );\n\n if (renderTabBarNode) {\n node = renderTabBarNode(node);\n }\n\n rst.push(node);\n });\n\n return _react2['default'].createElement(\n 'div',\n { ref: saveRef('navTabsContainer') },\n rst\n );\n }\n }]);\n return TabBarTabsNode;\n}(_react2['default'].Component);\n\nexports['default'] = TabBarTabsNode;\n\n\nTabBarTabsNode.propTypes = {\n activeKey: _propTypes2['default'].string,\n panels: _propTypes2['default'].node,\n prefixCls: _propTypes2['default'].string,\n tabBarGutter: _propTypes2['default'].number,\n onTabClick: _propTypes2['default'].func,\n saveRef: _propTypes2['default'].func,\n renderTabBarNode: _propTypes2['default'].func,\n tabBarPosition: _propTypes2['default'].string,\n direction: _propTypes2['default'].string\n};\n\nTabBarTabsNode.defaultProps = {\n panels: [],\n prefixCls: [],\n tabBarGutter: null,\n onTabClick: function onTabClick() {},\n saveRef: function saveRef() {}\n};\nmodule.exports = exports['default'];","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');\n\nvar _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _utils = require('./utils');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar TabBarRootNode = function (_React$Component) {\n (0, _inherits3['default'])(TabBarRootNode, _React$Component);\n\n function TabBarRootNode() {\n (0, _classCallCheck3['default'])(this, TabBarRootNode);\n return (0, _possibleConstructorReturn3['default'])(this, (TabBarRootNode.__proto__ || Object.getPrototypeOf(TabBarRootNode)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(TabBarRootNode, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n prefixCls = _props.prefixCls,\n onKeyDown = _props.onKeyDown,\n className = _props.className,\n extraContent = _props.extraContent,\n style = _props.style,\n tabBarPosition = _props.tabBarPosition,\n children = _props.children,\n restProps = (0, _objectWithoutProperties3['default'])(_props, ['prefixCls', 'onKeyDown', 'className', 'extraContent', 'style', 'tabBarPosition', 'children']);\n\n var cls = (0, _classnames3['default'])(prefixCls + '-bar', (0, _defineProperty3['default'])({}, className, !!className));\n var topOrBottom = tabBarPosition === 'top' || tabBarPosition === 'bottom';\n var tabBarExtraContentStyle = topOrBottom ? { float: 'right' } : {};\n var extraContentStyle = extraContent && extraContent.props ? extraContent.props.style : {};\n var newChildren = children;\n if (extraContent) {\n newChildren = [(0, _react.cloneElement)(extraContent, {\n key: 'extra',\n style: (0, _extends3['default'])({}, tabBarExtraContentStyle, extraContentStyle)\n }), (0, _react.cloneElement)(children, { key: 'content' })];\n newChildren = topOrBottom ? newChildren : newChildren.reverse();\n }\n return _react2['default'].createElement(\n 'div',\n (0, _extends3['default'])({\n role: 'tablist',\n className: cls,\n tabIndex: '0',\n ref: this.props.saveRef('root'),\n onKeyDown: onKeyDown,\n style: style\n }, (0, _utils.getDataAttr)(restProps)),\n newChildren\n );\n }\n }]);\n return TabBarRootNode;\n}(_react2['default'].Component);\n\nexports['default'] = TabBarRootNode;\n\n\nTabBarRootNode.propTypes = {\n prefixCls: _propTypes2['default'].string,\n className: _propTypes2['default'].string,\n style: _propTypes2['default'].object,\n tabBarPosition: _propTypes2['default'].oneOf(['left', 'right', 'top', 'bottom']),\n children: _propTypes2['default'].node,\n extraContent: _propTypes2['default'].node,\n onKeyDown: _propTypes2['default'].func,\n saveRef: _propTypes2['default'].func\n};\n\nTabBarRootNode.defaultProps = {\n prefixCls: '',\n className: '',\n style: {},\n tabBarPosition: 'top',\n extraContent: null,\n children: null,\n onKeyDown: function onKeyDown() {},\n saveRef: function saveRef() {}\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames5 = require('classnames');\n\nvar _classnames6 = _interopRequireDefault(_classnames5);\n\nvar _debounce = require('lodash/debounce');\n\nvar _debounce2 = _interopRequireDefault(_debounce);\n\nvar _resizeObserverPolyfill = require('resize-observer-polyfill');\n\nvar _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);\n\nvar _utils = require('./utils');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar ScrollableTabBarNode = function (_React$Component) {\n (0, _inherits3['default'])(ScrollableTabBarNode, _React$Component);\n\n function ScrollableTabBarNode(props) {\n (0, _classCallCheck3['default'])(this, ScrollableTabBarNode);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (ScrollableTabBarNode.__proto__ || Object.getPrototypeOf(ScrollableTabBarNode)).call(this, props));\n\n _this.prevTransitionEnd = function (e) {\n if (e.propertyName !== 'opacity') {\n return;\n }\n var container = _this.props.getRef('container');\n _this.scrollToActiveTab({\n target: container,\n currentTarget: container\n });\n };\n\n _this.scrollToActiveTab = function (e) {\n var activeTab = _this.props.getRef('activeTab');\n var navWrap = _this.props.getRef('navWrap');\n if (e && e.target !== e.currentTarget || !activeTab) {\n return;\n }\n\n // when not scrollable or enter scrollable first time, don't emit scrolling\n var needToSroll = _this.isNextPrevShown() && _this.lastNextPrevShown;\n _this.lastNextPrevShown = _this.isNextPrevShown();\n if (!needToSroll) {\n return;\n }\n\n var activeTabWH = _this.getScrollWH(activeTab);\n var navWrapNodeWH = _this.getOffsetWH(navWrap);\n var offset = _this.offset;\n\n var wrapOffset = _this.getOffsetLT(navWrap);\n var activeTabOffset = _this.getOffsetLT(activeTab);\n if (wrapOffset > activeTabOffset) {\n offset += wrapOffset - activeTabOffset;\n _this.setOffset(offset);\n } else if (wrapOffset + navWrapNodeWH < activeTabOffset + activeTabWH) {\n offset -= activeTabOffset + activeTabWH - (wrapOffset + navWrapNodeWH);\n _this.setOffset(offset);\n }\n };\n\n _this.prev = function (e) {\n _this.props.onPrevClick(e);\n var navWrapNode = _this.props.getRef('navWrap');\n var navWrapNodeWH = _this.getOffsetWH(navWrapNode);\n var offset = _this.offset;\n\n _this.setOffset(offset + navWrapNodeWH);\n };\n\n _this.next = function (e) {\n _this.props.onNextClick(e);\n var navWrapNode = _this.props.getRef('navWrap');\n var navWrapNodeWH = _this.getOffsetWH(navWrapNode);\n var offset = _this.offset;\n\n _this.setOffset(offset - navWrapNodeWH);\n };\n\n _this.offset = 0;\n\n _this.state = {\n next: false,\n prev: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(ScrollableTabBarNode, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n this.componentDidUpdate();\n this.debouncedResize = (0, _debounce2['default'])(function () {\n _this2.setNextPrev();\n _this2.scrollToActiveTab();\n }, 200);\n this.resizeObserver = new _resizeObserverPolyfill2['default'](this.debouncedResize);\n this.resizeObserver.observe(this.props.getRef('container'));\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n var props = this.props;\n if (prevProps && prevProps.tabBarPosition !== props.tabBarPosition) {\n this.setOffset(0);\n return;\n }\n var nextPrev = this.setNextPrev();\n // wait next, prev show hide\n /* eslint react/no-did-update-set-state:0 */\n if (this.isNextPrevShown(this.state) !== this.isNextPrevShown(nextPrev)) {\n this.setState({}, this.scrollToActiveTab);\n } else if (!prevProps || props.activeKey !== prevProps.activeKey) {\n // can not use props.activeKey\n this.scrollToActiveTab();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n if (this.debouncedResize && this.debouncedResize.cancel) {\n this.debouncedResize.cancel();\n }\n }\n }, {\n key: 'setNextPrev',\n value: function setNextPrev() {\n var navNode = this.props.getRef('nav');\n var navTabsContainer = this.props.getRef('navTabsContainer');\n var navNodeWH = this.getScrollWH(navTabsContainer || navNode);\n // Add 1px to fix `offsetWidth` with decimal in Chrome not correct handle\n // https://github.com/ant-design/ant-design/issues/13423\n var containerWH = this.getOffsetWH(this.props.getRef('container')) + 1;\n var navWrapNodeWH = this.getOffsetWH(this.props.getRef('navWrap'));\n var offset = this.offset;\n\n var minOffset = containerWH - navNodeWH;\n var _state = this.state,\n next = _state.next,\n prev = _state.prev;\n\n if (minOffset >= 0) {\n next = false;\n this.setOffset(0, false);\n offset = 0;\n } else if (minOffset < offset) {\n next = true;\n } else {\n next = false;\n // Fix https://github.com/ant-design/ant-design/issues/8861\n // Test with container offset which is stable\n // and set the offset of the nav wrap node\n var realOffset = navWrapNodeWH - navNodeWH;\n this.setOffset(realOffset, false);\n offset = realOffset;\n }\n\n if (offset < 0) {\n prev = true;\n } else {\n prev = false;\n }\n\n this.setNext(next);\n this.setPrev(prev);\n return {\n next: next,\n prev: prev\n };\n }\n }, {\n key: 'getOffsetWH',\n value: function getOffsetWH(node) {\n var tabBarPosition = this.props.tabBarPosition;\n var prop = 'offsetWidth';\n if (tabBarPosition === 'left' || tabBarPosition === 'right') {\n prop = 'offsetHeight';\n }\n return node[prop];\n }\n }, {\n key: 'getScrollWH',\n value: function getScrollWH(node) {\n var tabBarPosition = this.props.tabBarPosition;\n var prop = 'scrollWidth';\n if (tabBarPosition === 'left' || tabBarPosition === 'right') {\n prop = 'scrollHeight';\n }\n return node[prop];\n }\n }, {\n key: 'getOffsetLT',\n value: function getOffsetLT(node) {\n var tabBarPosition = this.props.tabBarPosition;\n var prop = 'left';\n if (tabBarPosition === 'left' || tabBarPosition === 'right') {\n prop = 'top';\n }\n return node.getBoundingClientRect()[prop];\n }\n }, {\n key: 'setOffset',\n value: function setOffset(offset) {\n var checkNextPrev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n var target = Math.min(0, offset);\n if (this.offset !== target) {\n this.offset = target;\n var navOffset = {};\n var tabBarPosition = this.props.tabBarPosition;\n var navStyle = this.props.getRef('nav').style;\n var transformSupported = (0, _utils.isTransform3dSupported)(navStyle);\n if (tabBarPosition === 'left' || tabBarPosition === 'right') {\n if (transformSupported) {\n navOffset = {\n value: 'translate3d(0,' + target + 'px,0)'\n };\n } else {\n navOffset = {\n name: 'top',\n value: target + 'px'\n };\n }\n } else if (transformSupported) {\n if (this.props.direction === 'rtl') {\n target = -target;\n }\n navOffset = {\n value: 'translate3d(' + target + 'px,0,0)'\n };\n } else {\n navOffset = {\n name: 'left',\n value: target + 'px'\n };\n }\n if (transformSupported) {\n (0, _utils.setTransform)(navStyle, navOffset.value);\n } else {\n navStyle[navOffset.name] = navOffset.value;\n }\n if (checkNextPrev) {\n this.setNextPrev();\n }\n }\n }\n }, {\n key: 'setPrev',\n value: function setPrev(v) {\n if (this.state.prev !== v) {\n this.setState({\n prev: v\n });\n }\n }\n }, {\n key: 'setNext',\n value: function setNext(v) {\n if (this.state.next !== v) {\n this.setState({\n next: v\n });\n }\n }\n }, {\n key: 'isNextPrevShown',\n value: function isNextPrevShown(state) {\n if (state) {\n return state.next || state.prev;\n }\n return this.state.next || this.state.prev;\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames, _classnames2, _classnames3, _classnames4;\n\n var _state2 = this.state,\n next = _state2.next,\n prev = _state2.prev;\n var _props = this.props,\n prefixCls = _props.prefixCls,\n scrollAnimated = _props.scrollAnimated,\n navWrapper = _props.navWrapper,\n prevIcon = _props.prevIcon,\n nextIcon = _props.nextIcon;\n\n var showNextPrev = prev || next;\n\n var prevButton = _react2['default'].createElement(\n 'span',\n {\n onClick: prev ? this.prev : null,\n unselectable: 'unselectable',\n className: (0, _classnames6['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-tab-prev', 1), (0, _defineProperty3['default'])(_classnames, prefixCls + '-tab-btn-disabled', !prev), (0, _defineProperty3['default'])(_classnames, prefixCls + '-tab-arrow-show', showNextPrev), _classnames)),\n onTransitionEnd: this.prevTransitionEnd\n },\n prevIcon || _react2['default'].createElement('span', { className: prefixCls + '-tab-prev-icon' })\n );\n\n var nextButton = _react2['default'].createElement(\n 'span',\n {\n onClick: next ? this.next : null,\n unselectable: 'unselectable',\n className: (0, _classnames6['default'])((_classnames2 = {}, (0, _defineProperty3['default'])(_classnames2, prefixCls + '-tab-next', 1), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-tab-btn-disabled', !next), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-tab-arrow-show', showNextPrev), _classnames2))\n },\n nextIcon || _react2['default'].createElement('span', { className: prefixCls + '-tab-next-icon' })\n );\n\n var navClassName = prefixCls + '-nav';\n var navClasses = (0, _classnames6['default'])((_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, navClassName, true), (0, _defineProperty3['default'])(_classnames3, scrollAnimated ? navClassName + '-animated' : navClassName + '-no-animated', true), _classnames3));\n\n return _react2['default'].createElement(\n 'div',\n {\n className: (0, _classnames6['default'])((_classnames4 = {}, (0, _defineProperty3['default'])(_classnames4, prefixCls + '-nav-container', 1), (0, _defineProperty3['default'])(_classnames4, prefixCls + '-nav-container-scrolling', showNextPrev), _classnames4)),\n key: 'container',\n ref: this.props.saveRef('container')\n },\n prevButton,\n nextButton,\n _react2['default'].createElement(\n 'div',\n { className: prefixCls + '-nav-wrap', ref: this.props.saveRef('navWrap') },\n _react2['default'].createElement(\n 'div',\n { className: prefixCls + '-nav-scroll' },\n _react2['default'].createElement(\n 'div',\n { className: navClasses, ref: this.props.saveRef('nav') },\n navWrapper(this.props.children)\n )\n )\n )\n );\n }\n }]);\n return ScrollableTabBarNode;\n}(_react2['default'].Component);\n\nexports['default'] = ScrollableTabBarNode;\n\n\nScrollableTabBarNode.propTypes = {\n activeKey: _propTypes2['default'].string,\n getRef: _propTypes2['default'].func.isRequired,\n saveRef: _propTypes2['default'].func.isRequired,\n tabBarPosition: _propTypes2['default'].oneOf(['left', 'right', 'top', 'bottom']),\n prefixCls: _propTypes2['default'].string,\n scrollAnimated: _propTypes2['default'].bool,\n onPrevClick: _propTypes2['default'].func,\n onNextClick: _propTypes2['default'].func,\n navWrapper: _propTypes2['default'].func,\n children: _propTypes2['default'].node,\n prevIcon: _propTypes2['default'].node,\n nextIcon: _propTypes2['default'].node,\n direction: _propTypes2['default'].node\n};\n\nScrollableTabBarNode.defaultProps = {\n tabBarPosition: 'left',\n prefixCls: '',\n scrollAnimated: true,\n onPrevClick: function onPrevClick() {},\n onNextClick: function onNextClick() {},\n navWrapper: function navWrapper(ele) {\n return ele;\n }\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar SaveRef = function (_React$Component) {\n (0, _inherits3['default'])(SaveRef, _React$Component);\n\n function SaveRef() {\n var _ref;\n\n var _temp, _this, _ret;\n\n (0, _classCallCheck3['default'])(this, SaveRef);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = SaveRef.__proto__ || Object.getPrototypeOf(SaveRef)).call.apply(_ref, [this].concat(args))), _this), _this.getRef = function (name) {\n return _this[name];\n }, _this.saveRef = function (name) {\n return function (node) {\n if (node) {\n _this[name] = node;\n }\n };\n }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);\n }\n\n (0, _createClass3['default'])(SaveRef, [{\n key: 'render',\n value: function render() {\n return this.props.children(this.saveRef, this.getRef);\n }\n }]);\n return SaveRef;\n}(_react2['default'].Component);\n\nexports['default'] = SaveRef;\n\n\nSaveRef.propTypes = {\n children: _propTypes2['default'].func\n};\n\nSaveRef.defaultProps = {\n children: function children() {\n return null;\n }\n};\nmodule.exports = exports['default'];","export default {\n /**\n * LEFT\n */\n LEFT: 37, // also NUM_WEST\n /**\n * UP\n */\n UP: 38, // also NUM_NORTH\n /**\n * RIGHT\n */\n RIGHT: 39, // also NUM_EAST\n /**\n * DOWN\n */\n DOWN: 40 // also NUM_SOUTH\n};","import _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport React from 'react';\n\nexport function toArray(children) {\n // allow [c,[a,b]]\n var c = [];\n React.Children.forEach(children, function (child) {\n if (child) {\n c.push(child);\n }\n });\n return c;\n}\n\nexport function getActiveIndex(children, activeKey) {\n var c = toArray(children);\n for (var i = 0; i < c.length; i++) {\n if (c[i].key === activeKey) {\n return i;\n }\n }\n return -1;\n}\n\nexport function getActiveKey(children, index) {\n var c = toArray(children);\n return c[index].key;\n}\n\nexport function setTransform(style, v) {\n style.transform = v;\n style.webkitTransform = v;\n style.mozTransform = v;\n}\n\nexport function isTransform3dSupported(style) {\n return ('transform' in style || 'webkitTransform' in style || 'MozTransform' in style) && window.atob;\n}\n\nexport function setTransition(style, v) {\n style.transition = v;\n style.webkitTransition = v;\n style.MozTransition = v;\n}\n\nexport function getTransformPropValue(v) {\n return {\n transform: v,\n WebkitTransform: v,\n MozTransform: v\n };\n}\n\nexport function isVertical(tabBarPosition) {\n return tabBarPosition === 'left' || tabBarPosition === 'right';\n}\n\nexport function getTransformByIndex(index, tabBarPosition) {\n var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';\n\n var translate = isVertical(tabBarPosition) ? 'translateY' : 'translateX';\n\n if (!isVertical(tabBarPosition) && direction === 'rtl') {\n return translate + '(' + index * 100 + '%) translateZ(0)';\n }\n return translate + '(' + -index * 100 + '%) translateZ(0)';\n}\n\nexport function getMarginStyle(index, tabBarPosition) {\n var marginDirection = isVertical(tabBarPosition) ? 'marginTop' : 'marginLeft';\n return _defineProperty({}, marginDirection, -index * 100 + '%');\n}\n\nexport function getStyle(el, property) {\n return +window.getComputedStyle(el).getPropertyValue(property).replace('px', '');\n}\n\nexport function setPxStyle(el, value, vertical) {\n value = vertical ? '0px, ' + value + 'px, 0px' : value + 'px, 0px, 0px';\n setTransform(el.style, 'translate3d(' + value + ')');\n}\n\nexport function getDataAttr(props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n return prev;\n }, {});\n}\n\nfunction toNum(style, property) {\n return +style.getPropertyValue(property).replace('px', '');\n}\n\nfunction getTypeValue(start, current, end, tabNode, wrapperNode) {\n var total = getStyle(wrapperNode, 'padding-' + start);\n if (!tabNode || !tabNode.parentNode) {\n return total;\n }\n\n var childNodes = tabNode.parentNode.childNodes;\n\n Array.prototype.some.call(childNodes, function (node) {\n var style = window.getComputedStyle(node);\n\n if (node !== tabNode) {\n total += toNum(style, 'margin-' + start);\n total += node[current];\n total += toNum(style, 'margin-' + end);\n\n if (style.boxSizing === 'content-box') {\n total += toNum(style, 'border-' + start + '-width') + toNum(style, 'border-' + end + '-width');\n }\n return false;\n }\n\n // We need count current node margin\n // ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262\n total += toNum(style, 'margin-' + start);\n\n return true;\n });\n\n return total;\n}\n\nexport function getLeft(tabNode, wrapperNode) {\n return getTypeValue('left', 'offsetWidth', 'right', tabNode, wrapperNode);\n}\n\nexport function getTop(tabNode, wrapperNode) {\n return getTypeValue('top', 'offsetHeight', 'bottom', tabNode, wrapperNode);\n}","import _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\n/* eslint-disable jsx-a11y/no-noninteractive-tabindex */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport KeyCode from 'rc-util/es/KeyCode';\nimport createReactContext from '@ant-design/create-react-context';\n\nvar SentinelContext = createReactContext({});\nexport var SentinelProvider = SentinelContext.Provider;\nexport var SentinelConsumer = SentinelContext.Consumer;\n\nvar sentinelStyle = { width: 0, height: 0, overflow: 'hidden', position: 'absolute' };\n\nvar Sentinel = function (_React$Component) {\n _inherits(Sentinel, _React$Component);\n\n function Sentinel() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Sentinel);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Sentinel.__proto__ || Object.getPrototypeOf(Sentinel)).call.apply(_ref, [this].concat(args))), _this), _this.onKeyDown = function (_ref2) {\n var target = _ref2.target,\n which = _ref2.which,\n shiftKey = _ref2.shiftKey;\n var _this$props = _this.props,\n nextElement = _this$props.nextElement,\n prevElement = _this$props.prevElement;\n\n if (which !== KeyCode.TAB || document.activeElement !== target) return;\n\n // Tab next\n if (!shiftKey && nextElement) {\n nextElement.focus();\n }\n\n // Tab prev\n if (shiftKey && prevElement) {\n prevElement.focus();\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Sentinel, [{\n key: 'render',\n value: function render() {\n var setRef = this.props.setRef;\n\n\n return React.createElement('div', {\n tabIndex: 0,\n ref: setRef,\n style: sentinelStyle,\n onKeyDown: this.onKeyDown,\n role: 'presentation'\n });\n }\n }]);\n\n return Sentinel;\n}(React.Component);\n\nSentinel.propTypes = {\n setRef: PropTypes.func,\n prevElement: PropTypes.object,\n nextElement: PropTypes.object\n};\nexport default Sentinel;","import _extends from 'babel-runtime/helpers/extends';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { getDataAttr } from './utils';\nimport Sentinel, { SentinelConsumer } from './Sentinel';\n\nvar TabPane = function (_React$Component) {\n _inherits(TabPane, _React$Component);\n\n function TabPane() {\n _classCallCheck(this, TabPane);\n\n return _possibleConstructorReturn(this, (TabPane.__proto__ || Object.getPrototypeOf(TabPane)).apply(this, arguments));\n }\n\n _createClass(TabPane, [{\n key: 'render',\n value: function render() {\n var _classnames;\n\n var _props = this.props,\n id = _props.id,\n className = _props.className,\n destroyInactiveTabPane = _props.destroyInactiveTabPane,\n active = _props.active,\n forceRender = _props.forceRender,\n rootPrefixCls = _props.rootPrefixCls,\n style = _props.style,\n children = _props.children,\n placeholder = _props.placeholder,\n restProps = _objectWithoutProperties(_props, ['id', 'className', 'destroyInactiveTabPane', 'active', 'forceRender', 'rootPrefixCls', 'style', 'children', 'placeholder']);\n\n this._isActived = this._isActived || active;\n var prefixCls = rootPrefixCls + '-tabpane';\n var cls = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls, 1), _defineProperty(_classnames, prefixCls + '-inactive', !active), _defineProperty(_classnames, prefixCls + '-active', active), _defineProperty(_classnames, className, className), _classnames));\n var isRender = destroyInactiveTabPane ? active : this._isActived;\n var shouldRender = isRender || forceRender;\n\n return React.createElement(\n SentinelConsumer,\n null,\n function (_ref) {\n var sentinelStart = _ref.sentinelStart,\n sentinelEnd = _ref.sentinelEnd,\n setPanelSentinelStart = _ref.setPanelSentinelStart,\n setPanelSentinelEnd = _ref.setPanelSentinelEnd;\n\n // Create sentinel\n var panelSentinelStart = void 0;\n var panelSentinelEnd = void 0;\n if (active && shouldRender) {\n panelSentinelStart = React.createElement(Sentinel, {\n setRef: setPanelSentinelStart,\n prevElement: sentinelStart\n });\n panelSentinelEnd = React.createElement(Sentinel, {\n setRef: setPanelSentinelEnd,\n nextElement: sentinelEnd\n });\n }\n\n return React.createElement(\n 'div',\n _extends({\n style: style,\n role: 'tabpanel',\n 'aria-hidden': active ? 'false' : 'true',\n className: cls,\n id: id\n }, getDataAttr(restProps)),\n panelSentinelStart,\n shouldRender ? children : placeholder,\n panelSentinelEnd\n );\n }\n );\n }\n }]);\n\n return TabPane;\n}(React.Component);\n\nexport default TabPane;\n\n\nTabPane.propTypes = {\n className: PropTypes.string,\n active: PropTypes.bool,\n style: PropTypes.any,\n destroyInactiveTabPane: PropTypes.bool,\n forceRender: PropTypes.bool,\n placeholder: PropTypes.node,\n rootPrefixCls: PropTypes.string,\n children: PropTypes.node,\n id: PropTypes.string\n};\n\nTabPane.defaultProps = {\n placeholder: null\n};","import _extends from 'babel-runtime/helpers/extends';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport raf from 'raf';\nimport { polyfill } from 'react-lifecycles-compat';\nimport KeyCode from './KeyCode';\nimport TabPane from './TabPane';\nimport { getDataAttr } from './utils';\nimport Sentinel, { SentinelProvider } from './Sentinel';\n\nfunction noop() {}\n\nfunction getDefaultActiveKey(props) {\n var activeKey = void 0;\n React.Children.forEach(props.children, function (child) {\n if (child && !activeKey && !child.props.disabled) {\n activeKey = child.key;\n }\n });\n return activeKey;\n}\n\nfunction activeKeyIsValid(props, key) {\n var keys = React.Children.map(props.children, function (child) {\n return child && child.key;\n });\n return keys.indexOf(key) >= 0;\n}\n\nvar Tabs = function (_React$Component) {\n _inherits(Tabs, _React$Component);\n\n function Tabs(props) {\n _classCallCheck(this, Tabs);\n\n var _this = _possibleConstructorReturn(this, (Tabs.__proto__ || Object.getPrototypeOf(Tabs)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var activeKey = void 0;\n if ('activeKey' in props) {\n activeKey = props.activeKey;\n } else if ('defaultActiveKey' in props) {\n activeKey = props.defaultActiveKey;\n } else {\n activeKey = getDefaultActiveKey(props);\n }\n\n _this.state = {\n activeKey: activeKey\n };\n return _this;\n }\n\n _createClass(Tabs, [{\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.destroy = true;\n raf.cancel(this.sentinelId);\n }\n\n // Sentinel for tab index\n\n }, {\n key: 'updateSentinelContext',\n value: function updateSentinelContext() {\n var _this2 = this;\n\n if (this.destroy) return;\n\n raf.cancel(this.sentinelId);\n this.sentinelId = raf(function () {\n if (_this2.destroy) return;\n _this2.forceUpdate();\n });\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames;\n\n var props = this.props;\n\n var prefixCls = props.prefixCls,\n navWrapper = props.navWrapper,\n tabBarPosition = props.tabBarPosition,\n className = props.className,\n renderTabContent = props.renderTabContent,\n renderTabBar = props.renderTabBar,\n destroyInactiveTabPane = props.destroyInactiveTabPane,\n direction = props.direction,\n restProps = _objectWithoutProperties(props, ['prefixCls', 'navWrapper', 'tabBarPosition', 'className', 'renderTabContent', 'renderTabBar', 'destroyInactiveTabPane', 'direction']);\n\n var cls = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls, 1), _defineProperty(_classnames, prefixCls + '-' + tabBarPosition, 1), _defineProperty(_classnames, className, !!className), _defineProperty(_classnames, prefixCls + '-rtl', direction === 'rtl'), _classnames));\n\n this.tabBar = renderTabBar();\n\n var tabBar = React.cloneElement(this.tabBar, {\n prefixCls: prefixCls,\n navWrapper: navWrapper,\n key: 'tabBar',\n onKeyDown: this.onNavKeyDown,\n tabBarPosition: tabBarPosition,\n onTabClick: this.onTabClick,\n panels: props.children,\n activeKey: this.state.activeKey,\n direction: this.props.direction\n });\n\n var tabContent = React.cloneElement(renderTabContent(), {\n prefixCls: prefixCls,\n tabBarPosition: tabBarPosition,\n activeKey: this.state.activeKey,\n destroyInactiveTabPane: destroyInactiveTabPane,\n children: props.children,\n onChange: this.setActiveKey,\n key: 'tabContent',\n direction: this.props.direction\n });\n\n var sentinelStart = React.createElement(Sentinel, {\n key: 'sentinelStart',\n setRef: this.setSentinelStart,\n nextElement: this.panelSentinelStart\n });\n var sentinelEnd = React.createElement(Sentinel, {\n key: 'sentinelEnd',\n setRef: this.setSentinelEnd,\n prevElement: this.panelSentinelEnd\n });\n\n var contents = [];\n if (tabBarPosition === 'bottom') {\n contents.push(sentinelStart, tabContent, sentinelEnd, tabBar);\n } else {\n contents.push(tabBar, sentinelStart, tabContent, sentinelEnd);\n }\n\n return React.createElement(\n SentinelProvider,\n {\n value: {\n sentinelStart: this.sentinelStart,\n sentinelEnd: this.sentinelEnd,\n setPanelSentinelStart: this.setPanelSentinelStart,\n setPanelSentinelEnd: this.setPanelSentinelEnd\n }\n },\n React.createElement(\n 'div',\n _extends({\n className: cls,\n style: props.style\n }, getDataAttr(restProps), {\n onScroll: this.onScroll\n }),\n contents\n )\n );\n }\n }], [{\n key: 'getDerivedStateFromProps',\n value: function getDerivedStateFromProps(props, state) {\n var newState = {};\n if ('activeKey' in props) {\n newState.activeKey = props.activeKey;\n } else if (!activeKeyIsValid(props, state.activeKey)) {\n newState.activeKey = getDefaultActiveKey(props);\n }\n if (Object.keys(newState).length > 0) {\n return newState;\n }\n return null;\n }\n }]);\n\n return Tabs;\n}(React.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onTabClick = function (activeKey, e) {\n if (_this3.tabBar.props.onTabClick) {\n _this3.tabBar.props.onTabClick(activeKey, e);\n }\n _this3.setActiveKey(activeKey);\n };\n\n this.onNavKeyDown = function (e) {\n var eventKeyCode = e.keyCode;\n if (eventKeyCode === KeyCode.RIGHT || eventKeyCode === KeyCode.DOWN) {\n e.preventDefault();\n var nextKey = _this3.getNextActiveKey(true);\n _this3.onTabClick(nextKey);\n } else if (eventKeyCode === KeyCode.LEFT || eventKeyCode === KeyCode.UP) {\n e.preventDefault();\n var previousKey = _this3.getNextActiveKey(false);\n _this3.onTabClick(previousKey);\n }\n };\n\n this.onScroll = function (_ref) {\n var target = _ref.target,\n currentTarget = _ref.currentTarget;\n\n if (target === currentTarget && target.scrollLeft > 0) {\n target.scrollLeft = 0;\n }\n };\n\n this.setSentinelStart = function (node) {\n _this3.sentinelStart = node;\n };\n\n this.setSentinelEnd = function (node) {\n _this3.sentinelEnd = node;\n };\n\n this.setPanelSentinelStart = function (node) {\n if (node !== _this3.panelSentinelStart) {\n _this3.updateSentinelContext();\n }\n _this3.panelSentinelStart = node;\n };\n\n this.setPanelSentinelEnd = function (node) {\n if (node !== _this3.panelSentinelEnd) {\n _this3.updateSentinelContext();\n }\n _this3.panelSentinelEnd = node;\n };\n\n this.setActiveKey = function (activeKey) {\n if (_this3.state.activeKey !== activeKey) {\n if (!('activeKey' in _this3.props)) {\n _this3.setState({\n activeKey: activeKey\n });\n }\n _this3.props.onChange(activeKey);\n }\n };\n\n this.getNextActiveKey = function (next) {\n var activeKey = _this3.state.activeKey;\n var children = [];\n React.Children.forEach(_this3.props.children, function (c) {\n if (c && !c.props.disabled) {\n if (next) {\n children.push(c);\n } else {\n children.unshift(c);\n }\n }\n });\n var length = children.length;\n var ret = length && children[0].key;\n children.forEach(function (child, i) {\n if (child.key === activeKey) {\n if (i === length - 1) {\n ret = children[0].key;\n } else {\n ret = children[i + 1].key;\n }\n }\n });\n return ret;\n };\n};\n\nTabs.propTypes = {\n destroyInactiveTabPane: PropTypes.bool,\n renderTabBar: PropTypes.func.isRequired,\n renderTabContent: PropTypes.func.isRequired,\n navWrapper: PropTypes.func,\n onChange: PropTypes.func,\n children: PropTypes.node,\n prefixCls: PropTypes.string,\n className: PropTypes.string,\n tabBarPosition: PropTypes.string,\n style: PropTypes.object,\n activeKey: PropTypes.string,\n defaultActiveKey: PropTypes.string,\n direction: PropTypes.string\n};\n\nTabs.defaultProps = {\n prefixCls: 'rc-tabs',\n destroyInactiveTabPane: false,\n onChange: noop,\n navWrapper: function navWrapper(arg) {\n return arg;\n },\n tabBarPosition: 'top',\n children: null,\n style: {},\n direction: 'ltr'\n};\n\nTabs.TabPane = TabPane;\n\npolyfill(Tabs);\n\nexport default Tabs;","import _extends from 'babel-runtime/helpers/extends';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { getTransformByIndex, getActiveIndex, getTransformPropValue, getMarginStyle } from './utils';\n\nvar TabContent = function (_React$Component) {\n _inherits(TabContent, _React$Component);\n\n function TabContent() {\n _classCallCheck(this, TabContent);\n\n return _possibleConstructorReturn(this, (TabContent.__proto__ || Object.getPrototypeOf(TabContent)).apply(this, arguments));\n }\n\n _createClass(TabContent, [{\n key: 'getTabPanes',\n value: function getTabPanes() {\n var props = this.props;\n var activeKey = props.activeKey;\n var children = props.children;\n var newChildren = [];\n\n React.Children.forEach(children, function (child) {\n if (!child) {\n return;\n }\n var key = child.key;\n var active = activeKey === key;\n newChildren.push(React.cloneElement(child, {\n active: active,\n destroyInactiveTabPane: props.destroyInactiveTabPane,\n rootPrefixCls: props.prefixCls\n }));\n });\n\n return newChildren;\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames;\n\n var props = this.props;\n var prefixCls = props.prefixCls,\n children = props.children,\n activeKey = props.activeKey,\n className = props.className,\n tabBarPosition = props.tabBarPosition,\n animated = props.animated,\n animatedWithMargin = props.animatedWithMargin,\n direction = props.direction;\n var style = props.style;\n\n var classes = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls + '-content', true), _defineProperty(_classnames, animated ? prefixCls + '-content-animated' : prefixCls + '-content-no-animated', true), _classnames), className);\n if (animated) {\n var activeIndex = getActiveIndex(children, activeKey);\n if (activeIndex !== -1) {\n var animatedStyle = animatedWithMargin ? getMarginStyle(activeIndex, tabBarPosition) : getTransformPropValue(getTransformByIndex(activeIndex, tabBarPosition, direction));\n style = _extends({}, style, animatedStyle);\n } else {\n style = _extends({}, style, {\n display: 'none'\n });\n }\n }\n return React.createElement(\n 'div',\n {\n className: classes,\n style: style\n },\n this.getTabPanes()\n );\n }\n }]);\n\n return TabContent;\n}(React.Component);\n\nexport default TabContent;\n\n\nTabContent.propTypes = {\n animated: PropTypes.bool,\n animatedWithMargin: PropTypes.bool,\n prefixCls: PropTypes.string,\n children: PropTypes.node,\n activeKey: PropTypes.string,\n style: PropTypes.any,\n tabBarPosition: PropTypes.string,\n className: PropTypes.string,\n destroyInactiveTabPane: PropTypes.bool,\n direction: PropTypes.string\n};\n\nTabContent.defaultProps = {\n animated: true\n};","import Tabs from './Tabs';\nimport TabPane from './TabPane';\nimport TabContent from './TabContent';\n\nexport default Tabs;\nexport { TabPane, TabContent };","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nexports.toArray = toArray;\nexports.getActiveIndex = getActiveIndex;\nexports.getActiveKey = getActiveKey;\nexports.setTransform = setTransform;\nexports.isTransform3dSupported = isTransform3dSupported;\nexports.setTransition = setTransition;\nexports.getTransformPropValue = getTransformPropValue;\nexports.isVertical = isVertical;\nexports.getTransformByIndex = getTransformByIndex;\nexports.getMarginStyle = getMarginStyle;\nexports.getStyle = getStyle;\nexports.setPxStyle = setPxStyle;\nexports.getDataAttr = getDataAttr;\nexports.getLeft = getLeft;\nexports.getTop = getTop;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction toArray(children) {\n // allow [c,[a,b]]\n var c = [];\n _react2['default'].Children.forEach(children, function (child) {\n if (child) {\n c.push(child);\n }\n });\n return c;\n}\n\nfunction getActiveIndex(children, activeKey) {\n var c = toArray(children);\n for (var i = 0; i < c.length; i++) {\n if (c[i].key === activeKey) {\n return i;\n }\n }\n return -1;\n}\n\nfunction getActiveKey(children, index) {\n var c = toArray(children);\n return c[index].key;\n}\n\nfunction setTransform(style, v) {\n style.transform = v;\n style.webkitTransform = v;\n style.mozTransform = v;\n}\n\nfunction isTransform3dSupported(style) {\n return ('transform' in style || 'webkitTransform' in style || 'MozTransform' in style) && window.atob;\n}\n\nfunction setTransition(style, v) {\n style.transition = v;\n style.webkitTransition = v;\n style.MozTransition = v;\n}\n\nfunction getTransformPropValue(v) {\n return {\n transform: v,\n WebkitTransform: v,\n MozTransform: v\n };\n}\n\nfunction isVertical(tabBarPosition) {\n return tabBarPosition === 'left' || tabBarPosition === 'right';\n}\n\nfunction getTransformByIndex(index, tabBarPosition) {\n var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';\n\n var translate = isVertical(tabBarPosition) ? 'translateY' : 'translateX';\n\n if (!isVertical(tabBarPosition) && direction === 'rtl') {\n return translate + '(' + index * 100 + '%) translateZ(0)';\n }\n return translate + '(' + -index * 100 + '%) translateZ(0)';\n}\n\nfunction getMarginStyle(index, tabBarPosition) {\n var marginDirection = isVertical(tabBarPosition) ? 'marginTop' : 'marginLeft';\n return (0, _defineProperty3['default'])({}, marginDirection, -index * 100 + '%');\n}\n\nfunction getStyle(el, property) {\n return +window.getComputedStyle(el).getPropertyValue(property).replace('px', '');\n}\n\nfunction setPxStyle(el, value, vertical) {\n value = vertical ? '0px, ' + value + 'px, 0px' : value + 'px, 0px, 0px';\n setTransform(el.style, 'translate3d(' + value + ')');\n}\n\nfunction getDataAttr(props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n return prev;\n }, {});\n}\n\nfunction toNum(style, property) {\n return +style.getPropertyValue(property).replace('px', '');\n}\n\nfunction getTypeValue(start, current, end, tabNode, wrapperNode) {\n var total = getStyle(wrapperNode, 'padding-' + start);\n if (!tabNode || !tabNode.parentNode) {\n return total;\n }\n\n var childNodes = tabNode.parentNode.childNodes;\n\n Array.prototype.some.call(childNodes, function (node) {\n var style = window.getComputedStyle(node);\n\n if (node !== tabNode) {\n total += toNum(style, 'margin-' + start);\n total += node[current];\n total += toNum(style, 'margin-' + end);\n\n if (style.boxSizing === 'content-box') {\n total += toNum(style, 'border-' + start + '-width') + toNum(style, 'border-' + end + '-width');\n }\n return false;\n }\n\n // We need count current node margin\n // ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262\n total += toNum(style, 'margin-' + start);\n\n return true;\n });\n\n return total;\n}\n\nfunction getLeft(tabNode, wrapperNode) {\n return getTypeValue('left', 'offsetWidth', 'right', tabNode, wrapperNode);\n}\n\nfunction getTop(tabNode, wrapperNode) {\n return getTypeValue('top', 'offsetHeight', 'bottom', tabNode, wrapperNode);\n}"],"sourceRoot":""}