{"version":3,"sources":["../collapse/style/index.jsx","../node_modules/rc-collapse/es/PanelContent.js","../node_modules/rc-collapse/es/Panel.js","../node_modules/rc-collapse/es/openAnimationFactory.js","../node_modules/rc-collapse/es/Collapse.js","../node_modules/rc-collapse/es/index.js","../collapse/CollapsePanel.jsx","../_util/openAnimation.jsx","../collapse/Collapse.jsx","../collapse/index.jsx"],"names":["_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","Constructor","protoProps","staticProps","prototype","_defineProperty","obj","value","_classCallCheck","instance","TypeError","_possibleConstructorReturn","self","call","ReferenceError","PanelContent","_Component","this","__proto__","getPrototypeOf","apply","arguments","subClass","superClass","create","constructor","setPrototypeOf","_inherits","nextProps","forceRender","shallowEqual","_classnames","_isActived","isActive","_props","prefixCls","children","destroyInactivePanel","role","contentCls","classnames","child","React","createElement","className","Component","propTypes","PropTypes","string","bool","any","CollapsePanel","_ref","_temp","_this","_len","args","Array","_key","concat","handleItemClick","_this$props","onItemClick","panelKey","handleKeyPress","e","keyCode","which","_classNames2","id","style","header","headerClass","showArrow","disabled","accordion","expandIcon","extra","headerCls","classNames","itemCls","icon","onClick","tabIndex","onKeyPress","Animate","showProp","exclusive","component","animation","openAnimation","oneOfType","object","number","node","func","defaultProps","animate","show","transitionName","done","height","cssAnimation","start","offsetHeight","active","end","enter","leave","toArray","activeKey","currentActiveKey","isArray","map","String","Collapse","_initialiseProps","defaultActiveKey","state","openAnimationFactory","nextState","_classNames","collapseClassName","getItems","newState","_this2","onClickItem","index","arr","arr2","from","_toConsumableArray","indexOf","splice","push","setActiveKey","getNewChild","_props2","_child$props","cloneElement","childList","isFragment","newChildren","Children","Fragment","setState","onChange","arrayOf","Panel","polyfill","getPrefixCls","customizePrefixCls","collapsePanelClassName","raf","requestAnimationFrameId","appear","panelProps","type","rotate","undefined","bordered","expandIconPosition"],"mappings":"uJAAA,e,uGCAIA,EAAe,WAAc,SAASC,EAAiBC,EAAQC,GAAS,IAAK,IAA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,KAAN,QAAmBC,OAAQF,mBAA2BG,IAC7G,OAAO,oBACD,iBAAyB,CACvBnH,UAAWmC,IAAWE,QAAD,mCAF7B,GAMJ,iBAAsB,YAAsB,MAAnBqE,EAAmB,EAAnBA,aAAmB,EACiD,EADjD,MACrBC,EADqB,0BACD3G,OADC,WACeoH,EADf,WACyBC,EADzB,qBAElC9H,EAAYmH,EAAa,WAA/B,GACM5B,EAAoB3C,KAAU,0FAApC,GAIA,OAAQ,uBAAgB,EAAhB,OAA4BH,WAAY,mBAAgB,qBAAhB,IAA8DzC,UAAtG,EAA4HS,UAAW8E,MAlBzI,E,kSAsBV,OAAO,yBAAiBzG,KAAxB,qB,gCAvB8ByB,aA0BtCyE,WACAA,gBAAwB,CACpB6C,UADoB,EAEpBtE,cAAe,EAAc,KAAd,GAA4C,CAAEiE,OAAF,eAC3DM,mBAAoB,QCpCxB","file":"static/js/6.f77ed289.chunk.js","sourcesContent":["import '../../style/index.less';\nimport './index.less';\n","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport shallowEqual from 'shallowequal';\n\nvar PanelContent = function (_Component) {\n  _inherits(PanelContent, _Component);\n\n  function PanelContent() {\n    _classCallCheck(this, PanelContent);\n\n    return _possibleConstructorReturn(this, (PanelContent.__proto__ || Object.getPrototypeOf(PanelContent)).apply(this, arguments));\n  }\n\n  _createClass(PanelContent, [{\n    key: 'shouldComponentUpdate',\n    value: function shouldComponentUpdate(nextProps) {\n      return this.props.forceRender || !shallowEqual(this.props, nextProps);\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _classnames;\n\n      this._isActived = this.props.forceRender || this._isActived || this.props.isActive;\n      if (!this._isActived) {\n        return null;\n      }\n      var _props = this.props,\n          prefixCls = _props.prefixCls,\n          isActive = _props.isActive,\n          children = _props.children,\n          destroyInactivePanel = _props.destroyInactivePanel,\n          forceRender = _props.forceRender,\n          role = _props.role;\n\n      var contentCls = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls + '-content', true), _defineProperty(_classnames, prefixCls + '-content-active', isActive), _defineProperty(_classnames, prefixCls + '-content-inactive', !isActive), _classnames));\n      var child = !forceRender && !isActive && destroyInactivePanel ? null : React.createElement(\n        'div',\n        { className: prefixCls + '-content-box' },\n        children\n      );\n      return React.createElement(\n        'div',\n        {\n          className: contentCls,\n          role: role\n        },\n        child\n      );\n    }\n  }]);\n\n  return PanelContent;\n}(Component);\n\nPanelContent.propTypes = {\n  prefixCls: PropTypes.string,\n  isActive: PropTypes.bool,\n  children: PropTypes.any,\n  destroyInactivePanel: PropTypes.bool,\n  forceRender: PropTypes.bool,\n  role: PropTypes.string\n};\n\nexport default PanelContent;","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport PanelContent from './PanelContent';\nimport Animate from 'rc-animate';\nimport shallowEqual from 'shallowequal';\n\nvar CollapsePanel = function (_Component) {\n  _inherits(CollapsePanel, _Component);\n\n  function CollapsePanel() {\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, CollapsePanel);\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 = CollapsePanel.__proto__ || Object.getPrototypeOf(CollapsePanel)).call.apply(_ref, [this].concat(args))), _this), _this.handleItemClick = function () {\n      var _this$props = _this.props,\n          onItemClick = _this$props.onItemClick,\n          panelKey = _this$props.panelKey;\n\n\n      if (typeof onItemClick === 'function') {\n        onItemClick(panelKey);\n      }\n    }, _this.handleKeyPress = function (e) {\n      if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {\n        _this.handleItemClick();\n      }\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(CollapsePanel, [{\n    key: 'shouldComponentUpdate',\n    value: function shouldComponentUpdate(nextProps) {\n      return !shallowEqual(this.props, nextProps);\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _classNames2;\n\n      var _props = this.props,\n          className = _props.className,\n          id = _props.id,\n          style = _props.style,\n          prefixCls = _props.prefixCls,\n          header = _props.header,\n          headerClass = _props.headerClass,\n          children = _props.children,\n          isActive = _props.isActive,\n          showArrow = _props.showArrow,\n          destroyInactivePanel = _props.destroyInactivePanel,\n          disabled = _props.disabled,\n          accordion = _props.accordion,\n          forceRender = _props.forceRender,\n          expandIcon = _props.expandIcon,\n          extra = _props.extra;\n\n      var headerCls = classNames(prefixCls + '-header', _defineProperty({}, headerClass, headerClass));\n      var itemCls = classNames((_classNames2 = {}, _defineProperty(_classNames2, prefixCls + '-item', true), _defineProperty(_classNames2, prefixCls + '-item-active', isActive), _defineProperty(_classNames2, prefixCls + '-item-disabled', disabled), _classNames2), className);\n\n      var icon = React.createElement('i', { className: 'arrow' });\n      if (showArrow && typeof expandIcon === 'function') {\n        icon = expandIcon(this.props);\n      }\n      return React.createElement(\n        'div',\n        { className: itemCls, style: style, id: id },\n        React.createElement(\n          'div',\n          {\n            className: headerCls,\n            onClick: this.handleItemClick,\n            role: accordion ? 'tab' : 'button',\n            tabIndex: disabled ? -1 : 0,\n            'aria-expanded': '' + isActive,\n            onKeyPress: this.handleKeyPress\n          },\n          showArrow && icon,\n          header,\n          extra && React.createElement(\n            'div',\n            { className: prefixCls + '-extra' },\n            extra\n          )\n        ),\n        React.createElement(\n          Animate,\n          {\n            showProp: 'isActive',\n            exclusive: true,\n            component: '',\n            animation: this.props.openAnimation\n          },\n          React.createElement(\n            PanelContent,\n            {\n              prefixCls: prefixCls,\n              isActive: isActive,\n              destroyInactivePanel: destroyInactivePanel,\n              forceRender: forceRender,\n              role: accordion ? 'tabpanel' : null\n            },\n            children\n          )\n        )\n      );\n    }\n  }]);\n\n  return CollapsePanel;\n}(Component);\n\nCollapsePanel.propTypes = {\n  className: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n  id: PropTypes.string,\n  children: PropTypes.any,\n  openAnimation: PropTypes.object,\n  prefixCls: PropTypes.string,\n  header: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),\n  headerClass: PropTypes.string,\n  showArrow: PropTypes.bool,\n  isActive: PropTypes.bool,\n  onItemClick: PropTypes.func,\n  style: PropTypes.object,\n  destroyInactivePanel: PropTypes.bool,\n  disabled: PropTypes.bool,\n  accordion: PropTypes.bool,\n  forceRender: PropTypes.bool,\n  expandIcon: PropTypes.func,\n  extra: PropTypes.node,\n  panelKey: PropTypes.any\n};\n\nCollapsePanel.defaultProps = {\n  showArrow: true,\n  isActive: false,\n  destroyInactivePanel: false,\n  onItemClick: function onItemClick() {},\n\n  headerClass: '',\n  forceRender: false\n};\n\nexport default CollapsePanel;","import cssAnimation from 'css-animation';\n\nfunction animate(node, show, transitionName, done) {\n  var height = void 0;\n  return cssAnimation(node, transitionName, {\n    start: function start() {\n      if (!show) {\n        node.style.height = node.offsetHeight + 'px';\n      } else {\n        height = node.offsetHeight;\n        node.style.height = 0;\n      }\n    },\n    active: function active() {\n      node.style.height = (show ? height : 0) + 'px';\n    },\n    end: function end() {\n      node.style.height = '';\n      done();\n    }\n  });\n}\n\nfunction animation(prefixCls) {\n  return {\n    enter: function enter(node, done) {\n      return animate(node, true, prefixCls + '-anim', done);\n    },\n    leave: function leave(node, done) {\n      return animate(node, false, prefixCls + '-anim', done);\n    }\n  };\n}\n\nexport default animation;","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport CollapsePanel from './Panel';\nimport openAnimationFactory from './openAnimationFactory';\nimport classNames from 'classnames';\nimport { isFragment } from 'react-is';\nimport shallowEqual from 'shallowequal';\nimport { polyfill } from 'react-lifecycles-compat';\n\nfunction toArray(activeKey) {\n  var currentActiveKey = activeKey;\n  if (!Array.isArray(currentActiveKey)) {\n    currentActiveKey = currentActiveKey ? [currentActiveKey] : [];\n  }\n  return currentActiveKey.map(function (key) {\n    return String(key);\n  });\n}\n\nvar Collapse = function (_Component) {\n  _inherits(Collapse, _Component);\n\n  function Collapse(props) {\n    _classCallCheck(this, Collapse);\n\n    var _this = _possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));\n\n    _initialiseProps.call(_this);\n\n    var activeKey = props.activeKey,\n        defaultActiveKey = props.defaultActiveKey;\n\n    var currentActiveKey = defaultActiveKey;\n    if ('activeKey' in props) {\n      currentActiveKey = activeKey;\n    }\n\n    _this.state = {\n      openAnimation: props.openAnimation || openAnimationFactory(props.prefixCls),\n      activeKey: toArray(currentActiveKey)\n    };\n    return _this;\n  }\n\n  _createClass(Collapse, [{\n    key: 'shouldComponentUpdate',\n    value: function shouldComponentUpdate(nextProps, nextState) {\n      return !shallowEqual(this.props, nextProps) || !shallowEqual(this.state, nextState);\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _classNames;\n\n      var _props = this.props,\n          prefixCls = _props.prefixCls,\n          className = _props.className,\n          style = _props.style,\n          accordion = _props.accordion;\n\n      var collapseClassName = classNames((_classNames = {}, _defineProperty(_classNames, prefixCls, true), _defineProperty(_classNames, className, !!className), _classNames));\n      return React.createElement(\n        'div',\n        { className: collapseClassName, style: style, role: accordion ? 'tablist' : null },\n        this.getItems()\n      );\n    }\n  }], [{\n    key: 'getDerivedStateFromProps',\n    value: function getDerivedStateFromProps(nextProps) {\n      var newState = {};\n      if ('activeKey' in nextProps) {\n        newState.activeKey = toArray(nextProps.activeKey);\n      }\n      if ('openAnimation' in nextProps) {\n        newState.openAnimation = nextProps.openAnimation;\n      }\n      return newState.activeKey || newState.openAnimation ? newState : null;\n    }\n  }]);\n\n  return Collapse;\n}(Component);\n\nvar _initialiseProps = function _initialiseProps() {\n  var _this2 = this;\n\n  this.onClickItem = function (key) {\n    var activeKey = _this2.state.activeKey;\n    if (_this2.props.accordion) {\n      activeKey = activeKey[0] === key ? [] : [key];\n    } else {\n      activeKey = [].concat(_toConsumableArray(activeKey));\n      var index = activeKey.indexOf(key);\n      var isActive = index > -1;\n      if (isActive) {\n        // remove active state\n        activeKey.splice(index, 1);\n      } else {\n        activeKey.push(key);\n      }\n    }\n    _this2.setActiveKey(activeKey);\n  };\n\n  this.getNewChild = function (child, index) {\n    if (!child) return null;\n\n    var activeKey = _this2.state.activeKey;\n    var _props2 = _this2.props,\n        prefixCls = _props2.prefixCls,\n        accordion = _props2.accordion,\n        destroyInactivePanel = _props2.destroyInactivePanel,\n        expandIcon = _props2.expandIcon;\n    // If there is no key provide, use the panel order as default key\n\n    var key = child.key || String(index);\n    var _child$props = child.props,\n        header = _child$props.header,\n        headerClass = _child$props.headerClass,\n        disabled = _child$props.disabled;\n\n    var isActive = false;\n    if (accordion) {\n      isActive = activeKey[0] === key;\n    } else {\n      isActive = activeKey.indexOf(key) > -1;\n    }\n\n    var props = {\n      key: key,\n      panelKey: key,\n      header: header,\n      headerClass: headerClass,\n      isActive: isActive,\n      prefixCls: prefixCls,\n      destroyInactivePanel: destroyInactivePanel,\n      openAnimation: _this2.state.openAnimation,\n      accordion: accordion,\n      children: child.props.children,\n      onItemClick: disabled ? null : _this2.onClickItem,\n      expandIcon: expandIcon\n    };\n\n    return React.cloneElement(child, props);\n  };\n\n  this.getItems = function () {\n    var children = _this2.props.children;\n\n    var childList = isFragment(children) ? children.props.children : children;\n    var newChildren = Children.map(childList, _this2.getNewChild);\n\n    //  ref: https://github.com/ant-design/ant-design/issues/13884\n    if (isFragment(children)) {\n      return React.createElement(\n        React.Fragment,\n        null,\n        newChildren\n      );\n    }\n\n    return newChildren;\n  };\n\n  this.setActiveKey = function (activeKey) {\n    if (!('activeKey' in _this2.props)) {\n      _this2.setState({ activeKey: activeKey });\n    }\n    _this2.props.onChange(_this2.props.accordion ? activeKey[0] : activeKey);\n  };\n};\n\nCollapse.propTypes = {\n  children: PropTypes.any,\n  prefixCls: PropTypes.string,\n  activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))]),\n  defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))]),\n  openAnimation: PropTypes.object,\n  onChange: PropTypes.func,\n  accordion: PropTypes.bool,\n  className: PropTypes.string,\n  style: PropTypes.object,\n  destroyInactivePanel: PropTypes.bool,\n  expandIcon: PropTypes.func\n};\n\nCollapse.defaultProps = {\n  prefixCls: 'rc-collapse',\n  onChange: function onChange() {},\n\n  accordion: false,\n  destroyInactivePanel: false\n};\n\nCollapse.Panel = CollapsePanel;\n\npolyfill(Collapse);\n\nexport default Collapse;","import Collapse from './Collapse';\n\nexport default Collapse;\nexport var Panel = Collapse.Panel;","import * as React from 'react';\nimport RcCollapse from 'rc-collapse';\nimport classNames from 'classnames';\nimport { ConfigConsumer } from '../config-provider';\nexport default class CollapsePanel extends React.Component {\n    constructor() {\n        super(...arguments);\n        this.renderCollapsePanel = ({ getPrefixCls }) => {\n            const { prefixCls: customizePrefixCls, className = '', showArrow = true } = this.props;\n            const prefixCls = getPrefixCls('collapse', customizePrefixCls);\n            const collapsePanelClassName = classNames({\n                [`${prefixCls}-no-arrow`]: !showArrow,\n            }, className);\n            return (<RcCollapse.Panel {...this.props} prefixCls={prefixCls} className={collapsePanelClassName}/>);\n        };\n    }\n    render() {\n        return <ConfigConsumer>{this.renderCollapsePanel}</ConfigConsumer>;\n    }\n}\n","/**\n * Deprecated. We should replace the animation with pure react motion instead of modify style directly.\n * If you are creating new component with animation, please use `./motion`.\n */\nimport cssAnimation from 'css-animation';\nimport raf from 'raf';\nfunction animate(node, show, done) {\n    let height;\n    let requestAnimationFrameId;\n    return cssAnimation(node, 'ant-motion-collapse-legacy', {\n        start() {\n            if (!show) {\n                node.style.height = `${node.offsetHeight}px`;\n                node.style.opacity = '1';\n            }\n            else {\n                height = node.offsetHeight;\n                node.style.height = '0px';\n                node.style.opacity = '0';\n            }\n        },\n        active() {\n            if (requestAnimationFrameId) {\n                raf.cancel(requestAnimationFrameId);\n            }\n            requestAnimationFrameId = raf(() => {\n                node.style.height = `${show ? height : 0}px`;\n                node.style.opacity = show ? '1' : '0';\n            });\n        },\n        end() {\n            if (requestAnimationFrameId) {\n                raf.cancel(requestAnimationFrameId);\n            }\n            node.style.height = '';\n            node.style.opacity = '';\n            done();\n        },\n    });\n}\nconst animation = {\n    enter(node, done) {\n        return animate(node, true, done);\n    },\n    leave(node, done) {\n        return animate(node, false, done);\n    },\n    appear(node, done) {\n        return animate(node, true, done);\n    },\n};\nexport default animation;\n","import * as React from 'react';\nimport RcCollapse from 'rc-collapse';\nimport classNames from 'classnames';\nimport CollapsePanel from './CollapsePanel';\nimport Icon from '../icon';\nimport { ConfigConsumer } from '../config-provider';\nimport animation from '../_util/openAnimation';\nexport default class Collapse extends React.Component {\n    constructor() {\n        super(...arguments);\n        this.renderExpandIcon = (panelProps = {}, prefixCls) => {\n            const { expandIcon } = this.props;\n            const icon = (expandIcon ? (expandIcon(panelProps)) : (<Icon type=\"right\" rotate={panelProps.isActive ? 90 : undefined}/>));\n            return React.isValidElement(icon)\n                ? React.cloneElement(icon, {\n                    className: classNames(icon.props.className, `${prefixCls}-arrow`),\n                })\n                : icon;\n        };\n        this.renderCollapse = ({ getPrefixCls }) => {\n            const { prefixCls: customizePrefixCls, className = '', bordered, expandIconPosition, } = this.props;\n            const prefixCls = getPrefixCls('collapse', customizePrefixCls);\n            const collapseClassName = classNames({\n                [`${prefixCls}-borderless`]: !bordered,\n                [`${prefixCls}-icon-position-${expandIconPosition}`]: true,\n            }, className);\n            return (<RcCollapse {...this.props} expandIcon={(panelProps) => this.renderExpandIcon(panelProps, prefixCls)} prefixCls={prefixCls} className={collapseClassName}/>);\n        };\n    }\n    render() {\n        return <ConfigConsumer>{this.renderCollapse}</ConfigConsumer>;\n    }\n}\nCollapse.Panel = CollapsePanel;\nCollapse.defaultProps = {\n    bordered: true,\n    openAnimation: Object.assign(Object.assign({}, animation), { appear() { } }),\n    expandIconPosition: 'left',\n};\n","import Collapse from './Collapse';\nexport default Collapse;\n"],"sourceRoot":""}