build/static/js/37.0f885e85.chunk.js

1 line
33 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[37],{"+hnl":function(e,t,n){},"9Do8":function(e,t,n){"use strict";e.exports=n("zt9T")},Ctgt:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),i=n("17x9"),a=n.n(i),l=n("VCL8");function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=n("TSYQ"),y=function(e){function t(e){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=s(t).call(this,e),n=!o||"object"!=typeof o&&"function"!=typeof o?d(r):o,h(d(d(n)),"handleClick",(function(e){var t=n.state.checked,r=n.props.onClick,o=!t;n.setChecked(o,e),r&&r(o,e)})),h(d(d(n)),"handleKeyDown",(function(e){37===e.keyCode?n.setChecked(!1,e):39===e.keyCode&&n.setChecked(!0,e)})),h(d(d(n)),"handleMouseUp",(function(e){var t=n.props.onMouseUp;n.node&&n.node.blur(),t&&t(e)})),h(d(d(n)),"saveNode",(function(e){n.node=e}));var i=!1;return i="checked"in e?!!e.checked:!!e.defaultChecked,n.state={checked:i},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,i=[{key:"getDerivedStateFromProps",value:function(e){var t={},n=e.checked;return"checked"in e&&(t.checked=!!n),t}}],(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"setChecked",value:function(e,t){var n=this.props,r=n.disabled,o=n.onChange;r||("checked"in this.props||this.setState({checked:e}),o&&o(e,t))}},{key:"focus",value:function(){this.node.focus()}},{key:"blur",value:function(){this.node.blur()}},{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.prefixCls,i=t.disabled,a=t.loadingIcon,l=t.checkedChildren,p=t.unCheckedChildren,s=u(t,["className","prefixCls","disabled","loadingIcon","checkedChildren","unCheckedChildren"]),f=this.state.checked,d=b((h(e={},n,!!n),h(e,r,!0),h(e,"".concat(r,"-checked"),f),h(e,"".concat(r,"-disabled"),i),e));return o.a.createElement("button",c({},s,{type:"button",role:"switch","aria-checked":f,disabled:i,className:d,ref:this.saveNode,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onMouseUp:this.handleMouseUp}),a,o.a.createElement("span",{className:"".concat(r,"-inner")},f?l:p))}}])&&p(n.prototype,r),i&&p(n,i),t}(r.Component);y.propTypes={className:a.a.string,prefixCls:a.a.string,disabled:a.a.bool,checkedChildren:a.a.any,unCheckedChildren:a.a.any,onChange:a.a.func,onMouseUp:a.a.func,onClick:a.a.func,tabIndex:a.a.number,checked:a.a.bool,defaultChecked:a.a.bool,autoFocus:a.a.bool,loadingIcon:a.a.node},y.defaultProps={prefixCls:"rc-switch",checkedChildren:null,unCheckedChildren:null,className:"",defaultChecked:!1},Object(l.polyfill)(y),t.default=y},Gytx:function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!l(u))return!1;var p=e[u],s=t[u];if(!1===(o=n?n.call(r,p,s,u):void 0)||void 0===o&&p!==s)return!1}return!0}},IaUq:function(e,t,n){"use strict";n.r(t);n("L/Qf");var r=n("2/Rp"),o=(n("SchZ"),n("uIZd"),n("q1tI")),i=n.n(o),a=n("17x9"),l=n("XIdC"),c=n.n(l),u=n("TSYQ"),p=n.n(u),s=n("BGR+"),f=n("g0mS"),d=n("CtXQ"),h=n("H84U"),b=n("6CfX");function y(e){return(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})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(l,e);var t,n,r,i,a=(t=l,function(){var e,n=O(t);if(k()){var r=O(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return w(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).saveSwitch=function(e){t.rcSwitch=e},t.renderSwitch=function(e){var n,r=e.getPrefixCls,i=t.props,a=i.prefixCls,l=i.size,u=i.loading,h=i.className,b=void 0===h?"":h,y=i.disabled,v=r("switch",a),x=p()(b,(g(n={},"".concat(v,"-small"),"small"===l),g(n,"".concat(v,"-loading"),u),n)),w=u?o.createElement(d.a,{type:"loading",className:"".concat(v,"-loading-icon")}):null;return o.createElement(f.a,{insertExtraNode:!0},o.createElement(c.a,m({},Object(s.a)(t.props,["loading"]),{prefixCls:v,className:x,disabled:y||u,ref:t.saveSwitch,loadingIcon:w})))},Object(b.a)("checked"in e||!("value"in e),"Switch","`value` is not validate prop, do you mean `checked`?"),t}return n=l,(r=[{key:"focus",value:function(){this.rcSwitch.focus()}},{key:"blur",value:function(){this.rcSwitch.blur()}},{key:"render",value:function(){return o.createElement(h.a,null,this.renderSwitch)}}])&&v(n.prototype,r),i&&v(n,i),l}(o.Component);C.__ANT_SWITCH=!0,C.propTypes={prefixCls:a.string,size:a.oneOf(["small","default","large"]),className:a.string};n("MKzF");var E,j,S=n("kaz8"),P=(n("K4yd"),n("9yH6")),N=(n("tULf"),n("Vl3Y")),T=(n("1vPl"),n("5rEg")),_=n("spEH"),B=n("vOnD"),D=(E=["{\n padding:20px 30px;\n}"],j=["{\n padding:20px 30px;\n}"],Object.freeze(Object.defineProperties(E,{raw:{value:Object.freeze(j)}})));var V=T.a.TextArea,R=B.a.div(D),L={lineHeight:"25px",height:"25px",display:"block"},I=Object.assign({},L,{marginBottom:"7px"});t.default=N.a.create()(Object(o.forwardRef)((function(e){var t=e.form,n=t.getFieldDecorator,a=(t.validateFields,t.setFieldsValue,Object(o.useCallback)((function(e,t,r,o,a,l){return i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:a?"required":""},e),i.a.createElement(N.a.Item,{style:{marginBottom:l+"px"||!1}},n(t,{rules:r,validateFirst:!0})(o)))}),[]));return i.a.createElement(_.s,{className:"mb30"},i.a.createElement(_.c,null,"新建团队"),i.a.createElement(R,null,i.a.createElement(N.a,null,a("团队名称:","name",[{required:!0,message:"请输入团队名称"}],i.a.createElement(T.a,{placeholder:"请输入团队名称"}),!0),a(i.a.createElement("span",null,"团队描述:",i.a.createElement("span",{className:"color-grey-8"},"(描述团队的目的或作用)")),"desc",[],i.a.createElement(V,{placeholder:"请输入团队描述"})),a("项目权限:","operation",[],i.a.createElement(P.a.Group,null,i.a.createElement(P.a,{value:"0",style:I},"指定项目",i.a.createElement("span",{className:"color-grey-8"},"(团队成员将只能访问添加到团队的项目。 选择此项 ",i.a.createElement("span",{className:"color-grey-3"},"将不会")," 自动删除已经添加的项目)")),i.a.createElement(P.a,{value:"1",style:L},"所有项目",i.a.createElement("span",{className:"color-grey-8"},"(团队可以访问所有项目。选择此选项将 ",i.a.createElement("span",{className:"color-grey-3"},"添加所有现有的")," 项目到指定团队)"))),!1,0),a("","operation",[],i.a.createElement(S.a,{value:"0",style:L},"新建项目",i.a.createElement("span",{className:"color-grey-8"},"(成员可以在组织中新建项目。创建者将自动获得新建的项目的管理员权限。)"))),a("权限:","halfoperation",[],i.a.createElement(P.a.Group,null,i.a.createElement(P.a,{value:"0",style:I},"读取权限",i.a.createElement("span",{className:"color-grey-8"},"(成员可以查看和克隆团队项目)")),i.a.createElement(P.a,{value:"1",style:I},"写入权限",i.a.createElement("span",{className:"color-grey-8"},"(成员可以查看和推送提交到团队项目)")),i.a.createElement(P.a,{value:"2",style:L},"管理员权限",i.a.createElement("span",{className:"color-grey-8"},"(成员可以拉取和推送到团队项目同时可以添加协作者)"))),!1),i.a.createElement("p",{class:"required"},"允许访问项目单元:"),i.a.createElement(_.a,null,a("","allowCode",[],i.a.createElement(C,null),!1,0),i.a.createElement("span",{className:"ml30 color-grey-3"},"代码库",i.a.createElement("span",{className:"color-grey-8 ml15"},"(查看源码、文件、提交和分支)"))),i.a.createElement(_.a,null,a("","allowtask",[],i.a.createElement(C,null),!1,0),i.a.createElement("span",{className:"ml30 color-grey-3"},"任务",i.a.createElement("span",{className:"color-grey-8 ml15"},"(组织 bug 报告、任务和里程碑)"))),i.a.createElement(_.a,null,a("","allowPull",[],i.a.createElement(C,null),!1,0),i.a.createElement("span",{className:"ml30 color-grey-3"},"合并请求",i.a.createElement("span",{className:"color-grey-8 ml15"},"(启用合并请求和代码评审)"))),i.a.createElement(_.a,{className:"mb20"},a("","allowVersion",[],i.a.createElement(C,null),!1,0),i.a.createElement("span",{className:"ml30 color-grey-3"},"版本发布",i.a.createElement("span",{className:"color-grey-8 ml15"},"(跟踪项目版本和下载)"))),i.a.createElement(r.a,{type:"primary"},"新建团队"),i.a.createElement(_.g,{className:"ml30"},"取消"))))})))},MKzF:function(e,t,n){"use strict";n("SchZ"),n("+hnl")},XIdC:function(e,t,n){e.exports=n("Ctgt")},jB5C:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function i(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function a(e){return i(e)}function l(e){return i(e,!0)}function c(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=a(r),t.top+=l(r),t}var u=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),p=/^(top|right|bottom|left)$/,s="left";var f=void 0;function d(e,t){for(var n=0;n<e.length;n++)t(e[n])}function h(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(u.test(n)&&!p.test(t)){var r=e.style,o=r[s],i=e.runtimeStyle[s];e.runtimeStyle[s]=e.currentStyle[s],r[s]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[s]=o,e.runtimeStyle[s]=i}return""===n?"auto":n});var b=["margin","border","padding"];function y(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}function m(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var l=void 0;l="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(f(e,l))||0}return r}function g(e){return null!=e&&e==e.window}var v={};function x(e,t,n){if(g(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(f(e),h(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=f(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?1:-1);var l=void 0!==o||i,c=o||a;if(-1===n)return l?c-m(e,["border","padding"],r):a;if(l){var u=2===n?-m(e,["border"],r):m(e,["margin"],r);return c+(1===n?0:u)}return a+m(e,b.slice(n),r)}d(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var w={position:"absolute",visibility:"hidden",display:"block"};function k(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=x.apply(void 0,n):y(e,w,(function(){t=x.apply(void 0,n)})),t}function O(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):f(e,t);for(var i in t)t.hasOwnProperty(i)&&O(e,i,t[i])}d(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,r){if(void 0===r)return t&&k(t,e,-1);if(t){f(t);return h(t)&&(r+=m(t,["padding","border"],n)),O(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return c(e);!function(e,t){"static"===O(e,"position")&&(e.style.position="relative");var n=c(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(O(e,i))||0,r[i]=o+t[i]-n[i]);O(e,r)}(e,t)},isWindow:g,each:d,css:O,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return a(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return l(e);window.scrollTo(a(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},kaz8:function(e,t,n){"use strict";var r=n("q1tI"),o=n("17x9"),i=n("VCL8"),a=n("TSYQ"),l=n.n(a),c=n("x1Ya"),u=n("Gytx"),p=n.n(u),s=n("H84U"),f=n("6CfX");function d(e){return(d="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})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(u,e);var t,n,o,i,a=(t=u,function(){var e,n=k(t);if(w()){var r=k(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return v(this,e)});function u(){var e;return y(this,u),(e=a.apply(this,arguments)).saveCheckbox=function(t){e.rcCheckbox=t},e.renderCheckbox=function(t){var n,o=t.getPrefixCls,i=x(e),a=i.props,u=i.context,p=a.prefixCls,s=a.className,f=a.children,d=a.indeterminate,y=a.style,m=a.onMouseEnter,g=a.onMouseLeave,v=O(a,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),w=u.checkboxGroup,k=o("checkbox",p),C=b({},v);w&&(C.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),w.toggleOption({label:f,value:a.value})},C.name=w.name,C.checked=-1!==w.value.indexOf(a.value),C.disabled=a.disabled||w.disabled);var E=l()(s,(h(n={},"".concat(k,"-wrapper"),!0),h(n,"".concat(k,"-wrapper-checked"),C.checked),h(n,"".concat(k,"-wrapper-disabled"),C.disabled),n)),j=l()(h({},"".concat(k,"-indeterminate"),d));return r.createElement("label",{className:E,style:y,onMouseEnter:m,onMouseLeave:g},r.createElement(c.a,b({},C,{prefixCls:k,className:j,ref:e.saveCheckbox})),void 0!==f&&r.createElement("span",null,f))},e}return n=u,(o=[{key:"componentDidMount",value:function(){var e=this.props.value,t=(this.context||{}).checkboxGroup,n=void 0===t?{}:t;n.registerValue&&n.registerValue(e),Object(f.a)("checked"in this.props||(this.context||{}).checkboxGroup||!("value"in this.props),"Checkbox","`value` is not validate prop, do you mean `checked`?")}},{key:"shouldComponentUpdate",value:function(e,t,n){return!p()(this.props,e)||!p()(this.state,t)||!p()(this.context.checkboxGroup,n.checkboxGroup)}},{key:"componentDidUpdate",value:function(e){var t=e.value,n=this.props.value,r=(this.context||{}).checkboxGroup,o=void 0===r?{}:r;n!==t&&o.registerValue&&o.cancelValue&&(o.cancelValue(t),o.registerValue(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.value,t=(this.context||{}).checkboxGroup,n=void 0===t?{}:t;n.cancelValue&&n.cancelValue(e)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return r.createElement(s.a,null,this.renderCheckbox)}}])&&m(n.prototype,o),i&&m(n,i),u}(r.Component);C.__ANT_CHECKBOX=!0,C.defaultProps={indeterminate:!1},C.contextTypes={checkboxGroup:o.any},Object(i.polyfill)(C);var E=C,j=n("BGR+");function S(e){return(S="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})(e)}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function N(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?V(e):t}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(c,e);var t,n,o,i,a=(t=c,function(){var e,n=L(t);if(R()){var r=L(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return D(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).cancelValue=function(e){t.setState((function(t){return{registeredValues:t.registeredValues.filter((function(t){return t!==e}))}}))},t.registerValue=function(e){t.setState((function(t){var n=t.registeredValues;return{registeredValues:[].concat(N(n),[e])}}))},t.toggleOption=function(e){var n=t.state.registeredValues,r=t.state.value.indexOf(e.value),o=N(t.state.value);-1===r?o.push(e.value):o.splice(r,1),"value"in t.props||t.setState({value:o});var i=t.props.onChange;if(i){var a=t.getOptions();i(o.filter((function(e){return-1!==n.indexOf(e)})).sort((function(e,t){return a.findIndex((function(t){return t.value===e}))-a.findIndex((function(e){return e.value===t}))})))}},t.renderGroup=function(e){var n=e.getPrefixCls,o=V(t),i=o.props,a=o.state,c=i.prefixCls,u=i.className,p=i.style,s=i.options,f=I(i,["prefixCls","className","style","options"]),d=n("checkbox",c),h="".concat(d,"-group"),b=Object(j.a)(f,["children","defaultValue","value","onChange","disabled"]),y=i.children;s&&s.length>0&&(y=t.getOptions().map((function(e){return r.createElement(E,{prefixCls:d,key:e.value.toString(),disabled:"disabled"in e?e.disabled:i.disabled,value:e.value,checked:-1!==a.value.indexOf(e.value),onChange:e.onChange,className:"".concat(h,"-item")},e.label)})));var m=l()(h,u);return r.createElement("div",P({className:m,style:p},b),y)},t.state={value:e.value||e.defaultValue||[],registeredValues:[]},t}return n=c,i=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}],(o=[{key:"getChildContext",value:function(){return{checkboxGroup:{toggleOption:this.toggleOption,value:this.state.value,disabled:this.props.disabled,name:this.props.name,registerValue:this.registerValue,cancelValue:this.cancelValue}}}},{key:"shouldComponentUpdate",value:function(e,t){return!p()(this.props,e)||!p()(this.state,t)}},{key:"getOptions",value:function(){return this.props.options.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))}},{key:"render",value:function(){return r.createElement(s.a,null,this.renderGroup)}}])&&_(n.prototype,o),i&&_(n,i),c}(r.Component);F.defaultProps={options:[]},F.propTypes={defaultValue:o.array,value:o.array,options:o.array.isRequired,onChange:o.func},F.childContextTypes={checkboxGroup:o.any},Object(i.polyfill)(F);var W=F;E.Group=W;t.a=E},spEH:function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return E})),n.d(t,"i",(function(){return j})),n.d(t,"a",(function(){return S})),n.d(t,"f",(function(){return P})),n.d(t,"n",(function(){return N})),n.d(t,"r",(function(){return T})),n.d(t,"j",(function(){return _})),n.d(t,"s",(function(){return B})),n.d(t,"e",(function(){return D})),n.d(t,"q",(function(){return V})),n.d(t,"m",(function(){return R})),n.d(t,"l",(function(){return L})),n.d(t,"d",(function(){return I})),n.d(t,"p",(function(){return F})),n.d(t,"o",(function(){return W})),n.d(t,"k",(function(){return z})),n.d(t,"g",(function(){return G})),n.d(t,"h",(function(){return M}));var r=n("vOnD"),o=O(["{\n padding:20px 25px;\n color:#333;\n font-size:18px;\n border-bottom:1px solid #eee;\n background-color:#fff;\n border-radius:5px 5px 0px 0px;\n}"],["{\n padding:20px 25px;\n color:#333;\n font-size:18px;\n border-bottom:1px solid #eee;\n background-color:#fff;\n border-radius:5px 5px 0px 0px;\n}"]),i=O(["{\n display:flex;\n align-items: center;\n padding: 14px 14px 14px 20px;\n justify-content: space-between;\n border-bottom:1px solid #eee;\n}"],["{\n display:flex;\n align-items: center;\n padding: 14px 14px 14px 20px;\n justify-content: space-between;\n border-bottom:1px solid #eee;\n}"]),a=O(["{\n display:flex;\n align-items: center;\n justify-content: space-between;\n}"],["{\n display:flex;\n align-items: center;\n justify-content: space-between;\n}"]),l=O(["{\n display:flex;\n align-items: center;\n}"],["{\n display:flex;\n align-items: center;\n}"]),c=O(["{\n display:flex;\n align-item:flex-start;\n}"],["{\n display:flex;\n align-item:flex-start;\n}"]),u=O(["{\n width:72%;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n width:72%;\n border-radius:5px;\n margin-bottom:30px;\n}"]),p=O(["{\n width:28%;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n width:28%;\n border-radius:5px;\n margin-bottom:30px;\n}"]),s=O(["{\n padding-left:20px;\n box-sizing:border-box;\n}"],["{\n padding-left:20px;\n box-sizing:border-box;\n}"]),f=O(["{\n background-color:#fff;\n border-radius:5px;\n}"],["{\n background-color:#fff;\n border-radius:5px;\n}"]),d=O(["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid rgba(80,145,255,1);\n color:rgba(80,145,255,1);\n padding:0px 12px;\n display:inline-block;\n}"],["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid rgba(80,145,255,1);\n color:rgba(80,145,255,1);\n padding:0px 12px;\n display:inline-block;\n}"]),h=O(["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid #F73030;\n color:#F73030;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"],["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid #F73030;\n color:#F73030;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"]),b=O(["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid #28BD6C;\n color:#28BD6C;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"],["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid #28BD6C;\n color:#28BD6C;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"]),y=O(["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:#28BD6C;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"],["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:#28BD6C;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"]),m=O(["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:rgba(80,145,255,1);\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"],["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:rgba(80,145,255,1);\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"]),g=O(["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:#F73030;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"],["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:#F73030;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"]),v=O(["{\n padding-left: 20px;\n & > li{\n list-style-type: decimal;\n color:#888;\n height:24px;\n line-height:24px;\n }\n}"],["{\n padding-left: 20px;\n & > li{\n list-style-type: decimal;\n color:#888;\n height:24px;\n line-height:24px;\n }\n}"]),x=O(["{\n color:#28BD6C!important;\n position:relative;\n &:after{\n position:absolute;\n bottom:-2px;\n left:0px;\n width:100%;\n height:1px;\n content:'';\n background:#28BD6C;\n }\n}"],["{\n color:#28BD6C!important;\n position:relative;\n &:after{\n position:absolute;\n bottom:-2px;\n left:0px;\n width:100%;\n height:1px;\n content:'';\n background:#28BD6C;\n }\n}"]),w=O(["{\n height:32px;\n line-height:32px;\n border-radius:2px;\n background-color:#BBBBBB;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:64px;\n text-align:center;\n letter-spacing: 4px;\n}"],["{\n height:32px;\n line-height:32px;\n border-radius:2px;\n background-color:#BBBBBB;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:64px;\n text-align:center;\n letter-spacing: 4px;\n}"]),k=O(["{\n width:1200px;\n margin:20px auto;\n text-align:center;\n display:flex;\n align-Items:center;\n background-color:#fff;\n justify-content: center;\n}"],["{\n width:1200px;\n margin:20px auto;\n text-align:center;\n display:flex;\n align-Items:center;\n background-color:#fff;\n justify-content: center;\n}"]);function O(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var C=r.a.div(o),E=r.a.div(i),j=r.a.div(a),S=r.a.div(l),P=r.a.div(c),N=r.a.div(u),T=r.a.div(p),_=r.a.div(s),B=r.a.div(f),D=r.a.a(d),V=r.a.a(h),R=r.a.a(b),L=r.a.a(y),I=r.a.a(m),F=r.a.a(g),W=r.a.ul(v),z=r.a.a(x),G=r.a.a(w),M=r.a.div(k)},uIZd:function(e,t,n){},zt9T:function(e,t,n){"use strict";var r=n("jB5C");e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,l=n.alignWithLeft,c=n.offsetTop||0,u=n.offsetLeft||0,p=n.offsetBottom||0,s=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),d=r.offset(e),h=r.outerHeight(e),b=r.outerWidth(e),y=void 0,m=void 0,g=void 0,v=void 0,x=void 0,w=void 0,k=void 0,O=void 0,C=void 0,E=void 0;f?(k=t,E=r.height(k),C=r.width(k),O={left:r.scrollLeft(k),top:r.scrollTop(k)},x={left:d.left-O.left-u,top:d.top-O.top-c},w={left:d.left+b-(O.left+C)+s,top:d.top+h-(O.top+E)+p},v=O):(y=r.offset(t),m=t.clientHeight,g=t.clientWidth,v={left:t.scrollLeft,top:t.scrollTop},x={left:d.left-(y.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:d.top-(y.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-c},w={left:d.left+b-(y.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+s,top:d.top+h-(y.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+p}),x.top<0||w.top>0?!0===a?r.scrollTop(t,v.top+x.top):!1===a?r.scrollTop(t,v.top+w.top):x.top<0?r.scrollTop(t,v.top+x.top):r.scrollTop(t,v.top+w.top):i||((a=void 0===a||!!a)?r.scrollTop(t,v.top+x.top):r.scrollTop(t,v.top+w.top)),o&&(x.left<0||w.left>0?!0===l?r.scrollLeft(t,v.left+x.left):!1===l?r.scrollLeft(t,v.left+w.left):x.left<0?r.scrollLeft(t,v.left+x.left):r.scrollLeft(t,v.left+w.left):i||((l=void 0===l||!!l)?r.scrollLeft(t,v.left+x.left):r.scrollLeft(t,v.left+w.left)))}}}]);