You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
10 KiB
1 line
10 KiB
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[192],{2368:function(e,t,n){"use strict";n.r(t);var r=n(8),o=n(7),a=n(10),u=n(9),i=n(11),c=n(0),l=n.n(c),s=n(66),p=n(28),f=n(695),b=n(192),d=n(15),y=n.n(d),h=n(14),v=y()({loader:function(){return n.e(198).then(n.bind(null,2334))},loading:h.a}),m=y()({loader:function(){return Promise.all([n.e(6),n.e(200)]).then(n.bind(null,2050))},loading:h.a}),O=y()({loader:function(){return n.e(218).then(n.bind(null,2237))},loading:h.a}),g=y()({loader:function(){return n.e(217).then(n.bind(null,2238))},loading:h.a}),j=(window.$,function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(a.a)(this,Object(u.a)(t).call(this,e))).componentDidMount=function(){},n.componentDidUpdate=function(e){},n.state={data:void 0},n}return Object(i.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this;return this.state.data,l.a.createElement(s.e,this.props,l.a.createElement(s.c,{exact:!0,path:"/users/:username/videos/upload",render:function(t){return l.a.createElement(m,Object.assign({},e.props,t,e.state))}}),l.a.createElement(s.c,{exact:!0,path:"/users/:username/videos/success",render:function(t){return l.a.createElement(O,Object.assign({},e.props,t,e.state))}}),l.a.createElement(s.c,{exact:!0,path:"/users/:username/videos/protocol",render:function(t){return l.a.createElement(g,Object.assign({},e.props,t,e.state))}}),l.a.createElement(s.c,{path:"/users/:username",render:function(t){return l.a.createElement(v,Object.assign({},e.props,t,e.state))}}))}}]),t}(c.Component));t.default=Object(b.a)()(Object(p.w)()(Object(f.a)(j)))},462:function(e,t,n){"use strict";var r=n(0),o=n(1),a=n(182),u=n(12),i=n.n(u),c=n(75),l=n.n(c),s=n(77);function p(e){return(p="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 f(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 d(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=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},O=function(){function e(){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=y(e).apply(this,arguments),(t=!o||"object"!==p(o)&&"function"!=typeof o?h(n):o).saveCheckbox=function(e){t.rcCheckbox=e},t.onChange=function(e){t.props.onChange&&t.props.onChange(e),t.context.radioGroup&&t.context.radioGroup.onChange&&t.context.radioGroup.onChange(e)},t.renderRadio=function(e){var n,o=e.getPrefixCls,u=h(t),c=u.props,l=u.context,s=c.prefixCls,p=c.className,d=c.children,y=c.style,v=m(c,["prefixCls","className","children","style"]),O=l.radioGroup,g=o("radio",s),j=b({},v);O&&(j.name=O.name,j.onChange=t.onChange,j.checked=c.value===O.value,j.disabled=c.disabled||O.disabled);var w=i()(p,(f(n={},"".concat(g,"-wrapper"),!0),f(n,"".concat(g,"-wrapper-checked"),j.checked),f(n,"".concat(g,"-wrapper-disabled"),j.disabled),n));return r.createElement("label",{className:w,style:y,onMouseEnter:c.onMouseEnter,onMouseLeave:c.onMouseLeave},r.createElement(a.a,b({},j,{prefixCls:g,ref:t.saveCheckbox})),void 0!==d?r.createElement("span",null,d):null)},t}var t,n;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&&v(e,t)}(e,r.Component),t=e,(n=[{key:"shouldComponentUpdate",value:function(e,t,n){return!l()(this.props,e)||!l()(this.state,t)||!l()(this.context.radioGroup,n.radioGroup)}},{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.renderRadio)}}])&&d(t.prototype,n),e}();O.defaultProps={type:"radio"},O.contextTypes={radioGroup:o.any};var g=n(25);function j(e){return(j="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 w(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 C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=null,n=!1;return r.Children.forEach(e,(function(e){e&&e.props&&e.props.checked&&(t=e.props.value,n=!0)})),n?{value:t}:void 0}var k=function(){function e(t){var n,o,a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,o=C(e).call(this,t),(n=!o||"object"!==j(o)&&"function"!=typeof o?x(this):o).onRadioChange=function(e){var t=n.state.value,r=e.target.value;"value"in n.props||n.setState({value:r});var o=n.props.onChange;o&&r!==t&&o(e)},n.renderGroup=function(e){var t,o,a,u=e.getPrefixCls,c=x(n).props,l=c.prefixCls,s=c.className,p=void 0===s?"":s,f=c.options,b=c.buttonStyle,d=u("radio",l),y="".concat(d,"-group"),h=i()(y,"".concat(y,"-").concat(b),(t={},o="".concat(y,"-").concat(c.size),a=c.size,o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t),p),v=c.children;return f&&0<f.length&&(v=f.map((function(e){return"string"==typeof e?r.createElement(O,{key:e,prefixCls:d,disabled:n.props.disabled,value:e,checked:n.state.value===e},e):r.createElement(O,{key:"radio-group-value-options-".concat(e.value),prefixCls:d,disabled:e.disabled||n.props.disabled,value:e.value,checked:n.state.value===e.value},e.label)}))),r.createElement("div",{className:h,style:c.style,onMouseEnter:c.onMouseEnter,onMouseLeave:c.onMouseLeave,id:c.id},v)},"value"in t)a=t.value;else if("defaultValue"in t)a=t.defaultValue;else{var u=P(t.children);a=u&&u.value}return n.state={value:a},n}var t,n,o;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&&E(e,t)}(e,r.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e){if("value"in e)return{value:e.value};var t=P(e.children);return t?{value:t.value}:null}}],(n=[{key:"getChildContext",value:function(){return{radioGroup:{onChange:this.onRadioChange,value:this.state.value,disabled:this.props.disabled,name:this.props.name}}}},{key:"shouldComponentUpdate",value:function(e,t){return!l()(this.props,e)||!l()(this.state,t)}},{key:"render",value:function(){return r.createElement(s.a,null,this.renderGroup)}}])&&w(t.prototype,n),o&&w(t,o),e}();k.defaultProps={buttonStyle:"outline"},k.childContextTypes={radioGroup:o.any},Object(g.polyfill)(k);var S=k;function _(e){return(_="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 G(){return(G=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 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 R(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var L=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},B=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=R(this,T(e).apply(this,arguments))).renderRadioButton=function(e){var n=e.getPrefixCls,o=t.props,a=o.prefixCls,u=L(o,["prefixCls"]),i=n("radio-button",a);return t.context.radioGroup&&(u.checked=t.props.value===t.context.radioGroup.value,u.disabled=t.props.disabled||t.context.radioGroup.disabled),r.createElement(O,G({prefixCls:i},u))},t}var t,n;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&&N(e,t)}(e,r.Component),t=e,(n=[{key:"render",value:function(){return r.createElement(s.a,null,this.renderRadioButton)}}])&&M(t.prototype,n),e}();B.contextTypes={radioGroup:o.any},O.Button=B,O.Group=S,t.a=O},470:function(e,t,n){"use strict";n(46),n(685)},685:function(e,t,n){}}]); |