text: webpackJsonp([10],{362:function(e,t,a){try{(function(){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n,u,l=r(a(350)),c=r(a(2)),i=r(a(11)),s=r(a(3)),o=r(a(6)),f=r(a(12)),d=r(a(13)),p=a(1),h=r(p),m=r(a(9)),v=a(38),y=a(25),g=r(a(120)),_=r(a(119)),E=r(a(345)),w=r(a(346)),b=r(a(351)),C=r(a(347)),M=r(a(394)),k=e(a(123)),O=e(a(64));a(411);var N=(0,g.default)("wechat:contact"),G=(u=n=function(e){function t(e){(0,s.default)(this,t);var a=(0,f.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return a.renderChatGroupsCells=function(){var e=a.props.groupChats.map(function(e){return{left:h.default.createElement(M.default,{images:e.headerImages}),center:h.default.createElement("p",null,e.name),link:"/wechat/chat/dialogue/"+e.mid}});return h.default.createElement(C.default,{cells:e})},N("GroupChats page init props:",e),N("GroupChats page props setState function",e.setState),a}return(0,d.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){var e=this.props.total;return h.default.createElement("div",{className:"contact-group-chats-wrapper"},h.default.createElement(E.default,{title:"群聊",back:h.default.createElement(w.default,{history:this.props.history},h.default.createElement("span",{className:"weui-back-centent"},"通讯录"))}),h.default.createElement(b.default,null),this.renderChatGroupsCells(),h.default.createElement("p",{className:"contact-statistics"},e+"个群聊"))}}]),t}(p.Component),n.propTypes={groupChats:m.default.array.isRequired,total:m.default.number.isRequired,setState:m.default.func.isRequired},u);t.default=(0,v.connectAdvanced)(function(e){var t={},a=(0,y.bindActionCreators)(k,e);return function(e,r){var n=e.wechat.chatMain.chats,u=void 0===n?[]:n,i=[],s=!0,o=!1,f=void 0;try{for(var d,p=(0,l.default)(u);!(s=(d=p.next()).done);s=!0){var h=d.value;h.base.type===O.CHAT_ROOM_TYPE_GROUP&&i.push({mid:h.mid,wxid:h.base.wxid,name:h.base.name,headerImages:(h.chatMemberModel||[]).map(function(e){return e.headerUrl})})}}catch(e){o=!0,f=e}finally{try{!s&&p.return&&p.return()}finally{if(o)throw f}}var m=i.length,v=(0,c.default)({},r,{groupChats:i,total:m},a);return t=_.default.shallowEqual(t,v)?t:v}})(G)}).call(this)}finally{}},394:function(e,t,a){try{(function(){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=e(a(1)),n=e(a(14)),u=a(122);a(395);t.default=function(e){var t=(e.images||[]).slice(0,9);t.reverse();var a=t.length,l=a>4?3:Math.ceil(a/2),c=(0,u.chunk)(t,l);return c.reverse(),r.default.createElement("div",{className:(0,n.default)("weui-chat-avatar","weui-chat-avatar-"+a)},c.map(function(e,t){return e.reverse(),r.default.createElement("div",{className:"chat-avatar-group",key:"avatar-group$-"+t},e.map(function(e,t){return r.default.createElement("img",{className:(0,n.default)("chat-avatar","chat-avatar-"+a),src:e,key:"image"+t})}))}))}}).call(this)}finally{}},395:function(e,t){},411:function(e,t){}});