import _extends from"babel-runtime/helpers/extends";import _defineProperty from"babel-runtime/helpers/defineProperty";import _classCallCheck from"babel-runtime/helpers/classCallCheck";import _createClass from"babel-runtime/helpers/createClass";import _possibleConstructorReturn from"babel-runtime/helpers/possibleConstructorReturn";import _inherits from"babel-runtime/helpers/inherits";import*as React from"react";import RcCollapse from"rc-collapse";import classNames from"classnames";import animation from"../_util/openAnimation";import CollapsePanel from"./CollapsePanel";var Collapse=function(e){function r(){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return _inherits(r,e),_createClass(r,[{key:"render",value:function(){var e=this.props,r=e.prefixCls,t=e.className,s=void 0===t?"":t,o=e.bordered,l=classNames(_defineProperty({},r+"-borderless",!o),s);return React.createElement(RcCollapse,_extends({},this.props,{className:l}))}}]),r}(React.Component);export default Collapse;Collapse.Panel=CollapsePanel,Collapse.defaultProps={prefixCls:"dt-collapse",bordered:!0,openAnimation:_extends({},animation,{appear:function(){}})};