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.
p6tsc84h5/static/js/149.92847c91.chunk.js

1 line
49 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

webpackJsonp([149],{1046:function(e,t,n){"use strict";n(27),n(1047)},1047:function(e,t,n){var r=n(1048);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!1,transform:void 0};n(289)(r,o);r.locals&&(e.exports=r.locals)},1048:function(e,t,n){(e.exports=n(288)(!0)).push([e.i,'.ant-progress{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.65);font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;-webkit-font-feature-settings:"tnum";font-feature-settings:"tnum";display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#f5f5f5;border-radius:100px}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-circle-path{-webkit-animation:ant-progress-appear .3s;animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#1890ff}.ant-progress-bg,.ant-progress-success-bg{position:relative;background-color:#1890ff;border-radius:100px;-webkit-transition:all .4s cubic-bezier(.08,.82,.17,1) 0s;-o-transition:all .4s cubic-bezier(.08,.82,.17,1) 0s;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#52c41a}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:rgba(0,0,0,.45);font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;-webkit-animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#f5222d}.ant-progress-status-exception .ant-progress-text{color:#f5222d}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#f5222d}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a}.ant-progress-status-success .ant-progress-text{color:#52c41a}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:rgba(0,0,0,.65);line-height:1;white-space:normal;text-align:center;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#f5222d}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a}@-webkit-keyframes ant-progress-active{0%{width:0;opacity:.1}20%{width:0;opacity:.5}to{width:100%;opacity:0}}@keyframes ant-progress-active{0%{width:0;opacity:.1}20%{width:0;opacity:.5}to{width:100%;opacity:0}}',"",{version:3,sources:["/Users/yangshuming/Desktop/new__educode/educoder/public/react/node_modules/_antd@3.23.2@antd/lib/progress/style/index.css"],names:[],mappings:"AAIA,cACE,8BAA+B,AACvB,sBAAuB,AAC/B,SAAU,AACV,UAAW,AACX,sBAA2B,AAC3B,eAAgB,AAChB,0BAA2B,AAC3B,gBAAiB,AACjB,gBAAiB,AACjB,qCAAsC,AAC9B,6BAA8B,AACtC,oBAAsB,CACvB,AACD,mBACE,kBAAmB,AACnB,WAAY,AACZ,cAAgB,CACjB,AACD,wGAEE,cAAgB,CACjB,AACD,oBACE,qBAAsB,AACtB,WAAY,AACZ,eAAgB,AAChB,eAAiB,CAClB,AACD,4CACE,8BAA+B,AAC/B,6BAA+B,CAChC,AACD,oBACE,kBAAmB,AACnB,qBAAsB,AACtB,WAAY,AACZ,gBAAiB,AACjB,sBAAuB,AACvB,yBAA0B,AAC1B,mBAAqB,CACtB,AACD,2BACE,cAAgB,CACjB,AACD,0BACE,0CAA4C,AACpC,iCAAoC,CAC7C,AACD,iFACE,cAAgB,CACjB,AACD,0CAEE,kBAAmB,AACnB,yBAA0B,AAC1B,oBAAqB,AACrB,0DAAkE,AAClE,qDAA6D,AAC7D,iDAA0D,CAC3D,AACD,yBACE,kBAAmB,AACnB,MAAO,AACP,OAAQ,AACR,wBAA0B,CAC3B,AACD,mBACE,qBAAsB,AACtB,UAAW,AACX,gBAAiB,AACjB,sBAA2B,AAC3B,cAAe,AACf,cAAe,AACf,mBAAoB,AACpB,gBAAiB,AACjB,sBAAuB,AACvB,iBAAmB,CACpB,AACD,4BACE,cAAgB,CACjB,AACD,oDACE,kBAAmB,AACnB,MAAO,AACP,QAAS,AACT,SAAU,AACV,OAAQ,AACR,gBAAiB,AACjB,mBAAoB,AACpB,UAAW,AACX,8EAAoF,AAC5E,sEAA4E,AACpF,UAAY,CACb,AACD,gDACE,wBAA0B,CAC3B,AACD,kDACE,aAAe,CAChB,AACD,gHACE,cAAgB,CACjB,AACD,8CACE,wBAA0B,CAC3B,AACD,gDACE,aAAe,CAChB,AACD,8GACE,cAAgB,CACjB,AACD,yCACE,kBAAmB,AACnB,cAAe,AACf,4BAA8B,CAC/B,AACD,wCACE,kBAAmB,AACnB,QAAS,AACT,SAAU,AACV,WAAY,AACZ,SAAU,AACV,UAAW,AACX,sBAA2B,AAC3B,cAAe,AACf,mBAAoB,AACpB,kBAAmB,AACnB,uCAAyC,AACrC,mCAAqC,AACjC,8BAAiC,CAC1C,AACD,iDACE,sBAAwB,CACzB,AACD,sEACE,aAAe,CAChB,AACD,oEACE,aAAe,CAChB,AACD,uCACE,GACE,QAAS,AACT,UAAa,CACd,AACD,IACE,QAAS,AACT,UAAa,CACd,AACD,GACE,WAAY,AACZ,SAAW,CACZ,CACF,AACD,+BACE,GACE,QAAS,AACT,UAAa,CACd,AACD,IACE,QAAS,AACT,UAAa,CACd,AACD,GACE,WAAY,AACZ,SAAW,CACZ,CACF",file:"index.css",sourcesContent:["/* 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 */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-progress {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n -webkit-font-feature-settings: 'tnum';\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-progress-line {\n position: relative;\n width: 100%;\n font-size: 14px;\n}\n.ant-progress-small.ant-progress-line,\n.ant-progress-small.ant-progress-line .ant-progress-text .anticon {\n font-size: 12px;\n}\n.ant-progress-outer {\n display: inline-block;\n width: 100%;\n margin-right: 0;\n padding-right: 0;\n}\n.ant-progress-show-info .ant-progress-outer {\n margin-right: calc(-2em - 8px);\n padding-right: calc(2em + 8px);\n}\n.ant-progress-inner {\n position: relative;\n display: inline-block;\n width: 100%;\n overflow: hidden;\n vertical-align: middle;\n background-color: #f5f5f5;\n border-radius: 100px;\n}\n.ant-progress-circle-trail {\n stroke: #f5f5f5;\n}\n.ant-progress-circle-path {\n -webkit-animation: ant-progress-appear 0.3s;\n animation: ant-progress-appear 0.3s;\n}\n.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #1890ff;\n}\n.ant-progress-success-bg,\n.ant-progress-bg {\n position: relative;\n background-color: #1890ff;\n border-radius: 100px;\n -webkit-transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;\n -o-transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;\n transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;\n}\n.ant-progress-success-bg {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #52c41a;\n}\n.ant-progress-text {\n display: inline-block;\n width: 2em;\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 1em;\n line-height: 1;\n white-space: nowrap;\n text-align: left;\n vertical-align: middle;\n word-break: normal;\n}\n.ant-progress-text .anticon {\n font-size: 14px;\n}\n.ant-progress-status-active .ant-progress-bg::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: #fff;\n border-radius: 10px;\n opacity: 0;\n -webkit-animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;\n animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;\n content: '';\n}\n.ant-progress-status-exception .ant-progress-bg {\n background-color: #f5222d;\n}\n.ant-progress-status-exception .ant-progress-text {\n color: #f5222d;\n}\n.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #f5222d;\n}\n.ant-progress-status-success .ant-progress-bg {\n background-color: #52c41a;\n}\n.ant-progress-status-success .ant-progress-text {\n color: #52c41a;\n}\n.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #52c41a;\n}\n.ant-progress-circle .ant-progress-inner {\n position: relative;\n line-height: 1;\n background-color: transparent;\n}\n.ant-progress-circle .ant-progress-text {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n line-height: 1;\n white-space: normal;\n text-align: center;\n -webkit-transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.ant-progress-circle .ant-progress-text .anticon {\n font-size: 1.16666667em;\n}\n.ant-progress-circle.ant-progress-status-exception .ant-progress-text {\n color: #f5222d;\n}\n.ant-progress-circle.ant-progress-status-success .ant-progress-text {\n color: #52c41a;\n}\n@-webkit-keyframes ant-progress-active {\n 0% {\n width: 0;\n opacity: 0.1;\n }\n 20% {\n width: 0;\n opacity: 0.5;\n }\n 100% {\n width: 100%;\n opacity: 0;\n }\n}\n@keyframes ant-progress-active {\n 0% {\n width: 0;\n opacity: 0.1;\n }\n 20% {\n width: 0;\n opacity: 0.5;\n }\n 100% {\n width: 100%;\n opacity: 0;\n }\n}\n"],sourceRoot:""}])},1049:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1050))&&r.__esModule?r:{default:r}).default;t.default=o},1050:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),b=s(n(0)),m=i(n(3)),y=i(n(44)),p=i(n(26)),o=n(10),a=n(85),v=i(n(1051)),h=i(n(1052)),u=n(842);function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function c(e){return(c="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 C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(){return(O=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 l(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 d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var B=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},A=(0,a.tuple)("line","circle","dashboard"),g=(0,a.tuple)("normal","exception","active","success"),x=function(){function n(){var g,e,t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e=this,t=d(n).apply(this,arguments),(g=!t||"object"!==c(t)&&"function"!=typeof t?w(e):t).renderProgress=function(e){var t,n,r=e.getPrefixCls,o=w(g).props,a=o.prefixCls,i=o.className,s=o.size,c=o.type,l=o.showInfo,p=B(o,["prefixCls","className","size","type","showInfo"]),u=r("progress",a),d=g.getProgressStatus(),f=g.renderProcessInfo(u,d);"line"===c?n=b.createElement(v.default,O({},g.props,{prefixCls:u}),f):"circle"!==c&&"dashboard"!==c||(n=b.createElement(h.default,O({},g.props,{prefixCls:u,progressStatus:d}),f));var A=(0,m.default)(u,(C(t={},"".concat(u,"-").concat("dashboard"===c?"circle":c),!0),C(t,"".concat(u,"-status-").concat(d),!0),C(t,"".concat(u,"-show-info"),l),C(t,"".concat(u,"-").concat(s),s),t),i);return b.createElement("div",O({},(0,y.default)(p,["status","format","trailColor","successPercent","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent"]),{className:A}),n)},g}var e,t,r;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)}(n,b.Component),e=n,(t=[{key:"getPercentNumber",value:function(){var e=this.props,t=e.successPercent,n=e.percent,r=void 0===n?0:n;return parseInt(void 0!==t?t.toString():r.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return g.indexOf(e)<0&&100<=this.getPercentNumber()?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,r=this.props,o=r.showInfo,a=r.format,i=r.type,s=r.percent,c=r.successPercent;if(!o)return null;var l="circle"===i||"dashboard"===i?"":"-circle";return a||"exception"!==t&&"success"!==t?n=(a||function(e){return"".concat(e,"%")})((0,u.validProgress)(s),(0,u.validProgress)(c)):"exception"===t?n=b.createElement(p.default,{type:"close".concat(l),theme:"line"===i?"filled":"outlined"}):"success"===t&&(n=b.createElement(p.default,{type:"check".concat(l),theme:"line"===i?"filled":"outlined"})),b.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof n?n:void 0},n)}},{key:"render",value:function(){return b.createElement(o.ConfigConsumer,null,this.renderProgress)}}])&&l(e.prototype,t),r&&l(e,r),n}();(t.default=x).defaultProps={type:"line",percent:0,showInfo:!0,trailColor:"#f3f3f3",size:"default",gapDegree:0,strokeLinecap:"round"},x.propTypes={status:r.oneOf(g),type:r.oneOf(A),showInfo:r.bool,percent:r.number,width:r.number,strokeWidth:r.number,strokeLinecap:r.oneOf(["round","square"]),strokeColor:r.oneOfType([r.string,r.object]),trailColor:r.string,format:r.func,gapDegree:r.number}},1051:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.handleGradient=t.sortGradient=void 0;var f=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}}(n(0)),A=n(842);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 c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(e){for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var o=c(r[n],2),a=o[0],i=o[1],s=parseFloat(a.replace(/%/g,""));if(isNaN(s))return{};t.push({key:s,value:i})}return(t=t.sort(function(e,t){return e.key-t.key})).map(function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")}).join(", ")}var p=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};t.sortGradient=l;function b(e){var t=e.from,n=void 0===t?"#1890ff":t,r=e.to,o=void 0===r?"#1890ff":r,a=e.direction,i=void 0===a?"to right":a,s=p(e,["from","to","direction"]);if(0===Object.keys(s).length)return{backgroundImage:"linear-gradient(".concat(i,", ").concat(n,", ").concat(o,")")};var c=l(s);return{backgroundImage:"linear-gradient(".concat(i,", ").concat(c,")")}}t.handleGradient=b;function r(e){var t,n=e.prefixCls,r=e.percent,o=e.successPercent,a=e.strokeWidth,i=e.size,s=e.strokeColor,c=e.strokeLinecap,l=e.children;t=s&&"string"!=typeof s?b(s):{background:s};var p=g({width:"".concat((0,A.validProgress)(r),"%"),height:a||("small"===i?6:8),borderRadius:"square"===c?0:""},t),u={width:"".concat((0,A.validProgress)(o),"%"),height:a||("small"===i?6:8),borderRadius:"square"===c?0:""},d=void 0!==o?f.createElement("div",{className:"".concat(n,"-success-bg"),style:u}):null;return f.createElement("div",null,f.createElement("div",{className:"".concat(n,"-outer")},f.createElement("div",{className:"".concat(n,"-inner")},f.createElement("div",{className:"".concat(n,"-bg"),style:p}),d)),l)}t.default=r},1052:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,x=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}}(n(0)),k=n(1053),j=(r=n(3))&&r.__esModule?r:{default:r},E=n(842);var P={normal:"#108ee9",exception:"#ff5500",success:"#87d068"};function o(e){var t,n,r,o,a,i,s,c=e.prefixCls,l=e.width,p=e.strokeWidth,u=e.trailColor,d=e.strokeLinecap,f=e.gapPosition,A=e.gapDegree,g=e.type,b=e.children,m=l||120,y={width:m,height:m,fontSize:.15*m+6},v=p||6,h=f||"dashboard"===g&&"bottom"||"top",C=A||("dashboard"===g?75:void 0),O=(n=(t=e).progressStatus,r=t.successPercent,o=t.strokeColor||P[n],r?[P.success,o]:o),w="[object Object]"===Object.prototype.toString.call(O),B=(0,j.default)("".concat(c,"-inner"),(a={},i="".concat(c,"-circle-gradient"),s=w,i in a?Object.defineProperty(a,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[i]=s,a));return x.createElement("div",{className:B,style:y},x.createElement(k.Circle,{percent:function(e){var t=e.percent,n=e.successPercent,r=(0,E.validProgress)(t);if(!n)return r;var o=(0,E.validProgress)(n);return[n,(0,E.validProgress)(r-o)]}(e),strokeWidth:v,trailWidth:v,strokeColor:O,strokeLinecap:d,trailColor:u,prefixCls:c,gapDegree:C,gapPosition:h}),b)}t.default=o},1053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1054),o=n(1055);n.d(t,"Line",function(){return r.a}),n.d(t,"Circle",function(){return o.a}),t.default={Line:r.a,Circle:o.a}},1054:function(e,t,n){"use strict";var r=n(0),h=n.n(r),o=n(912),a=n(913);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 O(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(){function p(){var e,t,n,r,o,a,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=this,t=!(r=(e=u(p)).call.apply(e,[this].concat(c)))||"object"!=typeof r&&"function"!=typeof r?d(n):r,o=d(t),i={},(a="paths")in o?Object.defineProperty(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,t}var e,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&&s(e,t)}(p,r["Component"]),e=p,(t=[{key:"render",value:function(){var o=this,e=this.props,t=e.className,n=e.percent,a=e.prefixCls,r=e.strokeColor,i=e.strokeLinecap,s=e.strokeWidth,c=e.style,l=e.trailColor,p=e.trailWidth,u=e.transition,d=O(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete d.gapPosition;var f=Array.isArray(n)?n:[n],A=Array.isArray(r)?r:[r],g=s/2,b=100-s/2,m="M ".concat("round"===i?g:0,",").concat(g,"\n L ").concat("round"===i?b:100,",").concat(g),y="0 0 100 ".concat(s),v=0;return h.a.createElement("svg",C({className:"".concat(a,"-line ").concat(t),viewBox:y,preserveAspectRatio:"none",style:c},d),h.a.createElement("path",{className:"".concat(a,"-line-trail"),d:m,strokeLinecap:i,stroke:l,strokeWidth:p||s,fillOpacity:"0"}),f.map(function(e,t){var n={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(v,"px"),transition:u||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},r=A[t]||A[A.length-1];return v+=e,h.a.createElement("path",{key:t,className:"".concat(a,"-line-path"),d:m,strokeLinecap:i,stroke:r,strokeWidth:s,fillOpacity:"0",ref:function(e){o.paths[t]=e},style:n})}))}}])&&i(e.prototype,t),n&&i(e,n),p}();c.propTypes=a.b,c.defaultProps=a.a,t.a=Object(o.a)(c)},1055:function(e,t,n){"use strict";var o=n(0),b=n.n(o),r=n(1),a=n.n(r),i=n(912),s=n(913);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(n,!0).forEach(function(e){A(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}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 y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=0;function v(e){return+e.replace("%","")}function h(e){return Array.isArray(e)?e:[e]}function C(e,t,n,r,o,a){var i=4<arguments.length&&void 0!==o?o:0,s=50-r/2,c=0,l=-s,p=0,u=-2*s;switch(5<arguments.length?a:void 0){case"left":c=-s,p=2*s,u=l=0;break;case"right":p=-2*(c=s),u=l=0;break;case"bottom":u=2*(l=s)}var d="M 50,50 m ".concat(c,",").concat(l,"\n a ").concat(s,",").concat(s," 0 1 1 ").concat(p,",").concat(-u,"\n a ").concat(s,",").concat(s," 0 1 1 ").concat(-p,",").concat(u),f=2*Math.PI*s;return{pathString:d,pathStyle:{stroke:n,strokeDasharray:"".concat(t/100*(f-i),"px ").concat(f,"px"),strokeDashoffset:"-".concat(i/2+e/100*(f-i),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"}}}var O=function(){function r(){var e,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=this,e=!(n=u(r).call(this))||"object"!=typeof n&&"function"!=typeof n?d(t):n,A(d(e),"paths",{}),A(d(e),"gradientId",0),e.gradientId=g,g+=1,e}var e,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&&f(e,t)}(r,o["Component"]),e=r,(t=[{key:"getStokeList",value:function(){var s=this,e=this.props,c=e.prefixCls,t=e.percent,n=e.strokeColor,l=e.strokeWidth,p=e.strokeLinecap,u=e.gapDegree,d=e.gapPosition,r=h(t),f=h(n),A=0;return r.map(function(e,t){var n=f[t]||f[f.length-1],r="[object Object]"===Object.prototype.toString.call(n)?"url(#".concat(c,"-gradient-").concat(s.gradientId,")"):"",o=C(A,e,n,l,u,d),a=o.pathString,i=o.pathStyle;return A+=e,b.a.createElement("path",{key:t,className:"".concat(c,"-circle-path"),d:a,stroke:r,strokeLinecap:p,strokeWidth:0===e?0:l,fillOpacity:"0",style:i,ref:function(e){s.paths[t]=e}})})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.strokeWidth,r=e.trailWidth,o=e.gapDegree,a=e.gapPosition,i=e.trailColor,s=e.strokeLinecap,c=e.style,l=e.className,p=e.strokeColor,u=y(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor"]),d=C(0,100,i,n,o,a),f=d.pathString,A=d.pathStyle;delete u.percent;var g=h(p).find(function(e){return"[object Object]"===Object.prototype.toString.call(e)});return b.a.createElement("svg",m({className:"".concat(t,"-circle ").concat(l),viewBox:"0 0 100 100",style:c},u),g&&b.a.createElement("defs",null,b.a.createElement("linearGradient",{id:"".concat(t,"-gradient-").concat(this.gradientId),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(g).sort(function(e,t){return v(e)-v(t)}).map(function(e,t){return b.a.createElement("stop",{key:t,offset:e,stopColor:g[e]})}))),b.a.createElement("path",{className:"".concat(t,"-circle-trail"),d:f,stroke:i,strokeLinecap:s,strokeWidth:r||n,fillOpacity:"0",style:A}),this.getStokeList().reverse())}}])&&p(e.prototype,t),n&&p(e,n),r}();O.propTypes=l({},s.b,{gapPosition:a.a.oneOf(["top","bottom","left","right"])}),O.defaultProps=l({},s.a,{gapPosition:"top"}),t.a=Object(i.a)(O)},1064:function(e,t,n){var l=n(48),p=Object.prototype.hasOwnProperty,i=Array.prototype.splice,r=Object.prototype.toString,u=function(e){return r.call(e).slice(8,-1)},o=Object.assign||function(t,n){return d(n).forEach(function(e){p.call(n,e)&&(t[e]=n[e])}),t},d="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function f(e){if(Array.isArray(e))return o(e.constructor(e.length),e);if("Map"===u(e))return new Map(e);if("Set"===u(e))return new Set(e);if(e&&"object"==typeof e){var t=Object.getPrototypeOf(e);return o(Object.create(t),e)}return e}function a(){var s=o({},A);return c.extend=function(e,t){s[e]=t},c.isEquals=function(e,t){return e===t},c;function c(o,a){"function"==typeof a&&(a={$apply:a}),Array.isArray(o)&&Array.isArray(a)||l(!Array.isArray(a),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),l("object"==typeof a&&null!==a,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(s).join(", "));var i=o;return d(a).forEach(function(e){if(p.call(s,e)){var t=o===i;i=s[e](a[e],i,a,o),t&&c.isEquals(i,o)&&(i=o)}else{var n="Map"===u(o)?c(o.get(e),a[e]):c(o[e],a[e]),r="Map"===u(i)?i.get(e):i[e];c.isEquals(n,r)&&(void 0!==n||p.call(o,e))||(i===o&&(i=f(o)),"Map"===u(i)?i.set(e,n):i[e]=n)}}),i}}var A={$push:function(e,t,n){return c(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return c(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,r){var o,a;return o=t,a=n,l(Array.isArray(o),"Expected $splice target to be an array; got %s",o),b(a.$splice),e.forEach(function(e){b(e),t===r&&e.length&&(t=f(r)),i.apply(t,e)}),t},$set:function(e,t,n){var r;return r=n,l(1===Object.keys(r).length,"Cannot have more than one key in an object with $set"),e},$toggle:function(e,t){g(e,"$toggle");var n=e.length?f(t):t;return e.forEach(function(e){n[e]=!t[e]}),n},$unset:function(e,t,n,r){return g(e,"$unset"),e.forEach(function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=f(r)),delete t[e])}),t},$add:function(e,r,t,o){return m(r,"$add"),g(e,"$add"),"Map"===u(r)?e.forEach(function(e){var t=e[0],n=e[1];r===o&&r.get(t)!==n&&(r=f(o)),r.set(t,n)}):e.forEach(function(e){r!==o||r.has(e)||(r=f(o)),r.add(e)}),r},$remove:function(e,t,n,r){return m(t,"$remove"),g(e,"$remove"),e.forEach(function(e){t===r&&t.has(e)&&(t=f(r)),t.delete(e)}),t},$merge:function(t,n,e,r){var o,a;return o=n,l((a=t)&&"object"==typeof a,"update(): $merge expects a spec of type 'object'; got %s",a),l(o&&"object"==typeof o,"update(): $merge expects a target of type 'object'; got %s",o),d(t).forEach(function(e){t[e]!==n[e]&&(n===r&&(n=f(r)),n[e]=t[e])}),n},$apply:function(e,t){var n;return l("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},s=a();function c(e,t,n){l(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),g(t[n],n)}function g(e,t){l(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function b(e){l(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function m(e,t){var n=u(e);l("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}e.exports=s,e.exports.default=s,e.exports.newContext=a},4240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var m=n(0),y=n.n(m),v=n(45),h=n(5),r=n(12),C=n.n(r),O=n(4241),w=n(4242),B=n(4243),o=(n(4244),n(4245)),x=n.n(o),a=n(4246),k=n.n(a),j=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},E=void 0,P=!0;t.default=function(o){var e=Object(m.useReducer)(B.b,B.a),t=j(e,2),a=t[0],i=t[1],n=Object(m.useContext)(h.y),r=Object(m.useState)(!1),s=j(r,2),c=(s[0],s[1]);function l(e){if(P)return!0;var t="确认要离开当前页面,当前数据不可恢复";return(e||window.event).returnValue=t}Object(m.useEffect)(function(){return c(!1),window.addEventListener("beforeunload",l),function(){E=null,window.removeEventListener("beforeunload",l)}},[]),P=!a.videos||0==a.videos.length;var p=o.match.params.username,u=o.showNotification,d=o.history;function f(){document.getElementById("fileUpload").value=""}function A(t,e){o.confirm({content:y.a.createElement("div",null,y.a.createElement("div",null,"您确认要",e?"删除":"取消上传","该视频吗?")),onOk:function(){var e;e=t,E.deleteFile(e),f(),i({type:"removeVideo",index:e})}})}function g(e,t){i({type:"updateTitle",title:e,index:t})}var b=y.a.createElement("div",null,"上传视频,即表示您已同意",y.a.createElement(v.b,{to:"/users/"+p+"/videos/protocol",style:{color:n.foreground_select}},"上传内容协议"),",不得上传未经他人授权的作品");return y.a.createElement("div",{className:"educontent videoUploadList",style:{marginBottom:"200px"}},y.a.createElement(v.c,{when:a.videos.length,message:"确认要离开当前页面,当前数据不可恢复"}),y.a.createElement("style",null,"\n .videoUploadList .section {\n background: #fff;\n padding: 16px 20px;\n padding-top: 0px;\n position: relative;\n\n padding-bottom: 36px;\n }\n .videoUploadList .cBreadcrumb {\n margin-top: 16px;\n }\n .videoUploadList .uploadTip {\n line-height: 18px;\n margin-bottom: 16px;\n }\n .videoUploadList .title {\n margin-bottom: 4px;\n }\n .videoUploadList .title .head {\n display: inline-block;\n margin-right: 8px;\n }\n .videoUploadList .title .titleDescription {\n color: #555;\n }\n .videoUploadList .section .description {\n padding-top: 10px;\n margin-top: 20px;\n margin-bottom: 30px;\n \n\n color: #777;\n }\n .videoUploadList .section .description.noUploads {\n text-align: 'center';\n }\n .videoUploadList .publishBtn {\n padding: 0 16px\n }\n .videoUploadList .publishRow .publishBtn {\n padding: 6px 24px;\n height: auto;\n margin-bottom: 24px;\n }\n .videoUploadList .addVideoBtn {\n position: absolute;\n right: 30px;\n }\n .videoUploadList .publishRow {\n text-align: center;\n margin-top: 42px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n }\n\n .noUploads {\n text-align: center;\n }\n \n\n /* item */\n .videoUploadList .cancelUpload {\n flex: 0 0 200px;\n margin-left: 2px;\n }\n .videoUploadList .titleInput {\n width: 480px;\n margin-top: 16px;\n }\n .videoUploadList .videoUpload {\n padding: 26px 0;\n border-bottom: 1px dashed #DCDCDC;\n }\n .videoUploadList .videoUpload:last-child {\n border-bottom: none;\n }\n \n .noUploads img {\n width: 64px;\n height: 48px;\n\n }\n .noUploads .uploadHoverIcon {\n display: none;\n }\n .noUploads .imgWrap:hover .uploadHoverIcon {\n display: inline;\n }\n .noUploads .imgWrap:hover .uploadIcon {\n display: none;\n }\n .noUploads .imgWrap {\n width: 72px;\n height: 54px;\n margin: 0 auto;\n cursor: pointer;\n }\n "),y.a.createElement(h.c,{className:"mb26",separator:" > ",items:[{to:"/users/"+p+"/videos",name:"视频"},{name:"上传"}]}),y.a.createElement("div",{className:"title"},y.a.createElement("h2",{className:"head"},"上传视频")),y.a.createElement("div",{className:"section"},P&&y.a.createElement("div",{className:"noUploads",style:{paddingTop:"72px"}},y.a.createElement("div",{className:"imgWrap",onClick:function(){return document.getElementById("fileUpload").click()}},y.a.createElement("img",{className:"uploadIcon",src:x.a}),y.a.createElement("img",{className:"uploadHoverIcon",src:k.a})),y.a.createElement("div",{style:{color:"#000000",fontSize:"18px",fontWeight:"bold",marginBottom:"20px"}},"选择您要上传的视频"),b),y.a.createElement("div",null,a.videos.map(function(e,t){return y.a.createElement(O.a,Object.assign({},o,e,{className:"",cancelUpload:A,onTitleChange:g,key:t,index:t}))})),a.videos&&3===a.videos.length&&y.a.createElement("div",{className:"uploadTip"},y.a.createElement("span",null,"提示单次最多支持3个视频文件上传")),!P&&a.videos.length<3&&y.a.createElement(h.a,{className:"publishBtn",onClick:function(){return document.getElementById("fileUpload").click()}},"继续添加"),y.a.createElement("div",{className:"description "+(P?"noUploads":"")},y.a.createElement("div",{className:""},"视频大小不支持断点续传单个视频文件最大200M单次最多支持3个视频文件上传 "),y.a.createElement("div",{className:""},"视频规格avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm "),y.a.createElement("div",{className:""},"温馨提示:请勿上传违法视频。平台将为每一个视频分配一个地址,您可以通过引用该地址将视频使用在实训项目等模块")),!P&&y.a.createElement(y.a.Fragment,null,y.a.createElement("div",{style:{},className:"publishRow"},y.a.createElement(h.a,{className:"publishBtn",onClick:function(){return function(){if(0!=a.videos.length){var e="/users/"+p+"/videos/batch_publish.json";C.a.post(e,{videos:a.videos.map(function(e){return{video_id:e.videoId,title:e.title}})}).then(function(e){0==e.data.status&&(i({type:"removeAll"}),d.push("/users/"+p+"/videos/success"))}).catch(function(e){console.log(e)})}else u("请先上传视频")}()}},"立即发布"),b))),y.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(e){var t=e.target.files[0];if(t){if(t.name&&-1==t.name.indexOf(".avi")&&-1==t.name.indexOf(".flv")&&-1==t.name.indexOf(".f4v")&&-1==t.name.indexOf(".m4v")&&-1==t.name.indexOf(".mov")&&-1==t.name.indexOf(".mp4")&&-1==t.name.indexOf(".rmvb")&&-1==t.name.indexOf(".swf")&&-1==t.name.indexOf(".webm"))return u("不支持的视频格式"),void f();if(209715200<t.size)return f(),void u("视频大小超过200M");var n=!1;if(a.videos.some(function(e){if(e.name==t.name)return n=!0}),n)return f(),void u("你不能上传同一个视频文件名称,请重新选择。");t.name;var r='{"Vod":{}}';if(E)E.addFile(t,null,null,null,r);else Object(w.a)(p,{create:!E,addFileSuccess:function(e){e.file;console.log("addFileSuccess",e),f(),i({type:"addVideo",uploadInfo:e})},onUploadProgress:function(e,t,n){var r=Math.ceil(100*n);i({type:"updateProgress",uploadInfo:e,progressPercent:r})},onUploadFailed:function(e){console.log("onUploadFailed",e),o.showNotification("视频云服务出现异常,请重新上传。")},onUploadEnd:function(e){console.log("onUploadEnd",e)},onUploadSucceed:function(e){console.log("onUploadSucceed",e)},onUploadError:function(){},gotUploader:function(e){console.log(e);e.addFile(t,null,null,null,r);E=e,window.uploader=E}})}},accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}))}},4241:function(e,t,n){"use strict";var r=n(66),o=(n.n(r),n(67)),c=n.n(o),a=n(1046),i=(n.n(a),n(1049)),l=n.n(i),s=n(0),p=n.n(s),u=n(5),d=n(12);n.n(d);t.a=function(e){var t=e.className,n=e.index,r=e.name,o=e.loaded,a=(e.state,e.cancelUpload),i=e.onTitleChange,s=e.title;return e.match.params.username,p.a.createElement("div",{className:"videoUpload "+t},p.a.createElement("div",{className:"filename"},n+1,". ",r),p.a.createElement("div",{className:"progress df"},p.a.createElement(l.a,{percent:o,status:"100"==o?"":"active"}),p.a.createElement("div",{className:"cancelUpload"},p.a.createElement(u.a,{className:"",onClick:function(){return a(n,"100"==o)}},"100"==o?"删除":"取消上传"))),p.a.createElement("style",null,"\n .titleInputysl .ant-input{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-right: none !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40px !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n \n "),p.a.createElement("div",{className:"courseForm"},p.a.createElement("span",{className:"titleLabel"},"标题:"),p.a.createElement(c.a,{placeholder:"标题支持最多30个字符",onInput:function(e){i(e.target.value,n)},maxLength:30,addonAfter:p.a.createElement("span",{className:"color-grey-6 font-13"},String(s.length),"/",30),className:"titleInput titleInputysl"})))}},4242:function(e,t,n){"use strict";t.a=function(e,t){e&&(l=e),p&&1!=t.create||function(e){window.AliyunUpload&&window.AliyunUpload.Vod?d(e):function(r){u.getScript(a+"/react/"+s+"/js/aliyun-upload/lib/es6-promise.min.js",function(e,t,n){u.getScript(a+"/react/"+s+"/js/aliyun-upload/lib/aliyun-oss-sdk-5.3.1.min.js",function(e,t,n){u.getScript(a+"/react/"+s+"/js/aliyun-upload/aliyun-upload-sdk-1.5.0.min.js",function(e,t,n){r&&r()})})})}(function(){d(e)})}(t)};var r=n(5),o=n(12),i=n.n(o),a=Object(r.R)(),s=Object(r.U)()?"public":"build",c="",l="innov",p=void 0,u=window.$;function d(o){p=new window.AliyunUpload.Vod({timeout:u("#timeout").val()||6e4,partSize:u("#partSize").val()||1048576,parallel:u("#parallel").val()||5,retryCount:u("#retryCount").val()||3,retryDuration:u("#retryDuration").val()||2,region:u("#region").val()||"ap-southeast-1",userId:u("#userId").val()||0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(e){console.log("addFileSuccess: "+e.file.name),o.addFileSuccess&&o.addFileSuccess(e),p.startUpload()},onUploadstarted:function(a){var e=a.file.name;if(a.videoId){var t=c+"/users/"+l+"/video_auths.json";i.a.put(t,{video_id:a.videoId,title:e,file_name:e}).then(function(e){if(-1!=e.data.status){var t=e.data.data,n=t.UploadAuth,r=t.UploadAddress;t.VideoId;p.setUploadAuthAndAddress(a,n,r)}else o.onUploadError&&o.onUploadError(a)}).catch(function(e){p.deleteFile(p._curIndex),p.nextUpload(),console.log(e)})}else{var n=c+"/users/"+l+"/video_auths.json";i.a.post(n,{title:""+e,file_name:""+e}).then(function(e){var t=e.data.data,n=t.UploadAuth,r=t.UploadAddress,o=t.VideoId;p.setUploadAuthAndAddress(a,n,r,o)}).catch(function(e){p.deleteFile(p._curIndex),p.nextUpload(),console.log(e)}),u("#status").text("文件开始上传..."),console.log("onUploadStarted:"+a.file.name+", endpoint:"+a.endpoint+", bucket:"+a.bucket+", object:"+a.object)}},onUploadSucceed:function(e){o.onUploadSucceed&&o.onUploadSucceed(e),console.log("onUploadSucceed: "+e.file.name+", endpoint:"+e.endpoint+", bucket:"+e.bucket+", object:"+e.object),u("#status").text("文件上传成功!")},onUploadFailed:function(e,t,n){o.onUploadFailed&&o.onUploadFailed(e),console.log("onUploadFailed: file:"+e.file.name+",code:"+t+", message:"+n),u("#status").text("文件上传失败!")},onUploadCanceled:function(e,t,n){console.log("Canceled file: "+e.file.name+", code: "+t+", message:"+n),u("#status").text("文件上传已暂停!")},onUploadProgress:function(e,t,n){o.onUploadProgress&&o.onUploadProgress(e,t,n),console.log("onUploadProgress:file:"+e.file.name+", fileSize:"+t+", percent:"+Math.ceil(100*n)+"%");var r=Math.ceil(100*n);u("#auth-progress").text(r),u("#status").text("文件上传中...")},onUploadTokenExpired:function(e){u("#status").text("文件上传超时!");var t=c+"/users/"+l+"/video_auths.json";i.a.put(t,{video_id:e.videoId}).then(function(e){var t=e.data.data.UploadAuth;p.resumeUploadWithAuth(t)}).catch(function(e){console.log(e)})},onUploadEnd:function(e){o.onUploadEnd&&o.onUploadEnd(e),u("#status").text("文件上传完毕!"),console.log("onUploadEnd: uploaded all the files")}}),o.gotUploader&&o.gotUploader(p)}},4243:function(e,t,n){"use strict";t.b=function(e,t){switch(t.type){case"addVideo":var n=t.uploadInfo;return{videos:[].concat(function(e){{if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}}(e.videos),[{name:n.file.name,size:n.file.size,type:n.file.type,fileHash:n.fileHash,state:n.state,videoId:n.videoId,loaded:0,title:""}])};case"removeVideo":return{videos:s()(e.videos,{$splice:[[t.index,1]]})};case"removeAll":return{videos:[]};case"updateProgress":var r=function(e,n){var r=-1;return e.videos.some(function(e,t){if(100!=e.loaded&&(!e.fileHash||n.uploadInfo.fileHash==e.fileHash)&&n.uploadInfo.file.name==e.name)return r=t,!0}),r}(e,t),o=e.videos;return-1!=r&&(o=s()(e.videos,c({},r,{loaded:{$set:t.progressPercent},videoId:{$set:t.uploadInfo.videoId},fileHash:{$set:t.uploadInfo.fileHash}}))),{videos:o};case"updateTitle":var a=t.index,i=e.videos;return-1!=a&&(i=s()(e.videos,c({},a,{title:{$set:t.title}}))),{videos:i};default:throw new Error}},n.d(t,"a",function(){return o});var r=n(1064),s=n.n(r);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o={videos:[]}},4244:function(e,t,n){"use strict";var r=n(12);n.n(r)},4245:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAIVBMVEVHcExMrf9Qr/9TuP9Mrf9Nrf9Mrf9MrP9Nrv9Orv9MrP98EuefAAAACnRSTlMA3CULV5jA84JH4j3LZgAAANVJREFUOMvl1a0OwjAUBeCb/QgcGckSphqeAASBoKaR4KpwJDwAYhaHQuGbLNtynpKWmTWs92rg2n45orc7I9qeEZzrjSgqwIxRtAI7M7rzoKMLjhScNRqqsAyDGC0BxIw9/UYQKQEUHQ9SoGSBBmoOpG4/JQO0A3UYpP2KyyDQaGG8CB/YgDnMfhjhAw2zgEmGER6wAVkEQzbiMQp29g07YCOmo2CDjBywEadRkOSqB5NcBa/6Dbhd/AmIq0Z41c/DL3y8n0AsMbEGxSIVq1gsc+l38AI000Nd23IRqQAAAABJRU5ErkJggg=="},4246:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABgBAMAAAAnVGd6AAAAJFBMVEVHcExMrf9Orf9Nrf90uv9MrP////95wP/M5//z+v+x2/9cs//eVCejAAAABXRSTlMA10ycBa32wqwAAAFsSURBVFjD7dk/TsMwFMfxJ8QNIHsHOABDduAGJXoyUnZTsmcoByg3KANz/0i9AHA6YruBIjXPr/6hLrWlLlXy0dcZrPSViOj+puCENb64Ir/Okm73xMjdf15y8qpuO+COgXXZASUCVN0TYGiNsB24PVxjwAP2CNxDKDBgjAMMrgxkIANHAr5aDPiwtoWAubVPCPBobSxBBmYOeEsHfIB9bpMBHxBJoGhAJIHiAXICxQPkBFIEiAmkCBATSBMgJZAmQEogMWDiPnMxgcSAlQOmYgJJAY1xgBETSApYeIDFBJICOABiAkkBW0BM2A8sQ0APhIR3PVBvA3ogJDR6wPTX94BPmBwILHYAn3AA4A7jhncBM3g87wemIeAX+PlGCdTrFf8FeP2acqybwa1nIAMZODWgHjyMtW+qM/BNlT+HjkItUL9s8i+WDGTgSECB3f8Ps7QSAyp8IAmPROGhLDwWxgfT8GgcHs6Dfw98A1V0Ca+XaA0MAAAAAElFTkSuQmCC"},842:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validProgress=function(e){if(!e||e<0)return 0;if(100<e)return 100;return e}},912:function(e,t,n){"use strict";function a(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 i(e,t){return!t||"object"!=typeof 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 s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.a=function(o){return function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,c(e).apply(this,arguments))}var t,n,r;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&&l(e,t)}(e,o),t=e,(n=[{key:"componentDidUpdate",value:function(){var r=this,o=Date.now(),a=!1;Object.keys(this.paths).forEach(function(e){var t=r.paths[e];if(t){a=!0;var n=t.style;n.transitionDuration=".3s, .3s, .3s, .06s",r.prevTimeStamp&&o-r.prevTimeStamp<100&&(n.transitionDuration="0s, 0s")}}),a&&(this.prevTimeStamp=Date.now())}},{key:"render",value:function(){return s(c(e.prototype),"render",this).call(this)}}])&&a(t.prototype,n),r&&a(t,r),e}()}},913:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s});var r=n(1),o=n.n(r),a={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},i=o.a.oneOfType([o.a.number,o.a.string]),s={className:o.a.string,percent:o.a.oneOfType([i,o.a.arrayOf(i)]),prefixCls:o.a.string,strokeColor:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.oneOfType([o.a.string,o.a.object])),o.a.object]),strokeLinecap:o.a.oneOf(["butt","round","square"]),strokeWidth:i,style:o.a.object,trailColor:o.a.string,trailWidth:i}}});