/gi,""));var o=n.match(/\[.*?\]\(.*?\)/gi);o&&b.default.forEach(o,function(e,t){var a=new RegExp("^\\[([^\\]]*)\\]\\(([^\\)]*)\\)$");a.exec(e),n=n.replace(e,"
"+RegExp.$1+" ")}),a=d.default.createElement("div",null,d.default.createElement("div",{onClick:e.previewInlineImg.bind(e),style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:n.replace(/(\r\n)|(\n)/g,"
")}}),Ie[t.key]&&d.default.createElement(y.default,{mainSrc:i[We],nextSrc:i[(We+1)%i.length],prevSrc:i[(We+i.length-1)%i.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.state.inlinePreviewShow[t.key]=!1,e.setState({inlinePreviewShow:e.state.inlinePreviewShow})},onMovePrevRequest:function(){return e.setState({photoIndex:(We+i.length-1)%i.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(We+1)%i.length})}}))}():a=u[t.key];return d.default.createElement(c.FormGroup,{key:"form-"+n},d.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel},t.name||"-"),d.default.createElement(c.Col,{sm:9},d.default.createElement("div",{style:{marginTop:"7px"}},a)))}}))),d.default.createElement(c.Tab,{eventKey:2,title:ot},d.default.createElement(T,{i18n:n,currentTime:U.current_time||0,currentUser:Ne,project:G,permissions:U.permissions||[],issue_id:u.id,collection:de,indexComments:le,sortComments:ue,indexLoading:ce,loading:pe,users:U.users||[],addComments:me,editComments:he,delComments:ye,itemLoading:fe})),d.default.createElement(c.Tab,{eventKey:3,title:"改动纪录"},d.default.createElement(L,{issue_id:u.id,currentTime:U.current_time||0,currentUser:Ne,collection:ve,indexHistory:_e,sortHistory:ge,indexLoading:be})),d.default.createElement(c.Tab,{eventKey:4,title:st},d.default.createElement(x,{i18n:n,currentTime:U.current_time||0,currentUser:Ne,permissions:U.permissions||[],issue:u,original_estimate:u.original_estimate,options:U.timetrack||{},collection:xe,indexWorklog:Te,sort:Le,sortWorklog:Se,indexLoading:Ce,loading:De,addWorklog:Ye,editWorklog:Pe,delWorklog:Oe})),u.gitcommits_num>0&&d.default.createElement(c.Tab,{eventKey:5,title:lt},d.default.createElement(S,{issue_id:u.id,currentTime:U.current_time||0,currentUser:Ne,collection:we,indexGitCommits:ke,sortGitCommits:Me,indexLoading:Ee})))),Ue&&d.default.createElement(Y,{show:!0,close:this.delFileModalClose,del:J,data:Ge,loading:K,i18n:n}),this.state.editModalShow&&d.default.createElement(E,{show:!0,close:this.editModalClose.bind(this),options:U,edit:X,loading:k,project:G,data:u,isSubtask:u.parent_id&&!0,addLabels:re,i18n:n}),this.state.workflowScreenShow&&d.default.createElement(E,{show:!0,close:this.workflowScreenModalClose.bind(this),options:U,edit:X,loading:k,project:G,data:u,action_id:Ke,doAction:Ae,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&d.default.createElement(q,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:u,action_id:Ke,doAction:Ae}),this.state.createSubtaskModalShow&&d.default.createElement(E,{show:!0,close:this.createSubtaskModalClose.bind(this),options:U,create:Z,loading:k,project:G,parent_id:u.id,isSubtask:!0,i18n:n}),this.state.previewModalShow&&d.default.createElement(D,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:u.state,collection:oe}),this.state.linkIssueModalShow&&d.default.createElement(P,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:U,loading:Fe,createLink:je,issue:u,types:U.types,project:G,i18n:n}),this.state.delLinkModalShow&&d.default.createElement(O,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:Fe,delLink:Re,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&d.default.createElement(j,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:U,convert:te,loading:k,issue:u,i18n:n}),this.state.convertType2ModalShow&&d.default.createElement(R,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:U,project:G,convert:te,loading:k,issue:u,i18n:n}),this.state.moveModalShow&&d.default.createElement(F,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:U,project:G,move:ee,loading:k,issue:u,i18n:n}),this.state.assignModalShow&&d.default.createElement(A,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:U,setAssignee:ne,issue:u,i18n:n}),this.state.setLabelsModalShow&&d.default.createElement(N,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:U,setLabels:ae,addLabels:re,issue:u,i18n:n}),this.state.shareModalShow&&d.default.createElement(H,{show:!0,project:G,close:function(){e.setState({shareModalShow:!1})},issue:u}),this.state.resetModalShow&&d.default.createElement(I,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:U,resetState:ie,issue:u,i18n:n}),this.state.delNotifyShow&&d.default.createElement(W,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:u,del:$,detailClose:r,i18n:n}),this.state.copyModalShow&&d.default.createElement(B,{show:!0,close:function(){e.setState({copyModalShow:!1})},loading:k,copy:Q,data:u,i18n:n}),this.state.watchersModalShow&&d.default.createElement(z,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:u.no,watchers:u.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=V,e.exports=t.default}).call(this)}finally{}},379:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n
0&&(s=n.links.length+10),d.next=15,regeneratorRuntime.awrap(o.request({url:"/project/"+r.key+"/issue/search?s="+e+"&limit="+s}));case 15:return l=d.sent,u=[],l.data.length>0&&y.default.map(l.data,function(e){y.default.indexOf(i,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(a,{id:e.type}).name+"/"+e.no+" - "+e.title})}),d.abrupt("return",{options:u});case 19:case"end":return d.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,a=t.loading,r=t.options.relations,i=void 0===r?[]:r,o=[];return y.default.forEach(i,function(e){e.out==e.in?o.push({value:e.out,label:e.out}):(o.push({value:e.out,label:e.out}),o.push({value:e.in,label:e.in}))}),u.default.createElement(d.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(d.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(d.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(d.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:a,options:o,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(d.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(d.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:a,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&n[this.state.ecode]),u.default.createElement("img",{src:g,className:a?"loading":"hide"}),u.default.createElement(d.Button,{disabled:a||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:a,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,options:l.PropTypes.object.isRequired,close:l.PropTypes.func.isRequired,types:l.PropTypes.array.isRequired,loading:l.PropTypes.bool.isRequired,createLink:l.PropTypes.func.isRequired,project:l.PropTypes.object.isRequired,issue:l.PropTypes.object.isRequired},enumerable:!0}]),t}(l.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},380:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(d.Modal.Footer,null,u.default.createElement(d.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:l.PropTypes.func.isRequired,issue_no:l.PropTypes.number.isRequired,watchers:l.PropTypes.object.isRequired},enumerable:!0}]),t}(l.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},381:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,a){var r=_lodash2.default.find(e,{nameAndEmail:n});return r&&t.state.atWho.push(r.id),"@"+r.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,a){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function render(){var _this3=this,_props3=this.props,i18n=_props3.i18n,currentTime=_props3.currentTime,permissions=_props3.permissions,currentUser=_props3.currentUser,indexComments=_props3.indexComments,sortComments=_props3.sortComments,collection=_props3.collection,indexLoading=_props3.indexLoading,loading=_props3.loading,itemLoading=_props3.itemLoading,delComments=_props3.delComments,editComments=_props3.editComments,users=_props3.users,project=_props3.project,issue_id=_props3.issue_id,_state=this.state,inlinePreviewShow=_state.inlinePreviewShow,photoIndex=_state.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:indexLoading&&"hide",style:{marginTop:"15px",marginBottom:"10px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){indexComments(issue_id)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){sortComments()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),permissions.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:loading,style:{height:"150px"},onChange:function(e){_this3.setState({contents:e.target.value})},value:this.state.contents,onKeyDown:function(e){"13"==e.keyCode&&e.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(_this3.state.contents))&&_this3.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布备注。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:loading?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:loading||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){_this3.setState({addCommentsShow:!1})},disabled:loading},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},indexLoading&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),collection.length<=0&&!indexLoading?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无备注。"):_lodash2.default.map(collection,function(val,i){var header=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(val.creator&&val.creator.id===currentUser.id?"我":val.creator.name)+" - "+("absolute"==_this3.state.displayTimeFormat?moment.unix(val.created_at).format("YY/MM/DD HH:mm:ss"):(0,
_shareFuncs.getAgoAt)(val.created_at,currentTime))+(1==val.edited_flag?' - 已编辑 ':"")}}),(val.creator&¤tUser.id===val.creator.id&&permissions.indexOf("delete_self_comments")!==-1||permissions.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right"},onClick:_this3.showDelComments.bind(_this3,val),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(val.creator&¤tUser.id===val.creator.id&&permissions.indexOf("edit_self_comments")!==-1||permissions.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginRight:"10px","float":"right"},onClick:_this3.showEditComments.bind(_this3,val),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-pencil"})),permissions.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginRight:"10px","float":"right"},onClick:_this3.showAddReply.bind(_this3,val.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),contents=val.contents?_lodash2.default.escape(val.contents):"-",images=contents.match(/!\[file\]\(http(s)?:\/\/(.*?)\)((\r\n)|(\n))?/gi),imgFileUrls=[];images&&(_lodash2.default.forEach(images,function(e,t){var n=e.match(/http(s)?:\/\/([^\)]+)/gi),a=new RegExp("^http[s]?://[^/]+(.+)$");if(a.exec(n[0])){var r=RegExp.$1;contents=contents.replace(e,' '),imgFileUrls.push(r)}}),contents=contents.replace(/<\/div>(\s*?)/gi,""));var links=contents.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[([^\\]]*)\\]\\(([^\\)]*)\\)$");n.exec(e)&&(contents=contents.replace(e,"
"+RegExp.$1+" "))}),_lodash2.default.map(val.atWho||[],function(v){contents=contents.replace(eval("/@"+v.name+"/"),'
@'+v.name+" ")}),contents=contents.replace(/(\r\n)|(\n)/g,"
"),_react2.default.createElement(_reactBootstrap.Panel,{header:header,key:i,style:{margin:"5px"}},_react2.default.createElement("div",{onClick:_this3.previewInlineImg.bind(_this3),style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:contents}}),inlinePreviewShow[val.id]&&_react2.default.createElement(_reactImageLightbox2.default,{mainSrc:imgFileUrls[photoIndex],nextSrc:imgFileUrls[(photoIndex+1)%imgFileUrls.length],prevSrc:imgFileUrls[(photoIndex+imgFileUrls.length-1)%imgFileUrls.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){_this3.state.inlinePreviewShow[val.id]=!1,_this3.setState({inlinePreviewShow:_this3.state.inlinePreviewShow})},onMovePrevRequest:function(){return _this3.setState({photoIndex:(photoIndex+imgFileUrls.length-1)%imgFileUrls.length})},onMoveNextRequest:function(){return _this3.setState({photoIndex:(photoIndex+1)%imgFileUrls.length})}}),val.reply&&val.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(val.reply,function(v,i){var contents=v.contents?_lodash2.default.escape(v.contents):"-",images=contents.match(/!\[.*?\]\(http(s)?:\/\/(.*?)\)((\r\n)|(\n))?/gi),imgFileUrls=[];images&&(_lodash2.default.forEach(images,function(e,t){var n=e.match(/http(s)?:\/\/([^\)]+)/gi),a=new RegExp("^http[s]?://[^/]+(.+)$");a.exec(n[0]);var r=RegExp.$1;contents=contents.replace(e,'
'),imgFileUrls.push(r)}),contents=contents.replace(/<\/div>(\s*?)
',Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},X=function(){function e(e,t){for(var n=0;n
n.width?3===t?u=n.height*s:c=n.width/s:3===t?c=n.width/s:u=n.height*s;var p={naturalWidth:i,naturalHeight:r,aspectRatio:s,width:u,height:c};p.oldLeft=p.left=(n.width-u)/2,p.oldTop=p.top=(n.height-c)/2,e.canvasData=p,e.limited=1===t||2===t,e.limitCanvas(!0,!0),e.initialImageData=l({},a),e.initialCanvasData=l({},p)},limitCanvas:function(e,t){var n=this,a=n.options,o=a.viewMode,i=n.containerData,r=n.canvasData,s=r.aspectRatio,u=n.cropBoxData,l=n.cropped&&u;if(e){var c=Number(a.minCanvasWidth)||0,p=Number(a.minCanvasHeight)||0;o>1?(c=Math.max(c,i.width),p=Math.max(p,i.height),3===o&&(p*s>c?c=p*s:p=c/s)):o>0&&(c?c=Math.max(c,l?u.width:0):p?p=Math.max(p,l?u.height:0):l&&(c=u.width,p=u.height,p*s>c?c=p*s:p=c/s)),c&&p?p*s>c?p=c/s:c=p*s:c?p=c/s:p&&(c=p*s),r.minWidth=c,r.minHeight=p,r.maxWidth=1/0,r.maxHeight=1/0}if(t)if(o){var d=i.width-r.width,h=i.height-r.height;r.minLeft=Math.min(0,d),r.minTop=Math.min(0,h),r.maxLeft=Math.max(0,d),r.maxTop=Math.max(0,h),l&&n.limited&&(r.minLeft=Math.min(u.left,u.left+(u.width-r.width)),r.minTop=Math.min(u.top,u.top+(u.height-r.height)),r.maxLeft=u.left,r.maxTop=u.top,2===o&&(r.width>=i.width&&(r.minLeft=Math.min(0,d),r.maxLeft=Math.max(0,d)),r.height>=i.height&&(r.minTop=Math.min(0,h),r.maxTop=Math.max(0,h))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=i.width,r.maxTop=i.height},renderCanvas:function(e){var t=this,n=t.canvasData,a=t.imageData,o=a.rotate;if(t.rotated){t.rotated=!1;var i=R({width:a.width,height:a.height,degree:o}),r=i.width/i.height,s=1===a.aspectRatio;if(s||r!==n.aspectRatio){if(n.left-=(i.width-n.width)/2,n.top-=(i.height-n.height)/2,n.width=i.width,n.height=i.height,n.aspectRatio=r,n.naturalWidth=a.naturalWidth,n.naturalHeight=a.naturalHeight,s&&o%90||o%180){var u=R({width:a.naturalWidth,height:a.naturalHeight,degree:o});n.naturalWidth=u.width,n.naturalHeight=u.height}t.limitCanvas(!0,!1)}}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighto.width?i.height=i.width/n:i.width=i.height*n),e.cropBoxData=i,e.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*a),i.height=Math.max(i.minHeight,i.height*a),i.oldLeft=i.left=o.left+(o.width-i.width)/2,i.oldTop=i.top=o.top+(o.height-i.height)/2,e.initialCropBoxData=l({},i)},limitCropBox:function(e,t){var n=this,a=n.options,o=a.aspectRatio,i=n.containerData,r=n.canvasData,s=n.cropBoxData,u=n.limited;if(e){var l=Number(a.minCropBoxWidth)||0,c=Number(a.minCropBoxHeight)||0,p=Math.min(i.width,u?r.width:i.width),d=Math.min(i.height,u?r.height:i.height);l=Math.min(l,i.width),c=Math.min(c,i.height),o&&(l&&c?c*o>l?c=l/o:l=c*o:l?c=l/o:c&&(l=c*o),d*o>p?d=p/o:p=d*o),s.minWidth=Math.min(l,p),s.minHeight=Math.min(c,d),s.maxWidth=p,s.maxHeight=d}t&&(u?(s.minLeft=Math.max(0,r.left),s.minTop=Math.max(0,r.top),s.maxLeft=Math.min(i.width,r.left+r.width)-s.width,s.maxTop=Math.min(i.height,r.top+r.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=i.width-s.width,s.maxTop=i.height-s.height))},renderCropBox:function(){var e=this,t=e.options,n=e.containerData,a=e.cropBoxData;(a.width>a.maxWidth||a.widtha.maxHeight||a.heightu&&(m=u/i,h=o*m,f=u),p(e,{width:h,height:f}),p(D(e,"img")[0],l({width:r*m,height:s*m},N(l({translateX:-c*m,translateY:-d*m},t))))}))}},de="undefined"!=typeof window?window.PointerEvent:null,he=de?"pointerdown":"touchstart mousedown",fe=de?"pointermove":"touchmove mousemove",me=de?" pointerup pointercancel":"touchend touchcancel mouseup",ve="wheel mousewheel DOMMouseScroll",ge="dblclick",be="resize",ye="cropstart",Ee="cropmove",we="cropend",Ce="crop",xe="zoom",Oe={bind:function(){var e=this,t=e.options,n=e.element,a=e.cropper;i(t.cropstart)&&w(n,ye,t.cropstart),i(t.cropmove)&&w(n,Ee,t.cropmove),i(t.cropend)&&w(n,we,t.cropend),i(t.crop)&&w(n,Ce,t.crop),i(t.zoom)&&w(n,xe,t.zoom),w(a,he,e.onCropStart=c(e.cropStart,e)),t.zoomable&&t.zoomOnWheel&&w(a,ve,e.onWheel=c(e.wheel,e)),t.toggleDragModeOnDblclick&&w(a,ge,e.onDblclick=c(e.dblclick,e)),w(document,fe,e.onCropMove=c(e.cropMove,e)),w(document,me,e.onCropEnd=c(e.cropEnd,e)),t.responsive&&w(window,be,e.onResize=c(e.resize,e))},unbind:function(){var e=this,t=e.options,n=e.element,a=e.cropper;i(t.cropstart)&&E(n,ye,t.cropstart),i(t.cropmove)&&E(n,Ee,t.cropmove),i(t.cropend)&&E(n,we,t.cropend),i(t.crop)&&E(n,Ce,t.crop),i(t.zoom)&&E(n,xe,t.zoom),E(a,he,e.onCropStart),t.zoomable&&t.zoomOnWheel&&E(a,ve,e.onWheel),t.toggleDragModeOnDblclick&&E(a,ge,e.onDblclick),E(document,fe,e.onCropMove),E(document,me,e.onCropEnd),t.responsive&&E(window,be,e.onResize)}},De=/^(e|w|s|n|se|sw|ne|nw|all|crop|move|zoom)$/,Me={resize:function(){var e=this,t=e.options,n=e.container,a=e.containerData,o=Number(t.minContainerWidth)||200,i=Number(t.minContainerHeight)||100;if(!e.disabled&&a.width!==o&&a.height!==i){var r=n.offsetWidth/a.width;1===r&&n.offsetHeight===a.height||!function(){var n=void 0,a=void 0;t.restore&&(n=e.getCanvasData(),a=e.getCropBoxData()),e.render(),t.restore&&(e.setCanvasData(u(n,function(e,t){n[t]=e*r})),e.setCropBoxData(u(a,function(e,t){a[t]=e*r})))}()}},dblclick:function(){var e=this;e.disabled||"none"===e.options.dragMode||e.setDragMode(d(e.dragBox,"cropper-crop")?"move":"crop")},wheel:function(e){var t=this,n=x(e),a=Number(t.options.wheelZoomRatio)||.1,o=1;t.disabled||(n.preventDefault(),t.wheeling||(t.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),n.deltaY?o=n.deltaY>0?1:-1:n.wheelDelta?o=-n.wheelDelta/120:n.detail&&(o=n.detail>0?1:-1),t.zoom(-o*a,n)))},cropStart:function(e){var t=this;if(!t.disabled){var n=t.options,a=t.pointers,o=x(e),i=void 0;o.changedTouches?u(o.changedTouches,function(e){a[e.identifier]=W(e)}):a[o.pointerId||0]=W(o),i=Object.keys(a).length>1&&n.zoomable&&n.zoomOnTouch?"zoom":g(o.target,"action"),De.test(i)&&C(t.element,"cropstart",{originalEvent:o,action:i})!==!1&&(o.preventDefault(),t.action=i,t.cropping=!1,"crop"===i&&(t.cropping=!0,h(t.dragBox,"cropper-modal")))}},cropMove:function(e){var t=this,n=t.action;if(!t.disabled&&n){var a=t.pointers,o=x(e);o.preventDefault(),C(t.element,"cropmove",{originalEvent:o,action:n})!==!1&&(o.changedTouches?u(o.changedTouches,function(e){l(a[e.identifier],W(e,!0))}):l(a[o.pointerId||0],W(o,!0)),t.change(o))}},cropEnd:function(e){var t=this;if(!t.disabled){var n=t.action,a=t.pointers,o=x(e);o.changedTouches?u(o.changedTouches,function(e){delete a[e.identifier]}):delete a[o.pointerId||0],n&&(o.preventDefault(),Object.keys(a).length||(t.action=""),t.cropping&&(t.cropping=!1,m(t.dragBox,"cropper-modal",t.cropped&&this.options.modal)),C(t.element,"cropend",{originalEvent:o,action:n}))}}},Te="e",Ae="w",Fe="s",Pe="n",Se="se",ke="sw",_e="ne",Ne="nw",Re={change:function(e){var t=this,n=t.options,a=t.containerData,o=t.canvasData,i=t.cropBoxData,r=n.aspectRatio,s=t.action,l=i.width,c=i.height,p=i.left,d=i.top,h=p+l,m=d+c,v=0,g=0,b=a.width,y=a.height,E=!0,w=void 0;!r&&e.shiftKey&&(r=l&&c?l/c:1),t.limited&&(v=i.minLeft,g=i.minTop,b=v+Math.min(a.width,o.width,o.left+o.width),y=g+Math.min(a.height,o.height,o.top+o.height));var C=t.pointers,x=C[Object.keys(C)[0]],D={x:x.endX-x.startX,y:x.endY-x.startY};switch(r&&(D.X=D.y*r,D.Y=D.x/r),s){case"all":p+=D.x,d+=D.y;break;case Te:if(D.x>=0&&(h>=b||r&&(d<=g||m>=y))){E=!1;break}l+=D.x,r&&(c=l/r,d-=D.Y/2),l<0&&(s=Ae,l=0);break;case Pe:if(D.y<=0&&(d<=g||r&&(p<=v||h>=b))){E=!1;break}c-=D.y,d+=D.y,r&&(l=c*r,p+=D.X/2),c<0&&(s=Fe,c=0);break;case Ae:if(D.x<=0&&(p<=v||r&&(d<=g||m>=y))){E=!1;break}l-=D.x,p+=D.x,r&&(c=l/r,d+=D.Y/2),l<0&&(s=Te,l=0);break;case Fe:if(D.y>=0&&(m>=y||r&&(p<=v||h>=b))){E=!1;break}c+=D.y,r&&(l=c*r,p-=D.X/2),c<0&&(s=Pe,c=0);break;case _e:if(r){if(D.y<=0&&(d<=g||h>=b)){E=!1;break}c-=D.y,d+=D.y,l=c*r}else D.x>=0?hg&&(c-=D.y,d+=D.y):(c-=D.y,d+=D.y);l<0&&c<0?(s=ke,c=0,l=0):l<0?(s=Ne,l=0):c<0&&(s=Se,c=0);break;case Ne:if(r){if(D.y<=0&&(d<=g||p<=v)){E=!1;break}c-=D.y,d+=D.y,l=c*r,p+=D.X}else D.x<=0?p>v?(l-=D.x,p+=D.x):D.y<=0&&d<=g&&(E=!1):(l-=D.x,p+=D.x),D.y<=0?d>g&&(c-=D.y,d+=D.y):(c-=D.y,d+=D.y);l<0&&c<0?(s=Se,c=0,l=0):l<0?(s=_e,l=0):c<0&&(s=ke,c=0);break;case ke:if(r){if(D.x<=0&&(p<=v||m>=y)){E=!1;break}l-=D.x,p+=D.x,c=l/r}else D.x<=0?p>v?(l-=D.x,p+=D.x):D.y>=0&&m>=y&&(E=!1):(l-=D.x,p+=D.x),D.y>=0?m=0&&(h>=b||m>=y)){E=!1;break}l+=D.x,c=l/r}else D.x>=0?h=0&&m>=y&&(E=!1):l+=D.x,D.y>=0?m0?s=D.y>0?Se:_e:D.x<0&&(p-=l,s=D.y>0?ke:Ne),D.y<0&&(d-=c),t.cropped||(f(t.cropBox,"cropper-hidden"),t.cropped=!0,t.limited&&t.limitCropBox(!0,!0))}E&&(i.width=l,i.height=c,i.left=p,i.top=d,t.action=s,t.renderCropBox()),u(C,function(e){e.startX=e.endX,e.startY=e.endY})}},Be={crop:function(){var e=this;return e.ready&&!e.disabled&&(e.cropped||(e.cropped=!0,e.limitCropBox(!0,!0),e.options.modal&&h(e.dragBox,"cropper-modal"),f(e.cropBox,"cropper-hidden")),e.setCropBoxData(e.initialCropBoxData)),e},reset:function(){var e=this;return e.ready&&!e.disabled&&(e.imageData=l({},e.initialImageData),e.canvasData=l({},e.initialCanvasData),e.cropBoxData=l({},e.initialCropBoxData),e.renderCanvas(),e.cropped&&e.renderCropBox()),e},clear:function(){var e=this;return e.cropped&&!e.disabled&&(l(e.cropBoxData,{left:0,top:0,width:0,height:0}),e.cropped=!1,e.renderCropBox(),e.limitCanvas(),e.renderCanvas(),f(e.dragBox,"cropper-modal"),h(e.cropBox,"cropper-hidden")),e},replace:function(e,t){var n=this;return!n.disabled&&e&&(n.isImg&&(n.element.src=e),t?(n.url=e,n.image.src=e,n.ready&&(n.image2.src=e,u(n.previews,function(t){D(t,"img")[0].src=e}))):(n.isImg&&(n.replaced=!0),n.options.data=null,n.load(e))),n},enable:function(){var e=this;return e.ready&&(e.disabled=!1,f(e.cropper,"cropper-disabled")),e},disable:function(){var e=this;return e.ready&&(e.disabled=!0,h(e.cropper,"cropper-disabled")),e},destroy:function(){var e=this,t=e.element,n=e.image;return e.loaded?(e.isImg&&e.replaced&&(t.src=e.originalUrl),e.unbuild(),f(t,"cropper-hidden")):e.isImg?E(t,"load",e.onStart):n&&F(n),y(t,"cropper"),e},move:function(e,t){var a=this,o=a.canvasData;return a.moveTo(n(e)?e:o.left+Number(e),n(t)?t:o.top+Number(t))},moveTo:function(e,a){var o=this,i=o.canvasData,r=!1;return n(a)&&(a=e),e=Number(e),a=Number(a),o.ready&&!o.disabled&&o.options.movable&&(t(e)&&(i.left=e,r=!0),t(a)&&(i.top=a,r=!0),r&&o.renderCanvas(!0)),o},zoom:function(e,t){var n=this,a=n.canvasData;return e=Number(e),e=e<0?1/(1-e):1+e,n.zoomTo(a.width*e/a.naturalWidth,t)},zoomTo:function(e,t){var n=this,a=n.options,o=n.canvasData,i=o.width,r=o.height,s=o.naturalWidth,u=o.naturalHeight;if(e=Number(e),e>=0&&n.ready&&!n.disabled&&a.zoomable){var l=s*e,c=u*e;if(C(n.element,"zoom",{originalEvent:t,oldRatio:i/s,ratio:l/s})===!1)return n;if(t){var p=n.pointers,d=O(n.cropper),h=p&&Object.keys(p).length?K(p):{pageX:t.pageX,pageY:t.pageY};o.left-=(l-i)*((h.pageX-d.left-o.left)/i),o.top-=(c-r)*((h.pageY-d.top-o.top)/r)}else o.left-=(l-i)/2,o.top-=(c-r)/2;o.width=l,o.height=c,n.renderCanvas(!0)}return n},rotate:function(e){var t=this;return t.rotateTo((t.imageData.rotate||0)+Number(e))},rotateTo:function(e){var n=this;return e=Number(e),t(e)&&n.ready&&!n.disabled&&n.options.rotatable&&(n.imageData.rotate=e%360,n.rotated=!0,n.renderCanvas(!0)),n},scale:function(e,a){var o=this,i=o.imageData,r=!1;return n(a)&&(a=e),e=Number(e),a=Number(a),o.ready&&!o.disabled&&o.options.scalable&&(t(e)&&(i.scaleX=e,r=!0),t(a)&&(i.scaleY=a,r=!0),r&&o.renderImage(!0)),o},scaleX:function(e){var n=this,a=n.imageData.scaleY;return n.scale(e,t(a)?a:1)},scaleY:function(e){var n=this,a=n.imageData.scaleX;return n.scale(t(a)?a:1,e)},getData:function(e){var t=this,n=t.options,a=t.imageData,o=t.canvasData,i=t.cropBoxData,r=void 0,s=void 0;return t.ready&&t.cropped?(s={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height},r=a.width/a.naturalWidth,u(s,function(t,n){t/=r,s[n]=e?Math.round(t):t})):s={x:0,y:0,width:0,height:0},n.rotatable&&(s.rotate=a.rotate||0),n.scalable&&(s.scaleX=a.scaleX||1,s.scaleY=a.scaleY||1),s},setData:function(e){var n=this,a=n.options,r=n.imageData,s=n.canvasData,u={},l=void 0,c=void 0,p=void 0;return i(e)&&(e=e.call(n.element)),n.ready&&!n.disabled&&o(e)&&(a.rotatable&&t(e.rotate)&&e.rotate!==r.rotate&&(r.rotate=e.rotate,n.rotated=l=!0),a.scalable&&(t(e.scaleX)&&e.scaleX!==r.scaleX&&(r.scaleX=e.scaleX,c=!0),t(e.scaleY)&&e.scaleY!==r.scaleY&&(r.scaleY=e.scaleY,c=!0)),l?n.renderCanvas():c&&n.renderImage(),p=r.width/r.naturalWidth,t(e.x)&&(u.left=e.x*p+s.left),t(e.y)&&(u.top=e.y*p+s.top),t(e.width)&&(u.width=e.width*p),t(e.height)&&(u.height=e.height*p),n.setCropBoxData(u)),n},getContainerData:function(){var e=this;return e.ready?e.containerData:{}},getImageData:function(){var e=this;return e.loaded?e.imageData:{}},getCanvasData:function(){var e=this,t=e.canvasData,n={};return e.ready&&u(["left","top","width","height","naturalWidth","naturalHeight"],function(e){n[e]=t[e]}),n},setCanvasData:function(e){var n=this,a=n.canvasData,r=a.aspectRatio;return i(e)&&(e=e.call(n.element)),n.ready&&!n.disabled&&o(e)&&(t(e.left)&&(a.left=e.left),t(e.top)&&(a.top=e.top),t(e.width)?(a.width=e.width,a.height=e.width/r):t(e.height)&&(a.height=e.height,a.width=e.height*r),n.renderCanvas(!0)),n},getCropBoxData:function(){var e=this,t=e.cropBoxData,n=void 0;return e.ready&&e.cropped&&(n={left:t.left,top:t.top,width:t.width,height:t.height}),n||{}},setCropBoxData:function(e){var n=this,a=n.cropBoxData,r=n.options.aspectRatio,s=void 0,u=void 0;return i(e)&&(e=e.call(n.element)),n.ready&&n.cropped&&!n.disabled&&o(e)&&(t(e.left)&&(a.left=e.left),t(e.top)&&(a.top=e.top),t(e.width)&&e.width!==a.width&&(s=!0,a.width=e.width),t(e.height)&&e.height!==a.height&&(u=!0,a.height=e.height),r&&(s?a.height=a.width/r:u&&(a.width=a.height*r)),n.renderCropBox()),n},getCroppedCanvas:function(e){var t=this;if(!t.ready||!window.HTMLCanvasElement)return null;if(o(e)||(e={}),!t.cropped)return B(t.image,t.imageData,e);var n=t.getData(),a=n.width,i=n.height,r=a/i,s=void 0,u=void 0,l=void 0;o(e)&&(s=e.width,u=e.height,s?(u=s/r,l=s/a):u&&(s=u*r,l=u/i));var c=Math.floor(s||a),p=Math.floor(u||i),d=T("canvas"),h=d.getContext("2d");d.width=c,d.height=p,e.fillColor&&(h.fillStyle=e.fillColor,h.fillRect(0,0,c,p));var f=function(){var o=B(t.image,t.imageData,e),r=o.width,s=o.height,u=t.canvasData,c=[o],p=n.x+u.naturalWidth*(Math.abs(n.scaleX||1)-1)/2,d=n.y+u.naturalHeight*(Math.abs(n.scaleY||1)-1)/2,h=void 0,f=void 0,m=void 0,v=void 0,g=void 0,b=void 0;return p<=-a||p>r?p=h=m=g=0:p<=0?(m=-p,p=0,h=g=Math.min(r,a+p)):p<=r&&(m=0,h=g=Math.min(a,r-p)),h<=0||d<=-i||d>s?d=f=v=b=0:d<=0?(v=-d,d=0,f=b=Math.min(s,i+d)):d<=s&&(v=0,f=b=Math.min(i,s-d)),c.push(Math.floor(p),Math.floor(d),Math.floor(h),Math.floor(f)),l&&(m*=l,v*=l,g*=l,b*=l),g>0&&b>0&&c.push(Math.floor(m),Math.floor(v),Math.floor(g),Math.floor(b)),c}();return h.imageSmoothingEnabled=!!e.imageSmoothingEnabled,e.imageSmoothingQuality&&(h.imageSmoothingQuality=e.imageSmoothingQuality),h.drawImage.apply(h,G(f)),d},setAspectRatio:function(e){var t=this,a=t.options;return t.disabled||n(e)||(a.aspectRatio=Math.max(0,e)||NaN,t.ready&&(t.initCropBox(),t.cropped&&t.renderCropBox())),t},setDragMode:function(e){var t=this,n=t.options,a=t.dragBox,o=t.face,i=void 0,r=void 0;return t.loaded&&!t.disabled&&(i="crop"===e,r=n.movable&&"move"===e,e=i||r?e:"none",b(a,"action",e),m(a,"cropper-crop",i),m(a,"cropper-move",r),n.cropBoxMovable||(b(o,"action",e),m(o,"cropper-crop",i),m(o,"cropper-move",r))),t}},je="cropper",Ie=je+"-hidden",Ve="error",Le="load",We="ready",ze="crop",Ke=/^data:/,He=/^data:image\/jpeg;base64,/,qe=void 0,Ye=function(){function e(t,n){U(this,e);var a=this;a.element=t,a.options=l({},H,o(n)&&n),a.loaded=!1,a.ready=!1,a.complete=!1,a.rotated=!1,a.cropped=!1,a.disabled=!1,a.replaced=!1,a.limited=!1,a.wheeling=!1,a.isImg=!1,a.originalUrl="",a.canvasData=null,a.cropBoxData=null,a.previews=null,a.pointers={},a.init()}return X(e,[{key:"init",value:function(){var e=this,t=e.element,n=t.tagName.toLowerCase(),a=void 0;if(!g(t,je)){if(b(t,je,e),"img"===n){if(e.isImg=!0,e.originalUrl=a=t.getAttribute("src"),!a)return;a=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(a=t.toDataURL());e.load(a)}}},{key:"load",value:function(e){var t=this,n=t.options,a=t.element;if(e){if(t.url=e,t.imageData={},!n.checkOrientation||!window.ArrayBuffer)return void t.clone();if(Ke.test(e))return void(He.test(e)?t.read(V(e)):t.clone());var o=new XMLHttpRequest;o.onerror=o.onabort=function(){t.clone()},o.onload=function(){t.read(o.response)},n.checkCrossOrigin&&S(e)&&a.crossOrigin&&(e=k(e)),o.open("get",e),o.responseType="arraybuffer",o.withCredentials="use-credentials"===a.crossOrigin,o.send()}}},{key:"read",value:function(e){var t=this,n=t.options,a=I(e),o=t.imageData,i=0,r=1,s=1;if(a>1)switch(t.url=L(e),a){case 2:r=-1;break;case 3:i=-180;break;case 4:s=-1;break;case 5:i=90,s=-1;break;case 6:i=90;break;case 7:i=90,r=-1;break;case 8:i=-90}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=r,o.scaleY=s),t.clone()}},{key:"clone",value:function(){var e=this,t=e.element,n=e.url,a=void 0,o=void 0,i=void 0,r=void 0;e.options.checkCrossOrigin&&S(n)&&(a=t.crossOrigin,a?o=n:(a="anonymous",o=k(n))),e.crossOrigin=a,e.crossOriginUrl=o;var s=T("img");a&&(s.crossOrigin=a),s.src=o||n,e.image=s,e.onStart=i=c(e.start,e),e.onStop=r=c(e.stop,e),e.isImg?t.complete?e.start():w(t,Le,i):(w(s,Le,i),w(s,Ve,r),h(s,"cropper-hide"),t.parentNode.insertBefore(s,t.nextSibling))}},{key:"start",value:function(e){var t=this,n=t.isImg?t.element:t.image;e&&(E(n,Le,t.onStart),E(n,Ve,t.onStop)),_(n,function(e,n){l(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.loaded=!0,t.build()})}},{key:"stop",value:function(){var e=this,t=e.image;E(t,Le,e.onStart),E(t,Ve,e.onStop),F(t),e.image=null}},{key:"build",value:function(){var e=this,t=e.options,n=e.element,a=e.image,o=void 0,r=void 0,s=void 0,u=void 0,l=void 0,c=void 0;if(e.loaded){e.ready&&e.unbuild();var p=T("div");p.innerHTML=q,e.container=o=n.parentNode,e.cropper=r=M(p,"cropper-container")[0],e.canvas=s=M(r,"cropper-canvas")[0],e.dragBox=u=M(r,"cropper-drag-box")[0],e.cropBox=l=M(r,"cropper-crop-box")[0],e.viewBox=M(r,"cropper-view-box")[0],e.face=c=M(l,"cropper-face")[0],A(s,a),h(n,Ie),o.insertBefore(r,n.nextSibling),e.isImg||f(a,"cropper-hide"),e.initPreview(),e.bind(),t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,e.cropped=t.autoCrop,t.autoCrop?t.modal&&h(u,"cropper-modal"):h(l,Ie),t.guides||h(M(l,"cropper-dashed"),Ie),t.center||h(M(l,"cropper-center"),Ie),t.background&&h(r,"cropper-bg"),t.highlight||h(c,"cropper-invisible"),t.cropBoxMovable&&(h(c,"cropper-move"),b(c,"action","all")),t.cropBoxResizable||(h(M(l,"cropper-line"),Ie),h(M(l,"cropper-point"),Ie)),e.setDragMode(t.dragMode),e.render(),e.ready=!0,e.setData(t.data),e.completing=setTimeout(function(){i(t.ready)&&w(n,We,t.ready,!0),C(n,We),C(n,ze,e.getData()),e.complete=!0},0)}}},{key:"unbuild",
value:function(){var e=this;e.ready&&(e.complete||clearTimeout(e.completing),e.ready=!1,e.complete=!1,e.initialImageData=null,e.initialCanvasData=null,e.initialCropBoxData=null,e.containerData=null,e.canvasData=null,e.cropBoxData=null,e.unbind(),e.resetPreview(),e.previews=null,e.viewBox=null,e.cropBox=null,e.dragBox=null,e.canvas=null,e.container=null,F(e.cropper),e.cropper=null)}}],[{key:"noConflict",value:function(){return window.Cropper=qe,e}},{key:"setDefaults",value:function(e){l(H,o(e)&&e)}}]),e}();return l(Ye.prototype,le),l(Ye.prototype,pe),l(Ye.prototype,Oe),l(Ye.prototype,Me),l(Ye.prototype,Re),l(Ye.prototype,Be),"undefined"!=typeof window&&(qe=window.Cropper,window.Cropper=Ye),Ye})},1631:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1?this.moveTo(e.moveTo[0],e.moveTo[1]):this.moveTo(e.moveTo[0])),e.zoomTo!==this.props.zoomTo&&this.zoomTo(e.zoomTo),e.rotateTo!==this.props.rotateTo&&this.rotateTo(e.rotateTo),e.scaleX!==this.props.scaleX&&this.scaleX(e.scaleX),e.scaleY!==this.props.scaleY&&this.scaleY(e.scaleY),e.enable!==this.props.enable&&(e.enable?this.enable():this.disable()),Object.keys(e).forEach(function(n){if(e[n]!==t.props[n]&&g.indexOf(n)!==-1)throw new Error("prop: "+n+" can't be change after componentDidMount")})}},{key:"componentWillUnmount",value:function(){this.img&&(this.cropper.destroy(),delete this.img,delete this.cropper)}},{key:"setDragMode",value:function(e){return this.cropper.setDragMode(e)}},{key:"setAspectRatio",value:function(e){return this.cropper.setAspectRatio(e)}},{key:"getCroppedCanvas",value:function(e){return this.cropper.getCroppedCanvas(e)}},{key:"setCropBoxData",value:function(e){return this.cropper.setCropBoxData(e)}},{key:"getCropBoxData",value:function(){return this.cropper.getCropBoxData()}},{key:"setCanvasData",value:function(e){return this.cropper.setCanvasData(e)}},{key:"getCanvasData",value:function(){return this.cropper.getCanvasData()}},{key:"getImageData",value:function(){return this.cropper.getImageData()}},{key:"getContainerData",value:function(){return this.cropper.getContainerData()}},{key:"setData",value:function(e){return this.cropper.setData(e)}},{key:"getData",value:function(e){return this.cropper.getData(e)}},{key:"crop",value:function(){return this.cropper.crop()}},{key:"move",value:function(e,t){return this.cropper.move(e,t)}},{key:"moveTo",value:function(e,t){return this.cropper.moveTo(e,t)}},{key:"zoom",value:function(e){return this.cropper.zoom(e)}},{key:"zoomTo",value:function(e){return this.cropper.zoomTo(e)}},{key:"rotate",value:function(e){return this.cropper.rotate(e)}},{key:"rotateTo",value:function(e){return this.cropper.rotateTo(e)}},{key:"enable",value:function(){return this.cropper.enable()}},{key:"disable",value:function(){return this.cropper.disable()}},{key:"reset",value:function(){return this.cropper.reset()}},{key:"clear",value:function(){return this.cropper.clear()}},{key:"replace",value:function(e,t){return this.cropper.replace(e,t)}},{key:"scale",value:function(e,t){return this.cropper.scale(e,t)}},{key:"scaleX",value:function(e){return this.cropper.scaleX(e)}},{key:"scaleY",value:function(e){return this.cropper.scaleY(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,a=t.alt,o=t.crossOrigin;return p.default.createElement("div",{src:null,crossOrigin:null,alt:null,style:this.props.style,className:this.props.className},p.default.createElement("img",{crossOrigin:o,ref:function(t){e.img=t},src:n,alt:void 0===a?"picture":a,style:{opacity:0}}))}}]),t}(c.Component);b.propTypes={style:h.default.object,className:h.default.string,crossOrigin:h.default.string,src:h.default.string,alt:h.default.string,aspectRatio:h.default.number,dragMode:h.default.oneOf(["crop","move","none"]),data:h.default.shape({x:h.default.number,y:h.default.number,width:h.default.number,height:h.default.number,rotate:h.default.number,scaleX:h.default.number,scaleY:h.default.number}),scaleX:h.default.number,scaleY:h.default.number,enable:h.default.bool,cropBoxData:h.default.shape({left:h.default.number,top:h.default.number,width:h.default.number,height:h.default.number}),canvasData:h.default.shape({left:h.default.number,top:h.default.number,width:h.default.number,height:h.default.number}),zoomTo:h.default.number,moveTo:h.default.arrayOf(h.default.number),rotateTo:h.default.number,viewMode:h.default.oneOf([0,1,2,3]),preview:h.default.string,responsive:h.default.bool,restore:h.default.bool,checkCrossOrigin:h.default.bool,checkOrientation:h.default.bool,modal:h.default.bool,guides:h.default.bool,center:h.default.bool,highlight:h.default.bool,background:h.default.bool,autoCrop:h.default.bool,autoCropArea:h.default.number,movable:h.default.bool,rotatable:h.default.bool,scalable:h.default.bool,zoomable:h.default.bool,zoomOnTouch:h.default.bool,zoomOnWheel:h.default.bool,wheelZoomRation:h.default.number,cropBoxMovable:h.default.bool,cropBoxResizable:h.default.bool,toggleDragModeOnDblclick:h.default.bool,minContainerWidth:h.default.number,minContainerHeight:h.default.number,minCanvasWidth:h.default.number,minCanvasHeight:h.default.number,minCropBoxWidth:h.default.number,minCropBoxHeight:h.default.number,ready:h.default.func,cropstart:h.default.func,cropmove:h.default.func,cropend:h.default.func,crop:h.default.func,zoom:h.default.func},b.defaultProps={src:null,dragMode:"crop",data:null,scaleX:1,scaleY:1,enable:!0,zoomTo:1,rotateTo:0},t.default=b},1890:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&!0,this.setState({notifications:this.state.notifications}),this.notifyChange({mail_notify:e.length>0})}},{key:"mobileNotifyChange",value:function(e){this.state.notifications.mobile_notify=e.length>0&&!0,this.setState({notifications:this.state.notifications}),this.notifyChange({mobile_notify:e.length>0})}},{key:"dailyNotifyChange",value:function(e){this.state.notifications.daily_notify=e.length>0&&!0,this.setState({notifications:this.state.notifications}),this.notifyChange({daily_notify:e.length>0})}},{key:"weeklyNotifyChange",value:function(e){this.state.notifications.weekly_notify=e.length>0&&!0,this.setState({notifications:this.state.notifications}),this.notifyChange({weekly_notify:e.length>0})}},{key:"languageChange",value:function(e){var t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return m.default.extend(this.state.favorites,{language:e}),this.setState({favorites:this.state.favorites}),n.next=4,regeneratorRuntime.awrap(this.favoriteChange({language:e}));case 4:t=n.sent;case 6:case"end":return n.stop()}},null,this)}},{key:"favoriteChange",value:function(e){var t,n,a;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return t=this.props.updFavorite,o.next=3,regeneratorRuntime.awrap(t(e));case 3:return n=o.sent,0===n?alert("aa"):(a=this.props.favorites,alert("bb")),o.abrupt("return",n);case 6:case"end":return o.stop()}},null,this)}},{key:"componentWillMount",value:function(){var e,t,n,a,o,i,r,s;return regeneratorRuntime.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=this.props.getUser,u.next=3,regeneratorRuntime.awrap(e());case 3:t=this.props,n=t.accounts,a=void 0===n?{}:n,o=t.notifications,i=void 0===o?{}:o,r=t.favorites,s=void 0===r?{}:r,this.setState({accounts:a,notifications:i,favorites:s});case 11:case"end":return u.stop()}},null,this)}},{key:"render",value:function(){var e=this,t={marginLeft:"20px",marginTop:"10px",marginBottom:"10px"},n={color:"#54d09f",fontSize:"12px"},a={color:"#da4f4a",fontSize:"12px"},o=this.props,i=o.i18n,r=o.accounts,s=o.setAvatar,u=o.updAvatar,f=o.avatarLoading,m=(o.accountLoading,o.notifyLoading),E=(o.favoriteLoading,o.updAccount),w=o.resetPwd,C=this.state,x=C.notifications,O=(C.favorites,[]);O.push({id:"avatar",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"头像"),l.default.createElement("span",{className:"table-td-issue-desc"},"选择一张个人正面照片作为头像,让其他成员更容易认识你。")),contents:l.default.createElement("div",{style:t},l.default.createElement("img",{src:r.avatar?"/api/getavatar?fid="+r.avatar:v,className:"big-no-avatar"}),l.default.createElement(p.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({avatarEditModalShow:!0})}},"设置头像"))}),O.push({id:"basic",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"个人资料")),contents:l.default.createElement("div",{style:t},l.default.createElement("ul",{className:"list-unstyled clearfix",style:{lineHeight:2}},l.default.createElement("li",null,"姓名:",r.first_name||"-"),l.default.createElement("li",null,"部门:",r.department||"-"),l.default.createElement("li",null,"职位:",r.position||"-")),l.default.createElement(p.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({editModalShow:!0})}},"编辑资料"))}),O.push({id:"email",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"邮箱地址"),l.default.createElement("span",{className:"table-td-issue-desc"},"该账号绑定的邮箱地址不能改变。")),contents:l.default.createElement("div",{style:t},"当前邮箱地址为:",r.email||"-")}),O.push({id:"password",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"登录密码"),l.default.createElement("span",{className:"table-td-issue-desc"},"修改密码时需要输入当前密码;建议您定期更换密码,确保帐号安全。")),contents:l.default.createElement("div",{style:t},l.default.createElement(p.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({resetPwdModalShow:!0})}},"修改密码"))}),O.push({id:"phone",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"绑定手机号"),l.default.createElement("span",{className:"table-td-issue-desc"},"修改手机时 ActionView 会发送短信到新的手机号,请按照短信中的验证码修改你的手机号码。")),contents:l.default.createElement("div",{style:t},l.default.createElement("div",null,"当前手机号为:",r.phone||"未设置"),l.default.createElement("div",{style:{marginTop:"10px"}},l.default.createElement(p.Button,{style:{marginLeft:"15px"},onClick:function(){h.notify.show("暂不支持此功能。","warning",2e3)}},r.phone&&"修改","绑定手机号")))});var D=[];D.push({id:"language",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"语言设置"),l.default.createElement("span",{className:"table-td-issue-desc"},"请选择您喜欢的语言(暂不支持此功能)")),contents:l.default.createElement("div",{style:t},l.default.createElement("div",{style:{margin:"3px"}},"中文"))});var M=[];M.push({id:"mail_notify",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"邮件通知"),l.default.createElement("span",{className:"table-td-issue-desc"},"当问题有重要操作时,会根据相应的通知方案配置,发送提醒邮件给你。")),contents:l.default.createElement("div",{style:t},l.default.createElement(d.CheckboxGroup,{name:"mail_notify",value:x.mail_notify?["mail_notify"]:[],onChange:this.mailNotifyChange.bind(this)},l.default.createElement(d.Checkbox,{disabled:m,value:"mail_notify"}),l.default.createElement("span",null," 开启邮件通知"),l.default.createElement("br",null),x.mail_notify?l.default.createElement("span",{style:n},"已开启"):l.default.createElement("span",{style:a},"已关闭")))}),M.push({id:"mobile_notify",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"移动端通知"),l.default.createElement("span",{className:"table-td-issue-desc"},"当问题有重要操作时,会根据相应的通知方案配置,自动将消息推送到 ActionView 移动客户端")),contents:l.default.createElement("div",{style:t},l.default.createElement(d.CheckboxGroup,{name:"mobile_notify",value:x.mobile_notify?["mobile_notify"]:[],onChange:this.mobileNotifyChange.bind(this)},l.default.createElement(d.Checkbox,{disabled:m,value:"mobile_notify"}),l.default.createElement("span",null," 开启移动端通知"),l.default.createElement("br",null),x.mobile_notify?l.default.createElement("span",{style:n},"已开启"):l.default.createElement("span",{style:a},"已关闭")))}),M.push({id:"daily_notify",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"每日提醒"),l.default.createElement("span",{className:"table-td-issue-desc"},"每天向你发送一封包含当日工作内容的邮件。")),contents:l.default.createElement("div",{style:t},l.default.createElement(d.CheckboxGroup,{name:"daily_notify",value:x.daily_notify?["daily_notify"]:[],onChange:this.dailyNotifyChange.bind(this)},l.default.createElement(d.Checkbox,{disabled:m,value:"daily_notify"}),l.default.createElement("span",null," 接收每日邮件提醒"),l.default.createElement("br",null),x.daily_notify?l.default.createElement("span",{style:n},"已开启"):l.default.createElement("span",{style:a},"已关闭")))}),M.push({id:"weekly_notify",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"每周提醒"),l.default.createElement("span",{className:"table-td-issue-desc"},"每周向你发送一封本周工作内容的邮件。")),contents:l.default.createElement("div",{style:t},l.default.createElement(d.CheckboxGroup,{name:"weekly_notify",value:x.weekly_notify?["weekly_notify"]:[],onChange:this.weeklyNotifyChange.bind(this)},l.default.createElement(d.Checkbox,{disabled:m,value:"weekly_notify"}),l.default.createElement("span",null," 接收每周邮件提醒"),l.default.createElement("br",null),x.weekly_notify?l.default.createElement("span",{style:n},"已开启"):l.default.createElement("span",{style:a},"已关闭")))});var T=[],A=[];return"account"==this.state.tabKey?A=O:"favorite"==this.state.tabKey?A=D:"notification"==this.state.tabKey?A=M:"record"==this.state.tabKey&&(A=T),l.default.createElement("div",null,l.default.createElement(p.Nav,{
bsStyle:"pills",style:{marginTop:"10px","float":"left",lineHeight:"1.0"},activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this)},l.default.createElement(p.NavItem,{eventKey:"account",href:"#"},"账号资料"),l.default.createElement(p.NavItem,{eventKey:"favorite",href:"#"},"个人偏好"),l.default.createElement(p.NavItem,{eventKey:"notification",href:"#"},"消息提醒")),l.default.createElement(c.BootstrapTable,{data:A,bordered:!1,hover:!0,trClassName:"tr-top"},l.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(c.TableHeaderColumn,{width:"260",dataField:"title"}),l.default.createElement(c.TableHeaderColumn,{width:"200",dataField:"contents"}),l.default.createElement(c.TableHeaderColumn,{dataField:"blank"})),this.state.avatarEditModalShow&&l.default.createElement(g,{show:!0,close:this.avatarEditModalClose,loading:f,setAvatar:s,updAvatar:u,data:r,i18n:i}),this.state.editModalShow&&l.default.createElement(b,{show:!0,close:this.editModalClose,update:E,data:r,i18n:i}),this.state.resetPwdModalShow&&l.default.createElement(y,{show:!0,close:this.resetPwdModalClose,resetPwd:w,i18n:i}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,getUser:u.PropTypes.func.isRequired,setAvatar:u.PropTypes.func.isRequired,updAvatar:u.PropTypes.func.isRequired,avatarLoading:u.PropTypes.bool.isRequired,resetPwd:u.PropTypes.func.isRequired,updAccount:u.PropTypes.func.isRequired,updNotify:u.PropTypes.func.isRequired,updFavorite:u.PropTypes.func.isRequired,accountLoading:u.PropTypes.bool.isRequired,accounts:u.PropTypes.object.isRequired,notifyLoading:u.PropTypes.bool.isRequired,notifications:u.PropTypes.object.isRequired,favoriteLoading:u.PropTypes.bool.isRequired,favorites:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},1894:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n.5});return o.default.createElement("div",{style:n.picker})};t.default=u},1524:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var a=n(1),o=r(a),i=n(40),l=r(i),u=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,r=(0,l.default)({"default":{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},"new":{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return o.default.createElement("div",null,o.default.createElement("div",{style:r.label},"new"),o.default.createElement("div",{style:r.swatches},o.default.createElement("div",{style:r.new}),o.default.createElement("div",{style:r.current})),o.default.createElement("div",{style:r.label},"current"))};t.default=u},1525:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var a=n(1),o=r(a),i=n(9),l=r(i),u=n(40),s=r(u),c=n(161),d=n(1526),p=r(d),f=n(1527),h=r(f),b=t.Sketch=function(e){var t=e.width,n=e.rgb,r=e.hex,a=e.hsv,i=e.hsl,l=e.onChange,u=e.onSwatchHover,d=e.disableAlpha,f=e.presetColors,b=e.renderers,v=e.className,g=void 0===v?"":v,m=(0,s.default)({"default":{picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},{disableAlpha:d});return o.default.createElement("div",{style:m.picker,className:"sketch-picker "+g},o.default.createElement("div",{style:m.saturation},o.default.createElement(c.Saturation,{style:m.Saturation,hsl:i,hsv:a,onChange:l})),o.default.createElement("div",{style:m.controls,className:"flexbox-fix"},o.default.createElement("div",{style:m.sliders},o.default.createElement("div",{style:m.hue},o.default.createElement(c.Hue,{style:m.Hue,hsl:i,onChange:l})),o.default.createElement("div",{style:m.alpha},o.default.createElement(c.Alpha,{style:m.Alpha,rgb:n,hsl:i,renderers:b,onChange:l}))),o.default.createElement("div",{style:m.color},o.default.createElement(c.Checkboard,null),o.default.createElement("div",{style:m.activeColor}))),o.default.createElement(p.default,{rgb:n,hsl:i,hex:r,onChange:l,disableAlpha:d}),o.default.createElement(h.default,{colors:f,onClick:l,onSwatchHover:u}))};b.propTypes={disableAlpha:l.default.bool,width:l.default.oneOfType([l.default.string,l.default.number])},b.defaultProps={disableAlpha:!1,width:200,presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,c.ColorWrap)(b)},1526:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var a=n(1),o=r(a),i=n(40),l=r(i),u=n(242),s=r(u),c=n(161),d=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,a=e.hex,i=e.disableAlpha,u=(0,l.default)({"default":{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},"double":{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:i}),d=function(e,a){e.hex?s.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},a):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},a):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},a))};return o.default.createElement("div",{style:u.fields,className:"flexbox-fix"},o.default.createElement("div",{style:u.double},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"hex",value:a.replace("#",""),onChange:d})),o.default.createElement("div",{style:u.single},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:d,dragLabel:"true",dragMax:"255"})),o.default.createElement("div",{style:u.single},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:d,dragLabel:"true",dragMax:"255"})),o.default.createElement("div",{style:u.single},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:d,dragLabel:"true",dragMax:"255"})),o.default.createElement("div",{style:u.alpha},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:d,dragLabel:"true",dragMax:"100"})))};t.default=d},1527:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var a=Object.assign||function(e){for(var t=1;to?1:Math.round(100*s/o)/100,n.hsl.a!==c)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:c,source:"rgb"}}else{var d=void 0;if(d=u<0?0:u>a?1:Math.round(100*u/a)/100,n.a!==d)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:d,source:"rgb"}}return null}},1537:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},r=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var a=r?new r:document.createElement("canvas");a.width=2*n,a.height=2*n;var o=a.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,a.width,a.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),a.toDataURL()):null};t.get=function(e,t,a,o){var i=e+"-"+t+"-"+a+(o?"-server":""),l=r(e,t,a,o);return n[i]?n[i]:(n[i]=l,l)}},1538:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){e.preventDefault();var a=r.clientWidth,o=r.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=i-(r.getBoundingClientRect().left+window.pageXOffset),s=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n.direction){var c=void 0;if(s<0)c=359;else if(s>o)c=0;else{var d=-(100*s/o)+100;c=360*d/100}if(n.hsl.h!==c)return{h:c,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}else{var p=void 0;if(u<0)p=0;else if(u>a)p=359;else{var f=100*u/a;p=360*f/100}if(n.hsl.h!==p)return{h:p,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}return null}},1539:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var l=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,u,c;a(this,r);for(var d=arguments.length,p=Array(d),f=0;fo?s=o:c<0?c=0:c>i&&(c=i);var d=100*s/o,p=-(100*c/i)+100;return{h:n.hsl.h,s:d,v:p,a:n.hsl.a,source:"rgb"}}},1541:[2892,310,224],1542:[2824,1586,1587,1588,1589,1590],1543:[2893,310,224],1544:[2828,310,224],1545:[2829,577,1610,1611],1546:[2895,224],1547:[2896,310,224],1548:function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n0?s.default.createElement("span",null,"共有应用项目 ",s.default.createElement("strong",null,t.length)," 个"):s.default.createElement("span",null,"暂无项目应用")),!r&&t.length>0&&s.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"项目名称"),s.default.createElement("th",null,"问题个数"))),s.default.createElement("tbody",null,f.default.map(t,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",null,"active"===e.status?s.default.createElement("span",null,s.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):s.default.createElement("span",null,e.name,"(已关闭)")),s.default.createElement("td",null,"active"===e.status?s.default.createElement("span",null,s.default.createElement(d.Link,{to:"/project/"+e.key+"/issue?priority="+(n.key||n.id)},e.issue_count||0)):s.default.createElement("span",null,e.issue_count||0)))})))),s.default.createElement(c.Modal.Footer,null,s.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:u.PropTypes.func.isRequired,view:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.object.isRequired,projects:u.PropTypes.array.isRequired},enumerable:!0}]),t}(u.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},1982:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"PRIORITY_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/priority"})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/priority",method:"post",data:t})}})}function a(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/priority/"+t.id,method:"put",data:t})}})}function o(e){return{type:"PRIORITY_SELECT",id:e}}function i(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/priority/"+t,method:"delete"})}})}function l(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_SET_SORT",promise:function(n){return n.request({url:"/project/"+e+"/priority/batch",method:"post",data:t})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_SET_DEFAULT",promise:function(n){return n.request({url:"/project/"+e+"/priority/batch",method:"post",data:t})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/priority/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=a,t.select=o,t.del=i,t.setSort=l,t.setDefault=u,t.viewUsed=s;var c=n(42)}).call(this)}finally{}},2373:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var a=n(668),o=r(a),i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,u,c;a(this,r);for(var d=arguments.length,p=Array(d),f=0;f1&&void 0!==arguments[1]?arguments[1]:"span";
return function(n){function r(){var n,i,u,c;a(this,r);for(var d=arguments.length,p=Array(d),f=0;f0&&void 0!==arguments[0]?arguments[0]:[],t=[];return(0,d.default)(e,function(e){Array.isArray(e)?f(e).map(function(e){return t.push(e)}):(0,s.default)(e)?(0,l.default)(e,function(e,n){e===!0&&t.push(n),t.push(n+"-"+e)}):(0,o.default)(e)&&t.push(e)}),t};t.default=p},2377:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2===0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n};t.default=n},2378:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var a=n(668),o=r(a),i=n(2469),l=r(i),u=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,l.default)(e.default)||{};return t.map(function(t){var r=e[t];return r&&(0,o.default)(r,function(e,t){n[t]||(n[t]={}),n[t]=u({},n[t],r[t])}),t}),n};t.default=s},2379:[2892,296,232],2380:[2824,2436,2437,2438,2439,2440],2381:[2893,296,232],2382:[2828,296,232],2383:[2829,660,2461,2462],2384:[2896,296,232],2385:function(e,t){function n(e,t){return e.set(t[0],t[1]),e}e.exports=n},2386:function(e,t){function n(e,t){return e.add(t),e}e.exports=n},2387:1548,2388:916,2389:2207,2390:function(e,t,n){function r(e,t){return e&&a(t,o(t),e)}var a=n(496),o=n(415);e.exports=r},2391:function(e,t,n){function r(e,t){return e&&a(t,o(t),e)}var a=n(496),o=n(994);e.exports=r},2392:function(e,t,n){function r(e,t,n,k,P,F){var A,R=t&C,T=t&_,B=t&O;if(n&&(A=P?n(e,k,P,F):n(e)),void 0!==A)return A;if(!E(e))return e;var N=y(e);if(N){if(A=v(e),!R)return c(e,A)}else{var I=b(e),H=I==M||I==j;if(x(e))return s(e,R);if(I==D||I==S||H&&!P){if(A=T||H?{}:m(e),!R)return T?p(e,u(A,e)):d(e,l(A,e))}else{if(!Z[I])return P?e:{};A=g(e,I,r,R)}}F||(F=new a);var L=F.get(e);if(L)return L;F.set(e,A);var V=B?T?h:f:T?keysIn:w,z=N?void 0:V(e);return o(z||e,function(a,o){z&&(o=a,a=e[o]),i(A,o,r(a,t,n,o,e,F))}),A}var a=n(661),o=n(2387),i=n(971),l=n(2390),u=n(2391),s=n(2415),c=n(2422),d=n(2423),p=n(2424),f=n(980),h=n(2431),b=n(982),v=n(2441),g=n(2442),m=n(2443),y=n(213),x=n(669),E=n(333),w=n(415),C=1,_=2,O=4,S="[object Arguments]",k="[object Array]",P="[object Boolean]",F="[object Date]",A="[object Error]",M="[object Function]",j="[object GeneratorFunction]",R="[object Map]",T="[object Number]",D="[object Object]",B="[object RegExp]",N="[object Set]",I="[object String]",H="[object Symbol]",L="[object WeakMap]",V="[object ArrayBuffer]",z="[object DataView]",q="[object Float32Array]",W="[object Float64Array]",U="[object Int8Array]",K="[object Int16Array]",G="[object Int32Array]",Y="[object Uint8Array]",X="[object Uint8ClampedArray]",$="[object Uint16Array]",J="[object Uint32Array]",Z={};Z[S]=Z[k]=Z[V]=Z[z]=Z[P]=Z[F]=Z[q]=Z[W]=Z[U]=Z[K]=Z[G]=Z[R]=Z[T]=Z[D]=Z[B]=Z[N]=Z[I]=Z[H]=Z[Y]=Z[X]=Z[$]=Z[J]=!0,Z[A]=Z[M]=Z[L]=!1,e.exports=r},2393:function(e,t,n){var r=n(333),a=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},2394:[2897,973,2426],2395:[2898,2427],2396:2214,2397:[2838,295,297],2398:[2903,661,978,2429,2430,982,213,669,993],2399:[2904,661,976],2400:[2839,992,2445,333,989],2401:[2880,295,670,297],2402:[2905,2406,2407,990,213,2476],2403:[2906,666,2457],2404:[2881,333,666,2458],2405:[2940,2394,500],2406:[2907,2399,2432,986],2407:[2908,976,2470,2471,665,984,986,499],2408:2227,2409:[2909,974],2410:1657,2411:[2910,414,968,213,671],2412:760,2413:558,2414:[2876,990],2415:function(e,t,n){(function(e){function r(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}var a=n(232),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===o,u=l?a.Buffer:void 0,s=u?u.allocUnsafe:void 0;e.exports=r}).call(t,n(162)(e))},2416:function(e,t,n){function r(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var a=n(662);e.exports=r},2417:function(e,t,n){function r(e,t,n){var r=t?n(i(e),l):i(e);return o(r,a,new e.constructor)}var a=n(2385),o=n(970),i=n(985),l=1;e.exports=r},2418:function(e,t){function n(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=n},2419:function(e,t,n){function r(e,t,n){var r=t?n(i(e),l):i(e);return o(r,a,new e.constructor)}var a=n(2386),o=n(970),i=n(988),l=1;e.exports=r},2420:function(e,t,n){function r(e){return i?Object(i.call(e)):{}}var a=n(414),o=a?a.prototype:void 0,i=o?o.valueOf:void 0;e.exports=r},2421:function(e,t,n){function r(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var a=n(662);e.exports=r},2422:function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n.5?u/(2-o-i):u/(o+i),o){case e:r=(t-n)/u+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var a,o,i;if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)a=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;a=r(u,l,e+1/3),o=r(u,l,e),i=r(u,l,e-1/3)}return{r:255*a,g:255*o,b:255*i}}function c(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,a,o=G(e,t,n),i=K(e,t,n),l=o,u=o-i;if(a=0===o?0:u/o,o==i)r=0;else{switch(o){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(o(r));return i}function k(e,t){t=t||6;for(var n=o(e).toHsv(),r=n.h,a=n.s,i=n.v,l=[],u=1/t;t--;)l.push(o({h:r,s:a,v:i})),i=(i+u)%1;return l}function P(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function F(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){R(e)&&(e="100%");var n=T(e);return e=K(t,G(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return K(1,G(0,e))}function j(e){return parseInt(e,16)}function R(e){return"string"==typeof e&&e.indexOf(".")!=-1&&1===parseFloat(e)}function T(e){return"string"==typeof e&&e.indexOf("%")!=-1}function D(e){return 1==e.length?"0"+e:""+e}function B(e){return e<=1&&(e=100*e+"%"),e}function N(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return j(e)/255}function H(e){return!!J.CSS_UNIT.exec(e)}function L(e){e=e.replace(z,"").replace(q,"").toLowerCase();var t=!1;if(X[e])e=X[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=J.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=J.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=J.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=J.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=J.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=J.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=J.hex8.exec(e))?{r:j(n[1]),g:j(n[2]),b:j(n[3]),a:I(n[4]),format:t?"name":"hex8"}:(n=J.hex6.exec(e))?{r:j(n[1]),g:j(n[2]),b:j(n[3]),format:t?"name":"hex"}:(n=J.hex4.exec(e))?{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),a:I(n[4]+""+n[4]),format:t?"name":"hex8"}:!!(n=J.hex3.exec(e))&&{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),format:t?"name":"hex"}}function V(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}var z=/^\s+/,q=/\s+$/,W=0,U=a.round,K=a.min,G=a.max,Y=a.random;o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,i,l=this.toRgb();return e=l.r/255,t=l.g/255,n=l.b/255,r=e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4),i=n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*i},setAlpha:function(e){return this._a=F(e),this._roundA=U(100*this._a)/100,this},toHsv:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=c(this._r,this._g,this._b),t=U(360*e.h),n=U(100*e.s),r=U(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=U(360*e.h),n=U(100*e.s),r=U(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return f(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:U(this._r),g:U(this._g),b:U(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+U(this._r)+", "+U(this._g)+", "+U(this._b)+")":"rgba("+U(this._r)+", "+U(this._g)+", "+U(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:U(100*A(this._r,255))+"%",g:U(100*A(this._g,255))+"%",b:U(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+U(100*A(this._r,255))+"%, "+U(100*A(this._g,255))+"%, "+U(100*A(this._b,255))+"%)":"rgba("+U(100*A(this._r,255))+"%, "+U(100*A(this._g,255))+"%, "+U(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&($[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=o(e);n="#"+h(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,a=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return a?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},o.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&("a"===r?n[r]=e[r]:n[r]=B(e[r]));e=n}return o(e,t)},o.equals=function(e,t){return!(!e||!t)&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:Y(),g:Y(),b:Y()})},o.mix=function(e,t,n){n=0===n?0:n||50;var r=o(e).toRgb(),a=o(t).toRgb(),i=n/100,l={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return o(l)},o.readability=function(e,t){var n=o(e),r=o(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},o.isReadable=function(e,t,n){var r,a,i=o.readability(e,t);switch(a=!1,r=V(n),r.level+r.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},o.mostReadable=function(e,t,n){var r,a,i,l,u=null,s=0;n=n||{},a=n.includeFallbackColors,i=n.level,l=n.size;for(var c=0;cs&&(s=r,u=o(t[c]));return o.isReadable(e,u,{level:i,size:l})||!a?u:(n.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],n))};var X=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=o.hexNames=P(X),J=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();"undefined"!=typeof e&&e.exports?e.exports=o:(r=function(){return o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)))}(Math)},2876:function(e,t,n,r){function a(e){return"function"==typeof e?e:o}var o=n(r);e.exports=a}});
-//# sourceMappingURL=priority-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=priority-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/project-4a5356ab918177034908.js b/public/assets/project-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/project-4a5356ab918177034908.js
rename to public/assets/project-7039fa190a94069b1c9b.js
index d72900eac..2ce8e987c 100644
--- a/public/assets/project-4a5356ab918177034908.js
+++ b/public/assets/project-7039fa190a94069b1c9b.js
@@ -2,4 +2,4 @@ webpackJsonp([21],{7:function(e,t,n){"use strict";function a(e){return e&&e.__es
newOptionCreator:u,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,a=e.onNewOptionClick,r=e.options,i=void 0===r?[]:r;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var o=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),s=this.isOptionUnique({option:o});s&&(a?a(o):(i.unshift(o),this.select.selectValue(o)))}},filterOptions:function x(){var e=this.props,x=e.filterOptions,t=e.isValidNewOption,n=(e.options,e.promptTextCreator),a=arguments[2]||[],r=x.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var i=this.props.newOptionCreator,o=i({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),s=this.isOptionUnique({option:o,options:a.concat(r)});if(s){var u=n(this.inputValue);this._createPlaceholderOption=i({label:u,labelKey:this.labelKey,valueKey:this.valueKey}),r.unshift(this._createPlaceholderOption)}}return r},isOptionUnique:function S(e){var t=e.option,n=e.options,S=this.props.isOptionUnique;return n=n||this.select.filterOptions(),S({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})},menuRenderer:function F(e){var F=this.props.menuRenderer;return F(p({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))},onInputChange:function k(e){var k=this.props.onInputChange;k&&k(e),this.inputValue=e},onInputKeyDown:function T(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,T=t.onInputKeyDown,a=this.select.getFocusedOption();a&&a===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):T&&T(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},focus:function(){this.select.focus()},render:function(){var e=this,t=this.props,n=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,r(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"])),a=this.props.children;a||(a=i);var o=p({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return a(o)}});e.exports=P},26:function(e,t,n){"use strict";function a(e){return e}function r(e,t,n){function r(e,t){var n=b.hasOwnProperty(t)?b[t]:null;w.hasOwnProperty(t)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function i(e,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var a=e.prototype,i=a.__reactAutoBindPairs;n.hasOwnProperty(l)&&E.mixins(e,n.mixins);for(var o in n)if(n.hasOwnProperty(o)&&o!==l){var s=n[o],c=a.hasOwnProperty(o);if(r(c,o),E.hasOwnProperty(o))E[o](e,s);else{var p=b.hasOwnProperty(o),h="function"==typeof s,m=h&&!p&&!c&&n.autobind!==!1;if(m)i.push(o,s),a[o]=s;else if(c){var y=b[o];u(p&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,o),"DEFINE_MANY_MERGED"===y?a[o]=d(a[o],s):"DEFINE_MANY"===y&&(a[o]=f(a[o],s))}else a[o]=s}}}else;}function c(e,t){if(t)for(var n in t){var a=t[n];if(t.hasOwnProperty(n)){var r=n in E;u(!r,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;u(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=a}}}function p(e,t){u(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(u(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function d(e,t){return function(){var n=e.apply(this,arguments),a=t.apply(this,arguments);if(null==n)return a;if(null==a)return n;var r={};return p(r,n),p(r,a),r}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;ne.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(u({},this.props,l,{isLoading:o,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=w,w.propTypes=E,w.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var a=e[n];return void 0!==a&&(t[n]=a),t},t)}var i=Object.assign||function(e){for(var t=1;tu||r<=0)&&(r=1);for(var l=[],p=0;pu)break;l.push(f)}return c.default.createElement("div",{style:{marginTop:"15px",height:"50px"}},c.default.createElement("div",null,c.default.createElement("div",{className:"col-md-6"},c.default.createElement("span",null,d.default.add((r-1)*i,1),"-",r*i>=n?n:r*i," 共",n,"条 ",u,"页")),c.default.createElement("div",{className:"col-md-6"},u>1&&c.default.createElement("ul",{className:"pagination",style:{"float":"right",marginTop:"0px"}},r-s>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),r-1>0&&u>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,r-1),title:"前页"},"<")),d.default.map(l,function(t,n){return c.default.createElement("li",{key:n,className:t===r?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),r1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,d.default.add(r,1)),title:"后页"},">")),u-s>r&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,u),title:"尾页"},">>"))))))}}],[{key:"propTypes",value:{query:l.PropTypes.object,refresh:l.PropTypes.func,total:l.PropTypes.number.isRequired,curPage:l.PropTypes.number,sizePerPage:l.PropTypes.number,paginationSize:l.PropTypes.number},enumerable:!0}]),t}(l.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},851:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&(L={mode:"checkbox",selected:this.state.selectedIds,onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)}),l.default.createElement("div",null,l.default.createElement("div",{style:{marginTop:"5px",height:"40px"}},l.default.createElement(p.FormGroup,null,l.default.createElement("span",{style:{"float":"right",width:"90px"}},l.default.createElement(f.default,{simpleValue:!0,clearable:!1,placeholder:"项目状态",value:this.state.status,onChange:this.statusChange.bind(this),options:[{value:"all",label:"全部"},{value:"active",label:"活动中"},{value:"closed",label:"已关闭"}]})),l.default.createElement("span",{style:{"float":"right",width:"22%",marginRight:"10px"}},l.default.createElement(f.default,{simpleValue:!0,placeholder:"责任人",value:this.state.principal_id,onChange:this.principalChange.bind(this),options:v.default.map(k.principals,function(e){return{value:e.id,label:e.name+"("+e.email+")"}})})),l.default.createElement("span",{style:{"float":"right",width:"22%",marginRight:"10px"}},l.default.createElement(p.FormControl,{type:"text",id:"pname",style:{height:"36px"},value:this.state.name,onChange:function(t){e.setState({name:t.target.value})},placeholder:"项目名、键值查询..."})),this.state.selectedIds.length>0&&l.default.createElement("span",{style:{"float":"left",marginRight:"10px"}},l.default.createElement(p.DropdownButton,{title:"操作",onSelect:this.multiOperateSelect.bind(this)},l.default.createElement(p.MenuItem,{eventKey:"close"},"关闭"),l.default.createElement(p.MenuItem,{eventKey:"reopen"},"重新打开"),l.default.createElement(p.MenuItem,{eventKey:"create_index"},"重建索引"))),l.default.createElement("span",{style:{"float":"left",width:"20%"}},l.default.createElement(p.Button,{onClick:function(){e.setState({createModalShow:!0})},disabled:o},l.default.createElement("i",{className:"fa fa-plus"})," 新建项目")))),l.default.createElement("div",null,l.default.createElement(c.BootstrapTable,{data:I,bordered:!1,hover:!0,options:K,trClassName:"tr-middle",selectRow:L},l.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(c.TableHeaderColumn,{dataField:"name"},"名称"),l.default.createElement(c.TableHeaderColumn,{dataField:"key",width:"170"},"键值"),l.default.createElement(c.TableHeaderColumn,{dataField:"principal",width:"320"},"责任人"),l.default.createElement(c.TableHeaderColumn,{dataField:"status",width:"80"},"状态"),l.default.createElement(c.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.editModalShow&&l.default.createElement(w,{show:!0,close:this.editModalClose,update:F,data:r,i18n:n}),this.state.createModalShow&&l.default.createElement(C,{show:!0,close:this.createModalClose,create:d,i18n:n}),this.state.closeNotifyShow&&l.default.createElement(O,{show:!0,close:this.closeNotifyClose,data:r,stop:m}),this.state.delNotifyShow&&l.default.createElement(P,{show:!0,close:this.delNotifyClose,data:r,del:h}),this.state.multiOperateNotifyShow&&l.default.createElement(x,{show:!0,close:this.multiOperateNotifyClose,multiReopen:b,multiStop:y,multiCreateIndex:E,ids:this.state.selectedIds,cancelSelected:this.cancelSelected.bind(this),operate:this.state.multiOperate,loading:i,i18n:n})),!o&&k.total&&k.total>0?l.default.createElement(g,{total:k.total||0,curPage:T.page||1,sizePerPage:k.sizePerPage||30,paginationSize:4,query:T,refresh:u}):"")}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object,getOptions:u.PropTypes.func.isRequired,collection:u.PropTypes.array.isRequired,selectedItem:u.PropTypes.object.isRequired,query:u.PropTypes.object.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,refresh:u.PropTypes.func.isRequired,entry:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,reopen:u.PropTypes.func.isRequired,createIndex:u.PropTypes.func.isRequired,multiReopen:u.PropTypes.func.isRequired,multiStop:u.PropTypes.func.isRequired,multiCreateIndex:u.PropTypes.func.isRequired,stop:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=F,e.exports=t.default}).call(this)}finally{}},1849:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&r.map(function(t,n){return l.default.createElement("div",{className:"col-lg-3 col-md-4 col-sm-6 col-xs-12 cardContainer",key:n},l.default.createElement("div",{className:"card"},"active"!==t.status&&l.default.createElement("div",{className:"status"},l.default.createElement(p.Label,null,"已关闭")),l.default.createElement("div",{className:"content"},l.default.createElement("span",{className:"title"},"active"==t.status?l.default.createElement("p",{className:"name"},l.default.createElement("a",{href:"#",title:t.name,onClick:function(n){n.preventDefault(),e.entry(t.key)}},t.name)):l.default.createElement("p",{className:"name"},t.name),l.default.createElement("p",{className:"key"},t.key))),l.default.createElement("div",{className:"leader"},l.default.createElement("span",null,"负责人: ",t.principal.name)),t.principal.id===a.id&&l.default.createElement("div",{className:"btns"},"active"==t.status&&l.default.createElement("span",{style:{marginLeft:"3px"},title:"编辑",onClick:e.edit.bind(e,t.id),className:"comments-button"},l.default.createElement("i",{className:"fa fa-pencil","aria-hidden":"true"})),"active"==t.status&&l.default.createElement("span",{style:{marginLeft:"3px"},title:"重建索引",onClick:e.createIndex.bind(e,t.id),className:"comments-button"},l.default.createElement("i",{className:"fa fa-refresh","aria-hidden":"true"})),"active"===t.status?l.default.createElement("span",{style:{marginLeft:"3px"},title:"关闭",onClick:e.closeNotify.bind(e,t.id),className:"comments-button"},l.default.createElement("i",{className:"fa fa-toggle-off","aria-hidden":"true"})):l.default.createElement("span",{style:{marginLeft:"3px"},title:"重新打开",onClick:e.reopen.bind(e,t.id),className:"comments-button"},l.default.createElement("i",{className:"fa fa-toggle-on","aria-hidden":"true"})))))}),this.state.editModalShow&&l.default.createElement(C,{show:!0,close:this.editModalClose,update:y,data:o,i18n:n}),this.state.createModalShow&&l.default.createElement(g,{show:!0,close:this.createModalClose,create:h,i18n:n}),this.state.closeNotifyShow&&l.default.createElement(w,{show:!0,close:this.closeNotifyClose,data:o,stop:m})),i.length>0&&i.length%(E.limit||4)===0&&l.default.createElement(p.ButtonGroup,{vertical:!0,block:!0,style:{marginTop:"15px"}},l.default.createElement(p.Button,{onClick:this.more.bind(this)},l.default.createElement("div",null,l.default.createElement("img",{src:O,className:d?"loading":"hide"}),l.default.createElement("span",null,d?"":"更多...")))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,user:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,collection:u.PropTypes.array.isRequired,increaseCollection:u.PropTypes.array.isRequired,selectedItem:u.PropTypes.object.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,moreLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,more:u.PropTypes.func.isRequired,entry:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,reopen:u.PropTypes.func.isRequired,createIndex:u.PropTypes.func.isRequired,stop:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=P,e.exports=t.default}).call(this)}finally{}}});
-//# sourceMappingURL=project-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=project-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/report-4a5356ab918177034908.js b/public/assets/report-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/report-4a5356ab918177034908.js
rename to public/assets/report-7039fa190a94069b1c9b.js
index 8f5174b6e..852aed57e 100644
--- a/public/assets/report-4a5356ab918177034908.js
+++ b/public/assets/report-7039fa190a94069b1c9b.js
@@ -11,4 +11,4 @@ onChange:function(t){e.onChange({end_time:t})}})))}}],[{key:"propTypes",value:{m
key:O});j+=(C?" | ":"")+"Y轴~"+(P!==-1?x[P].name:"")}var F=(0,y.parseQuery)(M,i);F&&(j+=(j?" | ":"")+F)}var H=D;Y!=b&&b&&"pie"==D&&(H="bar");var A=[];return A="total_asc"==w?h.default.sortBy(u,function(e){return e.cnt}):"total_desc"==w?h.default.sortBy(u,function(e){return-e.cnt}):u,Y!=b?h.default.forEach(A,function(e){h.default.forEach(e.y||[],function(t,a){e["y_"+a+"_cnt"]=t.cnt})}):h.default.forEach(A,function(e){e.y&&delete e.y}),l.default.createElement("div",{className:"project-report-container"},l.default.createElement("div",{className:"report-title"},"问题分布图",l.default.createElement(d.Link,{to:"/project/"+r.key+"/report"},l.default.createElement(c.Button,{bsStyle:"link"},"返回"))),l.default.createElement(c.Form,{horizontal:!0,className:"report-filter-form"},l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"X轴"),l.default.createElement(c.Col,{sm:3},l.default.createElement(_.default,{simpleValue:!0,placeholder:"请选择",clearable:!1,value:Y||null,onChange:function(t){e.state.stat_x=t,e.search()},options:h.default.map(x,function(e){return{value:e.key,label:e.name}})})),l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"Y轴"),l.default.createElement(c.Col,{sm:3},l.default.createElement(_.default,{simpleValue:!0,placeholder:"请选择",value:this.state.stat_y||null,onChange:function(t){e.state.stat_y=t,e.search()},options:h.default.map(x,function(e){return{value:e.key,label:e.name}})})),l.default.createElement(c.Col,{sm:4},l.default.createElement(c.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?l.default.createElement("i",{className:"fa fa-angle-up"}):l.default.createElement("i",{className:"fa fa-angle-down"}))))),l.default.createElement(y.IssueFilterList,{values:M,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],options:i,onChange:function(e){f(e)}}),l.default.createElement("div",{className:"report-conds-style"},j&&l.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},l.default.createElement("div",{className:"cond-contents",title:j},l.default.createElement("b",null,"检索条件"),":",j),l.default.createElement("div",{className:"remove-icon",onClick:function(){f({})},title:"清空当前检索"},l.default.createElement("i",{className:"fa fa-remove"})),l.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},l.default.createElement("i",{className:"fa fa-save"}))),l.default.createElement(c.ButtonGroup,{className:"report-shape-buttongroup"},(Y===b||!b)&&l.default.createElement(c.Button,{title:"饼状图",style:{height:"36px",backgroundColor:"pie"==H&&"#eee"},onClick:function(){e.setState({shape:"pie"})}},"饼状图"),l.default.createElement(c.Button,{title:"柱状图",style:{height:"36px",backgroundColor:"bar"==H&&"#eee"},onClick:function(){e.setState({shape:"bar"})}},"柱状图"),l.default.createElement(c.Button,{title:"折线图",style:{height:"36px",backgroundColor:"line"==H&&"#eee"},onClick:function(){e.setState({shape:"line"})}},"折线图")),l.default.createElement("div",{className:"report-select-sort"},l.default.createElement(_.default,{simpleValue:!0,clearable:!1,placeholder:"选择顺序",value:this.state.sort||"default",onChange:function(t){e.setState({sort:t})},options:E}))),m?l.default.createElement("div",{style:{height:"550px",paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("img",{src:g,className:"loading"}))):l.default.createElement("div",{style:{height:"565px"}},A.length<=0&&l.default.createElement("div",{className:"report-shape-container",style:{paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},l.default.createElement("i",{className:"fa fa-warning"})),l.default.createElement("br",null),l.default.createElement("span",null,"抱歉,暂无满足该检索条件的数据。"))),"bar"===H&&A.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.BarChart,{width:.95*n.containerWidth,height:380,barSize:40,data:A,style:{margin:"25px auto"}},l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.XAxis,{dataKey:"name"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.Tooltip,null),Y!==b&&b&&l.default.createElement(p.Legend,null),Y!==b&&b?h.default.map(A[0].y||[],function(e,t){return l.default.createElement(p.Bar,{key:t,dataKey:"y_"+t+"_cnt",stackId:"a",name:e.name,fill:T[t%T.length]})}):l.default.createElement(p.Bar,{dataKey:"cnt",name:"个数",fill:"#3b7fc4"}))),"line"===H&&A.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.LineChart,{width:.95*n.containerWidth,height:380,data:A,style:{margin:"25px auto"}},l.default.createElement(p.XAxis,{dataKey:"name"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.Tooltip,null),Y!==b&&b&&l.default.createElement(p.Legend,null),Y!==b&&b?h.default.map(A[0].y||[],function(e,t){return l.default.createElement(p.Line,{key:t,dataKey:"y_"+t+"_cnt",name:e.name,stroke:T[t%T.length]})}):l.default.createElement(p.Line,{dataKey:"cnt",name:"个数",stroke:"#d04437"}))),"pie"===H&&A.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.PieChart,{width:800,height:380,style:{margin:"25px auto"}},l.default.createElement(p.Pie,{dataKey:"cnt",data:A,cx:400,cy:200,outerRadius:130,label:!0},h.default.map(A,function(e,t){return l.default.createElement(p.Cell,{key:t,fill:T[t%T.length]})})),l.default.createElement(p.Tooltip,null))),A.length>0&&l.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},l.default.createElement("span",null,"注:该图表最多统计满足当前检索条件下的10000条结果。"),Y!=b&&b?l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"维度"),h.default.map(A[0].y,function(e,t){return l.default.createElement("th",{key:t},e.name)}))),l.default.createElement("tbody",null,h.default.map(A,function(t,a){return l.default.createElement("tr",{key:a},l.default.createElement("td",null,t.name),h.default.map(t.y,function(a,n){return l.default.createElement("td",{key:n},l.default.createElement("a",{href:"#",onClick:function(n){n.preventDefault();var r={};r[Y]=t.id,r[b]=a.id,e.gotoIssue(r)}},a.cnt))}))}))):l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,Y?h.default.find(x,{key:Y}).name:""),l.default.createElement("th",null,"个数"))),l.default.createElement("tbody",null,h.default.map(A,function(t,a){return l.default.createElement("tr",{key:a},l.default.createElement("td",null,t.name),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault();var n={};n[Y]=t.id,e.gotoIssue(n)}},t.cnt)))}))))),this.state.saveFilterShow&&l.default.createElement(v.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:s.data||[],options:i,save:L,mode:"issues",query:M,sqlTxt:j,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,issues:u.PropTypes.array.isRequired,issuesLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,gotoIssue:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=L,e.exports=t.default}).call(this)}finally{}},1856:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&(D=(D?D+" | ":"")+"历史解决者~"+t.join(","))}();var S=(0,y.parseQuery)(M,i);S&&(D+=(D?" | ":"")+S)}var x="",j=[];return this.state.stat_dimension?(x="bar",h.default.forEach(u,function(e){var t={};t.category=e.category,t.ones=e.ones||[],t.gt_ones=e.gt_ones||[],t.ones_cnt=e.ones.length,t.gt_ones_cnt=e.gt_ones.length,t.total_cnt=t.ones_cnt+t.gt_ones_cnt,j.push(t)})):(x="pie",u.length>0&&(j.push({name:"一次通过",nos:u[0].ones,cnt:u[0].ones.length}),j.push({name:"大于一次",nos:u[0].gt_ones,cnt:u[0].gt_ones.length}))),l.default.createElement("div",{className:"project-report-container"},l.default.createElement("div",{className:"report-title"},"问题解决回归分布",l.default.createElement(d.Link,{to:"/project/"+r.key+"/report"},l.default.createElement(c.Button,{bsStyle:"link"},"返回"))),l.default.createElement(c.Form,{horizontal:!0,className:"report-filter-form"},l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"统计维度"),l.default.createElement(c.Col,{sm:3},l.default.createElement(_.default,{simpleValue:!0,placeholder:"请选择",value:this.state.stat_dimension||null,onChange:function(t){e.state.stat_dimension=t,e.search()},options:h.default.map(b,function(e){return{value:e.key,label:e.name}})})),l.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"历史解决者"),l.default.createElement(c.Col,{sm:3},l.default.createElement(_.default,{simpleValue:!0,multi:!0,placeholder:"选择解决者",value:this.state.his_resolvers,onChange:function(t){e.state.his_resolvers=t,e.search()},options:h.default.map(k,function(e){return{value:e.id,label:e.name}})})),l.default.createElement(c.Col,{sm:3},l.default.createElement(c.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?l.default.createElement("i",{className:"fa fa-angle-up"}):l.default.createElement("i",{className:"fa fa-angle-down"}))))),l.default.createElement(y.IssueFilterList,{values:M,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],options:i,onChange:function(e){f(e)}}),l.default.createElement("div",{className:"report-conds-style"},D&&l.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},l.default.createElement("div",{className:"cond-contents",title:D},l.default.createElement("b",null,"检索条件"),":",D),l.default.createElement("div",{className:"remove-icon",onClick:function(){f({})},title:"清空当前检索"},l.default.createElement("i",{className:"fa fa-remove"})),l.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},l.default.createElement("i",{className:"fa fa-save"})))),m?l.default.createElement("div",{style:{height:"550px",paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("img",{src:g,className:"loading"}))):l.default.createElement("div",{style:{height:"565px"}},j.length<=0&&l.default.createElement("div",{className:"report-shape-container",style:{paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},l.default.createElement("i",{className:"fa fa-warning"})),l.default.createElement("br",null),l.default.createElement("span",null,"抱歉,暂无满足该检索条件的数据。"))),"bar"===x&&j.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.BarChart,{width:.95*n.containerWidth,height:380,barSize:40,data:j,style:{margin:"25px auto"}},l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.XAxis,{dataKey:"category"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.Tooltip,null),l.default.createElement(p.Legend,null),l.default.createElement(p.Bar,{dataKey:"ones_cnt",name:"一次回归",stackId:"a",fill:"#4572A7"}),l.default.createElement(p.Bar,{dataKey:"gt_ones_cnt",name:"大于一次",stackId:"a",fill:"#AA4643"}))),"pie"===x&&j.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.PieChart,{width:800,height:380,style:{margin:"25px auto"}},l.default.createElement(p.Pie,{dataKey:"cnt",data:j,cx:400,cy:200,outerRadius:130,label:!0},l.default.createElement(p.Cell,{fill:"#3b7fc4"}),l.default.createElement(p.Cell,{fill:"#f79232"})),l.default.createElement(p.Tooltip,null))),j.length>0&&l.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},l.default.createElement("span",null,"注:该图表最多统计满足当前检索条件下的10000条结果。"),this.state.stat_dimension&&l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,h.default.find(b,{key:this.state.stat_dimension}).name),l.default.createElement("th",null,"一次回归"),l.default.createElement("th",null,"大于一次"),l.default.createElement("th",null,"一次通过率"))),l.default.createElement("tbody",null,h.default.map(j,function(t,a){return l.default.createElement("tr",{key:a},e.state.stat_dimension&&l.default.createElement("td",null,t.category),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue(t.ones)}},t.ones_cnt)),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue(t.gt_ones)}},t.gt_ones_cnt)),l.default.createElement("td",null,h.default.round(t.ones_cnt/t.total_cnt*100,2)+"%"))}))),!this.state.stat_dimension&&l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"一次回归"),l.default.createElement("th",null,"大于一次"),l.default.createElement("th",null,"一次通过率"))),l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue(j[0].nos)}},j[0].cnt)),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue(j[1].nos)}},j[1].cnt)),l.default.createElement("td",null,h.default.round(j[0].cnt/(j[0].cnt+j[1].cnt)*100,2)+"%")))))),this.state.saveFilterShow&&l.default.createElement(v.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:s.data||[],options:i,save:L,mode:"regressions",query:M,sqlTxt:D,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,regressions:u.PropTypes.array.isRequired,regressionsLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,gotoIssue:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=L,e.exports=t.default}).call(this)}finally{}},1857:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a ")||"-"}}))})))),l.default.createElement(d.Modal.Footer,null,l.default.createElement(d.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.array.isRequired},enumerable:!0}]),t}(u.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1858:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&(s=_.default.max([s,.01])),s=_.default.min([s,1]);var i=a.diff_m<0?_.default.round(a.origin_m/(a.spend_m+a.left_m),2):_.default.round((a.spend_m+a.left_m)/a.origin_m,2);return i=_.default.max([i,0]),i=_.default.min([i,1]),l.default.createElement("div",null,l.default.createElement(d.Table,{style:{marginBottom:"10px"}},l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{width:"10%"},l.default.createElement("span",{style:{fontWeight:600}},"完成度")),l.default.createElement("td",{width:"60%"},l.default.createElement("table",{style:{width:"100%",marginTop:"3px"}},l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{style:{width:_.default.round(100*s)+"%"}},l.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#51a825"}})),l.default.createElement("td",{style:{width:_.default.round(100*(1-s))+"%"}},l.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#ec8e00"}})))))),l.default.createElement("td",{width:"30%"},l.default.createElement("span",null,_.default.round(100*s)+"%"),l.default.createElement("span",{style:{marginLeft:"10px",fontWeight:600}},a.spend," 比 ",(0,c.ttFormat)(a.spend_m+a.left_m,n,r)))),l.default.createElement("tr",null,l.default.createElement("td",{width:"10%"},l.default.createElement("span",{style:{fontWeight:600}},"精准度")),l.default.createElement("td",{width:"60%"},l.default.createElement("table",{style:{width:"100%",marginTop:"3px"}},l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{style:{width:_.default.round(100*i)+"%"}},l.default.createElement("div",{className:"color-bar"})),l.default.createElement("td",{style:{width:_.default.round(100*(1-i))+"%"}},l.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#ccc"}})))))),l.default.createElement("td",{width:"30%"},l.default.createElement("span",null,_.default.round(100*i)+"%"),l.default.createElement("span",{style:{marginLeft:"10px",fontWeight:600}},a.diff_m<0?(0,c.ttFormat)(a.origin_m,n,r):(0,c.ttFormat)(a.spend_m+a.left_m,n,r)," 比 ",a.diff_m<0?(0,c.ttFormat)(a.spend_m+a.left_m,n,r):(0,c.ttFormat)(a.origin_m,n,r)))))))}}],[{key:"propTypes",value:{options:u.PropTypes.object.isRequired,values:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=p,e.exports=t.default}).call(this)}finally{}},1859:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&O.indexOf(e.id)!==-1||O.length<=0)&&(A.origin_m+=e.origin_m||0,A.spend_m+=e.spend_m||0,A.left_m+=e.left_m||0)}),A.origin=(0,M.ttFormat)(A.origin_m,F,H),A.spend=(0,M.ttFormat)(A.spend_m,F,H),A.left=(0,M.ttFormat)(A.left_m,F,H),A.diff_m=A.origin_m-A.spend_m-A.left_m,A.diff=(0,M.ttFormat)(A.diff_m,F,H);for(var R=[],W=L.length,N=function(t){var a=L[t].state?h.default.findIndex(u,{id:L[t].state}):-1,n="";a!==-1&&(n="state-"+(u[a].category||"")+"-label"),R.push({id:L[t].id,type:l.default.createElement("span",{className:"type-abb",title:h.default.findIndex(f,{id:L[t].type})!==-1?h.default.find(f,{id:L[t].type}).name:""},h.default.findIndex(f,{id:L[t].type})!==-1?h.default.find(f,{id:L[t].type}).abb:"-"),name:l.default.createElement("div",null,L[t].spend_m>0?l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.showDetail(L[t])},style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},l.default.createElement("span",null,L[t].no+" - "+L[t].title)):l.default.createElement("span",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},L[t].no+" - "+L[t].title)),state:a!==-1?l.default.createElement("span",{className:n},u[a].name||"-"):"-",origin:L[t].origin||"-",spend:L[t].spend||"-",left:L[t].left||"-",diff:L[t].origin?(0,M.ttFormat)(L[t].origin_m-L[t].spend_m-L[t].left_m,F,H):"-"})},I=0;I0&&(V={mode:"checkbox",selected:h.default.filter(this.state.selectedIds,function(e){return"xxx"!==e}),unselectable:["xxx"],onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)},R.push({id:"xxx",type:"",name:"合计",state:"",origin:A.origin,spend:A.spend,left:A.left,diff:A.diff}));var q={};return Y?q.noDataText=l.default.createElement("div",null,l.default.createElement("img",{src:D,className:"loading"})):q.noDataText="暂无数据显示。",l.default.createElement("div",{className:"project-report-container"},l.default.createElement("div",{className:"report-title"},"问题时间跟踪报告",l.default.createElement(d.Link,{to:"/project/"+n.key+"/report"},l.default.createElement(c.Button,{bsStyle:"link"},"返回"))),l.default.createElement(c.Form,{horizontal:!0,className:"report-filter-form"},l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"统计范围"),l.default.createElement(c.Col,{sm:4},l.default.createElement(_.default,{simpleValue:!0,clearable:!1,placeholder:"请选择",value:this.state.scale,onChange:function(t){e.state.scale=t,e.search()},options:[{value:"all",label:"所有问题"},{value:"only",label:"仅包含有初始预估时间的"}]})),l.default.createElement(c.Col,{sm:7},l.default.createElement(c.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?l.default.createElement("i",{className:"fa fa-angle-up"}):l.default.createElement("i",{className:"fa fa-angle-down"}))))),l.default.createElement("div",null,l.default.createElement(y.IssueFilterList,{values:x,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],options:s,onChange:function(e){
S(e)}})),l.default.createElement("div",{className:"report-conds-style"},C&&l.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},l.default.createElement("div",{className:"cond-contents",title:C},l.default.createElement("b",null,"检索条件"),":",C),l.default.createElement("div",{className:"remove-icon",onClick:function(){S({})},title:"清空当前检索"},l.default.createElement("i",{className:"fa fa-remove"})),l.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},l.default.createElement("i",{className:"fa fa-save"})))),!Y&&L.length>0&&l.default.createElement(k.default,{options:s,values:A}),l.default.createElement("div",{style:{marginBottom:"30px"}},l.default.createElement(p.BootstrapTable,{selectRow:V,data:R,bordered:!1,headerStyle:{backgroundColor:"#fff"},hover:!0,options:q},l.default.createElement(p.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(p.TableHeaderColumn,{dataField:"type",width:"50"},"类型"),l.default.createElement(p.TableHeaderColumn,{dataField:"state",width:"100"},"状态"),l.default.createElement(p.TableHeaderColumn,{dataField:"name"},"名称"),l.default.createElement(p.TableHeaderColumn,{dataField:"origin",width:"120"},"初始预估时间"),l.default.createElement(p.TableHeaderColumn,{dataField:"spend",width:"120"},"耗费时间"),l.default.createElement(p.TableHeaderColumn,{dataField:"left",width:"120"},"剩余时间"),l.default.createElement(p.TableHeaderColumn,{dataField:"diff",width:"120"},"误差")),L.length>0&&l.default.createElement("div",null,l.default.createElement("span",null,"共计 ",R.length," 条"))),this.state.saveFilterShow&&l.default.createElement(g.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:r.data||[],options:s,save:j,mode:"timetrack",query:x,sqlTxt:C,i18n:a}),this.state.detailShow&&l.default.createElement(b.default,{show:!0,options:this.props.options,close:function(){e.setState({detailShow:!1})},issue:this.state.selectedIssue,index:w,data:T,loading:E,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,item:u.PropTypes.array.isRequired,itemLoading:u.PropTypes.bool.isRequired,collection:u.PropTypes.array.isRequired,indexLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1860:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;as?l.trend_start_stat_date:s)+"~"+i:r[e]=s+"~"+i):r[e]=u.stat_time,a(y.default.assign({},y.default.omit(u,["stat_time","interval","is_accu"]),r))}},{key:"search",value:function(){var e=this.props,t=e.query,a=void 0===t?{}:t,n=e.refresh,r=y.default.assign({},a);this.state.stat_time?r.stat_time=this.state.stat_time:delete r.stat_time,r.interval=this.state.interval||"day",r.is_accu="1"===this.state.is_accu?"1":"0",n(r)}},{key:"render",value:function(){var e=this,t=this.props,a=t.i18n,n=t.layout,r=t.project,s=t.filters,i=t.options,o=t.optionsLoading,u=t.trend,_=t.trendLoading,h=t.refresh,v=t.query,L=t.saveFilter,Y={w:"周",m:"月",y:"年"},D="";if(!o){var w=v.stat_time;if(w)if(y.default.endsWith(w,"w")||y.default.endsWith(w,"m")||y.default.endsWith(w,"y")){var T=new RegExp("^(-?)(\\d+)(w|m|y)$");T.exec(w)&&(D="统计时间~"+RegExp.$2+Y[RegExp.$3]+("-"===RegExp.$1?"外":"内"))}else D="统计时间~"+w;D+=" | 是否累计~"+("1"===v.is_accu?"是":"否");var E={day:"天",week:"周",month:"月"},S=v.interval||"day";D+=" | 时间间隔~"+E[S];var x=(0,M.parseQuery)(v,i);D&&x?D+=" | "+x:x&&(D=x)}var j=u;this.state.notWorkingShow||(j=y.default.reject(u,{notWorking:1}));var C=u.length>100||!v.stat_time;return l.default.createElement("div",{className:"project-report-container"},l.default.createElement("div",{className:"report-title"},"问题趋势图",l.default.createElement(d.Link,{to:"/project/"+r.key+"/report"},l.default.createElement(c.Button,{bsStyle:"link"},"返回"))),l.default.createElement(c.Form,{horizontal:!0,className:"report-filter-form"},l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"统计时间"),l.default.createElement(c.Col,{sm:6},l.default.createElement(g.default,{value:this.state.stat_time,onChange:function(t){e.state.stat_time=t,e.search()}})),l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"统计项"),l.default.createElement(c.Col,{sm:4},l.default.createElement(m.CheckboxGroup,{name:"statItems",value:this.state.statItems,onChange:function(t){e.setState({statItems:t})},style:{marginTop:"8px"}},l.default.createElement("div",{style:{"float":"left"}},l.default.createElement(m.Checkbox,{value:"new",style:{"float":"left"}}),l.default.createElement("span",{style:{marginLeft:"2px"}},"新建的")),l.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},l.default.createElement(m.Checkbox,{value:"resolve"}),l.default.createElement("span",{style:{marginLeft:"2px"}},"已解决的")),l.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},l.default.createElement(m.Checkbox,{value:"close"}),l.default.createElement("span",{style:{marginLeft:"2px"}},"已关闭的"))))),l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"时间间隔"),l.default.createElement(c.Col,{sm:2},l.default.createElement(p.default,{simpleValue:!0,clearable:!1,placeholder:"选择时间间隔",value:this.state.interval,onChange:function(t){e.state.interval=t,e.search()},options:[{value:"day",label:"天"},{value:"week",label:"周"},{value:"month",label:"月"}]})),l.default.createElement(c.Col,{sm:5,componentClass:c.ControlLabel},"是否累计"),l.default.createElement(c.Col,{sm:2},l.default.createElement(c.Radio,{inline:!0,name:"is_accu",onClick:function(){e.state.is_accu="1",e.search()},checked:"1"===this.state.is_accu},"是"),l.default.createElement(c.Radio,{inline:!0,name:"is_accu",onClick:function(){e.state.is_accu="0",e.search()},checked:"1"!==this.state.is_accu},"否")),l.default.createElement(c.Col,{sm:2},l.default.createElement(c.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?l.default.createElement("i",{className:"fa fa-angle-up"}):l.default.createElement("i",{className:"fa fa-angle-down"}))))),l.default.createElement(M.IssueFilterList,{values:v,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],notShowBlocks:["time"],options:i,onChange:function(e){h(e)}}),l.default.createElement("div",{className:"report-conds-style"},v.stat_time&&D&&l.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},l.default.createElement("div",{className:"cond-contents",title:D},l.default.createElement("b",null,"检索条件"),":",D),l.default.createElement("div",{className:"remove-icon",onClick:function(){h({})},title:"清空当前检索"},l.default.createElement("i",{className:"fa fa-remove"})),l.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},l.default.createElement("i",{className:"fa fa-save"}))),l.default.createElement(c.ButtonGroup,{className:"report-shape-buttongroup"},l.default.createElement(c.Button,{title:"柱状图",style:{height:"36px",backgroundColor:"bar"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"bar"})}},"柱状图"),l.default.createElement(c.Button,{title:"面积图",style:{height:"36px",backgroundColor:"area"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"area"})}},"面积图"),l.default.createElement(c.Button,{title:"折线图",style:{height:"36px",backgroundColor:"line"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"line"})}},"折线图")),"day"===this.state.interval&&l.default.createElement("div",{style:{"float":"right"}},l.default.createElement(c.Checkbox,{disabled:_,checked:this.state.notWorkingShow,onClick:function(){e.setState({notWorkingShow:!e.state.notWorkingShow})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"显示非工作日"))),_?l.default.createElement("div",{style:{height:"550px",paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("img",{src:b,className:"loading"}))):l.default.createElement("div",{style:{height:"565px"}},C&&l.default.createElement("div",{className:"report-shape-container",style:{paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},l.default.createElement("i",{className:"fa fa-warning"})),l.default.createElement("br",null),u.length>100&&l.default.createElement("span",null,"统计结果数据量太大,无法生成统计图,建议您重新选择过滤条件。"),!v.stat_time&&l.default.createElement("span",null,"抱歉,统计时间段不能为空。"))),"bar"===this.state.shape&&!C&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(f.BarChart,{width:.95*n.containerWidth,height:380,barSize:40,data:j,style:{margin:"25px auto"}},l.default.createElement(f.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(f.XAxis,{dataKey:"category"}),l.default.createElement(f.YAxis,null),l.default.createElement(f.Tooltip,null),l.default.createElement(f.Legend,null),this.state.statItems.indexOf("new")!==-1&&l.default.createElement(f.Bar,{dataKey:"new",name:"新建的",stackId:"a",fill:"#4572A7"}),this.state.statItems.indexOf("resolve")!==-1&&l.default.createElement(f.Bar,{dataKey:"resolved",name:"已解决的",stackId:"a",fill:"#89A54E"}),this.state.statItems.indexOf("close")!==-1&&l.default.createElement(f.Bar,{dataKey:"closed",name:"已关闭的",stackId:"a",fill:"#AA4643"}))),"line"===this.state.shape&&!C&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(f.LineChart,{width:.95*n.containerWidth,height:380,data:j,style:{margin:"25px auto"}},l.default.createElement(f.XAxis,{dataKey:"category"}),l.default.createElement(f.YAxis,null),l.default.createElement(f.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(f.Tooltip,null),l.default.createElement(f.Legend,null),this.state.statItems.indexOf("new")!==-1&&l.default.createElement(f.Line,{dataKey:"new",name:"新建的",stroke:"#4572A7"}),this.state.statItems.indexOf("resolve")!==-1&&l.default.createElement(f.Line,{dataKey:"resolved",name:"已解决的",stroke:"#89A54E"}),this.state.statItems.indexOf("close")!==-1&&l.default.createElement(f.Line,{dataKey:"closed",name:"已关闭的",stroke:"#AA4643"}))),"area"===this.state.shape&&!C&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(f.AreaChart,{width:.95*n.containerWidth,height:380,data:j,style:{margin:"25px auto"}},l.default.createElement("defs",null,this.state.statItems.indexOf("new")!==-1&&l.default.createElement("linearGradient",{id:"colorNew",x1:"0",y1:"0",x2:"0",y2:"1"},l.default.createElement("stop",{offset:"5%",stopColor:"#4572A7",stopOpacity:.8}),l.default.createElement("stop",{offset:"95%",stopColor:"#4572A7",stopOpacity:0})),this.state.statItems.indexOf("resolve")!==-1&&l.default.createElement("linearGradient",{id:"colorResolved",x1:"0",y1:"0",x2:"0",y2:"1"},l.default.createElement("stop",{offset:"5%",stopColor:"#89A54E",stopOpacity:.8}),l.default.createElement("stop",{offset:"95%",stopColor:"#89A54E",stopOpacity:0})),this.state.statItems.indexOf("close")!==-1&&l.default.createElement("linearGradient",{id:"colorClosed",x1:"0",y1:"0",x2:"0",y2:"1"},l.default.createElement("stop",{offset:"5%",stopColor:"#AA4643",stopOpacity:.8}),l.default.createElement("stop",{offset:"95%",stopColor:"#AA4643",stopOpacity:0}))),l.default.createElement(f.XAxis,{dataKey:"category"}),l.default.createElement(f.YAxis,null),l.default.createElement(f.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(f.Tooltip,null),l.default.createElement(f.Legend,null),this.state.statItems.indexOf("new")!==-1&&l.default.createElement(f.Area,{dataKey:"new",name:"新建的",fillOpacity:1,stroke:"#4572A7",fill:"url(#colorNew)",type:"monotone"}),this.state.statItems.indexOf("resolve")!==-1&&l.default.createElement(f.Area,{dataKey:"resolved",name:"已解决的",fillOpacity:1,stroke:"#89A54E",fill:"url(#colorResolved)",type:"monotone"}),this.state.statItems.indexOf("close")!==-1&&l.default.createElement(f.Area,{dataKey:"closed",name:"已关闭的",fillOpacity:1,stroke:"#AA4643",fill:"url(#colorClosed)",type:"monotone"}))),!C&&l.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},l.default.createElement("span",null,"注:该图表最多展示100条目。"),l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"时间"),l.default.createElement("th",null,"新建的"),l.default.createElement("th",null,"已解决的"),l.default.createElement("th",null,"已关闭的"))),l.default.createElement("tbody",null,y.default.map(u,function(t,a){return l.default.createElement("tr",{key:a},l.default.createElement("td",null,t.category),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("created_at","sub",t.category)}},t.new)),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("resolved_at","sub",t.category)}},t.resolved)),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("closed_at","sub",t.category)}},t.closed)))}),"0"===this.state.is_accu&&l.default.createElement("tr",null,l.default.createElement("td",null,"合计"),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("created_at","total")}},y.default.reduce(u,function(e,t){return e+t.new},0))),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("resolved_at","total")}},y.default.reduce(u,function(e,t){return e+t.resolved},0))),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("closed_at","total")}},y.default.reduce(u,function(e,t){return e+t.closed},0)))))))),this.state.saveFilterShow&&l.default.createElement(k.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:s.data||[],options:i,save:L,mode:"trend",query:v,sqlTxt:D,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,trend:u.PropTypes.array.isRequired,trendLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,gotoIssue:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=D,e.exports=t.default}).call(this)}finally{}},1861:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a ")||"-"}}))})))),l.default.createElement(d.Modal.Footer,null,l.default.createElement(d.Checkbox,{checked:this.state.showAll,onClick:function(){e.setState({showAll:!e.state.showAll})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"显示该问题全部工作日志"),l.default.createElement(d.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,showedUser:u.PropTypes.object.isRequired,query:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired,issue:u.PropTypes.object.isRequired,index:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1862:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&l.default.createElement("div",{style:{"float":"left"}},l.default.createElement("span",null,"共计 ",T.length," 条")),this.state.detailShow&&l.default.createElement(p.default,{show:!0,options:this.props.options,close:function(){e.setState({detailShow:!1})},showedUser:L,query:n,issue:this.state.selectedIssue,index:k,data:Y,loading:b,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,showedUser:u.PropTypes.object.isRequired,query:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,collection:u.PropTypes.array.isRequired,item:u.PropTypes.object.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=y,e.exports=t.default}).call(this)}finally{}},1863:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&l.default.createElement("div",{style:{marginLeft:"10px","float":"right"}},"注:图表耗费时间值是以分钟(m)为单位"),"pie"===this.state.shape&&H.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.PieChart,{width:800,height:380,style:{margin:"25px auto"}},l.default.createElement(p.Pie,{dataKey:"value",data:H,cx:400,cy:200,outerRadius:130,label:!0},H.map(function(e,a){return l.default.createElement(p.Cell,{key:a,fill:t[a%t.length]})})),l.default.createElement(p.Tooltip,{formatter:function(e){return(0,b.ttFormat)(e,P,O)}}))),"bar"===this.state.shape&&H.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.BarChart,{width:.95*s.containerWidth,height:380,data:H,barSize:40,style:{margin:"25px auto"}},l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.XAxis,{dataKey:"name"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.Tooltip,{formatter:function(e){return(0,b.ttFormat)(e,P,O)}}),l.default.createElement(p.Bar,{name:"工时",stackId:"a",dataKey:"value",fill:"#3b7fc4"}))),"line"===this.state.shape&&H.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.LineChart,{width:.95*s.containerWidth,height:380,data:H,style:{margin:"25px auto"}},l.default.createElement(p.XAxis,{dataKey:"name"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.Tooltip,{formatter:function(e){return(0,b.ttFormat)(e,P,O)}}),l.default.createElement(p.Line,{name:"工时",dataKey:"value",stroke:"#d04437"}))),H.length>0&&l.default.createElement("div",{style:{"float":"left",width:"100%"}},l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"总计"),h.default.map(H,function(e,t){return l.default.createElement("th",{key:t},e.name)}))),l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",null,(0,b.ttFormat)(h.default.reduce(H,function(e,t){return e+t.value},0),P,O)),h.default.map(H,function(t,a){return"others"===t.id||t.id==e.state.showedUser.id?l.default.createElement("td",{key:a},(0,b.ttFormat)(t.value,P,O)):l.default.createElement("td",{key:a},l.default.createElement("a",{href:"#workloglist",onClick:function(a){e.showList({id:t.id,name:t.name})}},(0,b.ttFormat)(t.value,P,O)))})))))),this.state.worklogListShow&&l.default.createElement("div",{id:"workloglist",style:{"float":"left",width:"100%",textAlign:"center",margin:"15px 0px 30px 0px"}},l.default.createElement("span",{style:{fontWeight:"600"}},this.state.showedUser.name||""," - 工作日志"),l.default.createElement("span",{title:"刷新",onClick:this.refreshList},l.default.createElement(c.Button,{bsStyle:"link",disabled:w},l.default.createElement("i",{className:"fa fa-refresh"}))),l.default.createElement(Y.default,{show:!0,showedUser:this.state.showedUser,query:j,options:u,index:g,collection:k,indexLoading:w,select:T,item:E,itemLoading:S,i18n:r})),this.state.saveFilterShow&&l.default.createElement(L.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:o.worklog||[],options:u,save:C,mode:"worklog",query:j,sqlTxt:R,i18n:r}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,worklog:u.PropTypes.array.isRequired,worklogLoading:u.PropTypes.bool.isRequired,getWorklogList:u.PropTypes.func.isRequired,worklogList:u.PropTypes.array.isRequired,worklogListLoading:u.PropTypes.bool.isRequired,getWorklogDetail:u.PropTypes.func.isRequired,worklogDetail:u.PropTypes.object.isRequired,worklogDetailLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1983:function(e,t,a){try{(function(){"use strict";function e(e){return(0,f.asyncFuncCreator)({constant:"REPORT_LIST_GET",promise:function(t){return t.request({url:"/project/"+e+"/report/index"})}})}function n(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_FILTER_RESET",mode:t,promise:function(a){return a.request({url:"/project/"+e+"/report/"+t+"/filters/reset"})}})}function r(e,t,a){return(0,f.asyncFuncCreator)({constant:"REPORT_FILTER_EDIT",mode:t,promise:function(n){return n.request({url:"/project/"+e+"/report/"+t+"/filters",method:"post",data:a})}})}function s(e,t,a){return(0,f.asyncFuncCreator)({constant:"REPORT_FILTER_SAVE",mode:t,promise:function(n){return n.request({url:"/project/"+e+"/report/"+t+"/filter",method:"post",data:a})}})}function i(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_WORKLOG_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/worklog"+(t?"?"+t:"")})}})}function o(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_WORKLOG_LIST_GET",promise:function(a){return a.request({url:"/project/"+e+"/report/worklog/list"+(t?"?"+t:"")})}})}function u(e,t,a){return(0,f.asyncFuncCreator)({constant:"REPORT_WORKLOG_DETAIL_GET",promise:function(n){return n.request({url:"/project/"+e+"/report/worklog/issue/"+t+(a?"?"+a:"")})}})}function l(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_TREND_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/trend"+(t?"?"+t:"")})}})}function d(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_TIMETRACKS_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/timetracks"+(t?"?"+t:"")})}})}function c(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_TIMETRACKS_DETAIL_GET",promise:function(a){return a.request({url:"/project/"+e+"/report/timetracks/issue/"+t})}})}function m(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_REGRESSIONS_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/regressions"+(t?"?"+t:"")})}})}function _(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_ISSUES_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/issues"+(t?"?"+t:"")})}})}function p(e){return(0,f.asyncFuncCreator)({constant:"REPORT_OPTIONS",promise:function(t){return t.request({url:"/project/"+e+"/issue/options"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.resetFilter=n,t.editFilter=r,t.saveFilter=s,t.worklog=i,t.getWorklogList=o,t.getWorklogDetail=u,t.trend=l,t.timetracks=d,t.getTimetrackDetail=c,t.regressions=m,t.issues=_,t.getOptions=p;var f=a(42)}).call(this)}finally{}}});
-//# sourceMappingURL=report-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=report-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/resolution-4a5356ab918177034908.js b/public/assets/resolution-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/resolution-4a5356ab918177034908.js
rename to public/assets/resolution-7039fa190a94069b1c9b.js
index ae8bd80b6..15475127b 100644
--- a/public/assets/resolution-4a5356ab918177034908.js
+++ b/public/assets/resolution-7039fa190a94069b1c9b.js
@@ -1,4 +1,4 @@
webpackJsonp([15],{7:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;ti.bottom||a.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var u=this.expandValue(e,o);return u?[u]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,u=t.valueKey;if(o)for(var r=0;ro&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var u=n-this.props.pageSize;n=u<0?0:u}else if("page_down"===e){var u=n+this.props.pageSize;n=u>t.length-1?t.length-1:u}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,u=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var r=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(u,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:r,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(r=null),l.default.createElement(u,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:r,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,a=(0,E.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,c=(0,E.default)((n={},r(n,this._instancePrefix+"-list",s),r(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=i({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":c,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,u(d,["inputClassName"])),h=(0,E.default)(r({},this._instancePrefix+"-list",s));return l.default.createElement("div",i({},f,{role:"combobox","aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(y.default,i({},p,{minWidth:"5"})):l.default.createElement("div",{className:a},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:w.default;return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var u=-1;if(t.some(function(e,t){var r=e[n]===o[n];return r&&(u=t),r}),u!==-1)return u}for(var r=0;r-1)return!1;if(o.filterOption)return o.filterOption.call(u,e,t);if(!t)return!0;var r=String(e[o.valueKey]),i=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(r=(0,a.default)(r)),"value"!==o.matchProp&&(i=(0,a.default)(i))),o.ignoreCase&&("label"!==o.matchProp&&(r=r.toLowerCase()),"value"!==o.matchProp&&(i=i.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&r.substr(0,t.length)===t||"value"!==o.matchProp&&i.substr(0,t.length)===t:"label"!==o.matchProp&&r.indexOf(t)>=0||"value"!==o.matchProp&&i.indexOf(t)>=0})}var r=n(20),a=o(r);e.exports=u},19:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),u=e.onSelect,r=e.optionClassName,i=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=i;return c.map(function(e,i){var c=p&&p.indexOf(e)>-1,m=e===t,v=(0,a.default)(r,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return s.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+i+"-"+e[d],onFocus:o,onSelect:u,option:e,optionIndex:i,ref:function(e){f(e,m)}},l(e,i))})}var r=n(10),a=o(r),i=n(1),s=o(i);e.exports=u},20:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e){return f.default.createElement(E.default,e)}function a(e){var t=e.option,n=e.options,o=e.labelKey,u=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[u]===t[u]}).length}function i(e){var t=e.label;return!!t}function s(e){var t=e.label,n=e.labelKey,o=e.valueKey,u={};return u[o]=t,u[n]=t,u.className="Select-create-option-placeholder",u}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:a,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=O,O.propTypes=E,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var r=Object.assign||function(e){for(var t=1;tu&&s>a||(e.moveCard(o,u),t.getItem().index=u)}}},m=function(e){function t(){u(this,n),i(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}r(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,o=e.connectDragSource,u=e.connectDropTarget,r=e.deleteCard,a=n?0:1,i={"float":"right",cursor:"pointer"};return o(u(l.default.createElement("div",{style:{opacity:a},className:"dragcard"},t,!!r&&l.default.createElement("span",{style:i,onClick:r,title:"删除",className:"rm-icon"},l.default.createElement("i",{className:"fa fa-remove"})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,id:s.PropTypes.any.isRequired,text:s.PropTypes.string.isRequired,deleteCard:s.PropTypes.func,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(d.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(d.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},208:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n0?l.default.createElement("span",null,"共有应用项目 ",l.default.createElement("strong",null,t.length)," 个"):l.default.createElement("span",null,"暂无项目应用")),!o&&t.length>0&&l.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"项目名称"),l.default.createElement("th",null,"问题个数"))),l.default.createElement("tbody",null,f.default.map(t,function(e,t){return l.default.createElement("tr",{key:t},l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key},e.name)):l.default.createElement("span",null,e.name,"(已关闭)")),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key+"/issue?resolution="+(n.key||n.id)},e.issue_count||0)):l.default.createElement("span",null,e.issue_count||0)))})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,view:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.object.isRequired,projects:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},1984:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/resolution"})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/resolution",method:"post",data:t})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/resolution/"+t.id,method:"put",data:t})}})}function r(e){return{type:"RESOLUTION_SELECT",id:e}}function a(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/resolution/"+t,method:"delete"})}})}function i(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_SET_SORT",promise:function(n){return n.request({url:"/project/"+e+"/resolution/batch",method:"post",data:t})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_SET_DEFAULT",promise:function(n){return n.request({url:"/project/"+e+"/resolution/batch",method:"post",data:t})}})}function l(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/resolution/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=u,t.select=r,t.del=a,t.setSort=i,t.setDefault=s,t.viewUsed=l;var c=n(42)}).call(this)}finally{}}});
-//# sourceMappingURL=resolution-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=resolution-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/role-4a5356ab918177034908.js b/public/assets/role-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/role-4a5356ab918177034908.js
rename to public/assets/role-7039fa190a94069b1c9b.js
index 56abe5095..8c5c990cc 100644
--- a/public/assets/role-4a5356ab918177034908.js
+++ b/public/assets/role-7039fa190a94069b1c9b.js
@@ -1,4 +1,4 @@
webpackJsonp([18],{7:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;ts.bottom||i.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var u=this.expandValue(e,o);return u?[u]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,u=t.valueKey;if(o)for(var r=0;ro&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var u=n-this.props.pageSize;n=u<0?0:u}else if("page_down"===e){var u=n+this.props.pageSize;n=u>t.length-1?t.length-1:u}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,u=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var r=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(u,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:r,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(r=null),l.default.createElement(u,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:r,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,i=(0,E.default)("Select-input",this.props.inputProps.className),a=!!this.state.isOpen,c=(0,E.default)((n={},r(n,this._instancePrefix+"-list",a),r(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=s({},this.props.inputProps,{role:"combobox","aria-expanded":""+a,"aria-owns":c,"aria-haspopup":""+a,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:i,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,u(d,["inputClassName"])),h=(0,E.default)(r({},this._instancePrefix+"-list",a));return l.default.createElement("div",s({},f,{role:"combobox","aria-expanded":a,"aria-owns":h,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:i,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(y.default,s({},p,{minWidth:"5"})):l.default.createElement("div",{className:i},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:w.default;return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return i(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:i(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var u=-1;if(t.some(function(e,t){var r=e[n]===o[n];return r&&(u=t),r}),u!==-1)return u}for(var r=0;r-1)return!1;if(o.filterOption)return o.filterOption.call(u,e,t);if(!t)return!0;var r=String(e[o.valueKey]),s=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(r=(0,i.default)(r)),"value"!==o.matchProp&&(s=(0,i.default)(s))),o.ignoreCase&&("label"!==o.matchProp&&(r=r.toLowerCase()),"value"!==o.matchProp&&(s=s.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&r.substr(0,t.length)===t||"value"!==o.matchProp&&s.substr(0,t.length)===t:"label"!==o.matchProp&&r.indexOf(t)>=0||"value"!==o.matchProp&&s.indexOf(t)>=0})}var r=n(20),i=o(r);e.exports=u},19:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),u=e.onSelect,r=e.optionClassName,s=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=s;return c.map(function(e,s){var c=p&&p.indexOf(e)>-1,m=e===t,v=(0,i.default)(r,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return a.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+s+"-"+e[d],onFocus:o,onSelect:u,option:e,optionIndex:s,ref:function(e){f(e,m)}},l(e,s))})}var r=n(10),i=o(r),s=n(1),a=o(s);e.exports=u},20:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e){return f.default.createElement(E.default,e)}function i(e){var t=e.option,n=e.options,o=e.labelKey,u=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[u]===t[u]}).length}function s(e){var t=e.label;return!!t}function a(e){var t=e.label,n=e.labelKey,o=e.valueKey,u={};return u[o]=t,u[n]=t,u.className="Select-create-option-placeholder",u}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(a({},this.props,l,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=O,O.propTypes=E,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var r=Object.assign||function(e){for(var t=1;t=0),"function"==typeof o&&(u.onChange=o.bind(null,this.props.value)),s.default.createElement("input",r({},this.props,{type:"checkbox",name:t},u))}}),t.CheckboxGroup=s.default.createClass({displayName:"CheckboxGroup",propTypes:{name:i.PropTypes.string,defaultValue:i.PropTypes.array,value:i.PropTypes.array,onChange:i.PropTypes.func,children:i.PropTypes.node.isRequired,Component:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.PropTypes.object])},getDefaultProps:function(){return{Component:"div"}},childContextTypes:{checkboxGroup:s.default.PropTypes.object},getChildContext:function(){return{checkboxGroup:{name:this.props.name,checkedValues:this.state.value,onChange:this._onCheckboxChange}}},getInitialState:function(){return{value:this.props.value||this.props.defaultValue||[]}},componentWillReceiveProps:function(e){e.value&&this.setState({value:e.value})},render:function(){var e=this.props,t=e.Component,n=(e.name,e.value,e.onChange,e.children),o=u(e,["Component","name","value","onChange","children"]);return s.default.createElement(t,o,n)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var n;n=t.target.checked?this.state.value.concat(e):this.state.value.filter(function(t){return t!==e}),this._isControlledComponent()?this.setState({value:this.props.value}):this.setState({value:n}),"function"==typeof this.props.onChange&&this.props.onChange(n)}})},589:function(e,t,n){try{(function(){"use strict";function e(e){return(0,f.asyncFuncCreator)({constant:"ROLE_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/role"})}})}function o(e){return(0,f.asyncFuncCreator)({constant:"ROLE_TEAM_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/team"})}})}function u(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/role",method:"post",data:t})}})}function r(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/role/"+t.id,method:"put",data:t})}})}function i(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_SET_PERMISSIONS",promise:function(n){return n.request({url:"/project/"+e+"/role/"+t.id+"/permissions",method:"post",data:t})}})}function s(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_SET_ACTOR",promise:function(n){return n.request({url:"/project/"+e+"/role/"+t.id+"/actor",method:"post",data:t})}})}function a(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_SET_GROUP_ACTOR",promise:function(n){return n.request({url:"/project/"+e+"/role/"+t.id+"/groupactor",method:"post",data:t})}})}function l(e){return{type:"ROLE_SELECT",id:e}}function c(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/role/"+t,method:"delete"})}})}function p(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_RESET",id:t,promise:function(n){return n.request({url:"/project/"+e+"/role/"+t+"/reset"})}})}function d(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/role/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.teamIndex=o,t.create=u,t.update=r,t.setPermission=i,t.setActor=s,t.setGroupActor=a,t.select=l,t.del=c,t.reset=p,t.viewUsed=d;var f=n(42)}).call(this)}finally{}},1871:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0?e.classifyPermissions(i):l.default.createElement("span",null,l.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-"))),operation:l.default.createElement("div",null,x&&_===u[t].id&&!a&&l.default.createElement(p.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:t,title:T,id:"dropdown-basic-"+t,onSelect:e.operateSelect.bind(e)},!n&&l.default.createElement(p.MenuItem,{eventKey:"1"},"编辑"),l.default.createElement(p.MenuItem,{eventKey:"5"},"配置"),"$_sys_$"===o&&l.default.createElement(p.MenuItem,{eventKey:"4"},"查看项目应用"),!n&&!u[t].is_used&&l.default.createElement(p.MenuItem,{eventKey:"2"},"删除"),n&&l.default.createElement(p.MenuItem,{eventKey:"3"},"重置权限")),l.default.createElement("img",{src:g,className:a&&r.id===u[t].id?"loading":"hide"}))})},R=0;R0?l.default.createElement("span",null,"共有应用项目 ",l.default.createElement("strong",null,t.length)," 个"):l.default.createElement("span",null,"暂无项目应用")),!o&&t.length>0&&l.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"项目名称"))),l.default.createElement("tbody",null,f.default.map(t,function(e,t){return l.default.createElement("tr",{key:t},l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key+"/team"},e.name)):l.default.createElement("span",null,e.name,"(已关闭)")))})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:a.PropTypes.func.isRequired,view:a.PropTypes.func.isRequired,loading:a.PropTypes.bool.isRequired,data:a.PropTypes.object.isRequired,projects:a.PropTypes.array.isRequired},enumerable:!0}]),t}(a.Component);t.default=m,e.exports=t.default}).call(this)}finally{}}});
-//# sourceMappingURL=role-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=role-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/screen-4a5356ab918177034908.js b/public/assets/screen-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/screen-4a5356ab918177034908.js
rename to public/assets/screen-7039fa190a94069b1c9b.js
index 4e7b5ebc1..dd27b008d 100644
--- a/public/assets/screen-4a5356ab918177034908.js
+++ b/public/assets/screen-7039fa190a94069b1c9b.js
@@ -3,4 +3,4 @@ newOptionCreator:s,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},cre
a(e),c.default.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},c.default.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout(function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,i(e)},0)},v.setTransition=function(e,t,n){var o=t,r=n;void 0===n&&(r=o,o=""),o=o||"",h.forEach(function(t){e.style[t+"Transition"+o]=r})},v.isCssAnimationSupported=f,t.isCssAnimationSupported=f,t.default=v},364:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=e.children;return E.default.isValidElement(t)&&!t.key?E.default.cloneElement(t,{key:F}):t}function i(){}Object.defineProperty(t,"__esModule",{value:!0});var a=n(16),u=o(a),s=n(343),l=o(s),c=n(13),d=o(c),p=n(254),f=o(p),h=n(15),m=o(h),v=n(14),y=o(v),b=n(1),E=o(b),g=n(9),C=o(g),O=n(366),w=n(365),T=o(w),P=n(261),_=o(P),F="rc_animate_"+Date.now(),x=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return A.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:(0,O.toArrayChildren)(r(n.props))},n.childrenRefs={},n}return(0,y.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){t&&e.performAppear(t.key)})}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=(0,O.toArrayChildren)(r(e)),o=this.props;o.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var i=o.showProp,a=this.currentlyAnimatingKeys,u=o.exclusive?(0,O.toArrayChildren)(r(o)):this.state.children,s=[];i?(u.forEach(function(e){var t=e&&(0,O.findChildInChildrenByKey)(n,e.key),o=void 0;o=t&&t.props[i]||!e.props[i]?t:E.default.cloneElement(t||e,(0,l.default)({},i,!0)),o&&s.push(o)}),n.forEach(function(e){e&&(0,O.findChildInChildrenByKey)(u,e.key)||s.push(e)})):s=(0,O.mergeChildren)(u,n),this.setState({children:s}),n.forEach(function(e){var n=e&&e.key;if(!e||!a[n]){var o=e&&(0,O.findChildInChildrenByKey)(u,n);if(i){var r=e.props[i];if(o){var s=(0,O.findShownChildInChildrenByKey)(u,n,i);!s&&r&&t.keysToEnter.push(n)}else r&&t.keysToEnter.push(n)}else o||t.keysToEnter.push(n)}}),u.forEach(function(e){var o=e&&e.key;if(!e||!a[o]){var r=e&&(0,O.findChildInChildrenByKey)(n,o);if(i){var u=e.props[i];if(r){var s=(0,O.findShownChildInChildrenByKey)(n,o,i);!s&&u&&t.keysToLeave.push(o)}else u&&t.keysToLeave.push(o)}else r||t.keysToLeave.push(o)}})}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?(0,O.findShownChildInChildrenByKey)(e,t,n):(0,O.findChildInChildrenByKey)(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,o=null;n&&(o=n.map(function(n){if(null===n||void 0===n)return n;if(!n.key)throw new Error("must set key for children");return E.default.createElement(T.default,{key:n.key,ref:function(t){return e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var r=t.component;if(r){var i=t;return"string"==typeof r&&(i=(0,u.default)({className:t.className,style:t.style},t.componentProps)),E.default.createElement(r,i,o)}return o[0]||null}}]),t}(E.default.Component);x.propTypes={component:C.default.any,componentProps:C.default.object,animation:C.default.object,transitionName:C.default.oneOfType([C.default.string,C.default.object]),transitionEnter:C.default.bool,transitionAppear:C.default.bool,exclusive:C.default.bool,transitionLeave:C.default.bool,onEnd:C.default.func,onEnter:C.default.func,onLeave:C.default.func,onAppear:C.default.func,showProp:C.default.string},x.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:i,onEnter:i,onLeave:i,onAppear:i};var A=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var o=e.props;if(delete e.currentlyAnimatingKeys[t],!o.exclusive||o===e.nextProps){var i=(0,O.toArrayChildren)(r(o));e.isValidChildByKey(i,t)?"appear"===n?_.default.allowAppearCallback(o)&&(o.onAppear(t),o.onEnd(t,!0)):_.default.allowEnterCallback(o)&&(o.onEnter(t),o.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var o=(0,O.toArrayChildren)(r(n));if(e.isValidChildByKey(o,t))e.performEnter(t);else{var i=function(){_.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,O.isSameChildren)(e.state.children,o,n.showProp)?i():e.setState({children:o},i)}}}};t.default=x,e.exports=t.default},365:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(236),i=o(r),a=n(13),u=o(a),s=n(254),l=o(s),c=n(15),d=o(c),p=n(14),f=o(p),h=n(1),m=o(h),v=n(11),y=o(v),b=n(9),E=o(b),g=n(359),C=o(g),O=n(261),w=o(O),T={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},P=function(e){function t(){return(0,u.default)(this,t),(0,d.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){w.default.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){w.default.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){w.default.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,o=y.default.findDOMNode(this),r=this.props,a=r.transitionName,u="object"===("undefined"==typeof a?"undefined":(0,i.default)(a));this.stop();var s=function(){n.stopper=null,t()};if((g.isCssAnimationSupported||!r.animation[e])&&a&&r[T[e]]){var l=u?a[e]:a+"-"+e,c=l+"-active";u&&a[e+"Active"]&&(c=a[e+"Active"]),this.stopper=(0,C.default)(o,{name:l,active:c},s)}else this.stopper=r.animation[e](o,s)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(m.default.Component);P.propTypes={children:E.default.any},t.default=P,e.exports=t.default},366:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=[];return d.default.Children.forEach(e,function(e){t.push(e)}),t}function i(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function a(e,t,n){var o=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(o)throw new Error("two child with same key for children");o=e}}),o}function u(e,t,n){var o=0;return e&&e.forEach(function(e){o||(o=e&&e.key===t&&!e.props[n])}),o}function s(e,t,n){var o=e.length===t.length;return o&&e.forEach(function(e,r){var i=t[r];e&&i&&(e&&!i||!e&&i?o=!1:e.key!==i.key?o=!1:n&&e.props[n]!==i.props[n]&&(o=!1))}),o}function l(e,t){var n=[],o={},r=[];return e.forEach(function(e){e&&i(t,e.key)?r.length&&(o[e.key]=r,r=[]):r.push(e)}),t.forEach(function(e){e&&o.hasOwnProperty(e.key)&&(n=n.concat(o[e.key])),n.push(e)}),n=n.concat(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=r,t.findChildInChildrenByKey=i,t.findShownChildInChildrenByKey=a,t.findHiddenChildInChildrenByKey=u,t.isSameChildren=s,t.mergeChildren=l;var c=n(1),d=o(c)},367:function(e,t,n){"use strict";function o(e){var t=e.refs,n=t.nav,o=(0,r.offset)(n),i=t.inkBar,a=t.activeTab,u=e.props.tabPosition;if(a){var s=a,l=(0,r.offset)(s),c=(0,r.getTransformPropertyName)();if("top"===u||"bottom"===u){var d=l.left-o.left;c?(i.style[c]="translate3d("+d+"px,0,0)",i.style.width=s.offsetWidth+"px",i.style.height=""):(i.style.left=d+"px",i.style.top="",i.style.bottom="",i.style.right=n.offsetWidth-d-s.offsetWidth+"px")}else{var p=l.top-o.top;c?(i.style[c]="translate3d(0,"+p+"px,0)",i.style.height=s.offsetHeight+"px",i.style.width=""):(i.style.left="",i.style.right="",i.style.top=p+"px",i.style.bottom=n.offsetHeight-p-s.offsetHeight+"px")}}i.style.display=a?"block":"none"}Object.defineProperty(t,"__esModule",{value:!0});var r=n(263);t.default={componentDidUpdate:function(){o(this)},componentDidMount:function(){o(this)}},e.exports=t.default},368:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={LEFT:37,UP:38,RIGHT:39,DOWN:40},e.exports=t.default},369:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0?(c=!1,this.setOffset(0),u=0):su?(i+=a-u,this.setState({offset:i})):a+ra?"backward":"forward";this.setState({activeKey:e,tabMovingDirection:s})}else this.setState({activeKey:e})},render:function(){var e,t=this.props,n=t.destroyInactiveTabPane,o=t.prefixCls,i=t.tabPosition,a=t.className,u=t.animation,l=(0,b.default)((e={},r(e,o,1),r(e,o+"-"+i,1),r(e,a,!!a),e)),c=this.state.tabMovingDirection,d=this.getTabPanes(),p=void 0;p=t.transitionName&&t.transitionName[c||"backward"],!p&&u&&(p=o+"-"+u+"-"+(c||"backward")),n&&(d=d.filter(function(e){return e.props.active})),p&&(d=n?s.default.createElement(v.default,{exclusive:!0,component:"div",transitionName:p},d):s.default.createElement(v.default,{showProp:"active",exclusive:!0,component:"div",transitionName:p},d));var f=[s.default.createElement(h.default,{prefixCls:o,key:"nav",onKeyDown:this.onNavKeyDown,tabBarExtraContent:this.props.tabBarExtraContent,tabPosition:i,style:t.navStyle,onTabClick:this.onTabClick,tabMovingDirection:c,panels:this.props.children,activeKey:this.state.activeKey}),s.default.createElement("div",{className:o+"-content",style:t.contentStyle,key:"content"},d)];return"bottom"===i&&f.reverse(),s.default.createElement("div",{className:l,style:t.style},f)}});E.TabPane=p.default,t.default=E,e.exports=t.default},371:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TabPane=t.default=void 0;var r=n(370),i=o(r),a=n(262),u=o(a);t.default=i.default,t.TabPane=u.default},587:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n>"),c.default.createElement("div",{style:{"float":"right",marginTop:"15px"}},'注意:如果此页面将作为问题的创建或编辑页面,首先应将 "主题" 字段添加到列表,且将其设置为必填字段。')),c.default.createElement(p.Col,{sm:6},y.length>0&&c.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变显示顺序。"),y.length>0?y.map(function(t,n){return c.default.createElement(_.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:e.deleteCard.bind(e,n)})}):c.default.createElement("p",null,"界面列表为空。")))))),c.default.createElement(b.TabPane,{tab:"必填字段",key:"3"},c.default.createElement("div",{style:{paddingTop:"15px"}},c.default.createElement(p.FormGroup,{controlId:"formControlsSelect"},c.default.createElement(p.ControlLabel,null,"必填字段"),c.default.createElement(h.default,{simpleValue:!0,options:O,clearable:!1,value:u.value,onChange:function(e){u.onChange(e)},placeholder:"选择必填字段(可多选)",multi:!0})))))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!d&&n[this.state.ecode]),c.default.createElement("img",{src:F,className:d?"loading":"hide"}),c.default.createElement(p.Button,{disabled:d||l,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:d,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,submitting:l.PropTypes.bool,invalid:l.PropTypes.bool,values:l.PropTypes.object,fields:l.PropTypes.object,options:l.PropTypes.object,handleSubmit:l.PropTypes.func.isRequired,close:l.PropTypes.func.isRequired,create:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,g.DragDropContext)(O.default)(t)||t,t=(0,d.reduxForm)({form:"screen",fields:["name","description","required_fields"],validate:x})(t)||t}(l.Component);t.default=A,e.exports=t.default}).call(this)}finally{}},1883:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n>"),l.default.createElement("div",{style:{"float":"right",marginTop:"15px"}},'注意:如果此页面将作为问题的创建或编辑页面,首先应将 "主题" 字段添加到列表,且将其设置为必填字段。')),l.default.createElement(c.Col,{sm:6},n.length>0&&l.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变显示顺序。"),n.length>0?n.map(function(t,n){return l.default.createElement(y.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:e.deleteCard.bind(e,n)})}):l.default.createElement("p",null,"界面列表为空。"))))),l.default.createElement(c.Modal.Footer,null,l.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!u&&a[this.state.ecode]),l.default.createElement("img",{src:w,className:u?"loading":"hide"}),l.default.createElement(c.Button,{disabled:u||o==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),l.default.createElement(c.Button,{bsStyle:"link",disabled:u,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool,config:s.PropTypes.func.isRequired,data:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragDropContext)(f.default)(t)||t}(s.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},1887:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t0?l.default.createElement("span",null,"共有应用项目 ",l.default.createElement("strong",null,t.length)," 个"):l.default.createElement("span",null,"暂无项目应用")),!o&&t.length>0&&l.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"项目名称"),l.default.createElement("th",null,"问题类型"),l.default.createElement("th",null,"工作流"))),l.default.createElement("tbody",null,f.default.map(t,function(e,t){return l.default.createElement("tr",{key:t},l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):l.default.createElement("span",null,e.name,"(已关闭)")),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.types)?"-":f.default.map(e.types,function(t,n){return l.default.createElement("li",{key:n},l.default.createElement(d.Link,{to:"/project/"+e.key+"/type"},t.name))}))):l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.types)?"-":f.default.map(e.types,function(e,t){return l.default.createElement("li",{key:t},e.name)})))),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.workflows)?"-":f.default.map(e.workflows,function(t,n){return l.default.createElement("li",{key:n},l.default.createElement(d.Link,{to:"/project/"+e.key+"/workflow/"+t.id},t.name))}))):l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.workflows)?"-":f.default.map(e.workflows,function(e,t){return l.default.createElement("li",{key:t},e.name)})))))})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,view:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.object.isRequired,projects:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},1986:function(e,t,n){try{(function(){"use strict";function e(e){return(0,s.asyncFuncCreator)({constant:"SCREEN_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/screen"})}})}function o(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/screen",method:"post",data:t})}})}function r(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/screen/"+t.id,method:"put",data:t})}})}function i(e){return{type:"SCREEN_SELECT",id:e}}function a(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/screen/"+t,method:"delete"})}})}function u(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/screen/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=r,t.select=i,t.del=a,t.viewUsed=u;var s=n(42)}).call(this)}finally{}}});
-//# sourceMappingURL=screen-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=screen-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/state-4a5356ab918177034908.js b/public/assets/state-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/state-4a5356ab918177034908.js
rename to public/assets/state-7039fa190a94069b1c9b.js
index f342860b4..92d804bfc 100644
--- a/public/assets/state-4a5356ab918177034908.js
+++ b/public/assets/state-7039fa190a94069b1c9b.js
@@ -1,4 +1,4 @@
webpackJsonp([14],{7:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;ti.bottom||a.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var u=this.expandValue(e,o);return u?[u]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,u=t.valueKey;if(o)for(var r=0;ro&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var u=n-this.props.pageSize;n=u<0?0:u}else if("page_down"===e){var u=n+this.props.pageSize;n=u>t.length-1?t.length-1:u}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,u=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var r=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(u,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:r,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(r=null),l.default.createElement(u,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:r,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,a=(0,E.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,c=(0,E.default)((n={},r(n,this._instancePrefix+"-list",s),r(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=i({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":c,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,u(d,["inputClassName"])),h=(0,E.default)(r({},this._instancePrefix+"-list",s));return l.default.createElement("div",i({},f,{role:"combobox","aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(y.default,i({},p,{minWidth:"5"})):l.default.createElement("div",{className:a},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:w.default;return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var u=-1;if(t.some(function(e,t){var r=e[n]===o[n];return r&&(u=t),r}),u!==-1)return u}for(var r=0;r-1)return!1;if(o.filterOption)return o.filterOption.call(u,e,t);if(!t)return!0;var r=String(e[o.valueKey]),i=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(r=(0,a.default)(r)),"value"!==o.matchProp&&(i=(0,a.default)(i))),o.ignoreCase&&("label"!==o.matchProp&&(r=r.toLowerCase()),"value"!==o.matchProp&&(i=i.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&r.substr(0,t.length)===t||"value"!==o.matchProp&&i.substr(0,t.length)===t:"label"!==o.matchProp&&r.indexOf(t)>=0||"value"!==o.matchProp&&i.indexOf(t)>=0})}var r=n(20),a=o(r);e.exports=u},19:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),u=e.onSelect,r=e.optionClassName,i=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=i;return c.map(function(e,i){var c=p&&p.indexOf(e)>-1,m=e===t,v=(0,a.default)(r,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return s.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+i+"-"+e[d],onFocus:o,onSelect:u,option:e,optionIndex:i,ref:function(e){f(e,m)}},l(e,i))})}var r=n(10),a=o(r),i=n(1),s=o(i);e.exports=u},20:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e){return f.default.createElement(E.default,e)}function a(e){var t=e.option,n=e.options,o=e.labelKey,u=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[u]===t[u]}).length}function i(e){var t=e.label;return!!t}function s(e){var t=e.label,n=e.labelKey,o=e.valueKey,u={};return u[o]=t,u[n]=t,u.className="Select-create-option-placeholder",u}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:a,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=O,O.propTypes=E,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var r=Object.assign||function(e){for(var t=1;tu&&s>a||(e.moveCard(o,u),t.getItem().index=u)}}},m=function(e){function t(){u(this,n),i(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}r(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,o=e.connectDragSource,u=e.connectDropTarget,r=e.deleteCard,a=n?0:1,i={"float":"right",cursor:"pointer"};return o(u(l.default.createElement("div",{style:{opacity:a},className:"dragcard"},t,!!r&&l.default.createElement("span",{style:i,onClick:r,title:"删除",className:"rm-icon"},l.default.createElement("i",{className:"fa fa-remove"})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,id:s.PropTypes.any.isRequired,text:s.PropTypes.string.isRequired,deleteCard:s.PropTypes.func,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(d.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(d.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},208:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n0?l.default.createElement("span",null,"共有应用项目 ",l.default.createElement("strong",null,t.length)," 个"):l.default.createElement("span",null,"暂无项目应用")),!o&&t.length>0&&l.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"项目名称"),l.default.createElement("th",null,"问题个数"),l.default.createElement("th",null,"工作流"))),l.default.createElement("tbody",null,f.default.map(t,function(e,t){return l.default.createElement("tr",{key:t},l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key},e.name)):l.default.createElement("span",null,e.name,"(已关闭)")),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key+"/issue?state="+(n.key||n.id)},e.issue_count||0)):l.default.createElement("span",null,e.issue_count||0)),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.workflows)?"-":f.default.map(e.workflows,function(t,n){return l.default.createElement("li",{key:n},l.default.createElement(p.Link,{to:"/project/"+e.key+"/workflow/"+t.id},t.name))}))):l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.workflows)?"-":f.default.map(e.workflows,function(e,t){return l.default.createElement("li",{key:t},e.name)})))))})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,view:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.object.isRequired,projects:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},1987:function(e,t,n){try{(function(){"use strict";function e(e){return(0,l.asyncFuncCreator)({constant:"STATE_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/state"})}})}function o(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/state",method:"post",data:t})}})}function u(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/state/"+t.id,method:"put",data:t})}})}function r(e){return{type:"STATE_SELECT",id:e}}function a(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/state/"+t,method:"delete"})}})}function i(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_SET_SORT",promise:function(n){return n.request({url:"/project/"+e+"/state/batch",method:"post",data:t})}})}function s(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/state/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=u,t.select=r,t.del=a,t.setSort=i,t.viewUsed=s;var l=n(42)}).call(this)}finally{}}});
-//# sourceMappingURL=state-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=state-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/summary-4a5356ab918177034908.js b/public/assets/summary-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/summary-4a5356ab918177034908.js
rename to public/assets/summary-7039fa190a94069b1c9b.js
index 76210c1d2..274111311 100644
--- a/public/assets/summary-4a5356ab918177034908.js
+++ b/public/assets/summary-7039fa190a94069b1c9b.js
@@ -1,2 +1,2 @@
webpackJsonp([29],{160:function(e,t,l){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){var l={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(l[a]=e[a]);return l}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var r=Object.assign||function(e){for(var t=1;t=0),"function"==typeof a&&(n.onChange=a.bind(null,this.props.value)),u.default.createElement("input",r({},this.props,{type:"checkbox",name:t},n))}}),t.CheckboxGroup=u.default.createClass({displayName:"CheckboxGroup",propTypes:{name:o.PropTypes.string,defaultValue:o.PropTypes.array,value:o.PropTypes.array,onChange:o.PropTypes.func,children:o.PropTypes.node.isRequired,Component:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.func,o.PropTypes.object])},getDefaultProps:function(){return{Component:"div"}},childContextTypes:{checkboxGroup:u.default.PropTypes.object},getChildContext:function(){return{checkboxGroup:{name:this.props.name,checkedValues:this.state.value,onChange:this._onCheckboxChange}}},getInitialState:function(){return{value:this.props.value||this.props.defaultValue||[]}},componentWillReceiveProps:function(e){e.value&&this.setState({value:e.value})},render:function(){var e=this.props,t=e.Component,l=(e.name,e.value,e.onChange,e.children),a=n(e,["Component","name","value","onChange","children"]);return u.default.createElement(t,a,l)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var l;l=t.target.checked?this.state.value.concat(e):this.state.value.filter(function(t){return t!==e}),this._isControlledComponent()?this.setState({value:this.props.value}):this.setState({value:l}),"function"==typeof this.props.onChange&&this.props.onChange(l)}})},1912:function(e,t,l){try{(function(){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l]);return t.default=e,t}function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return{actions:(0,m.bindActionCreators)(h,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0?i.default.createElement("div",{style:{height:"120px",margin:"0px -10px 25px -10px"}},i.default.createElement(c.FormGroup,null,y.default.map(n.filters||[],function(e,t){return i.default.createElement(c.Col,{sm:3,key:t},i.default.createElement("div",{style:{padding:"30px 0px",textAlign:"center",backgroundColor:s[t],borderRadius:"4px"}},i.default.createElement("div",{style:{fontWeight:600,fontSize:"30px"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue"+(y.default.isEmpty(e.query)?"":"?"+h.stringify(e.query||{})),style:{color:"#fff"}},e.count)),i.default.createElement("div",{style:{fontSize:"14px",color:"#fff",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},title:e.name},e.name)))}))):i.default.createElement("div",{style:{paddingLeft:"5px",marginBottom:"20px"}},i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue"},"全部问题")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved"},"未解决的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?assignee=me&resolution=Unresolved"},"分配给我的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?reporter=me"},"我报告的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?watcher=me"},"我关注的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?created_at=2w"},"最近增加的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?updated_at=2w"},"最近更新的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolved_at=2w"},"最近解决的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?closed_at=2w"},"最近关闭的"))),i.default.createElement(c.Panel,{style:{height:"320px"},header:i.default.createElement("div",null,i.default.createElement("span",null,"问题动态:"+(r.twoWeeksAgo||"")+" ~ 现在"),i.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({pulseShowModel:"detail"==e.state.pulseShowModel?"charts":"detail"})},title:"切换"},i.default.createElement("i",{className:"fa fa-retweet"})))},"detail"==this.state.pulseShowModel&&i.default.createElement(c.Table,{responsive:!0,hover:!0},i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"日期"),y.default.map(n.trend||[],function(e,t){return i.default.createElement("th",{key:t},e.day.substr(5))}),i.default.createElement("th",null,"合计"))),i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?created_at=2w"},"新建问题")),y.default.map(n.trend||[],function(e,t){return i.default.createElement("td",{key:t},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?created_at="+e.day+"~"+e.day},e.new))}),i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?created_at=2w"},y.default.reduce(n.trend||[],function(e,t){return e+t.new},0)))),i.default.createElement("tr",null,i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolved_at=2w"},"解决问题")),y.default.map(n.trend||[],function(e,t){return i.default.createElement("td",{key:t},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolved_at="+e.day+"~"+e.day},e.resolved))}),i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolved_at=2w"},y.default.reduce(n.trend||[],function(e,t){return e+t.resolved},0)))),i.default.createElement("tr",null,i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?closed_at=2w"},"关闭问题")),y.default.map(n.trend||[],function(e,t){return i.default.createElement("td",{key:t},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?closed_at="+e.day+"~"+e.day},e.closed))}),i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?closed_at=2w"},y.default.reduce(n.trend||[],function(e,t){return e+t.closed},0)))))),"charts"==this.state.pulseShowModel&&i.default.createElement("div",null,i.default.createElement(f.CheckboxGroup,{name:"statItems",value:this.state.pulseStatItems,onChange:function(t){e.setState({pulseStatItems:t})},style:{"float":"right",margin:"5px 10px 0px 0px",height:"30px"}},i.default.createElement("div",{style:{"float":"left"}},i.default.createElement(f.Checkbox,{value:"new",style:{"float":"left"}}),i.default.createElement("span",{style:{marginLeft:"2px"}},"新建的")),i.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},i.default.createElement(f.Checkbox,{value:"resolve"}),i.default.createElement("span",{style:{marginLeft:"2px"}},"已解决的")),i.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},i.default.createElement(f.Checkbox,{value:"close"}),i.default.createElement("span",{style:{marginLeft:"2px"}},"已关闭的")))),"charts"==this.state.pulseShowModel&&i.default.createElement("div",{className:"report-shape-container"},i.default.createElement(p.LineChart,{width:.95*l.containerWidth,height:200,data:n.trend||[],style:{margin:"35px auto"}},i.default.createElement(p.XAxis,{dataKey:"day"}),i.default.createElement(p.YAxis,null),i.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),i.default.createElement(p.Tooltip,null),i.default.createElement(p.Legend,null),this.state.pulseStatItems.indexOf("new")!==-1&&i.default.createElement(p.Line,{type:"monotone",dataKey:"new",name:"新建的",stroke:"#4572A7",fill:"#4572A7"}),this.state.pulseStatItems.indexOf("resolve")!==-1&&i.default.createElement(p.Line,{type:"monotone",dataKey:"resolved",name:"已解决的",stroke:"#89A54E",fill:"#89A54E"}),this.state.pulseStatItems.indexOf("close")!==-1&&i.default.createElement(p.Line,{type:"monotone",dataKey:"closed",name:"已关闭的",stroke:"#AA4643",fill:"#AA4643"})))),i.default.createElement(c.Panel,{header:i.default.createElement("div",null,i.default.createElement("span",null,"未解决问题:按经办人"),i.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({assigneeShowModel:"detail"==e.state.assigneeShowModel?"percentage":"detail"})},title:"切换"},i.default.createElement("i",{className:"fa fa-retweet"})))},n.assignee_unresolved_issues&&!y.default.isEmpty(n.assignee_unresolved_issues)?i.default.createElement(c.Table,{responsive:!0,hover:!0},"detail"==this.state.assigneeShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"经办人"),i.default.createElement("th",null,"问题"),y.default.map(r.types||[],function(e){return i.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.assigneeShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"经办人"),i.default.createElement("th",null,"问题"),i.default.createElement("th",null,"百分比"))),"detail"==this.state.assigneeShowModel&&i.default.createElement("tbody",null,y.default.map(n.assignee_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&assignee="+t},r.users&&r.users[t]||"")),i.default.createElement("td",{style:{width:"10%"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&assignee="+t},e.total||0)),y.default.map(r.types||[],function(l){return i.default.createElement("td",{key:l.id},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&type="+l.id+"&assignee="+t},e[l.id]||0))}))})),"percentage"==this.state.assigneeShowModel&&i.default.createElement("tbody",null,y.default.map(n.assignee_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&assignee="+t},r.users&&r.users[t]||"")),i.default.createElement("td",{style:{width:"10%"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&assignee="+t},e.total||0)),i.default.createElement("td",null,i.default.createElement("table",{style:{width:"100%"}},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{style:{width:e.percent+"%"}},i.default.createElement("div",{className:"color-bar"})),i.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):i.default.createElement("div",null,"暂无信息")),i.default.createElement(c.Panel,{header:i.default.createElement("div",null,i.default.createElement("span",null,"未解决问题:按优先级"),i.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({priorityShowModel:"detail"==e.state.priorityShowModel?"percentage":"detail"})},title:"切换"},i.default.createElement("i",{className:"fa fa-retweet"})))},n.priority_unresolved_issues&&!y.default.isEmpty(n.priority_unresolved_issues)?i.default.createElement(c.Table,{responsive:!0,hover:!0},"detail"==this.state.priorityShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"优先级"),i.default.createElement("th",null,"问题"),y.default.map(r.types||[],function(e){return i.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.priorityShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"优先级"),i.default.createElement("th",null,"问题"),i.default.createElement("th",null,"百分比"))),"detail"==this.state.priorityShowModel&&i.default.createElement("tbody",null,y.default.map(n.priority_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&priority="+t},r.priorities[t]):"其他"),i.default.createElement("td",{style:{width:"10%"}},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&priority="+t},e.total||0):e.total||0),y.default.map(r.types||[],function(l){return i.default.createElement("td",{key:l.id},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&type="+l.id+"&priority="+t},e[l.id]||0):e[l.id]||0)}))})),"percentage"==this.state.priorityShowModel&&i.default.createElement("tbody",null,y.default.map(n.priority_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&priority="+t},r.priorities[t]):"其他"),i.default.createElement("td",{style:{width:"10%"}},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&priority="+t},e.total||0):e.total||0),i.default.createElement("td",null,i.default.createElement("table",{style:{width:"100%"}},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{style:{width:e.percent+"%"}},i.default.createElement("div",{className:"color-bar"})),i.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):i.default.createElement("div",null,"暂无信息")),i.default.createElement(c.Panel,{header:i.default.createElement("div",null,i.default.createElement("span",null,"未解决问题:按模块"),i.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({moduleShowModel:"detail"==e.state.moduleShowModel?"percentage":"detail"})},title:"切换"},i.default.createElement("i",{className:"fa fa-retweet"})))},n.module_unresolved_issues&&!y.default.isEmpty(n.module_unresolved_issues)?i.default.createElement(c.Table,{responsive:!0,hover:!0},"detail"==this.state.moduleShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"模块"),i.default.createElement("th",null,"问题"),y.default.map(r.types||[],function(e){return i.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.moduleShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"模块"),i.default.createElement("th",null,"问题"),i.default.createElement("th",null,"百分比"))),"detail"==this.state.moduleShowModel&&i.default.createElement("tbody",null,y.default.map(n.module_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&module="+t},r.modules[t]):"其他"),i.default.createElement("td",{style:{width:"10%"}},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&module="+t},e.total||0):e.total||0),y.default.map(r.types||[],function(l){return i.default.createElement("td",{key:l.id},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&type="+l.id+"&module="+t},e[l.id]||0):e[l.id]||0)}))})),"percentage"==this.state.moduleShowModel&&i.default.createElement("tbody",null,y.default.map(n.module_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&module="+t},r.modules[t]):"其他"),i.default.createElement("td",{style:{width:"10%"}},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&module="+t},e.total||0):e.total||0),i.default.createElement("td",null,i.default.createElement("table",{style:{width:"100%"}},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{style:{width:e.percent+"%"}},i.default.createElement("div",{className:"color-bar"})),i.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):i.default.createElement("div",null,"暂无信息")))}}],[{key:"propTypes",value:{layout:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,data:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,loading:s.PropTypes.bool.isRequired,index:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},1988:function(e,t,l){try{(function(){"use strict";function e(e){return(0,a.asyncFuncCreator)({constant:"PROJECT_SUMMARY",promise:function(t){return t.request({url:"/project/"+e+"/summary"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e;var a=l(42)}).call(this)}finally{}}});
-//# sourceMappingURL=summary-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=summary-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/syssetting-4a5356ab918177034908.js b/public/assets/syssetting-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/syssetting-4a5356ab918177034908.js
rename to public/assets/syssetting-7039fa190a94069b1c9b.js
index 0d6c3852b..2e05ce260 100644
--- a/public/assets/syssetting-4a5356ab918177034908.js
+++ b/public/assets/syssetting-7039fa190a94069b1c9b.js
@@ -2,4 +2,4 @@ webpackJsonp([17],{7:function(e,t,n){"use strict";function o(e){return e&&e.__es
newOptionCreator:s,promptTextCreator:i,shouldKeyDownEventCreateNewOption:c}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,o=e.onNewOptionClick,a=e.options,u=void 0===a?[]:a;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var r=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),l=this.isOptionUnique({option:r});l&&(o?o(r):(u.unshift(r),this.select.selectValue(r)))}},filterOptions:function S(){var e=this.props,S=e.filterOptions,t=e.isValidNewOption,n=(e.options,e.promptTextCreator),o=arguments[2]||[],a=S.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var u=this.props.newOptionCreator,r=u({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),l=this.isOptionUnique({option:r,options:o.concat(a)});if(l){var s=n(this.inputValue);this._createPlaceholderOption=u({label:s,labelKey:this.labelKey,valueKey:this.valueKey}),a.unshift(this._createPlaceholderOption)}}return a},isOptionUnique:function T(e){var t=e.option,n=e.options,T=this.props.isOptionUnique;return n=n||this.select.filterOptions(),T({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})},menuRenderer:function P(e){var P=this.props.menuRenderer;return P(p({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))},onInputChange:function _(e){var _=this.props.onInputChange;_&&_(e),this.inputValue=e},onInputKeyDown:function A(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,A=t.onInputKeyDown,o=this.select.getFocusedOption();o&&o===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):A&&A(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},focus:function(){this.select.focus()},render:function(){var e=this,t=this.props,n=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,a(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"])),o=this.props.children;o||(o=u);var r=p({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return o(r)}});e.exports=F},26:function(e,t,n){"use strict";function o(e){return e}function a(e,t,n){function a(e,t){var n=v.hasOwnProperty(t)?v[t]:null;w.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,u=o.__reactAutoBindPairs;n.hasOwnProperty(i)&&E.mixins(e,n.mixins);for(var r in n)if(n.hasOwnProperty(r)&&r!==i){var l=n[r],c=o.hasOwnProperty(r);if(a(c,r),E.hasOwnProperty(r))E[r](e,l);else{var p=v.hasOwnProperty(r),h="function"==typeof l,m=h&&!p&&!c&&n.autobind!==!1;if(m)u.push(r,l),o[r]=l;else if(c){var b=v[r];s(p&&("DEFINE_MANY_MERGED"===b||"DEFINE_MANY"===b),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",b,r),"DEFINE_MANY_MERGED"===b?o[r]=d(o[r],l):"DEFINE_MANY"===b&&(o[r]=f(o[r],l))}else o[r]=l}}}else;}function c(e,t){if(t)for(var n in t){var o=t[n];if(t.hasOwnProperty(n)){var a=n in E;s(!a,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var u=n in e;s(!u,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=o}}}function p(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function d(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);if(null==n)return o;if(null==o)return n;var a={};return p(a,n),p(a,o),a}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;ne.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,i,{isLoading:r,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=w,w.propTypes=E,w.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var u=Object.assign||function(e){for(var t=1;t=0),"function"==typeof o&&(a.onChange=o.bind(null,this.props.value)),l.default.createElement("input",u({},this.props,{type:"checkbox",name:t},a))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:r.PropTypes.string,defaultValue:r.PropTypes.array,value:r.PropTypes.array,onChange:r.PropTypes.func,children:r.PropTypes.node.isRequired,Component:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.func,r.PropTypes.object])},getDefaultProps:function(){return{Component:"div"}},childContextTypes:{checkboxGroup:l.default.PropTypes.object},getChildContext:function(){return{checkboxGroup:{name:this.props.name,checkedValues:this.state.value,onChange:this._onCheckboxChange}}},getInitialState:function(){return{value:this.props.value||this.props.defaultValue||[]}},componentWillReceiveProps:function(e){e.value&&this.setState({value:e.value})},render:function(){var e=this.props,t=e.Component,n=(e.name,e.value,e.onChange,e.children),o=a(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,o,n)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var n;n=t.target.checked?this.state.value.concat(e):this.state.value.filter(function(t){return t!==e}),this._isControlledComponent()?this.setState({value:this.props.value}):this.setState({value:n}),"function"==typeof this.props.onChange&&this.props.onChange(n)}})},1895:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0?f.default.map(F.sys_admin||[],function(e,t){return 0===t?e.name:", "+e.name}):"-"))});var x=[];return"properties"==this.state.tabKey?x=P:"timetrack"==this.state.tabKey?x=_:"mailserver"==this.state.tabKey?x=A:"sysroles"==this.state.tabKey&&(x=M),i.default.createElement("div",null,i.default.createElement(p.Nav,{bsStyle:"pills",style:{marginTop:"10px","float":"left",lineHeight:"1.0"},activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this)},i.default.createElement(p.NavItem,{eventKey:"properties",href:"#"},"通用设置"),i.default.createElement(p.NavItem,{eventKey:"mailserver",href:"#"},"邮件服务器"),i.default.createElement(p.NavItem,{eventKey:"sysroles",href:"#"},"系统角色")),i.default.createElement(c.BootstrapTable,{data:x,bordered:!1,hover:!0,trClassName:"tr-middle"},i.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),i.default.createElement(c.TableHeaderColumn,{width:"260",dataField:"title"}),i.default.createElement(c.TableHeaderColumn,{width:"200",dataField:"contents"}),i.default.createElement(c.TableHeaderColumn,{dataField:"blank"})),"properties"==this.state.tabKey&&i.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},i.default.createElement(p.Button,{disabled:u,onClick:function(){e.setState({propertiesModalShow:!0})}},"修改设置")),"mailserver"==this.state.tabKey&&i.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},i.default.createElement(p.Button,{disabled:u,onClick:function(){e.setState({sendTestMailModalShow:!0})}},"发送测试邮件")),"sysroles"==this.state.tabKey&&i.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},i.default.createElement(p.Button,{disabled:u,onClick:function(){e.setState({configActorModalShow:!0})}},"角色配置")),this.state.propertiesModalShow&&i.default.createElement(h,{show:!0,close:this.propertiesModalClose,update:o,data:s,i18n:n}),this.state.timeTrackModalShow&&i.default.createElement(m,{show:!0,close:this.timeTrackModalClose,update:o,data:g,i18n:n}),this.state.smtpServerModalShow&&i.default.createElement(b,{show:!0,close:this.smtpServerModalClose,update:o,data:w.smtp||{},i18n:n}),this.state.setSendMailShow&&i.default.createElement(y,{show:!0,close:this.setSendMailModalClose,update:o,data:w.send||{},i18n:n}),this.state.sendTestMailModalShow&&i.default.createElement(v,{show:!0,close:this.sendTestMailModalClose,sendMail:a,i18n:n}),this.state.configActorModalShow&&i.default.createElement(E,{show:!0,close:this.configActorModalClose,update:o,data:F,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool.isRequired,settings:s.PropTypes.object.isRequired,show:s.PropTypes.func.isRequired,update:s.PropTypes.func.isRequired,resetPwd:s.PropTypes.func.isRequired,sendTestMail:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1898:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tr.bottom||i.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,u="object"==typeof t?t:this.props;if(u.multi){if("string"==typeof e&&(e=e.split(u.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,u)}).filter(function(e){return e})}var s=this.expandValue(e,u);return s?[s]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var u=t.options,s=t.valueKey;if(u)for(var o=0;ou&&this.focusOption(n[u+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,u=0;u0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var s=n-this.props.pageSize;n=s<0?0:s}else if("page_down"===e){var s=n+this.props.pageSize;n=s>t.length-1?t.length-1:s}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,u=this.props.valueRenderer||this.getOptionLabel,s=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var o=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(s,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:o,onRemove:n.removeValue,value:e},u(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(o=null),l.default.createElement(s,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:o,value:e[0]},u(e[0])))},renderInput:function(e,t){var n,u=this,i=(0,b.default)("Select-input",this.props.inputProps.className),a=!!this.state.isOpen,p=(0,b.default)((n={},o(n,this._instancePrefix+"-list",a),o(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),c=r({},this.props.inputProps,{role:"combobox","aria-expanded":""+a,"aria-owns":p,"aria-haspopup":""+a,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:i,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return u.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(c);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,s(d,["inputClassName"])),h=(0,b.default)(o({},this._instancePrefix+"-list",a));return l.default.createElement("div",r({},f,{role:"combobox","aria-expanded":a,"aria-owns":h,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:i,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return u.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(v.default,r({},c,{minWidth:"5"})):l.default.createElement("div",{className:i},l.default.createElement("input",c))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function U(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var U="function"==typeof this.props.filterOptions?this.props.filterOptions:F.default;return U(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return i(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:i(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,u=this.state.focusedOption||e;if(u&&!u.disabled){var s=-1;if(t.some(function(e,t){var o=e[n]===u[n];return o&&(s=t),o}),s!==-1)return s}for(var o=0;o-1)return!1;if(u.filterOption)return u.filterOption.call(s,e,t);if(!t)return!0;var o=String(e[u.valueKey]),r=String(e[u.labelKey]);return u.ignoreAccents&&("label"!==u.matchProp&&(o=(0,i.default)(o)),"value"!==u.matchProp&&(r=(0,i.default)(r))),u.ignoreCase&&("label"!==u.matchProp&&(o=o.toLowerCase()),"value"!==u.matchProp&&(r=r.toLowerCase())),"start"===u.matchPos?"label"!==u.matchProp&&o.substr(0,t.length)===t||"value"!==u.matchProp&&r.substr(0,t.length)===t:"label"!==u.matchProp&&o.indexOf(t)>=0||"value"!==u.matchProp&&r.indexOf(t)>=0})}var o=n(20),i=u(o);e.exports=s},19:function(e,t,n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function s(e){var t=e.focusedOption,n=e.instancePrefix,u=(e.labelKey,e.onFocus),s=e.onSelect,o=e.optionClassName,r=e.optionComponent,l=e.optionRenderer,p=e.options,c=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=r;return p.map(function(e,r){var p=c&&c.indexOf(e)>-1,E=e===t,m=(0,i.default)(o,{"Select-option":!0,"is-selected":p,"is-focused":E,"is-disabled":e.disabled});return a.default.createElement(h,{className:m,instancePrefix:n,isDisabled:e.disabled,isFocused:E,isSelected:p,key:"option-"+r+"-"+e[d],onFocus:u,onSelect:s,option:e,optionIndex:r,ref:function(e){f(e,E)}},l(e,r))})}var o=n(10),i=u(o),r=n(1),a=u(r);e.exports=s},20:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u]);return n}function o(e){return f.default.createElement(b.default,e)}function i(e){var t=e.option,n=e.options,u=e.labelKey,s=e.valueKey;return 0===n.filter(function(e){return e[u]===t[u]||e[s]===t[s]}).length}function r(e){var t=e.label;return!!t}function a(e){var t=e.label,n=e.labelKey,u=e.valueKey,s={};return s[u]=t,s[n]=t,s.className="Select-create-option-placeholder",s}function l(e){return'Create option "'+e+'"'}function p(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var c=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(a({},this.props,l,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(c.Component);t.default=C,C.propTypes=b,C.defaultProps=O,e.exports=t.default},30:function(e,t,n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function s(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var u=e[n];return void 0!==u&&(t[n]=u),t},t)}var o=Object.assign||function(e){for(var t=1;t0?l.default.createElement("span",null,E.default.map(n[m].users,function(e){return l.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px 3px 6px 3px"}},l.default.createElement(c.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))})):l.default.createElement("span",null,l.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")),l.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.willSetUsers.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-pencil"})))):l.default.createElement("div",null,l.default.createElement(f.default.Async,{multi:!0,clearable:!1,disabled:E.default.indexOf(i,n[m].id)!==-1&&!0,options:[],value:this.state.users[n[m].id]||n[m].users,onChange:this.handleUserSelectChange.bind(this,n[m].id),valueKey:"id",labelKey:"nameAndEmail",loadOptions:this.searchUsers,placeholder:"请输入用户"}),l.default.createElement("div",{className:E.default.indexOf(i,n[m].id)!==-1?"hide":"",style:{"float":"right"}},l.default.createElement(c.Button,{className:"edit-ok-button",onClick:this.setUsers.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-check"})),l.default.createElement(c.Button,{className:"edit-cancel-button",onClick:this.cancelSetUsers.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-close"})))),l.default.createElement("img",{src:y,style:{"float":"right"},className:E.default.indexOf(i,n[m].id)!==-1?"loading":"hide"})),groups:t.permissions&&t.permissions.indexOf("manage_project")===-1?l.default.createElement("div",null,l.default.createElement("span",null,E.default.map(n[m].groups,function(e){return l.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px"}},l.default.createElement(c.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))}))):l.default.createElement("div",null,E.default.indexOf(r,n[m].id)===-1&&E.default.indexOf(a,n[m].id)===-1?l.default.createElement("div",{className:"editable-list-field"},l.default.createElement("div",{style:{display:"table",width:"100%"}},n[m].groups&&n[m].groups.length>0?l.default.createElement("span",null,E.default.map(n[m].groups,function(e){return l.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px 3px 6px 3px"}},l.default.createElement(c.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))})):l.default.createElement("span",null,l.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")),l.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.willSetGroups.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-pencil"})))):l.default.createElement("div",null,l.default.createElement(f.default.Async,{multi:!0,clearable:!1,disabled:E.default.indexOf(a,n[m].id)!==-1&&!0,options:[],value:this.state.groups[n[m].id]||n[m].groups,onChange:this.handleGroupSelectChange.bind(this,n[m].id),valueKey:"id",labelKey:"name",loadOptions:this.searchGroups,placeholder:"请输入用户组"}),l.default.createElement("div",{className:E.default.indexOf(a,n[m].id)!==-1?"hide":"",style:{"float":"right"}},l.default.createElement(c.Button,{className:"edit-ok-button",onClick:this.setGroups.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-check"})),l.default.createElement(c.Button,{className:"edit-cancel-button",onClick:this.cancelSetGroups.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-close"})))),l.default.createElement("img",{src:y,style:{"float":"right"},className:E.default.indexOf(a,n[m].id)!==-1?"loading":"hide"}))});var v={};return u?v.noDataText=l.default.createElement("div",null,l.default.createElement("img",{src:y,className:"loading"})):v.noDataText="暂无数据显示。",v.onRowMouseOver=this.onRowMouseOver.bind(this),l.default.createElement("div",{style:{marginBottom:"30px",marginTop:"15px"}},l.default.createElement("div",{className:"info-col"},l.default.createElement("div",{className:"info-icon"},l.default.createElement("i",{className:"fa fa-info-circle"})),l.default.createElement("div",{className:"info-content"},"若成员配置修改后,用户权限没有生效,请刷新页面。")),l.default.createElement(p.BootstrapTable,{data:d,bordered:!1,hover:!0,options:v,trClassName:"tr-top"},l.default.createElement(p.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(p.TableHeaderColumn,{dataField:"name",width:"300"},"角色"),l.default.createElement(p.TableHeaderColumn,{dataField:"users"},"用户"),l.default.createElement(p.TableHeaderColumn,{dataField:"groups"},"用户组")))}}],[{key:"propTypes",value:{collection:a.PropTypes.array.isRequired,options:a.PropTypes.object.isRequired,selectedItem:a.PropTypes.object.isRequired,indexLoading:a.PropTypes.bool.isRequired,index:a.PropTypes.func.isRequired,setActor:a.PropTypes.func.isRequired,setGroupActor:a.PropTypes.func.isRequired},enumerable:!0}]),t}(a.Component);t.default=O,e.exports=t.default}).call(this)}finally{}}});
-//# sourceMappingURL=team-4a5356ab918177034908.js.map
\ No newline at end of file
+//# sourceMappingURL=team-7039fa190a94069b1c9b.js.map
\ No newline at end of file
diff --git a/public/assets/type-4a5356ab918177034908.js b/public/assets/type-7039fa190a94069b1c9b.js
similarity index 99%
rename from public/assets/type-4a5356ab918177034908.js
rename to public/assets/type-7039fa190a94069b1c9b.js
index 35d3c57ea..27c4da0bb 100644
--- a/public/assets/type-4a5356ab918177034908.js
+++ b/public/assets/type-7039fa190a94069b1c9b.js
@@ -2,4 +2,4 @@ webpackJsonp([20],{7:function(e,t,n){"use strict";function o(e){return e&&e.__es
newOptionCreator:s,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,o=e.onNewOptionClick,a=e.options,i=void 0===a?[]:a;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var r=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),u=this.isOptionUnique({option:r});u&&(o?o(r):(i.unshift(r),this.select.selectValue(r)))}},filterOptions:function F(){var e=this.props,F=e.filterOptions,t=e.isValidNewOption,n=(e.options,e.promptTextCreator),o=arguments[2]||[],a=F.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var i=this.props.newOptionCreator,r=i({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),u=this.isOptionUnique({option:r,options:o.concat(a)});if(u){var s=n(this.inputValue);this._createPlaceholderOption=i({label:s,labelKey:this.labelKey,valueKey:this.valueKey}),a.unshift(this._createPlaceholderOption)}}return a},isOptionUnique:function T(e){var t=e.option,n=e.options,T=this.props.isOptionUnique;return n=n||this.select.filterOptions(),T({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})},menuRenderer:function D(e){var D=this.props.menuRenderer;return D(d({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))},onInputChange:function _(e){var _=this.props.onInputChange;_&&_(e),this.inputValue=e},onInputKeyDown:function P(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,P=t.onInputKeyDown,o=this.select.getFocusedOption();o&&o===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):P&&P(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},focus:function(){this.select.focus()},render:function(){var e=this,t=this.props,n=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,a(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"])),o=this.props.children;o||(o=i);var r=d({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return o(r)}});e.exports=S},26:function(e,t,n){"use strict";function o(e){return e}function a(e,t,n){function a(e,t){var n=v.hasOwnProperty(t)?v[t]:null;w.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function i(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,i=o.__reactAutoBindPairs;n.hasOwnProperty(l)&&E.mixins(e,n.mixins);for(var r in n)if(n.hasOwnProperty(r)&&r!==l){var u=n[r],c=o.hasOwnProperty(r);if(a(c,r),E.hasOwnProperty(r))E[r](e,u);else{var d=v.hasOwnProperty(r),h="function"==typeof u,m=h&&!d&&!c&&n.autobind!==!1;if(m)i.push(r,u),o[r]=u;else if(c){var y=v[r];s(d&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,r),"DEFINE_MANY_MERGED"===y?o[r]=p(o[r],u):"DEFINE_MANY"===y&&(o[r]=f(o[r],u))}else o[r]=u}}}else;}function c(e,t){if(t)for(var n in t){var o=t[n];if(t.hasOwnProperty(n)){var a=n in E;s(!a,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;s(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=o}}}function d(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);if(null==n)return o;if(null==o)return n;var a={};return d(a,n),d(a,o),a}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;ne.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:r,onInputChange:this._onInputChange}))}}]),t}(d.Component);t.default=w,w.propTypes=E,w.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var i=Object.assign||function(e){for(var t=1;ta&&s>r||(e.moveCard(o,a),t.getItem().index=a)}}},m=function(e){function t(){a(this,n),u(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}i(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,o=e.connectDragSource,a=e.connectDropTarget,i=e.deleteCard,r=n?0:1,u={"float":"right",cursor:"pointer"};return o(a(l.default.createElement("div",{style:{opacity:r},className:"dragcard"},t,!!i&&l.default.createElement("span",{style:u,onClick:i,title:"删除",className:"rm-icon"},l.default.createElement("i",{className:"fa fa-remove"})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,id:s.PropTypes.any.isRequired,text:s.PropTypes.string.isRequired,deleteCard:s.PropTypes.func,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragSource)(p.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(p.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},208:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n'+this.options.dictDefaultMessage+" ")),this.clickableElements.length&&(i=function(e){return function(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,r,o;if(n=e.hiddenFileInput.files,n.length)for(r=0,o=n.length;r',this.options.dictFallbackText&&(i+=""+this.options.dictFallbackText+"
"),i+=' ',n=t.createElement(i),"FORM"!==this.element.tagName?(r=t.createElement('