import _classCallCheck from"babel-runtime/helpers/classCallCheck";import _possibleConstructorReturn from"babel-runtime/helpers/possibleConstructorReturn";import _inherits from"babel-runtime/helpers/inherits";import*as React from"react";import DateConstants from"./DateConstants";import moment from"moment";var DateTHead=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(t,e),t.prototype.render=function(){for(var e=this.props,t=e.value.localeData(),r=e.prefixCls,a=[],n=[],o=void 0,s=moment(),l=0;l<DateConstants.DATE_COL_COUNT;l++){var m=(1+l)%DateConstants.DATE_COL_COUNT;s.day(m),a[l]=t.weekdaysMin(s),n[l]=t.weekdaysShort(s)}e.showWeekNumber&&(o=React.createElement("th",{role:"columnheader",className:r+"-column-header "+r+"-week-number-header"},React.createElement("span",{className:r+"-column-header-inner"},"x")));var c=n.map(function(e,t){return React.createElement("th",{key:t,role:"columnheader",title:e,className:r+"-column-header"},React.createElement("span",{className:r+"-column-header-inner"},a[t]))});return React.createElement("thead",null,React.createElement("tr",{role:"row"},o,c))},t}(React.Component);export default DateTHead;