build/static/js/93.f197d07b.chunk.js

1 line
20 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[93],{"+hnl":function(t,e,n){},"09Wf":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("CWQg"),o=Object(r.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},JvnM:function(t,e,n){"use strict";n.r(e);n("SchZ"),n("xUz+")},KrTs:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return D}));var r=n("q1tI"),o=n("17x9"),a=n("MFj2"),u=n("BGR+"),c=n("eHJ2"),i=n.n(c),s=n("VCL8"),l=n("H84U");function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){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(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t){return t?t.toString().split("").reverse().map((function(t){var e=Number(t);return isNaN(e)?t:e})):[]}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(c,t);var e,n,o,a=b(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this,t)).onAnimated=function(){var t=e.props.onAnimated;t&&t()},e.renderScrollNumber=function(t){var n=t.getPrefixCls,o=e.props,a=o.prefixCls,c=o.className,s=o.style,l=o.title,f=o.component,y=void 0===f?"sup":f,h=o.displayComponent,b=Object(u.default)(e.props,["count","onAnimated","component","prefixCls","displayComponent"]),m=n("scroll-number",a),d=p(p({},b),{className:i()(m,c),title:l});return s&&s.borderColor&&(d.style=p(p({},s),{boxShadow:"0 0 0 1px ".concat(s.borderColor," inset")})),h?r.cloneElement(h,{className:i()("".concat(m,"-custom-component"),h.props&&h.props.className)}):r.createElement(y,d,e.renderNumberElement(m))},e.state={animateStarted:!0,count:t.count},e}return e=c,n=[{key:"componentDidUpdate",value:function(t,e){var n=this;this.lastCount=e.count,this.state.animateStarted&&(this.clearTimeout(),this.timeout=setTimeout((function(){n.setState((function(t,e){return{animateStarted:!1,count:e.count}}),n.onAnimated)})))}},{key:"componentWillUnmount",value:function(){this.clearTimeout()}},{key:"getPositionByNum",value:function(t,e){var n=this.state.count,r=Math.abs(Number(n)),o=Math.abs(Number(this.lastCount)),a=Math.abs(v(this.state.count)[e]),u=Math.abs(v(this.lastCount)[e]);return this.state.animateStarted?10+t:r>o?a>=u?10+t:20+t:a<=u?10+t:t}},{key:"renderCurrentNumber",value:function(t,e,n){if("number"==typeof e){var o=this.getPositionByNum(e,n),a=this.state.animateStarted||void 0===v(this.lastCount)[n];return r.createElement("span",{className:"".concat(t,"-only"),style:{transition:a?"none":void 0,msTransform:"translateY(".concat(100*-o,"%)"),WebkitTransform:"translateY(".concat(100*-o,"%)"),transform:"translateY(".concat(100*-o,"%)")},key:n},function(t,e){for(var n=[],o=0;o<30;o++)n.push(r.createElement("p",{key:o.toString(),className:i()(e,{current:t===o})},o%10));return n}(o,"".concat(t,"-only-unit")))}return r.createElement("span",{key:"symbol",className:"".concat(t,"-symbol")},e)}},{key:"renderNumberElement",value:function(t){var e=this,n=this.state.count;return n&&Number(n)%1==0?v(n).map((function(n,r){return e.renderCurrentNumber(t,n,r)})).reverse():n}},{key:"render",value:function(){return r.createElement(l.a,null,this.renderScrollNumber)}},{key:"clearTimeout",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}))}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return"count"in t?e.count===t.count?null:{animateStarted:!0}:null}}],n&&y(e.prototype,n),o&&y(e,o),c}(r.Component);g.defaultProps={count:null,onAnimated:function(){}},Object(s.polyfill)(g);var O=g,x=n("09Wf");function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(){return(k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t){var e=function(){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(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==C(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function T(t){return-1!==x.a.indexOf(t)}var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(s,t);var e,n,o,c=N(s);function s(){var t;return w(this,s),(t=c.apply(this,arguments)).renderBadge=function(e){var n,o=e.getPrefixCls,c=t.props,s=c.prefixCls,l=c.scrollNumberPrefixCls,f=c.children,p=c.status,y=c.text,h=c.color,b=R(c,["prefixCls","scrollNumberPrefixCls","children","status","text","color"]),m=["count","showZero","overflowCount","className","style","dot","offset","title"],d=o("badge",s),v=o("scroll-number",l),g=t.renderBadgeNumber(d,v),O=t.renderStatusText(d),x=i()((S(n={},"".concat(d,"-status-dot"),t.hasStatus()),S(n,"".concat(d,"-status-").concat(p),!!p),S(n,"".concat(d,"-status-").concat(h),T(h)),n)),C={};if(h&&!T(h)&&(C.background=h),!f&&t.hasStatus()){var w=t.getStyleWithOffset(),j=w&&w.color;return r.createElement("span",k({},Object(u.default)(b,m),{className:t.getBadgeClassName(d),style:w}),r.createElement("span",{className:x,style:C}),r.createElement("span",{style:{color:j},className:"".concat(d,"-status-text")},y))}return r.createElement("span",k({},Object(u.default)(b,m),{className:t.getBadgeClassName(d)}),f,r.createElement(a.a,{component:"",showProp:"data-show",transitionName:f?"".concat(d,"-zoom"):"",transitionAppear:!0},g),O)},t}return e=s,(n=[{key:"getNumberedDispayCount",value:function(){var t=this.props,e=t.count,n=t.overflowCount;return e>n?"".concat(n,"+"):e}},{key:"getDispayCount",value:function(){return this.isDot()?"":this.getNumberedDispayCount()}},{key:"getScrollNumberTitle",value:function(){var t=this.props,e=t.title,n=t.count;return e||("string"==typeof n||"number"==typeof n?n:void 0)}},{key:"getStyleWithOffset",value:function(){var t=this.props,e=t.offset,n=t.style;return e?k({right:-parseInt(e[0],10),marginTop:e[1]},n):n}},{key:"getBadgeClassName",value:function(t){var e,n=this.props,r=n.className,o=n.children;return i()(r,t,(S(e={},"".concat(t,"-status"),this.hasStatus()),S(e,"".concat(t,"-not-a-wrapper"),!o),e))}},{key:"hasStatus",value:function(){var t=this.props,e=t.status,n=t.color;return!!e||!!n}},{key:"isZero",value:function(){var t=this.getNumberedDispayCount();return"0"===t||0===t}},{key:"isDot",value:function(){var t=this.props.dot,e=this.isZero();return t&&!e||this.hasStatus()}},{key:"isHidden",value:function(){var t=this.props.showZero,e=this.getDispayCount(),n=this.isZero(),r=this.isDot();return(null==e||""===e||n&&!t)&&!r}},{key:"renderStatusText",value:function(t){var e=this.props.text;return this.isHidden()||!e?null:r.createElement("span",{className:"".concat(t,"-status-text")},e)}},{key:"renderDispayComponent",value:function(){var t=this.props.count;if(t&&"object"===C(t))return r.cloneElement(t,{style:k(k({},this.getStyleWithOffset()),t.props&&t.props.style)})}},{key:"renderBadgeNumber",value:function(t,e){var n,o=this.props,a=o.status,u=o.count,c=o.color,s=this.getDispayCount(),l=this.isDot(),f=this.isHidden(),p=i()((S(n={},"".concat(t,"-dot"),l),S(n,"".concat(t,"-count"),!l),S(n,"".concat(t,"-multiple-words"),!l&&u&&u.toString&&u.toString().length>1),S(n,"".concat(t,"-status-").concat(a),!!a),S(n,"".concat(t,"-status-").concat(c),T(c)),n)),y=this.getStyleWithOffset();return c&&!T(c)&&((y=y||{}).background=c),f?null:r.createElement(O,{prefixCls:e,"data-show":!f,className:p,count:s,displayComponent:this.renderDispayComponent(),title:this.getScrollNumberTitle(),style:y,key:"scrollNumber"})}},{key:"render",value:function(){return r.createElement(l.a,null,this.renderBadge)}}])&&j(e.prototype,n),o&&j(e,o),s}(r.Component);D.defaultProps={count:null,showZero:!1,dot:!1,overflowCount:99},D.propTypes={count:o.node,showZero:o.bool,dot:o.bool,overflowCount:o.number}},MKzF:function(t,e,n){"use strict";n.r(e);n("SchZ"),n("+hnl")},kaz8:function(t,e,n){"use strict";n.r(e);var r=n("q1tI"),o=n("17x9"),a=n("VCL8"),u=n("eHJ2"),c=n.n(u),i=n("x1Ya"),s=n("Gytx"),l=n.n(s),f=n("H84U"),p=n("6CfX");function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){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(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?x(t):e}function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(u,t);var e,n,o,a=g(u);function u(){var t;return m(this,u),(t=a.apply(this,arguments)).saveCheckbox=function(e){t.rcCheckbox=e},t.renderCheckbox=function(e){var n,o=e.getPrefixCls,a=x(t),u=a.props,s=a.context,l=u.prefixCls,f=u.className,p=u.children,y=u.indeterminate,m=u.style,d=u.onMouseEnter,v=u.onMouseLeave,g=k(u,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),O=s.checkboxGroup,C=o("checkbox",l),S=b({},g);O&&(S.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),O.toggleOption({label:p,value:u.value})},S.name=O.name,S.checked=-1!==O.value.indexOf(u.value),S.disabled=u.disabled||O.disabled);var w=c()(f,(h(n={},"".concat(C,"-wrapper"),!0),h(n,"".concat(C,"-wrapper-checked"),S.checked),h(n,"".concat(C,"-wrapper-disabled"),S.disabled),n)),j=c()(h({},"".concat(C,"-indeterminate"),y));return r.createElement("label",{className:w,style:m,onMouseEnter:d,onMouseLeave:v},r.createElement(i.a,b({},S,{prefixCls:C,className:j,ref:t.saveCheckbox})),void 0!==p&&r.createElement("span",null,p))},t}return e=u,(n=[{key:"componentDidMount",value:function(){var t=this.props.value,e=(this.context||{}).checkboxGroup,n=void 0===e?{}:e;n.registerValue&&n.registerValue(t),Object(p.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(t,e,n){return!l()(this.props,t)||!l()(this.state,e)||!l()(this.context.checkboxGroup,n.checkboxGroup)}},{key:"componentDidUpdate",value:function(t){var e=t.value,n=this.props.value,r=(this.context||{}).checkboxGroup,o=void 0===r?{}:r;n!==e&&o.registerValue&&o.cancelValue&&(o.cancelValue(e),o.registerValue(n))}},{key:"componentWillUnmount",value:function(){var t=this.props.value,e=(this.context||{}).checkboxGroup,n=void 0===e?{}:e;n.cancelValue&&n.cancelValue(t)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return r.createElement(f.a,null,this.renderCheckbox)}}])&&d(e.prototype,n),o&&d(e,o),u}(r.Component);S.__ANT_CHECKBOX=!0,S.defaultProps={indeterminate:!1},S.contextTypes={checkboxGroup:o.any},Object(a.polyfill)(S);var w=S,j=n("BGR+");function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(){return(N=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function E(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t)||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){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=function(){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(t){return!1}}();return function(){var n,r=M(t);if(e){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return V(this,n)}}function V(t,e){return!e||"object"!==P(e)&&"function"!=typeof e?G(t):e}function G(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},B=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(u,t);var e,n,o,a=D(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=a.call(this,t)).cancelValue=function(t){e.setState((function(e){return{registeredValues:e.registeredValues.filter((function(e){return e!==t}))}}))},e.registerValue=function(t){e.setState((function(e){var n=e.registeredValues;return{registeredValues:[].concat(E(n),[t])}}))},e.toggleOption=function(t){var n=e.state.registeredValues,r=e.state.value.indexOf(t.value),o=E(e.state.value);-1===r?o.push(t.value):o.splice(r,1),"value"in e.props||e.setState({value:o});var a=e.props.onChange;if(a){var u=e.getOptions();a(o.filter((function(t){return-1!==n.indexOf(t)})).sort((function(t,e){return u.findIndex((function(e){return e.value===t}))-u.findIndex((function(t){return t.value===e}))})))}},e.renderGroup=function(t){var n=t.getPrefixCls,o=G(e),a=o.props,u=o.state,i=a.prefixCls,s=a.className,l=a.style,f=a.options,p=A(a,["prefixCls","className","style","options"]),y=n("checkbox",i),h="".concat(y,"-group"),b=Object(j.default)(p,["children","defaultValue","value","onChange","disabled"]),m=a.children;f&&f.length>0&&(m=e.getOptions().map((function(t){return r.createElement(w,{prefixCls:y,key:t.value.toString(),disabled:"disabled"in t?t.disabled:a.disabled,value:t.value,checked:-1!==u.value.indexOf(t.value),onChange:t.onChange,className:"".concat(h,"-item")},t.label)})));var d=c()(h,s);return r.createElement("div",N({className:d,style:l},b),m)},e.state={value:t.value||t.defaultValue||[],registeredValues:[]},e}return e=u,o=[{key:"getDerivedStateFromProps",value:function(t){return"value"in t?{value:t.value||[]}:null}}],(n=[{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(t,e){return!l()(this.props,t)||!l()(this.state,e)}},{key:"getOptions",value:function(){return this.props.options.map((function(t){return"string"==typeof t?{label:t,value:t}:t}))}},{key:"render",value:function(){return r.createElement(f.a,null,this.renderGroup)}}])&&R(e.prototype,n),o&&R(e,o),u}(r.Component);B.defaultProps={options:[]},B.propTypes={defaultValue:o.array,value:o.array,options:o.array.isRequired,onChange:o.func},B.childContextTypes={checkboxGroup:o.any},Object(a.polyfill)(B);var I=B;w.Group=I;e.default=w},"xUz+":function(t,e,n){}}]);