import _extends from "@babel/runtime-corejs2/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose"; import _assertThisInitialized from "@babel/runtime-corejs2/helpers/esm/assertThisInitialized"; import classNames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import elementType from 'prop-types-extra/lib/elementType'; import warning from 'warning'; import { bsClass, getClassSet, prefix, splitBsPropsAndOmit } from './utils/bootstrapUtils'; import createChainedFunction from './utils/createChainedFunction'; import Fade from './Fade'; var propTypes = { /** * Uniquely identify the `` among its siblings. */ eventKey: PropTypes.any, /** * Use animation when showing or hiding ``s. Use `false` to disable, * `true` to enable the default `` animation or * a react-transition-group v2 `` component. */ animation: PropTypes.oneOfType([PropTypes.bool, elementType]), /** @private * */ id: PropTypes.string, /** @private * */ 'aria-labelledby': PropTypes.string, /** * If not explicitly specified and rendered in the context of a * ``, the `bsClass` of the `` suffixed by `-pane`. * If otherwise not explicitly specified, `tab-pane`. */ bsClass: PropTypes.string, /** * Transition onEnter callback when animation is not `false` */ onEnter: PropTypes.func, /** * Transition onEntering callback when animation is not `false` */ onEntering: PropTypes.func, /** * Transition onEntered callback when animation is not `false` */ onEntered: PropTypes.func, /** * Transition onExit callback when animation is not `false` */ onExit: PropTypes.func, /** * Transition onExiting callback when animation is not `false` */ onExiting: PropTypes.func, /** * Transition onExited callback when animation is not `false` */ onExited: PropTypes.func, /** * Wait until the first "enter" transition to mount the tab (add it to the DOM) */ mountOnEnter: PropTypes.bool, /** * Unmount the tab (remove it from the DOM) when it is no longer visible */ unmountOnExit: PropTypes.bool }; var contextTypes = { $bs_tabContainer: PropTypes.shape({ getTabId: PropTypes.func, getPaneId: PropTypes.func }), $bs_tabContent: PropTypes.shape({ bsClass: PropTypes.string, animation: PropTypes.oneOfType([PropTypes.bool, elementType]), activeKey: PropTypes.any, mountOnEnter: PropTypes.bool, unmountOnExit: PropTypes.bool, onPaneEnter: PropTypes.func.isRequired, onPaneExited: PropTypes.func.isRequired, exiting: PropTypes.bool.isRequired }) }; /** * We override the `` context so `