{"size": 14440, "ext": "js", "max_stars_repo_path": "build/static/js/67.cf5e5be8.chunk.js", "max_stars_repo_name": "HanTengfeifei/edms", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/static/js/67.cf5e5be8.chunk.js", "max_issues_repo_name": "HanTengfeifei/edms", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/static/js/67.cf5e5be8.chunk.js", "max_forks_repo_name": "HanTengfeifei/edms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 7220.0, "max_line_length": 14394, "alphanum_fraction": 0.7159972299}
webpackJsonp([67],{1437:function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function r(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?e:n}function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var l=t(41),s=o(l),d=t(45),u=o(d),c=t(52),p=o(c),f=t(168),g=o(f),h=t(100),m=o(h),b=t(501),w=o(b),y=function(){function e(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(n,t,o){return t&&e(n.prototype,t),o&&e(n,o),n}}();t(62),t(51),t(56),t(262),t(129),t(1821);var v=t(0),x=o(v),E=w.default.Nav,k=w.default.toString,S=w.default.toContentState,C=w.default.getMentions,_=m.default.Item,O=["\u5f20\u4e09","\u674e\u56db","\u738b\u4e94","Test","\u4e2d\u6587","\u306b\u307b\u3093\u3054"],P=["1.0","2.0","3.0"],j=[{name:"React",type:"JavaScript"},{name:"Angular",type:"JavaScript"},{name:"Laravel",type:"PHP",disabled:!0},{name:"Flask",type:"Python"},{name:"Django",type:"Python"}],H=[{name:"React",type:"JavaScript",icon:"https://zos.alipayobjects.com/rmsportal/LFIeMPzdLcLnEUe.svg"},{name:"Angular",type:"JavaScript",icon:"https://zos.alipayobjects.com/rmsportal/PJTbxSvzYWjDZnJ.png"},{name:"Dva",type:"Javascript",icon:"https://zos.alipayobjects.com/rmsportal/EYPwSeEJKxDtVxI.png"},{name:"Flask",type:"Python",icon:"https://zos.alipayobjects.com/rmsportal/xaypBUijfnpAlXE.png"}],z=function(e){function n(){return a(this,n),r(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return i(n,e),y(n,[{key:"render",value:function(){return x.default.createElement("div",null,x.default.createElement(u.default,{gutter:8,style:{marginTop:"20px"}},x.default.createElement(p.default,{span:12},x.default.createElement(g.default,{hoverable:!0,title:"\u57fa\u672c"},x.default.createElement(w.default,{style:{width:"100%",height:100},onChange:function(e){console.log(k(e))},defaultValue:S("@\u5f20\u4e09"),suggestions:O}))),x.default.createElement(p.default,{span:12},x.default.createElement(g.default,{hoverable:!0,title:"\u5f02\u6b65\u52a0\u8f7d"},x.default.createElement(D,null)))),x.default.createElement(u.default,{gutter:8,style:{marginTop:"20px"}},x.default.createElement(p.default,{span:12},x.default.createElement(g.default,{hoverable:!0,title:"\u81ea\u5b9a\u4e49\u5efa\u8bae"},x.default.createElement(M,null))),x.default.createElement(p.default,{span:12},x.default.createElement(g.default,{hoverable:!0,title:"\u81ea\u5b9a\u4e49\u5efa\u8bae\uff08\u542b\u5934\u50cf\uff09"},x.default.createElement(T,null)))),x.default.createElement(u.default,{gutter:8,style:{marginTop:"20px"}},x.default.createElement(p.default,{span:12},x.default.createElement(g.default,{hoverable:!0,title:"\u914d\u5408 Form \u4f7f\u7528"},x.default.createElement(F,null))),x.default.createElement(p.default,{span:12},x.default.createElement(g.default,{hoverable:!0,title:"\u81ea\u5b9a\u4e49\u89e6\u53d1\u5b57\u7b26",extra:"\u901a\u8fc7 prefix \u5c5e\u6027\u81ea\u5b9a\u4e49\u89e6\u53d1\u5b57\u7b26\u3002\u9ed8\u8ba4\u4e3a @, \u53ef\u4ee5\u5b9a\u4e49\u4e3a\u6570\u7ec4"},x.default.createElement(J,null)))))}}]),n}(x.default.Component),D=function(e){function n(){var e,t,o,i;a(this,n);for(var l=arguments.length,s=Array(l),d=0;d<l;d++)s[d]=arguments[d];return t=o=r(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(s))),o.state={suggestions:[],loading:!1},o.fetchSuggestions=function(e,n){setTimeout(function(){n(O.filter(function(n){return-1!==n.indexOf(e)}))},500)},o.onSearchChange=function(e){o.fetchSuggestions(e,function(e){o.setState({suggestions:e,loading:!1})}),o.setState({loading:!0})},i=t,r(o,i)}return i(n,e),y(n,[{key:"render",value:function(){var e=this.state,n=e.suggestions,t=e.loading;return x.default.createElement(w.default,{style:{width:"100%",height:100},loading:t,suggestions:n,onSearchChange:this.onSearchChange})}}]),n}(x.default.Component),M=function(e){function n(){var e,t,o,i;a(this,n);for(var l=arguments.length,s=Array(l),d=0;d<l;d++)s[d]=arguments[d];return t=o=r(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(s))),o.state={suggestions:[]},o.onSearchChange=function(e){var n=e.toLowerCase(),t=j.filter(function(e){return-1!==e.name.toLowerCase().indexOf(n)}),a=t.map(function(e){return x.default.createElement(E,{value:e.name,data:e},x.default.createElement("span",null,e.name," - ",e.type))});o.setState({suggestions:a})},i=t,r(o,i)}return i(n,e),y(n,[{key:"render",value:function(){var e=this.state.suggestions;return x.default.createElement(w.default,{placeholder:"@\u9009\u62e9\u67d0\u4eba",style:{width:"100%",height:100},suggestions:e,onSearchChange:this.onSearchChange})}}]),n}(x.default.Component),T=function(e){function n(){var e,t,o,i;a(this,n);for(var l=arguments.length,s=Array(l),d=0;d<l;d++)s[d]=arguments[d];return t=o=r(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(s))),o.state={suggestions:[]},o.onSearchChange=function(e){var n=e.toLowerCase(),t=H.filter(function(e){return-1!==e.name.toLowerCase().indexOf(n)}),a=t.map(function(e){return x.default.createElement(E,{value:e.name,data:e,disabled:e.disabled},x.default.createElement("span",null,x.default.createElement("img",{alt:e.name,style:{height:16,width:16,marginRight:5,float:"left"},src:e.icon}),e.name," - ",e.type))});o.setState({suggestions:a})},i=t,r(o,i)}return i(n,e),y(n,[{key:"render",value:function(){var e=this.state.suggestions;return x.default.createElement(w.default,{style:{width:"100%",height:100},suggestions:e,onSearchChange:this.onSearchChange})}}]),n}(x.default.Component),A=function(e){function n(){var e,t,o,i;a(this,n);for(var l=arguments.length,s=Array(l),d=0;d<l;d++)s[d]=arguments[d];return t=o=r(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(s))),o.state={initValue:S("@\u674e\u56db")},o.handleReset=function(e){e.preventDefault(),o.props.form.resetFields()},o.handleSubmit=function(e){e.preventDefault(),o.props.form.validateFields(function(e,n){if(e)return void console.log("Errors in form!!!");console.log("Submit!!!"),console.log(n)})},o.checkMention=function(e,n,t){var a=o.props.form.getFieldValue;C(a("mention")).length<2?t(new Error("More than one must be selected!")):t()},i=t,r(o,i)}return i(n,e),y(n,[{key:"render",value:function(){var e=this.props.form,n=e.getFieldDecorator,t=e.getFieldValue;return console.log(">> render",t("mention")===this.state.initValue),x.default.createElement(m.default,{layout:"horizontal"},x.default.createElement(_,{id:"control-mention",label:"Top coders",labelCol:{span:6},wrapperCol:{span:16}},n("mention",{rules:[{validator:this.checkMention}],initialValue:this.state.initValue})(x.default.createElement(w.default,{suggestions:O,style:{height:60}}))),x.default.createElement(_,{wrapperCol:{span:14,offset:6}},x.default.createElement(s.default,{type:"primary",onClick:this.handleSubmit},"Submit"),"\xa0\xa0\xa0",x.default.createElement(s.default,{onClick:this.handleReset},"Reset")))}}]),n}(x.default.Component),F=m.default.create()(A),J=function(e){function n(){a(this,n);var e=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.onSearchChange=function(n,t){console.log("onSearchChange",n,t);var o="@"===t?O:P;e.setState({suggestions:o.filter(function(e){return-1!==e.indexOf(n)})})},e.state={suggestions:[]},e}return i(n,e),y(n,[{key:"render",value:function(){return x.default.createElement(w.default,{style:{width:"100%",height:100},placeholder:"\u8f93\u5165 @ \u6216 # \u8bd5\u4e00\u8bd5",prefix:["@","#"],onSearchChange:this.onSearchChange,suggestions:this.state.suggestions})}}]),n}(x.default.Component);n.default=z,e.exports=n.default},1821:function(e,n,t){"use strict";t(2324)},1999:function(e,n,t){n=e.exports=t(10)(void 0),n.push([e.i,'/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */\n.ant-mention-wrapper {\n  font-family: "AvenirNext-Regular", "Helvetica Neue", "lucida grande", "PingFangHK-Light", "STHeiti", "Heiti SC", "Hiragino Sans GB", "Microsoft JhengHei", "Microsoft Yahei", SimHei, "WenQuanYi Micro Hei", "Droid Sans", "Roboto", Helvetica, Tahoma, Arial, "sans-serif";\n  font-size: 14px;\n  line-height: 1.5;\n  color: rgba(0, 0, 0, 0.65);\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  position: relative;\n  display: inline-block;\n  width: 100%;\n  vertical-align: middle;\n}\n.ant-mention-wrapper .ant-mention-editor {\n  position: relative;\n  display: inline-block;\n  padding: 4px 11px;\n  width: 100%;\n  height: 32px;\n  font-size: 14px;\n  color: rgba(0, 0, 0, 0.65);\n  background-color: #fff;\n  background-image: none;\n  border: 1px solid #d9d9d9;\n  border-radius: 4px;\n  -webkit-transition: all .3s;\n  -o-transition: all .3s;\n  transition: all .3s;\n  min-height: 32px;\n  height: auto;\n  line-height: 1.5;\n  padding: 0;\n  display: block;\n}\n.ant-mention-wrapper .ant-mention-editor::-moz-placeholder {\n  color: #bfbfbf;\n  opacity: 1;\n}\n.ant-mention-wrapper .ant-mention-editor:-ms-input-placeholder {\n  color: #bfbfbf;\n}\n.ant-mention-wrapper .ant-mention-editor::-webkit-input-placeholder {\n  color: #bfbfbf;\n}\n.ant-mention-wrapper .ant-mention-editor:hover {\n  border-color: #40a9ff;\n}\n.ant-mention-wrapper .ant-mention-editor:focus {\n  border-color: #40a9ff;\n  outline: 0;\n  -webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n          box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n.ant-mention-wrapper .ant-mention-editor-disabled {\n  background-color: #f5f5f5;\n  opacity: 1;\n  cursor: not-allowed;\n  color: rgba(0, 0, 0, 0.25);\n}\n.ant-mention-wrapper .ant-mention-editor-disabled:hover {\n  border-color: #e6d8d8;\n}\ntextarea.ant-mention-wrapper .ant-mention-editor {\n  max-width: 100%;\n  height: auto;\n  vertical-align: bottom;\n  -webkit-transition: all .3s, height 0s;\n  -o-transition: all .3s, height 0s;\n  transition: all .3s, height 0s;\n  min-height: 32px;\n}\n.ant-mention-wrapper .ant-mention-editor-lg {\n  padding: 6px 11px;\n  height: 40px;\n  font-size: 16px;\n}\n.ant-mention-wrapper .ant-mention-editor-sm {\n  padding: 1px 7px;\n  height: 24px;\n}\n.ant-mention-wrapper .ant-mention-editor-wrapper {\n  overflow-y: auto;\n  height: auto;\n}\n.ant-mention-wrapper.ant-mention-active:not(.disabled) .ant-mention-editor {\n  border-color: #40a9ff;\n  outline: 0;\n  -webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n          box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n.ant-mention-wrapper.disabled .ant-mention-editor {\n  background-color: #f5f5f5;\n  opacity: 1;\n  cursor: not-allowed;\n  color: rgba(0, 0, 0, 0.25);\n}\n.ant-mention-wrapper.disabled .ant-mention-editor:hover {\n  border-color: #e6d8d8;\n}\n.ant-mention-wrapper .public-DraftEditorPlaceholder-root {\n  position: absolute;\n  pointer-events: none;\n}\n.ant-mention-wrapper .public-DraftEditorPlaceholder-root .public-DraftEditorPlaceholder-inner {\n  color: #bfbfbf;\n  opacity: 1;\n  outline: none;\n  white-space: pre-wrap;\n  word-wrap: break-word;\n  height: auto;\n  padding: 5px 11px;\n}\n.ant-mention-wrapper .DraftEditor-editorContainer .public-DraftEditor-content {\n  height: auto;\n  padding: 5px 11px;\n}\n.ant-mention-dropdown {\n  font-family: "AvenirNext-Regular", "Helvetica Neue", "lucida grande", "PingFangHK-Light", "STHeiti", "Heiti SC", "Hiragino Sans GB", "Microsoft JhengHei", "Microsoft Yahei", SimHei, "WenQuanYi Micro Hei", "Droid Sans", "Roboto", Helvetica, Tahoma, Arial, "sans-serif";\n  font-size: 14px;\n  line-height: 1.5;\n  color: rgba(0, 0, 0, 0.65);\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  margin-top: 1.5em;\n  max-height: 250px;\n  min-width: 120px;\n  background-color: #fff;\n  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n  border-radius: 4px;\n  z-index: 1050;\n  left: -9999px;\n  top: -9999px;\n  position: absolute;\n  outline: none;\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n.ant-mention-dropdown-placement-top {\n  margin-top: -0.1em;\n}\n.ant-mention-dropdown-notfound.ant-mention-dropdown-item {\n  color: rgba(0, 0, 0, 0.25);\n}\n.ant-mention-dropdown-notfound.ant-mention-dropdown-item .anticon-loading {\n  color: #1890ff;\n  text-align: center;\n  display: block;\n}\n.ant-mention-dropdown-item {\n  position: relative;\n  display: block;\n  padding: 5px 12px;\n  line-height: 22px;\n  font-weight: normal;\n  color: rgba(0, 0, 0, 0.65);\n  white-space: nowrap;\n  cursor: pointer;\n  -o-text-overflow: ellipsis;\n     text-overflow: ellipsis;\n  overflow: hidden;\n  -webkit-transition: background 0.3s;\n  -o-transition: background 0.3s;\n  transition: background 0.3s;\n}\n.ant-mention-dropdown-item:hover {\n  background-color: #e6f7ff;\n}\n.ant-mention-dropdown-item.focus,\n.ant-mention-dropdown-item-active {\n  background-color: #e6f7ff;\n}\n.ant-mention-dropdown-item-disabled {\n  color: rgba(0, 0, 0, 0.25);\n  cursor: not-allowed;\n}\n.ant-mention-dropdown-item-disabled:hover {\n  color: rgba(0, 0, 0, 0.25);\n  background-color: #fff;\n  cursor: not-allowed;\n}\n.ant-mention-dropdown-item-selected,\n.ant-mention-dropdown-item-selected:hover {\n  background-color: #f5f5f5;\n  font-weight: bold;\n  color: rgba(0, 0, 0, 0.65);\n}\n.ant-mention-dropdown-item-divider {\n  height: 1px;\n  margin: 1px 0;\n  overflow: hidden;\n  background-color: #e8e8e8;\n  line-height: 0;\n}\n',""])},2324:function(e,n,t){var o=t(1999);"string"===typeof o&&(o=[[e.i,o,""]]);var a={hmr:!0};a.transform=void 0;t(11)(o,a);o.locals&&(e.exports=o.locals)}});
//# sourceMappingURL=67.cf5e5be8.chunk.js.map