"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),_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),_classnames=require("classnames"),_classnames2=_interopRequireDefault(_classnames),_PureRenderMixin=require("rc-util/lib/PureRenderMixin"),_PureRenderMixin2=_interopRequireDefault(_PureRenderMixin),_reactLazyLoad=require("react-lazy-load"),_reactLazyLoad2=_interopRequireDefault(_reactLazyLoad),_checkbox=require("../checkbox"),_checkbox2=_interopRequireDefault(_checkbox);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 Item=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:"shouldComponentUpdate",value:function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return _PureRenderMixin2.default.shouldComponentUpdate.apply(this,r)}},{key:"render",value:function(){var e,r=this.props,t=r.renderedText,a=r.renderedEl,l=r.item,i=r.lazy,n=r.checked,u=r.prefixCls,s=r.onClick,o=(0,_classnames2.default)((e={},(0,_defineProperty3.default)(e,u+"-content-item",!0),(0,_defineProperty3.default)(e,u+"-content-item-checked",n),(0,_defineProperty3.default)(e,u+"-content-item-disabled",l.disabled),e)),c=React.createElement("li",{className:o,title:t,onClick:l.disabled?void 0:function(){return s(l)}},React.createElement(_checkbox2.default,{checked:n,disabled:l.disabled}),React.createElement("span",null,a)),d=null;if(i){var _=(0,_extends3.default)({height:26,offset:500,throttle:0,debounce:!1},i);d=React.createElement(_reactLazyLoad2.default,_,c)}else d=c;return d}}]),r}(React.Component);exports.default=Item,module.exports=exports.default;