"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends2=require("babel-runtime/helpers/extends"),_extends3=_interopRequireDefault(_extends2),_defineProperty2=require("babel-runtime/helpers/defineProperty"),_defineProperty3=_interopRequireDefault(_defineProperty2);exports.default=Divider;var _react=require("react"),React=_interopRequireWildcard(_react),_classnames=require("classnames"),_classnames2=_interopRequireDefault(_classnames);function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var __rest=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)r.indexOf(i[a])<0&&(t[i[a]]=e[i[a]])}return t};function Divider(e){var r,t=e.prefixCls,i=void 0===t?"dt":t,a=e.type,n=void 0===a?"horizontal":a,d=e.className,s=e.children,l=e.dashed,o=__rest(e,["prefixCls","type","className","children","dashed"]),u=(0,_classnames2.default)(d,i+"-divider",i+"-divider-"+n,(r={},(0,_defineProperty3.default)(r,i+"-divider-with-text",s),(0,_defineProperty3.default)(r,i+"-divider-dashed",!!l),r));return React.createElement("div",(0,_extends3.default)({className:u},o),s&&React.createElement("span",{className:i+"-divider-inner-text"},s))}module.exports=exports.default;