"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends2=require("babel-runtime/helpers/extends"),_extends3=_interopRequireDefault(_extends2),_classCallCheck2=require("babel-runtime/helpers/classCallCheck"),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=require("babel-runtime/helpers/createClass"),_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=require("babel-runtime/helpers/possibleConstructorReturn"),_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=require("babel-runtime/helpers/inherits"),_inherits3=_interopRequireDefault(_inherits2),_react=require("react"),React=_interopRequireWildcard(_react),_propTypes=require("prop-types"),PropTypes=_interopRequireWildcard(_propTypes);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 s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(t[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)r.indexOf(s[a])<0&&(t[s[a]]=e[s[a]])}return t},BreadcrumbItem=function(e){function r(){return(0,_classCallCheck3.default)(this,r),(0,_possibleConstructorReturn3.default)(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return(0,_inherits3.default)(r,e),(0,_createClass3.default)(r,[{key:"render",value:function(){var e=this.props,r=e.prefixCls,t=e.separator,s=e.children,a=__rest(e,["prefixCls","separator","children"]),l=void 0;return l="href"in this.props?React.createElement("a",(0,_extends3.default)({className:r+"-link"},a),s):React.createElement("span",(0,_extends3.default)({className:r+"-link"},a),s),s?React.createElement("span",null,l,React.createElement("span",{className:r+"-separator"},t)):null}}]),r}(React.Component);(exports.default=BreadcrumbItem).__ANT_BREADCRUMB_ITEM=!0,BreadcrumbItem.defaultProps={prefixCls:"dt-breadcrumb",separator:"/"},BreadcrumbItem.propTypes={prefixCls:PropTypes.string,separator:PropTypes.oneOfType([PropTypes.string,PropTypes.element]),href:PropTypes.string},module.exports=exports.default;